UNS-3.2.0.24/0000755012402100775320000000000010746102025013500 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/UserNotificationServiceLinux.cpp0000644012402100775320000003144210746077316022054 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //***************************************************************************** // // Class: UserNotificationServiceLinux // Description: The main class of the service. // //***************************************************************************** #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "UserNotificationServiceLinux.h" #include "UNSCommonDefs.h" #include "registryWrapper.h" #include "Options.h" #include "UNSConfig.h" #define NO_ERROR 0 #define ERROR_INVALID_PARAMETER 1 //***************************************************************************** // Name : Constructor // Description : Constructor - initializes a new instance of the // UserNotificationService class. //***************************************************************************** UserNotificationService::UserNotificationService() { m_init = false; } //***************************************************************************** // Name : Destructor // Description : Destructor - finish soap. //***************************************************************************** UserNotificationService::~UserNotificationService(void) { DeinitLogger(); } //***************************************************************************** // Name : InitLogger // Description : initializes logger //***************************************************************************** void UserNotificationService::InitLogger(void) { m_Logger = new UNSEventLogger(); m_UserNotificationThread.SetLogger(m_Logger); m_PostureRetreivalThread.SetLogger(m_Logger); m_AMTStatusThread.SetLogger(m_Logger); } //***************************************************************************** // Name : DeinitLogger // Description : initializes logger //***************************************************************************** void UserNotificationService::DeinitLogger(void) { m_AMTStatusThread.SetLogger(NULL); m_PostureRetreivalThread.SetLogger(NULL); m_UserNotificationThread.SetLogger(NULL); if (m_Logger) { delete m_Logger; } } //***************************************************************************** // Name : SetCredentialsMode // Description : This is a service set credentials function that gets called // when the service gets created and have command line arguments //***************************************************************************** unsigned long UserNotificationService::SetCredentialsMode(unsigned long argc, const char **argv, unsigned long *specificError) { InitLogger(); if (m_Logger) { m_Logger->DebugLog("Intel(R) AMT User Notification set credentials mode\n"); } #ifndef NO_STDOUT_DEBUG_LOG else #endif { printf ("Intel(R) AMT User Notification set credentials mode\n"); } unsigned long rc = UpdateRegistry(argc, const_cast(argv)); if (m_Logger) { m_Logger->DebugLog("Intel(R) AMT User Notification set credentials done\n"); } #ifndef NO_STDOUT_DEBUG_LOG else #endif { printf ("Done.\n"); } *specificError = rc; return UNS_STATUS_UPDATE_REG_MODE; } //***************************************************************************** // Name : ServiceInitialization // Description : This is a service initialization function that gets called // when the service gets created //***************************************************************************** unsigned long UserNotificationService::ServiceInitialization(unsigned long argc, const char **argv, unsigned long *specificError) { UNSConfig Config; InitLogger(); /* Initialize AMTStatus Configuration object */ Config.Init(); // Initialize the threads. m_PostureRetreivalThread.init(Config); m_UserNotificationThread.init(); m_AMTStatusThread.init(Config); m_init = true; return UNS_STATUS_SUCCESS; } //***************************************************************************** // Name : Stop // Description : Initiates the stop service action. //***************************************************************************** void UserNotificationService::Stop() { m_StopSemaphore.release(); } //***************************************************************************** // Name : InternalStop // Description : Stop the service. //***************************************************************************** void UserNotificationService::InternalStop() { m_PostureRetreivalThread.stop(); m_UserNotificationThread.stop(); m_AMTStatusThread.stop(); if (m_Logger) m_Logger->ServiceStopped(); // Record stop in event log } //***************************************************************************** // Name : Suspend // Description : Put the service to suspend mode //***************************************************************************** void UserNotificationService::Suspend() { m_PostureRetreivalThread.suspend(); m_UserNotificationThread.suspend(); m_AMTStatusThread.suspend(); if (m_Logger) m_Logger->DebugLog("Intel(R) AMT User Notification service suspended.\n"); } //***************************************************************************** // Name : Resume // Description : Resume the service. //***************************************************************************** void UserNotificationService::Resume() { m_PostureRetreivalThread.resume(); m_UserNotificationThread.resume(); m_AMTStatusThread.resume(); if (m_Logger) m_Logger->DebugLog("Intel(R) AMT User Notification service resumed.\n"); } //***************************************************************************** // Name : start // Description : Listen of the master socket, if a data is received from the // TCP network process the data: Invoke soap_serve(&soap): // The soap_serve() function will invoke the __emc__SoapAlert. // //***************************************************************************** unsigned long UserNotificationService::Start() { if (m_Logger) m_Logger->ServiceStart(); m_PostureRetreivalThread.start(); m_UserNotificationThread.start(); m_AMTStatusThread.start(); m_StopSemaphore.acquire(); //Check for releasing the semaphore while (!m_StopSemaphore.acquireTry()) { usleep(200); } InternalStop(); return UNS_STATUS_SUCCESS; } //***************************************************************************** // Name : UpdateRegistry // Description : Run the programm in update registry mode. //***************************************************************************** unsigned long UserNotificationService::UpdateRegistry(int argc, const char **argv) { Credentials *unsCreds = NULL; Credentials *eacCreds = NULL; unsigned long res; res = ParseArguments(argc, argv, &unsCreds, &eacCreds); if (res != NO_ERROR) { // since this is an error that aborts the service initialization. if (m_Logger) m_Logger->ErrorLog("Attempted to start the service with bad arguments."); return res; } if (eacCreds) { printf ("\nUpdating Endpoint Access Control credentials...\n"); // store in registry if (!StoreCredentials(eacCreds, CRED_REG_INFO::EAC)) { if (m_Logger) m_Logger->WarningLog("Failed to store EAC credentials"); } else { if (m_Logger) m_Logger->DebugLog("Endpoint Access Control credentials were updated\n"); } delete eacCreds; } if (unsCreds) { printf ("\nUpdating User Notification credentials...\n"); // store in registry if (!StoreCredentials(unsCreds, CRED_REG_INFO::UNS)) { if (m_Logger) m_Logger->WarningLog("Failed to store UNS credentials\n"); } else { if (m_Logger) m_Logger->DebugLog("User Notification credentials were updated\n"); } delete unsCreds; } return 0; } //***************************************************************************** // Name : ParseArguments // Description : Parse the command line arguments. //***************************************************************************** unsigned long UserNotificationService::ParseArguments( int argc, const char **argv, Credentials **unsCreds, Credentials **eacCreds) { Options::FormatNode RawFormat[] = { {"unsUser", false, true}, {"unsPass", false, true}, {"eacUser", false, true}, {"eacPass", false, true}, {"cainfo", true, false}, {"capath", true, false}, {"cert", true, false}, {"key",true, false}}; Options::Format format(RawFormat, sizeof(RawFormat)/sizeof(Options::FormatNode)); #ifdef _DEBUG format.addOption("clientip", true, true); format.addOption("serverip", true, true); #endif Options options; if (!options.parse(argc, argv, format)) { printf("%s\n",options.errorStr()); return ERROR_INVALID_PARAMETER; } *unsCreds = *eacCreds = NULL; if (options.optionExists("cert") || options.optionExists("cainfo") || options.optionExists("key")) { *unsCreds = new Credentials; *eacCreds = new Credentials; if (options.optionExists("cert")) { (*unsCreds)->certificate = options.getOption("cert"); (*eacCreds)->certificate = options.getOption("cert"); } if (options.optionExists("cainfo")) { (*unsCreds)->cainfo = options.getOption("cainfo"); (*eacCreds)->cainfo = options.getOption("cainfo"); } if (options.optionExists("key")) { (*unsCreds)->sslkey = options.getOption("key"); (*eacCreds)->sslkey = options.getOption("key"); } } if (options.optionExists("unsUser")) { if (*unsCreds == NULL) *unsCreds = new Credentials; (*unsCreds)->username = options.getOption("unsUser"); if (options.optionExists("unsPass")) (*unsCreds)->password = options.getOption("unsPass"); } if (options.optionExists("eacUser")) { if (*eacCreds == NULL) *eacCreds = new Credentials; (*eacCreds)->username = options.getOption("eacUser"); if (options.optionExists("eacPass")) (*eacCreds)->password = options.getOption("eacPass"); } #ifdef _DEBUG if (options.optionExists("clientip")) { setClientIP(options.getOption("clientip")); } if (options.optionExists("serverip")) { setServerIP(options.getOption("serverip")); } #endif return NO_ERROR; } #ifdef _DEBUG //***************************************************************************** // Name : SetClientIP // Description : DEBUG ONLY - set remote AMT IP. //***************************************************************************** void UserNotificationService::setClientIP(const string &clip) { m_UserNotificationThread.SetClientIP(clip); m_PostureRetreivalThread.SetIP(clip); } //***************************************************************************** // Name : SetserverIP // Description : DEBUG ONLY - set remote UNS server IP. //***************************************************************************** void UserNotificationService::setServerIP(const string &svip) { m_UserNotificationThread.SetServerIP(svip); } #endif UNS-3.2.0.24/README0000644012402100775320000000644410746077315014405 0ustar00gkbld_amtccigk00000000000000/+--------------------------------------------------------------------------- // // Copyright (C) Intel Corporation, 2003 - 2007. // // File: README // // Contents: a short description for developers // //---------------------------------------------------------------------------- User Notification Service ========================= The Intel(R) Active Management Technology (Intel(R) AMT) User Notification Service (UNS) runs as a deamon on the host of a platform that also has Intel AMT enabled. The UNS receives messages from Intel AMT and write them to the local OS event log for the purpose of notifying end users of predefined events such as when critical System Defense policies are applied by the ME FW. The service is meant to be run as a daemon. Messages from the service will be sent to the syslog. The UNS messages will be marked with a source of "Intel(R) AMT". Required libraries/tools: ------------------------- - gSOAP: Version 2.7.9h or newer http://www.cs.fsu.edu/~engelen/soap.html - libcurl Version: 7.12.1 or newer http://curl.haxx.se/ - OpenSSL: Version: 0.9.7a or newer - libXML: Version: 2.6.16 or newer - openwsman 1.1.0 or newer http://www.openwsman.org - Xerces-C: Version 2.7.0 or newer Building and installing the UNS: ----------------------------- 1. In order to build and install the UNS, you must first build the openwsman library. call: './configure --prefix=/usr' 'make' 'make install' note: on 64bit systems add '--libdir=/usr/lib64' option to configure command 2. To build UNS call './configure' 'make' 3. To install UNS call 'make install'. 4. To configure UNS to load upon system startup call 'chkconfig --add uns' 5. To start UNS as daemon call 'service uns start' The UNS may also be built and run manually (not as a daemon), by first calling 'make', then './uns'. This method doesn't load UNS upon startup, so it may be better suited for testing purposes. The service will be built in daemon mode by default, to override this setting invoke the configure script with --enable-daemon=no option. In order to build the UNS in debug mode it is required to build gSOAP in debug mode first. Otherwise, the compilation of the service will fail. To enable the debug mode invoke the configure scipt with --enable-debug option. Uninstalling the UNS: ----------------------------- 1. To stop UNS daemon call 'service uns stop' 2. To configure UNS not to load upon system startup call 'chkconfig --del uns' 3. Call 'make uninstall' to uninstall and remove the UNS. Usage: ------ Usage: uns [OPTIONS] Configuration options: -unsUser Query for Username for local UN realm. See note 1. -unsPass Query for Password for local UN realm. See note 1. -eacUser Query for Username for local EAC realm. See note 1. -eacPass Query for Password for local EAC realm. See note 1. -cainfo Full path to the root CA file. -cert Full path to the client certificate file. -key Full path tp the client private key file. Note 1. Some options are set in interactive mode. Please provide option value upon prompt. Unce the program gets configuration options it will run in "update" mode only, It will store the new configuration and will use them the next time it runs. The service will run only if no command line parameters were given. UNS-3.2.0.24/registryWrapper.h0000644012402100775320000000600410746077315017077 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: registryWrapper.h // // Contents: definition to the registry wrapper // //---------------------------------------------------------------------------- #ifndef _REGISTRY_WRAPPER_H_ #define _REGISTRY_WRAPPER_H_ #ifdef _WIN32 #include typedef unsigned long UNSREG_DATATYPE; #else #include "LinuxRegistryInfo.h" // Assaf - ask Sharon #endif bool DeleteRegistryKey(const char *base0,const char *key); bool DeleteRegistryVal(const char *base0,const char *key,const char *valuename); bool GetRegistryData(void *value, UNSREG_DATATYPE *valsz, UNSREG_DATATYPE *type,const char *base0,const char *key, const char *valuename); bool SetRegistryData(const void* value, UNSREG_DATATYPE valsz, UNSREG_DATATYPE type,const char *base0,const char *key, const char *valuename, bool bPublic); #endif // _REGISTRY_H_ UNS-3.2.0.24/UNSCommonDefs.cpp0000644012402100775320000000516510746077315016650 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "UNSCommonDefs.h" const CredentialsRegInfo CRED_REG_INFO::UNS = CredentialsRegInfo(AMT_UNS_REG_BASE, AMT_UNS_REG_KEY, AMT_UNS_REG_USERNAME, AMT_UNS_REG_PASSWORD, AMT_UNS_REG_CERT, AMT_UNS_REG_CAINFO, AMT_UNS_REG_CAPATH, AMT_UNS_REG_SSLKEY); const CredentialsRegInfo CRED_REG_INFO::EAC = CredentialsRegInfo(AMT_UNS_REG_BASE, AMT_UNS_REG_KEY, AMT_PP_REG_USERNAME, AMT_PP_REG_PASSWORD, AMT_PP_REG_CERT, AMT_PP_REG_CAINFO, AMT_PP_REG_CAPATH, AMT_PP_REG_SSLKEY); UNS-3.2.0.24/UNSCommonDefs.h0000644012402100775320000000626410746077315016316 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _UNS_COMMON_DEFS_H #define _UNS_COMMON_DEFS_H #include "AMTPPDefs.h" #include "Credentials.h" // Registry location for AMT specific information #ifdef _WIN32 #define AMT_UNS_REG_BASE "SOFTWARE\\Intel" #else #define AMT_UNS_REG_BASE "etc/Intel" #endif #define AMT_UNS_REG_KEY "IntelAMTUNS" #define AMT_UNS_REG_USERNAME "Creds1" #define AMT_UNS_REG_PASSWORD "Creds2" #define AMT_PP_REG_USERNAME "Creds3" #define AMT_PP_REG_PASSWORD "Creds4" #define AMT_PP_REG_CERT "Creds5" #define AMT_UNS_REG_CERT "Creds5" //Yes, this the same as AMT_PP_REG_CERT #define AMT_UNS_REG_CAINFO "Creds6" #define AMT_UNS_REG_CAPATH "Creds7" #define AMT_UNS_REG_SSLKEY "Creds8" #define AMT_PP_REG_CAINFO "Creds6" //Yes, this the same as AMT_UNS_REG_CAINFO #define AMT_PP_REG_CAPATH "Creds7" //Yes, this the same as AMT_UNS_REG_CAPATH #define AMT_PP_REG_SSLKEY "Creds8" //Yes, this the same as AMT_UNS_REG_SSLKEY #define AMT_UNS_GET_POSTURE_INTERVAL "GetPostureInterval" class CRED_REG_INFO { public: static const CredentialsRegInfo UNS; static const CredentialsRegInfo EAC; }; #endif //_UNS_COMMON_DEFS_H UNS-3.2.0.24/UNSConfig.cpp0000644012402100775320000001372310746077315016022 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "UNSConfig.h" #include "ConfigFile.h" #ifdef _WIN32 #include "ConfigWinInfo.h" #else #include "ConfigLinuxInfo.h" #endif #define SECOND 1000 #define MINUTE (60 * SECOND) #include using namespace std; /*Constants*/ //Constants for configuration parameters names const string UNSConfig::CHECK_AMT_STATUS_TIMEOUT = "CheckAMTStatusTimeout"; const string UNSConfig::NUM_POLLS_FOR_DISABLED = "NumPollsForDisabled"; const string UNSConfig::GET_POSTURE_INTERVAL = "GetPostureInterval"; const string UNSConfig::TRACE_LOG_ENABLED = "Trace"; #ifdef _DEBUG const bool UNSConfig::DEFAULT_DEBUG_MODE = false; const bool UNSConfig::DEFAULT_DEBUG_MODE_AMT_ENABLED = false; #endif //Default values for configuration parameters const unsigned long UNSConfig::DEFAULT_CHECK_AMT_STATUS_TIMEOUT = 10 * SECOND; const unsigned long UNSConfig::DEFAULT_NUM_POLLS_FOR_DISABLED = 7; const unsigned long UNSConfig::DEFAULT_GET_POSTURE_INTERVAL = 5 * MINUTE; const bool UNSConfig::DEFAULT_TRACE_LOG_ENABLED = false; //Constants for configuration file names const string UNSConfig::MACHINE_CFG_FILENAME = "IntelAMTUNS.config"; #ifdef _DEBUG const string UNSConfig::DEBUG_MODE_FILENAME = "IntelAMTUNS.debug.config"; const string UNSConfig::DEBUG_MODE = "DebugMode"; const string UNSConfig::DEBUG_MODE_AMT_ENABLED = "DebugModeAMTEnabled"; #endif //default ctor UNSConfig::UNSConfig() { LoadDefaults(); } void UNSConfig::LoadDefaults() { m_nCheckAMTStatusTimeout = DEFAULT_CHECK_AMT_STATUS_TIMEOUT; m_nNumPollsForDisabled = DEFAULT_NUM_POLLS_FOR_DISABLED; m_nGetPostureInterval = DEFAULT_GET_POSTURE_INTERVAL; m_bTraceLogEnabled = DEFAULT_TRACE_LOG_ENABLED; } //Init(): Load the configuration from configuration files. //Returns true on success, false if either of the files could not be opened (in which //case the defaults will be used). bool UNSConfig::Init() { LoadDefaults(); #ifdef _WIN32 ConfigWinInfo OSInfo; #else ConfigLinuxInfo OSInfo; #endif m_MachineConfigFileName = OSInfo.MachineConfigPrefix() + MACHINE_CFG_FILENAME; #ifdef _DEBUG m_DebugModeConfigFileName = OSInfo.MachineConfigPrefix() + DEBUG_MODE_FILENAME; #endif //If file couldn't be opened, we use the defaults and return false return LoadMachineConfig(); } bool UNSConfig::LoadMachineConfig() { try { ConfigFile MachineConfigFile(m_MachineConfigFileName.c_str()); //For every parameter that is read, if it's not found, its default value is used. m_nCheckAMTStatusTimeout = MachineConfigFile.read(CHECK_AMT_STATUS_TIMEOUT, DEFAULT_CHECK_AMT_STATUS_TIMEOUT); m_nNumPollsForDisabled = MachineConfigFile.read(NUM_POLLS_FOR_DISABLED, DEFAULT_NUM_POLLS_FOR_DISABLED); m_nGetPostureInterval = MachineConfigFile.read(GET_POSTURE_INTERVAL, DEFAULT_GET_POSTURE_INTERVAL); m_bTraceLogEnabled = MachineConfigFile.read(TRACE_LOG_ENABLED, DEFAULT_TRACE_LOG_ENABLED); return true; } catch (ConfigFile::file_not_found &) { return false; } } unsigned long UNSConfig::CheckAMTStatusTimeout() const { return m_nCheckAMTStatusTimeout; } unsigned long UNSConfig::NumPollsForDisabled() const { return m_nNumPollsForDisabled; } unsigned long UNSConfig::GetPostureInterval() const { return m_nGetPostureInterval; } bool UNSConfig::TraceLogEnabled() const { return m_bTraceLogEnabled; } #ifdef _DEBUG bool UNSConfig::debugMode() const { try { ConfigFile DebugModeFile(m_DebugModeConfigFileName); return DebugModeFile.read(DEBUG_MODE, DEFAULT_DEBUG_MODE); } catch (ConfigFile::file_not_found &) { return DEFAULT_DEBUG_MODE; //File doesn't exist - return default } } bool UNSConfig::debugModeAMTEnabled() const { try { ConfigFile DebugModeFile(m_DebugModeConfigFileName); return DebugModeFile.read(DEBUG_MODE_AMT_ENABLED, DEFAULT_DEBUG_MODE_AMT_ENABLED); } catch (ConfigFile::file_not_found &) { return DEFAULT_DEBUG_MODE_AMT_ENABLED; //File doesn't exist - return default } } #endif UNS-3.2.0.24/UNSConfig.h0000644012402100775320000000766310746077315015475 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef UNS_CONFIG #define UNS_CONFIG #include #include class UNSConfig { public: //ctor UNSConfig(); //init(): Load the configuration from configuration files. //Returns true on success, false if either of the files could not be opened (in which //case the defaults will be used). bool Init(); //Properties unsigned long CheckAMTStatusTimeout() const; unsigned long NumPollsForDisabled() const; unsigned long GetPostureInterval() const; bool TraceLogEnabled() const; #ifdef _DEBUG bool debugMode() const; bool debugModeAMTEnabled() const; #endif private: void LoadDefaults(); bool LoadMachineConfig(); //Configuration file names std::string m_MachineConfigFileName; #ifdef _DEBUG std::string m_DebugModeConfigFileName; #endif //Constants for configuration parameters names static const std::string CHECK_AMT_STATUS_TIMEOUT; static const std::string NUM_POLLS_FOR_DISABLED; static const std::string GET_POSTURE_INTERVAL; static const std::string TRACE_LOG_ENABLED; #ifdef _DEBUG static const std::string DEBUG_MODE; static const std::string DEBUG_MODE_AMT_ENABLED; #endif //Default values for configuration parameters static const unsigned long DEFAULT_CHECK_AMT_STATUS_TIMEOUT; static const unsigned long DEFAULT_NUM_POLLS_FOR_DISABLED; static const unsigned long DEFAULT_GET_POSTURE_INTERVAL; static const bool DEFAULT_TRACE_LOG_ENABLED; #ifdef _DEBUG static const bool DEFAULT_DEBUG_MODE; static const bool DEFAULT_DEBUG_MODE_AMT_ENABLED; #endif //Constants for configuration file names static const std::string MACHINE_CFG_FILENAME; #ifdef _DEBUG static const std::string DEBUG_MODE_FILENAME; #endif // Configuration state members unsigned long m_nCheckAMTStatusTimeout; unsigned long m_nNumPollsForDisabled; unsigned long m_nGetPostureInterval; bool m_bTraceLogEnabled; }; #endif //UNS_CONFIG UNS-3.2.0.24/UNSEventLogger.cpp0000644012402100775320000001717010746077315017036 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //***************************************************************************** // // Class: UNSEventLogger // Description: EventLogger for User Notification Service. // //***************************************************************************** #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "UNSEventLogger.h" #include #define UNS_SERVICE_START "Intel(R) User Notification Service started." #define UNS_SERVICE_STOPPED "Intel(R) User Notification Service stopped." #define UNS_SUBSCRIPTION_ERROR "Failed to subscribe to local Intel(R) AMT." #define UNS_SUBSCRIPTION_SUCCESS "Subscribed to local Intel(R) AMT." #define UNS_GET_FQDN_ERROR "Failed to resolve Intel(R) AMT fqdn." #define UNS_CANCEL_SUBSCRIPTION_ERROR "Failed to cancel alert subscription." #define UNS_BIND_ERROR "Failed to bind localhost." #define UNS_SERVER_ERROR "SOAP web server error." #define UNS_GET_EAC_STATUS_ERROR "Failed to get EAC Status." #define UNS_GET_POSTURE_ERROR "Failed to get posture." #define UNS_GET_POSTURE_HASH_ERROR "Failed to get posture hash." #define UNS_WRITE_SHARED_DATA_ERROR "Failed to write shared posture/hash." #define UNS_HECI_COMMAND_ERROR "HECI Command failed" #define UNS_SET_AMT_STATUS_ERROR "Failed to set AMT Status" // Constructor UNSEventLogger::UNSEventLogger() { ResetFlags(); #ifdef _LINUX m_logger = new LinuxEventLog(EVENT_LOG_SOURCE_NAME); #else m_logger = new WindowsEventLog(EVENT_LOG_LOG_NAME,EVENT_LOG_SOURCE_NAME,EVENT_LOG_CATEGORY_COUNT); #endif } UNSEventLogger::~UNSEventLogger() { delete m_logger; } // Log information event by id and category void UNSEventLogger::LogInfoEvent(unsigned short CategoryID, unsigned long EventID) { Lock lock(m_StateSemaphore); if (m_logger != NULL) { m_logger->LogEvent(CategoryID , EventID, EVENTLOG_INFORMATION_TYPE); } } // Record service start message. void UNSEventLogger::ServiceStart() { DebugLog(UNS_SERVICE_START); } // Record service stop message. void UNSEventLogger::ServiceStopped() { DebugLog(UNS_SERVICE_STOPPED); } // Record subscription error message. void UNSEventLogger::SubscriptionError() { if (!m_SubscribeFail) { ResetFlags(); ErrorLog(UNS_SUBSCRIPTION_ERROR); m_SubscribeFail = true; } } // Record subscription success message. void UNSEventLogger::SubscriptionSuccess() { if (!m_Subscribe) { ResetFlags(); DebugLog(UNS_SUBSCRIPTION_SUCCESS); m_Subscribe = true; } } // Record get net params (FQDN) error message. void UNSEventLogger::GetFqdnFailure() { if (!m_GetFqdn) { ResetFlags(); ErrorLog(UNS_GET_FQDN_ERROR); m_GetFqdn = true; } } // Record bind error message. void UNSEventLogger::BindError() { if (!m_Bind) { ResetFlags(); ErrorLog(UNS_BIND_ERROR); m_Bind = true; } } // Recored failed to cancal alert subscription. void UNSEventLogger::CancelSubscriptionError() { if (!m_Cancel) { ResetFlags(); WarningLog(UNS_CANCEL_SUBSCRIPTION_ERROR); m_Cancel = true; } } void UNSEventLogger::GetEACStatusFailedError() { if (!m_GetEACStatus) { ResetFlags(); WarningLog(UNS_GET_EAC_STATUS_ERROR); m_GetEACStatus = true; } } void UNSEventLogger::GetPostureFailedError() { if (!m_GetPosture) { ResetFlags(); ErrorLog(UNS_GET_POSTURE_ERROR); m_GetPosture = true; } } void UNSEventLogger::GetPostureHashFailedError() { if (!m_GetPostureHash) { ResetFlags(); ErrorLog(UNS_GET_POSTURE_HASH_ERROR); m_GetPostureHash = true; } } void UNSEventLogger::WriteSharedDataError() { if (!m_WriteSharedData) { ResetFlags(); ErrorLog(UNS_WRITE_SHARED_DATA_ERROR); m_WriteSharedData = true; } } void UNSEventLogger::HECICommandFailedError() { if (!m_HECICommandFailed) { ResetFlags(); ErrorLog(UNS_HECI_COMMAND_ERROR); m_HECICommandFailed = true; } } void UNSEventLogger::SetAMTStatusFailedError() { if (!m_SetAMTStatusFailed) { ResetFlags(); ErrorLog(UNS_SET_AMT_STATUS_ERROR); m_SetAMTStatusFailed = true; } } // Record Events for debugging. void UNSEventLogger::DebugLog(const char *message) { Lock lock(m_StateSemaphore); char szBuf[1024]; sprintf(szBuf, "%.1014s\n", message); const char *lpStrings[] = {szBuf}; unsigned int NumOfStrings = 1; if (m_logger != NULL) { m_logger->LogEvent(UNS_GENERAL, TEXT_MESSAGE, EVENTLOG_INFORMATION_TYPE, lpStrings,NumOfStrings, NULL, 0); } #ifndef NO_STDOUT_DEBUG_LOG printf("%s", szBuf); #endif } // Record warning events void UNSEventLogger::WarningLog(const char *message) { Lock lock(m_StateSemaphore); char szBuf[1024]; sprintf(szBuf, " [UNS] %.1014s\n", message); const char *lpStrings[] = {szBuf}; unsigned int NumOfStrings = 1; if (m_logger != NULL) { m_logger->LogEvent(UNS_GENERAL, UNS_WARNING_MESSAGE, EVENTLOG_WARNING_TYPE, lpStrings,NumOfStrings, NULL, 0); } #ifndef NO_STDOUT_DEBUG_LOG printf("%s", szBuf); #endif } // Record error events void UNSEventLogger::ErrorLog(const char *message) { Lock lock(m_StateSemaphore); char szBuf[1024]; sprintf(szBuf, " [UNS] %.1014s\n", message); const char *lpStrings[] = {szBuf}; unsigned int NumOfStrings = 1; if (m_logger != NULL) { m_logger->LogEvent(UNS_GENERAL, UNS_ERROR_MESSAGE, EVENTLOG_ERROR_TYPE, lpStrings,NumOfStrings, NULL, 0); } #ifndef NO_STDOUT_DEBUG_LOG printf("%s", szBuf); #endif } // Reset all flags void UNSEventLogger::ResetFlags() { Lock lock(m_StateSemaphore); m_SubscribeFail = false; m_Subscribe = false; m_GetFqdn = false; m_Bind = false; m_Cancel = false; m_GetEACStatus = false; m_GetPosture = false; m_GetPostureHash = false; m_WriteSharedData = false; m_HECICommandFailed = false; m_SetAMTStatusFailed = false; } UNS-3.2.0.24/UNSEventLogger.h0000644012402100775320000001112010746077315016470 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //***************************************************************************** // // Class: UNSEventLogger // Description: EventLogger for User Notification Service. // //***************************************************************************** #ifndef _UNS_EVENT_LOGGER_H #define _UNS_EVENT_LOGGER_H #include "BaseEventLog.h" #include "Semaphore.h" #include "Lock.h" #ifdef _LINUX #include "EventMessages.h" #include "LinuxEventLog.h" #include "UNSMessageFileLinux.h" #else #include "WindowsEventLog.h" #include "UNSMessageFile.h" #endif #define EVENT_LOG_SOURCE_NAME "Intel(R) AMT" #define EVENT_LOG_LOG_NAME "Application" #define EVENT_LOG_MESSAGE_DLL_FILE "%SystemRoot%\\system32\\UNSMsgs.dll" #define EVENT_LOG_CATEGORY_COUNT 4 class UNSEventLogger { private: BaseEventLog *m_logger; Semaphore m_StateSemaphore; // Flags for events that were already logged. bool m_SubscribeFail; bool m_Subscribe; bool m_GetFqdn; bool m_Bind; bool m_Cancel; bool m_GetEACStatus; bool m_GetPosture; bool m_GetPostureHash; bool m_WriteSharedData; bool m_HECICommandFailed; bool m_SetAMTStatusFailed; public: UNSEventLogger(); virtual ~UNSEventLogger(); // Log information event by id and category void LogInfoEvent(unsigned short CategoryID, unsigned long EventID); // Record service start message. void ServiceStart(); // Record service stop message. void ServiceStopped(); // Record subscription error message. void SubscriptionError(); // Record subscription success message. void SubscriptionSuccess(); // Record get net params (FQDN) error message. void GetFqdnFailure(); // Record bind error message. void BindError(); // Recored failed to cancel alert subscription. void CancelSubscriptionError(); // Record failed to get EAC status error message. void GetEACStatusFailedError(); // Record failed to get posture error void GetPostureFailedError(); // Record failed to get posture hash error void GetPostureHashFailedError(); //Record "failed to write shared posture/hash" error void WriteSharedDataError(); /*Log messages for AMTStatus*/ //Record "HECI Command failed" error void HECICommandFailedError(); //Record "Failed to set AMT status" error void SetAMTStatusFailedError(); // Record Events for debugging. void DebugLog(const char *message); // Record warning events void WarningLog(const char * message); // Record error events void ErrorLog(const char * message); // Reset all falgs void ResetFlags(); }; #endif // _UNS_EVENT_LOGGER_H UNS-3.2.0.24/UNSMainLinux.cpp0000644012402100775320000001575610746077315016531 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: UNSMainLinux.cpp // // Contents: The Linux main UNS application. // //---------------------------------------------------------------------------- #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #include #include #include #include #include "UserNotificationServiceLinux.h" #include "UNSCommonDefs.h" #include "Options.h" #include "Thread.h" #ifdef DAEMON #include "daemonize.h" #endif //DAEMON #define LOCK_PATH "/var/run/" /* Change this to whatever your daemon is called */ #define DAEMON_PID_FILE "uns.pid" // Global variable, the main service. UserNotificationService service; int lock_pid_file_fd = -1; // Handler for termination signal. void terminationHandler (int signum, siginfo_t* sinfo, void* dummy) { service.Stop(); } //Signals action register void setSignalsHandler() { int sigSet = 0; // Termination signal handler. struct sigaction terminateAction; // Set up the structure to specify the termination action. terminateAction.sa_sigaction = terminationHandler; sigemptyset(&terminateAction.sa_mask); terminateAction.sa_flags = SA_SIGINFO; sigSet &= sigaction (SIGTERM, &terminateAction, NULL); sigSet &= sigaction (SIGQUIT, &terminateAction, NULL); sigSet &= sigaction (SIGHUP, &terminateAction, NULL); sigSet &= sigaction (SIGINT, &terminateAction, NULL); sigSet &= sigaction (SIGPIPE, &terminateAction, NULL); sigSet &= sigaction (SIGALRM, &terminateAction, NULL); sigSet &= sigaction (SIGUSR1, &terminateAction, NULL); sigSet &= sigaction (SIGUSR2, &terminateAction, NULL); if (sigSet != 0) { printf ("Warning: failed to register terminate signal handler\n"); } } /** * lock_pid_file - creates a pid file and writes current process pid into it * * lockfile - name of a file to be created * * return: 0 on success, -1 on fatal error, -2 on error **/ int lock_pid_file(const char* lockfile) { int lfp = -1; size_t towrite = 0; ssize_t written = 0; int error = 0; int haserror = 0; char pid_buf[32]; /* Create the lock file as the current user */ if (lockfile && lockfile[0]) { lfp = open(lockfile, O_RDWR | O_CREAT, 0644); if (lfp < 0) { syslog(LOG_ERR, "unable to create lock file %s, code=%d (%s)", lockfile, errno, strerror(errno)); return -1; } if (-1 == flock(lfp, LOCK_EX | LOCK_NB)) { error = errno; if (EWOULDBLOCK == errno) { syslog(LOG_ERR, "The UNS service is already running!"); close(lfp); } else { syslog(LOG_ERR, "unable to lock file %s, code=%d (%s)", lockfile, error, strerror(error)); close(lfp); unlink(lockfile); return -2; } return -1; } if (-1 == ftruncate(lfp, 0)) { syslog(LOG_ERR, "unable to fruncate lock file %s, code=%d (%s)", lockfile, errno, strerror(errno)); close(lfp); unlink(lockfile); return -2; } snprintf(pid_buf, sizeof(pid_buf), "%u", getpid()); towrite = strnlen(pid_buf, 31); written = write(lfp, pid_buf, towrite); if (-1 == written) { error = errno; haserror = 1; } else if (towrite != (size_t)written) { haserror = 1; } else if (-1 == fsync(lfp)) { error = errno; haserror = 1; } if (1 == haserror) { syslog(LOG_ERR, "unable to write pid into lock file %s, code=%d (%s)", lockfile, error, strerror(error)); close(lfp); unlink(lockfile); return -2; } lock_pid_file_fd = lfp; } return 0; } /** * unlock_pid_file - removes a pid file * * lockfile - name of a file to be removed **/ void unlock_pid_file(const char* lockfile) { if (-1 != lock_pid_file_fd) { close(lock_pid_file_fd); lock_pid_file_fd = -1; unlink(lockfile); } } // Main service entry. int main(int argc, const char *argv[]) { int lockresult = -1; // Check for client/server remote debug IP. unsigned long error; if (argc > 1) { lockresult = lock_pid_file(LOCK_PATH DAEMON_PID_FILE); if (-2 == lockresult) { lockresult = lock_pid_file(LOCK_PATH DAEMON_PID_FILE); } if (0 != lockresult) { printf("Intel(R) AMT User Notification unable to lock pidfile. Is UNS already running?\n"); return EEXIST; } service.SetCredentialsMode(argc, argv, &error); unlock_pid_file(LOCK_PATH DAEMON_PID_FILE); return error; } #ifdef DAEMON daemonize(); #endif //DAEMON if (service.ServiceInitialization(argc, argv, &error) != 0) { return error; } lockresult = lock_pid_file(LOCK_PATH DAEMON_PID_FILE); if (-2 == lockresult) { lockresult = lock_pid_file(LOCK_PATH DAEMON_PID_FILE); } if (0 != lockresult) { return EEXIST; } setSignalsHandler(); // Run the service in a new thread. service.Start(); unlock_pid_file(LOCK_PATH DAEMON_PID_FILE); return 0; } UNS-3.2.0.24/UNSMessageFile.mc0000644012402100775320000001405010746077315016610 0ustar00gkbld_amtccigk00000000000000;/******************************************************************************* ; * Part of "Intel(R) Active Management Technology (Intel(R) AMT) ; * User Notification Service (UNS)" ; * ; * Copyright (c) 2007 Intel Corp. ; * All rights reserved. ; * ; * Redistribution and use in source and binary forms, with or without ; * modification, are permitted provided that the following conditions ; * are met: ; * 1. Redistributions of source code must retain the above copyright ; * notice, this list of conditions, and the following disclaimer, ; * without modification. ; * 2. Redistributions in binary form must reproduce at minimum a disclaimer ; * substantially similar to the "NO WARRANTY" disclaimer below ; * ("Disclaimer") and any redistribution must be conditioned upon ; * including a substantially similar Disclaimer requirement for further ; * binary redistribution. ; * 3. Neither the names of the above-listed copyright holders nor the names ; * of any contributors may be used to endorse or promote products derived ; * from this software without specific prior written permission. ; * ; * Alternatively, this software may be distributed under the terms of the ; * GNU General Public License ("GPL") version 2 as published by the Free ; * Software Foundation. ; * ; * NO WARRANTY ; * 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 MERCHANTIBILITY AND FITNESS FOR ; * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ; * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. ; *******************************************************************************/ ;//---------------------------------------------------------------------------- ;// ;// File: UNSMessageFile.mc ;// ;// Contents: User Notification Event Log message DLL. ;// ;//---------------------------------------------------------------------------- ;// --------------------------------------------------------------------------- ;// HEADER SECTION ;// --------------------------------------------------------------------------- MessageIdTypedef=WORD SeverityNames=( Success=0x0:STATUS_SEVERITY_SUCCESS Informational=0x1:STATUS_SEVERITY_INFORMATIONAL Warning=0x2:STATUS_SEVERITY_WARNING Error=0x3:STATUS_SEVERITY_ERROR) LanguageNames=(English=0x409:MSG00001) ;#ifndef EVENT_LOG_MESSAGE_DLL ;#define EVENT_LOG_MESSAGE_DLL ;//**********************Category Definitions*********************** MessageId=1 Facility=Application Severity=Success SymbolicName=UNS_WLAN Language=English WLAN . MessageId=2 Facility=Application Severity=Success SymbolicName=UNS_REMOTE_DIAGNOSTIC Language=English Remote Diagnostics . MessageId=3 Facility=Application Severity=Success SymbolicName=UNS_GENERAL Language=English UNS . MessageId=4 Facility=Application Severity=Success SymbolicName=UNS_CIRCUIT_BREAKER Language=English System Defense . ;//********************End of Category Definitions******************* MessageIdTypedef=DWORD ;//***********************Event Definitions****************************** MessageId=1001 Facility=Application Severity=Informational SymbolicName=NETWORK_TRAFFIC_TX_CEASED Language=English Security policy invoked. Some or all network traffic (TX) was stopped. . MessageId=1002 Facility=Application Severity=Informational SymbolicName=NETWORK_CONNECTIVITY_TX_REDUCED Language=English Security policy invoked. TX Network connectivity was reduced. . MessageId=1003 Facility=Application Severity=Informational SymbolicName=NETWORK_TRAFFIC_RX_CEASED Language=English Security policy invoked. Some or all network traffic (RX) was stopped. . MessageId=1004 Facility=Application Severity=Informational SymbolicName=NETWORK_CONNECTIVITY_RX_REDUCED Language=English Security policy invoked. RX Network connectivity was reduced. . MessageId=1102 Facility=Application Severity=Informational SymbolicName=WLAN_PROFILE_INSUFFICIENT Language=English WLAN Profile insufficient for management session over WLAN interface. . MessageId=1103 Facility=Application Severity=Informational SymbolicName=WLAN_SECURITY_INSUFFICIENT Language=English Security parameters insufficient for management session over WLAN interface. . MessageId=1104 Facility=Application Severity=Informational SymbolicName=WLAN_SESSION_ESTABLISHED Language=English Management session was established over WLAN interface. . MessageId=1105 Facility=Application Severity=Informational SymbolicName=WLAN_SESSION_ENDED Language=English Management session over WLAN interface has finished. . MessageId=1201 Facility=Application Severity=Informational SymbolicName=REMOTE_SOL_STARTED Language=English A remote Serial Over LAN session was established. . MessageId=1202 Facility=Application Severity=Informational SymbolicName=REMOTE_SOL_ENDED Language=English Remote Serial Over LAN session finished. User control was restored. . MessageId=1203 Facility=Application Severity=Informational SymbolicName=REMOTE_IDER_STARTED Language=English A remote IDE-Redirection session was established. . MessageId=1204 Facility=Application Severity=Informational SymbolicName=REMOTE_IDER_ENDED Language=English Remote IDE-Redirection session finished. User control was restored. . MessageId=2000 Facility=Application Severity=Informational SymbolicName=TEXT_MESSAGE Language=English %1 . MessageId=2001 Facility=Application Severity=Warning SymbolicName=UNS_WARNING_MESSAGE Language=English %1 . MessageId=2002 Facility=Application Severity=Error SymbolicName=UNS_ERROR_MESSAGE Language=English %1 . ;//***********************End of Event Definitions*********************** ;#endif UNS-3.2.0.24/UNSMessageFileLinux.h0000644012402100775320000000744310746077315017470 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: UNSMessageFile.mc // // Contents: User Notification Event Log message DLL. // //---------------------------------------------------------------------------- // --------------------------------------------------------------------------- // HEADER SECTION // --------------------------------------------------------------------------- #ifndef EVENT_LOG_MESSAGE_DLL #define EVENT_LOG_MESSAGE_DLL //**********************Category Definitions*********************** #define UNS_WLAN ((unsigned short)0) #define UNS_REMOTE_DIAGNOSTIC ((unsigned short)1) #define UNS_GENERAL ((unsigned short)2) #define UNS_CIRCUIT_BREAKER ((unsigned short)3) //********************End of Category Definitions******************* //***********************Event Definitions****************************** #define NETWORK_TRAFFIC_TX_CEASED ((unsigned long)0) #define NETWORK_CONNECTIVITY_TX_REDUCED ((unsigned long)1) #define NETWORK_TRAFFIC_RX_CEASED ((unsigned long)2) #define NETWORK_CONNECTIVITY_RX_REDUCED ((unsigned long)3) #define WLAN_PROFILE_INSUFFICIENT ((unsigned long)4) #define WLAN_SECURITY_INSUFFICIENT ((unsigned long)5) #define WLAN_SESSION_ESTABLISHED ((unsigned long)6) #define WLAN_SESSION_ENDED ((unsigned long)7) #define REMOTE_SOL_STARTED ((unsigned long)8) #define REMOTE_SOL_ENDED ((unsigned long)9) #define REMOTE_IDER_STARTED ((unsigned long)10) #define REMOTE_IDER_ENDED ((unsigned long)11) #define TEXT_MESSAGE ((unsigned long)12) #define UNS_WARNING_MESSAGE ((unsigned long)13) #define UNS_ERROR_MESSAGE ((unsigned long)14) //***********************End of Event Definitions*********************** #endif UNS-3.2.0.24/UNSSoapServer.cpp0000644012402100775320000003437210746077315016711 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //***************************************************************************** // // Class: UNSSoapServer // Description: Run a stand-alone soap server // //***************************************************************************** #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "UNSSoapServer.h" #ifdef _WIN32 #include "UNSMessageFile.h" #else #include "UNSMessageFileLinux.h" #endif #include "soapStub.h" #include "SoapBinding.h" extern "C" { #include "httpda.h" } UNSEventLogger* UNSSoapServer::m_Logger = NULL; string UNSSoapServer::m_userid = "user"; string UNSSoapServer::m_passwd = "user"; static char UNS_AUTH_REALM[] = "Intel AMT UNS"; //***************************************************************************** // Name : UNSSoapServer // Description : Constructor - initializes soap structures //***************************************************************************** UNSSoapServer::UNSSoapServer(): m_socket (0), m_port (0), m_init (false) { // Initialize soap. m_soap = soap_new(); soap_init(m_soap); m_soap->accept_timeout = UNS_SERVER_TIMEOUT; if (!m_soap->namespaces) m_soap->namespaces = namespaces; if (soap_register_plugin(m_soap, http_da)) soap_print_fault(m_soap, stderr); // failed to register } //***************************************************************************** // Name : UNSSoapServer // Description : Destructor - kill soap. //***************************************************************************** UNSSoapServer::~UNSSoapServer(void) { if (m_soap != NULL) { soap_destroy(m_soap); soap_end(m_soap); soap_done(m_soap); soap_del(m_soap); } } //***************************************************************************** // Name : UNSSoapServer::Bind // Description : Bind host. //***************************************************************************** UNS_STATUS UNSSoapServer::Bind (const char *host) { // Check if we are not already bind. if (m_init && m_socket != 0 && m_port != 0) return UNS_STATUS_SUCCESS; struct sockaddr name; socklen_t namelen = sizeof(name) ; // Bind to free port. m_socket = soap_bind(m_soap, host, 0, BACKLOG); if (!soap_valid_socket(m_socket)) return UNS_STATUS_BIND_ERROR; // Get the port name. if (getsockname( m_socket, &name, &namelen) != 0) return UNS_STATUS_BIND_ERROR; if (name.sa_family != AF_INET) return UNS_STATUS_BIND_ERROR; // Support only IPv4 m_port = ntohs (((sockaddr_in*)(&name))->sin_port); // << Debug log printf("Server bind success, Port is: %d\n",m_port); // Debug log >> m_init = true; return UNS_STATUS_SUCCESS; } //***************************************************************************** // Name : UNSSoapServer::RunServer // Description : Listen on socket for one time interval. //***************************************************************************** void UNSSoapServer::RunServer () { SOAP_SOCKET s; // master and slave sockets s = soap_accept(m_soap); if (!soap_valid_socket(s)) { if (m_soap->errnum != 0) // If not timeout log error message. printf("Accept failed\n"); return; } // << Debug log printf("accepted connection from IP=%d.%d.%d.%d socket=%u\n", (int)(m_soap->ip >> 24)&0xFF, (int)(m_soap->ip >> 16)&0xFF, (int)(m_soap->ip >> 8)&0xFF, (int)(m_soap->ip)&0xFF,s); // Debug log >> if (soap_serve(m_soap) != SOAP_OK) { // << Debug log printf("Failed to process request\n"); // Debug log >> } soap_destroy(m_soap); // clean up class instances soap_end(m_soap); // clean up everything and close socket return; } //***************************************************************************** // Name : UNSSoapServer::GetPort // Description : Get this server port, 0 if not bi //***************************************************************************** int UNSSoapServer::GetPort () { return m_init ? m_port : 0; } //***************************************************************************** // Name : UNSSoapServer::IsInit // Description : Return true iff the server is already initialized (i.e we have // a master socket) //***************************************************************************** bool UNSSoapServer::IsInit () { return m_init; } //***************************************************************************** // Name : UNSSoapServer::GetMasterSocket // Description : Get this server master socket. //***************************************************************************** SOAP_SOCKET UNSSoapServer::GetMasterSocket () { return m_init ? m_socket : 0; } //***************************************************************************** // Name : UNSSoapServer::SetCredentials // Description : Set the m_stop flag and stop the server. //***************************************************************************** void UNSSoapServer::SetCredentials(const string userid, const string passwd) { m_userid = userid; m_passwd = passwd; } //***************************************************************************** // Name : UNSSoapServer::SetLogger // Description : Set the m_stop flag and stop the server. //***************************************************************************** void UNSSoapServer::SetLogger(UNSEventLogger *logger) { m_Logger = logger; } void UNSSoapServer::printEvent(emi__EventLogRecordType * event) { printf ("EventSensorType\t\t: 0x02%x\n" , event->EventSensorType); printf ("EventType\t\t: 0x%02x\n" , event->EventType); printf ("EventOffset\t\t: 0x%02x\n" , event->EventOffset); printf ("EventSourceType\t\t: 0x02%x\n" , event->EventSourceType); printf ("EventSeverity\t\t: 0x%02x\n" , event->EventSeverity); printf ("SensorNumber\t\t: 0x%02x\n" , event->SensorNumber); printf ("Entity\t\t\t: 0x%02x\n" , event->Entity); printf ("EventSensorType\t\t: 0x%02x\n" , event->EventSensorType); printf ("EntityInstance\t\t: 0x%02x\n" , event->EntityInstance); printf ("EventData\t\t: 0x"); for (unsigned int i=0; i < event->EventData->Byte.size(); i++) { printf ("%02x", event->EventData->Byte[i]); } printf ("\n"); } //***************************************************************************** // Name : UNSSoapServer::HandlePetAlert // Description : Parse the given pet alert and record the appropriate event // to the Event Log. // Params : request - soap request (pet alert). // Returns : true if alert was parsed successfully, false otherwise. //***************************************************************************** bool UNSSoapServer::HandlePetAlert(_emc__SoapAlertRequest *request) { bool res = true; // Return status. // Go over alerts vector and parse each message. std::vector::iterator itr; for ( itr = request->SoapAlertRecords.begin(); itr != request->SoapAlertRecords.end(); itr++) { printEvent(*itr); if (!IsEventLegal(*itr)) { // log that an illegal event was received // open: return error or skip to next alert record in vector? printf ("Not a legal User Notification Event\n"); res = false; continue; } // Copy the data vector to a local vector. EventType event; if (GetEventType((*itr)->EventData->Byte, event)) { m_Logger->LogInfoEvent(event.category , event.id); printf ("Received legal alert: 0x%x 0x%lx\n",event.category, event.id); } else { printf ("Unknown event: 0x%x 0x%lx\n",event.category, event.id); res = false; // Log some kind of error message. } } return res; } //***************************************************************************** // Name : UNSSoapServer::IsEventLegal // Description : Check the event for constant fields. // Params : event of type emi__EventLogRecordType // Returns : true iff event is legal //***************************************************************************** bool UNSSoapServer::IsEventLegal (emi__EventLogRecordType * event) { // Check for constant fields. if (event->EventSensorType != UNS_EVENT_SENSOR_TYPE || event->EventType != UNS_EVENT_TYPE || event->EventOffset != UNS_EVENT_OFFSET || event->EventSourceType != UNS_EVENT_SOURCE_TYPE || event->EventSeverity != UNS_EVENT_SEVERITY || event->SensorNumber != UNS_EVENT_SENSOR_NUMBER || event->Entity != UNS_EVENT_ENTITY) return false; if ((event->EntityInstance != 0x00) && (event->EntityInstance != 0x61) && (event->EntityInstance != 0x62)) return false; if ((event->EventData->Byte.size() < 3) || (event->EventData->Byte[0] != 0xAA) || (event->EventData->Byte[1] & 0x07) != 0) return false; return true; } //***************************************************************************** // Name : UNSSoapServer::GetEventID // Description : Return the event category and ID according to the event data. // Params : data - a vector of 8 bytes //***************************************************************************** bool UNSSoapServer::GetEventType (vector &data, EventType &event) { unsigned char reason = data[1]; unsigned char code = data[2]; switch (reason) { case UNS_REASON_CIRCUIT_BREAKER: event.category = UNS_CIRCUIT_BREAKER; switch (code) { case UNS_CODE_NETWORK_TRAFFIC_TX_CEASED: event.id = NETWORK_TRAFFIC_TX_CEASED; break; case UNS_CODE_NETWORK_CONNECTIVITY_TX_REDUCED: event.id = NETWORK_CONNECTIVITY_TX_REDUCED; break; case UNS_CODE_NETWORK_TRAFFIC_RX_CEASED: event.id = NETWORK_TRAFFIC_RX_CEASED; break; case UNS_CODE_NETWORK_CONNECTIVITY_RX_REDUCED: event.id = NETWORK_CONNECTIVITY_RX_REDUCED; break; default: return false; } break; case UNS_REASON_WLAN: event.category = UNS_WLAN; switch (code) { case UNS_CODE_WLAN_PROFILE_INSUFFICIENT: event.id = WLAN_PROFILE_INSUFFICIENT; break; case UNS_CODE_WLAN_SECURITY_INSUFFICIENT: event.id = WLAN_SECURITY_INSUFFICIENT; break; case UNS_CODE_WLAN_SESSION_ESTABLISHED: event.id = WLAN_SESSION_ESTABLISHED; break; case UNS_CODE_WLAN_SESSION_ENDED: event.id = WLAN_SESSION_ENDED; break; default: return false; } break; case UNS_REASON_REMOTE_DIAGNOSTIC: event.category = UNS_REMOTE_DIAGNOSTIC; switch (code) { case UNS_CODE_REMOTE_SOL_STARTED: event.id = REMOTE_SOL_STARTED; break; case UNS_CODE_REMOTE_SOL_ENDED: event.id = REMOTE_SOL_ENDED; break; case UNS_CODE_REMOTE_IDER_STARTED: event.id = REMOTE_IDER_STARTED; break; case UNS_CODE_REMOTE_IDER_ENDED: event.id = REMOTE_IDER_ENDED; break; default: return false; } break; default: return false; } return true; } //***************************************************************************** // Name : __emc__SoapAlert // Description : Handle soap incoming packet. Write the appropriate event // to Windows Event Log. //***************************************************************************** SOAP_FMAC5 int SOAP_FMAC6 __emc__SoapAlert(struct soap* soap, _emc__SoapAlertRequest *emc__SoapAlertRequest, _emc__SoapAlertResponse *emc__SoapAlertResponse) { // TO-DO - parse PET and record event. emc__SoapAlertResponse->Status = PT_STATUS_SUCCESS; // Client used basic authentication: if (soap->userid && soap->passwd) // client used basic authentication { #ifdef BASIC_AUTH // go ahead and compare info: if (!strcmp(soap->userid, UNSSoapServer::m_userid.c_str()) && !strcmp(soap->passwd, UNSSoapServer::m_passwd.c_str())) { // Parse the PET message here: UNSSoapServer::HandlePetAlert(emc__SoapAlertRequest); return SOAP_OK; } #endif } else if (soap->authrealm && soap->userid) // Digest authentication { #ifdef DIGEST_AUTH if (!strcmp(soap->authrealm, UNS_AUTH_REALM) && !strcmp(soap->userid, UNSSoapServer::m_userid.c_str())) { if (!http_da_verify_post(soap, (char*)UNSSoapServer::m_passwd.c_str())) { UNSSoapServer::HandlePetAlert(emc__SoapAlertRequest); return SOAP_OK; } printf ("Digest authentication failed"); } #endif } #ifdef NO_AUTH UNSSoapServer::HandlePetAlert(emc__SoapAlertRequest); return SOAP_OK; #else printf ("401: Unauthorized\n"); printf ("Info: Unauthorized connection while authorization is required.\n"); printf (" Code 401 returned to challenge basic/digest authentication.\n"); soap->authrealm = UNS_AUTH_REALM; // set realm for challenge return 401; // Not authorized, challenge basic/digest authentication #endif } UNS-3.2.0.24/UNSSoapServer.h0000644012402100775320000001327010746077315016350 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: UNSSoapServer.h // //---------------------------------------------------------------------------- #ifndef UNS_SOAP_SERVER_H #define UNS_SOAP_SERVER_H #include "soapH.h" #include #include "UNSEventLogger.h" #include "UNSStatus.h" #define BACKLOG (100) // Max. request backlog #define UNS_SERVER_TIMEOUT 4 // Timout for accept. //static char UNS_AUTH_REALM[] = "Intel AMT UNS"; using namespace std; typedef struct _EventType { unsigned short category; unsigned long id; } EventType; // Event constant fields #define UNS_EVENT_SENSOR_TYPE 0xc0 #define UNS_EVENT_TYPE 0x70 #define UNS_EVENT_OFFSET 0x00 #define UNS_EVENT_SOURCE_TYPE 0x58 #define UNS_EVENT_SEVERITY 0x02 #define UNS_EVENT_SENSOR_NUMBER 0xff #define UNS_EVENT_ENTITY 0x26 // Map from the first two data bytes => to EventType // The key format is: | X X X X 0 0 0 0 | X X X X X X X X | // +-----------------+-----------------+ // |EventData byte 0 |EventData byte 1 | // +-----------------+-----------------+ // |Category |Event ID | // static const unsigned char UNS_REASON_GENERAL = 0x00; static const unsigned char UNS_REASON_CIRCUIT_BREAKER = 0x10; static const unsigned char UNS_REASON_EAC = 0x20; static const unsigned char UNS_REASON_REMOTE_DIAGNOSTIC = 0x30; static const unsigned char UNS_REASON_WLAN = 0x40; static const unsigned char UNS_CODE_NETWORK_TRAFFIC_TX_CEASED = 0x00; static const unsigned char UNS_CODE_NETWORK_CONNECTIVITY_TX_REDUCED = 0x01; static const unsigned char UNS_CODE_NETWORK_TRAFFIC_RX_CEASED = 0x02; static const unsigned char UNS_CODE_NETWORK_CONNECTIVITY_RX_REDUCED = 0x03; static const unsigned char UNS_CODE_REMOTE_SOL_STARTED = 0x00; static const unsigned char UNS_CODE_REMOTE_SOL_ENDED = 0x01; static const unsigned char UNS_CODE_REMOTE_IDER_STARTED = 0x02; static const unsigned char UNS_CODE_REMOTE_IDER_ENDED = 0x03; static const unsigned char UNS_CODE_WLAN_PROFILE_INSUFFICIENT = 0x02; static const unsigned char UNS_CODE_WLAN_SESSION_ESTABLISHED = 0x03; static const unsigned char UNS_CODE_WLAN_SECURITY_INSUFFICIENT = 0x04; static const unsigned char UNS_CODE_WLAN_SESSION_ENDED = 0x05; class UNSSoapServer { public: UNSSoapServer (); // Ctor. virtual ~UNSSoapServer (); // Dtor. void SetLogger ( UNSEventLogger *logger);// Set a pointer to a logger class. void SetCredentials ( const string userid, const string passwd); // Set userid and passwd UNS_STATUS Bind ( const char *host); // Bind host. void RunServer ( ); // Listen on socket for one time. int GetPort (); // Get this server port bool IsInit (); // Return true iff server is initialized (bind) SOAP_SOCKET GetMasterSocket (); // Get this server master socket. // Handle pet alerts. static bool HandlePetAlert (_emc__SoapAlertRequest *request); private: static void printEvent (emi__EventLogRecordType * event); static bool IsEventLegal (emi__EventLogRecordType * event); static bool GetEventType (vector &data, EventType &event); // Data members struct soap *m_soap; // Pointer to soap runtime environment SOAP_SOCKET m_socket; // Master socket. unsigned short m_port; // Port of the service. bool m_init; // Flag - is initialized. public: // public static data members. static UNSEventLogger *m_Logger; // Event Logger. static string m_userid; // User id for basic authentication. static string m_passwd; // Password for basic authentication. }; #endif //UNS_SOAP_SERVER_H UNS-3.2.0.24/UNSStatus.h0000644012402100775320000001173210746077315015543 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #pragma once //#define BASIC_AUTH // Allow basic authentication #define DIGEST_AUTH // Allow digest authentication. //#define NO_AUTH // Allow anonymous access. // Status of the UNS. typedef enum _UNS_STATUS { UNS_STATUS_SUCCESS = 0x0, UNS_STATUS_INIT_FAILURE = 0x1, UNS_STATUS_SOAP_SERVER_ERROR = 0x2, UNS_STATUS_BIND_ERROR = 0x3, UNS_STATUS_SUBSCRIPTION_ERROR = 0x4, UNS_STATUS_CENCEL_ERROR = 0x5, UNS_GET_NET_PARAM_ERROR = 0x6, UNS_STATUS_UPDATE_REG_MODE = 0x7 } UNS_STATUS; // Status of soap request. typedef enum _PT_STATUS { PT_STATUS_SUCCESS = 0x0, PT_STATUS_INTERNAL_ERROR = 0x1, PT_STATUS_NOT_READY = 0x2, PT_STATUS_INVALID_PT_MODE = 0x3, PT_STATUS_INVALID_MESSAGE_LENGTH = 0x4, PT_STATUS_TABLE_FINGERPRINT_NOT_AVAILABLE = 0x5, PT_STATUS_INTEGRITY_CHECK_FAILED = 0x6, PT_STATUS_UNSUPPORTED_ISVS_VERSION = 0x7, PT_STATUS_APPLICATION_NOT_REGISTERED = 0x8, PT_STATUS_INVALID_REGISTRATION_DATA = 0x9, PT_STATUS_APPLICATION_DOES_NOT_EXIST = 0xA, PT_STATUS_NOT_ENOUGH_STORAGE = 0xB, PT_STATUS_INVALID_NAME = 0xC, PT_STATUS_BLOCK_DOES_NOT_EXIST = 0xD, PT_STATUS_INVALID_BYTE_OFFSET = 0xE, PT_STATUS_INVALID_BYTE_COUNT = 0xF, PT_STATUS_NOT_PERMITTED = 0x10, PT_STATUS_NOT_OWNER = 0x11, PT_STATUS_BLOCK_LOCKED_BY_OTHER = 0x12, PT_STATUS_BLOCK_NOT_LOCKED = 0x13, PT_STATUS_INVALID_GROUP_PERMISSIONS = 0x14, PT_STATUS_GROUP_DOES_NOT_EXIST = 0x15, PT_STATUS_INVALID_MEMBER_COUNT = 0x16, PT_STATUS_MAX_LIMIT_REACHED = 0x17, PT_STATUS_INVALID_AUTH_TYPE = 0x18, PT_STATUS_AUTHENTICATION_FAILED = 0x19, PT_STATUS_INVALID_DHCP_MODE = 0x1A, PT_STATUS_INVALID_IP_ADDRESS = 0x1B, PT_STATUS_INVALID_DOMAIN_NAME = 0x1C, PT_STATUS_UNSUPPORTED_VERSION = 0x1D, PT_STATUS_REQUEST_UNEXPECTED = 0x1E, PT_STATUS_INVALID_TABLE_TYPE = 0x1F, PT_STATUS_INVALID_PROVISIONING_STATE = 0x20, PT_STATUS_UNSUPPORTED_OBJECT = 0x21, PT_STATUS_INVALID_TIME = 0x22, PT_STATUS_INVALID_INDEX = 0x23, PT_STATUS_INVALID_PARAMETER = 0x24, PT_STATUS_INVALID_NETMASK = 0x25, PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED = 0x26, PT_STATUS_NETWORK_IF_ERROR_BASE = 0x800, PT_STATUS_UNSUPPORTED_OEM_NUMBER = 0x801, PT_STATUS_UNSUPPORTED_BOOT_OPTION = 0x802, PT_STATUS_INVALID_COMMAND = 0x803, PT_STATUS_INVALID_SPECIAL_COMMAND = 0x804, PT_STATUS_INVALID_HANDLE = 0x805, PT_STATUS_INVALID_PASSWORD = 0x806, PT_STATUS_INVALID_REALM = 0x807, PT_STATUS_STORAGE_ACL_ENTRY_IN_USE = 0x808, PT_STATUS_DATA_MISSING = 0x809, PT_STATUS_DUPLICATE = 0x80A, PT_STATUS_EVENTLOG_FROZEN = 0x80B, PT_STATUS_INVALID_KEY = 0x80E, PT_STATUS_INVALID_CERT = 0x80F, PT_STATUS_CERT_KEY_NOT_MATCH = 0x810, PT_STATUS_MAX_KERB_DOMAIN_REACHED = 0x811, PT_STATUS_UNSUPPORTED = 0x812, PT_STATUS_SDK_DEFINED_ERROR_BASE = 0x1000 } PT_STATUS; UNS-3.2.0.24/UNSWSManClient.cpp0000644012402100775320000002507310746077315016742 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //***************************************************************************** // // Class: UNSWSManClient // Date created:25 Dec 2006 // Description: This class is used to subscribe the User Notification Service // for events at the local AMT machine. // //***************************************************************************** #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "UNSWSManClient.h" #include "UNSEventLogger.h" #include "UNSCommonDefs.h" #include "UNSStatus.h" #include "openssl/rand.h" using namespace CimClassNamespace; const int UNSWSManClient::GENERATED_USERNAME_LEN = 8; const int UNSWSManClient::GENERATED_PASSWORD_LEN = 8; const std::string UNSWSManClient::DEFAULT_USER = "$$uns"; const std::string UNSWSManClient::DEFAULT_PASS = "$$uns"; // Constants for the common use static const unsigned char UNS_POLICY_ID= 0x86; // Hard-coded policyID for UNS static unsigned short UNS_PORT_PROTOCOL = 2; static unsigned short UNS_INFO_FORMAT = 200; //************************************************************************ // Default Constructor. // Params: certName - Certificate for SSL. //************************************************************************ UNSWSManClient::UNSWSManClient() : BaseWSManClient(CRED_REG_INFO::UNS,DEFAULT_USER,DEFAULT_PASS) { m_subscribed = false; // Not subscribed. } //************************************************************************ // Name : UNSWSManClient // Description : Destructor. //************************************************************************ UNSWSManClient::~UNSWSManClient(void) { } //************************************************************************ // Name : DeletePreviousSubscriptions. // Description : Enumerate the UNS PolicyID subscriptions and cencel them // all. //************************************************************************ unsigned long UNSWSManClient::DeletePreviousSubscriptions() { printf("\nDeleting Previous Subscriptions...\n"); for(int i = 0; i < 2; i++) { if (!m_endpoint) SetEndpoint(i == 0 ? false : true); printf("Sending wsman enumeration command (%s)\n",endpoint.c_str()); vector subscriptions; try { AMT_SOAPEventSubscriber::Enumerate(subscriptions, NULL, m_client); } catch (GeneralWsmanException& e) { printf("\nError: failed while calling AMT_SOAPEventSubscriber::Enumerate routine\n"); printf("GeneralWsmanException:\n"); printf("%s\n", e.what()); m_endpoint = false; continue; } catch (exception& e) { printf("\nError: failed while calling AMT_SOAPEventSubscriber::Enumerate routine\n"); printf("%s\n", e.what()); m_endpoint = false; continue; } printf("Wsman send successfully.\n"); m_endpoint = true; for (int i = 0; i < (int)subscriptions.size(); i++) { if (subscriptions[i].PolicyID == UNS_POLICY_ID) { printf ("Deleting old subscription ID=%d\n",subscriptions[i].PolicyID); try { subscriptions[i].Delete(m_client); } catch (GeneralWsmanException& e) { printf("\nError: failed while calling AMT_SOAPEventSubscriber::Delete routine\n"); printf("GeneralWsmanException:\n"); printf("%s\n", e.what()); } catch (exception& e) { printf("\nError: failed while calling AMT_SOAPEventSubscriber::Delete routine\n"); } } } return UNS_STATUS_SUCCESS; } return UNS_STATUS_SUBSCRIPTION_ERROR; } //************************************************************************ // Name : SubscribeForGeneralAlert. // Description : Subscribe for alert at the local AMT machine. //************************************************************************ unsigned long UNSWSManClient::SubscribeForGeneralAlert(int port) { // Do nothing if already subscribed. if (m_subscribed) { printf("UNS already subscribed\n"); return UNS_STATUS_SUCCESS; } // First cencel all previous subscriptions if (DeletePreviousSubscriptions() != UNS_STATUS_SUCCESS) return UNS_STATUS_SUBSCRIPTION_ERROR; // Set address to localhost. string accessInfo = "http://localhost:"; char strPort[16]; sprintf(strPort,"%d",port); accessInfo.append(strPort); // Fill some dummy values required by the FW. string dummy = "n/a"; m_Subscriber.CreationClassName = dummy; m_Subscriber.Description = dummy; m_Subscriber.DescriptionSpecified = true; m_Subscriber.ElementName = dummy; m_Subscriber.ElementNameSpecified = true; m_Subscriber.Name = dummy; m_Subscriber.SystemCreationClassName = dummy; m_Subscriber.SystemName = dummy; m_Subscriber.PortInfo = dummy; m_Subscriber.AccessInfo = accessInfo; m_Subscriber.InfoFormat = UNS_INFO_FORMAT; m_Subscriber.PortProtocol = UNS_PORT_PROTOCOL; m_Subscriber.PortProtocolSpecified = true; m_Subscriber.PolicyID = UNS_POLICY_ID; #ifdef NO_AUTH #else m_Subscriber.UserName = m_SubscribeCred.username; m_Subscriber.UserNameSpecified = true; m_Subscriber.Password = m_SubscribeCred.password; m_Subscriber.PasswordSpecified = true; #endif // Set the authentication options. #ifdef BASIC_AUTH m_Subscriber.AlertAuthenticationOptions.push_back(2); // Allow Basic authentication. #endif #ifdef DIGEST_AUTH m_Subscriber.AlertAuthenticationOptions.push_back(1); // Allow Diget authentication. #endif // Send request, try both HTTP and HTTPS for(int i = 0; i < 2; i++) { if (!m_endpoint) SetEndpoint(i == 0 ? false : true); printf ("\nCreating a new AMT_SOAPEventSubscriber (%s).\n", endpoint.c_str()); try { m_Subscriber.Create(m_client); } catch (GeneralWsmanException& e) { printf("\nError: failed while calling AMT_SOAPEventSubscriber::Create routine\n"); printf("GeneralWsmanException:\n"); printf("%s\n", e.what()); m_endpoint = false; continue; } catch (exception& e) { printf("\nError: failed while calling AMT_SOAPEventSubscriber::Create routine\n"); printf("%s\n", e.what()); m_endpoint = false; continue; } m_endpoint = true; m_subscribed = true; printf ("AMT_SoapAlertTarget instance created successfuly\n"); return UNS_STATUS_SUCCESS; } m_subscribed = false; return UNS_STATUS_SUBSCRIPTION_ERROR; } //************************************************************************ // Name : CancelAlertSubscription. // Description : Cencel the subscription at the local AMT machine. //************************************************************************ unsigned long UNSWSManClient::CancelAlertSubscription(unsigned int *handle) { // If not subscribed return success if (m_subscribed == false) return UNS_STATUS_SUCCESS; for(int i = 0; i < 2; i++) { if (!m_endpoint) SetEndpoint(i == 0 ? false : true); printf ("\nDeleting AMT_SoapAlertTarget instance (%s).\n", endpoint.c_str()); try { m_Subscriber.Delete(m_client); } catch (GeneralWsmanException& e) { printf("\nError: failed while calling AMT_SOAPEventSubscriber::Delete routine\n"); printf("GeneralWsmanException:\n"); printf("%s\n", e.what()); m_endpoint = false; continue; } catch (exception& e) { printf("\nError: failed while calling AMT_SOAPEventSubscriber::Delete routine\n"); printf("%s\n", e.what()); m_endpoint = false; continue; } m_endpoint = true; printf ("\nInstance deleted successfuly.\n"); return UNS_STATUS_SUCCESS; } return UNS_STATUS_CENCEL_ERROR;; } bool UNSWSManClient::GenRandAsciiBuf(unsigned char *pBuf, int len) { //Generate random data RAND_METHOD *rmeth; rmeth = RAND_SSLeay(); if (rmeth == NULL) return false; if (!RAND_bytes(pBuf, len-1)) return false; RAND_cleanup(); const unsigned char *end = pBuf + len - 1; //Turn it into all alphabetic characters unsigned char *p; for (p = pBuf; p != end; p++) *p = (*p % 26) + 'A'; //add trailing zero *p = '\0'; return true; } //************************************************************************ // Name : GenerateCredentials. // Description : Generate random userid and passwd. //************************************************************************ bool UNSWSManClient::GenerateCredentials() { unsigned char user[GENERATED_USERNAME_LEN+1]; unsigned char pass[GENERATED_PASSWORD_LEN+1]; if (!GenRandAsciiBuf(user, GENERATED_USERNAME_LEN+1)) return false; if (!GenRandAsciiBuf(pass, GENERATED_PASSWORD_LEN+1)) return false; m_SubscribeCred.username = (char*)user; m_SubscribeCred.password = (char*)pass; return true; } UNS-3.2.0.24/UNSWSManClient.h0000644012402100775320000000756110746077315016411 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //***************************************************************************** // // Class: UNSWSManClient // Date created: 9 May 2006 // Description: This class is used to subscribe the User Notification Service // for events at the local AMT machine. // //***************************************************************************** #ifndef UNS_WSMAN_CLIENT_H #define UNS_WSMAN_CLIENT_H #include "BaseWSManClient.h" #include "AMT_SOAPEventSubscriber.h" #include "Credentials.h" #include using namespace std; using namespace CimClassNamespace; class UNSWSManClient : public BaseWSManClient { private: // Data members Credentials m_SubscribeCred;// Credentials used to subscribed. AMT_SOAPEventSubscriber m_Subscriber; public: // Contructors and Destructor. UNSWSManClient(); virtual ~UNSWSManClient(); bool GenerateCredentials(); // Generate random userid and passwd. string GetUserid() { return m_SubscribeCred.username ; } // Return the subscription userid. string GetPasswd() { return m_SubscribeCred.password; } // Return the subscription passwd. bool IsSubscribed() { return m_subscribed;} // Return true iff client is subscribed to AMT. /*Actual soap commands!*/ unsigned long SubscribeForGeneralAlert (int port); // Subscribe For General Alert to local AMT. unsigned long DeletePreviousSubscriptions (); // Delete previous UNS subscriptions. unsigned long CancelAlertSubscription (unsigned int *handle=NULL); // Cancel Alert Subscription from local AMT. private: bool m_subscribed; // True iff subscribed. static const int GENERATED_USERNAME_LEN; static const int GENERATED_PASSWORD_LEN; static const std::string DEFAULT_USER; static const std::string DEFAULT_PASS; bool GenRandAsciiBuf(unsigned char *pBuf, int len); }; #endif UNS-3.2.0.24/AMTStatus/0000755012402100775320000000000010746077316015343 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/AMTStatus/heci/0000755012402100775320000000000010746077316016253 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/AMTStatus/heci/Linux/0000755012402100775320000000000010746077316017352 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/AMTStatus/heci/Linux/AMTVersn.h0000644012402100775320000003560010746077316021166 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: AMTVersn.h // // Contents: definitions for Host interface usage demonstration. // //---------------------------------------------------------------------------- #ifndef AMTVersn_H #define AMTVersn_H #include #include #include "PTHICommand.h" //typedef UINT8 AMT_UUID[16]; #define MAX_TRIES 3 typedef unsigned short TCHAR; /* * Error codes */ static const PT_STATUS PT_STATUS_SUCCESS = 0; static const PT_STATUS PT_STATUS_INTERNAL_ERROR = 0x0001; static const PT_STATUS PT_STATUS_NOT_READY = 0x0002; static const PT_STATUS PT_STATUS_INVALID_PT_MODE = 0x0003; static const PT_STATUS PT_STATUS_INVALID_MESSAGE_LENGTH = 0x0004; static const PT_STATUS PT_STATUS_TABLE_FINGERPRINT_NOT_AVAILABLE = 0x0005; static const PT_STATUS PT_STATUS_INTEGRITY_CHECK_FAILED = 0x0006; static const PT_STATUS PT_STATUS_UNSUPPORTED_ISVS_VERSION = 0x0007; static const PT_STATUS PT_STATUS_APPLICATION_NOT_REGISTERED = 0x0008; static const PT_STATUS PT_STATUS_INVALID_REGISTRATION_DATA = 0x0009; static const PT_STATUS PT_STATUS_APPLICATION_DOES_NOT_EXIST = 0x000a; static const PT_STATUS PT_STATUS_NOT_ENOUGH_STORAGE = 0x000b; static const PT_STATUS PT_STATUS_INVALID_NAME = 0x000c; static const PT_STATUS PT_STATUS_BLOCK_DOES_NOT_EXIST = 0x000d; static const PT_STATUS PT_STATUS_INVALID_BYTE_OFFSET = 0x000e; static const PT_STATUS PT_STATUS_INVALID_BYTE_COUNT = 0x000f; static const PT_STATUS PT_STATUS_NOT_PERMITTED = 0x0010; static const PT_STATUS PT_STATUS_NOT_OWNER = 0x0011; static const PT_STATUS PT_STATUS_BLOCK_LOCKED_BY_OTHER = 0x0012; static const PT_STATUS PT_STATUS_BLOCK_NOT_LOCKED = 0x0013; static const PT_STATUS PT_STATUS_INVALID_GROUP_PERMISSIONS = 0x0014; static const PT_STATUS PT_STATUS_GROUP_DOES_NOT_EXIST = 0x0015; static const PT_STATUS PT_STATUS_INVALID_MEMBER_COUNT = 0x0016; static const PT_STATUS PT_STATUS_MAX_LIMIT_REACHED = 0x0017; static const PT_STATUS PT_STATUS_INVALID_AUTH_TYPE = 0x0018; static const PT_STATUS PT_STATUS_AUTHENTICATION_FAILED = 0x0019; static const PT_STATUS PT_STATUS_INVALID_DHCP_MODE = 0x001a; static const PT_STATUS PT_STATUS_INVALID_IP_ADDRESS = 0x001b; static const PT_STATUS PT_STATUS_INVALID_DOMAIN_NAME = 0x001c; static const PT_STATUS PT_STATUS_REQUEST_UNEXPECTED = 0x001e; static const PT_STATUS PT_STATUS_INVALID_TABLE_TYPE = 0x001f; static const PT_STATUS PT_STATUS_INVALID_PROVISIONING_MODE = 0x0020; static const PT_STATUS PT_STATUS_UNSUPPORTED_OBJECT = 0x0021; static const PT_STATUS PT_STATUS_INVALID_TIME = 0x0022; static const PT_STATUS PT_STATUS_INVALID_INDEX = 0x0023; static const PT_STATUS PT_STATUS_INVALID_PARAMETER = 0x0024; static const PT_STATUS PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED = 0x0026; static const PT_STATUS PT_STATUS_VALUES_NOT_EQUIVALENT = 0x1501; static const PT_STATUS PT_STATUS_NETWORK_IF_ERROR_BASE = 0x0800; static const PT_STATUS PT_STATUS_SDK_DEFINED_ERROR_BASE = 0x1000; static const PT_STATUS PTSDK_STATUS_INTERNAL_ERROR = 0x1000; static const PT_STATUS PTSDK_STATUS_NOT_INITIALIZED = 0x1001; static const PT_STATUS PTSDK_STATUS_LIB_VERSION_UNSUPPORTED = 0x1002; static const PT_STATUS PTSDK_STATUS_INVALID_PARAM = 0x1003; static const PT_STATUS PTSDK_STATUS_RESOURCES = 0x1004; static const PT_STATUS PTSDK_STATUS_HARDWARE_ACCESS_ERROR = 0x1005; static const PT_STATUS PTSDK_STATUS_REQUESTOR_NOT_REGISTERED = 0x1006; static const PT_STATUS PTSDK_STATUS_NETWORK_ERROR = 0x1007; static const PT_STATUS PTSDK_STATUS_PARAM_BUFFER_TOO_SHORT = 0x1008; static const PT_STATUS PTSDK_STATUS_COM_NOT_INITIALIZED_IN_THREAD = 0x1009; static const PT_STATUS PTSDK_STATUS_URL_REQUIRED = 0x100a; typedef enum _HARD_SKU { HARD_SKU_AMT = 0, HARD_SKU_ASF = 1, HARD_SKU_FSC = 2, HARD_SKU_CB = 3, HARD_SKU_CRYPTO = 4, } HARD_SKU; typedef enum _ME_LAST_RESET_REASON { ME_RESET_REASON_POWER_UP = 0, ME_RESET_REASON_FW_RESET = 1, ME_RESET_REASON_GLOBAL_SYSTEM_RESET = 2, ME_RESET_REASON_UNKOWN = 3, } ME_LAST_RESET_REASON; #pragma pack (1) typedef struct _AMT_UUID { UINT8 UUID[16]; } AMT_UUID; typedef struct _STATE_GET_AMT_STATE_REQUEST { PTHI_MESSAGE_HEADER Header; AMT_UUID StateVariableIdentifier; } STATE_GET_AMT_STATE_REQUEST; typedef struct _STATE_DATA { UINT8 LinkStatus; // (0 – down; 1 – up). UINT8 HardSKU; // UINT8 (TBD). UINT8 CryptoFuse; // (0 - disabled; 1 – enabled) UINT8 FlashProtaction; // (0 – disabled; 1 – enabled) UINT8 LastMEResetReason; // UINT8 (TBD) } STATE_DATA; typedef struct _STATE_GET_AMT_STATE_RESPONSE { PTHI_MESSAGE_HEADER Header; PT_STATUS Status; AMT_UUID StateDataIdentifier; UINT32 ByteCount; STATE_DATA StateData; } STATE_GET_AMT_STATE_RESPONSE; /* ================================================================================= 2.1 CHANGES START HERE ===================================================================================*/ typedef struct _STATE_GET_FW_UPDATE_COUNTERS_REQUEST { PTHI_MESSAGE_HEADER Header; } STATE_GET_FW_UPDATE_COUNTERS_REQUEST; typedef struct _STATE_GET_FW_UPDATE_COUNTERS_RESPONSE { PTHI_MESSAGE_HEADER Header; PT_STATUS Status; UINT32 OverrideCounter; UINT32 OverrideQualifier; } STATE_GET_FW_UPDATE_COUNTERS_RESPONSE; typedef struct _STATE_GET_FLASH_DESCRIPTOR_OVERRIDE_REQUEST { PTHI_MESSAGE_HEADER Header; } STATE_GET_FLASH_DESCRIPTOR_OVERRIDE_REQUEST; typedef struct _STATE_GET_FLASH_DESCRIPTOR_OVERRIDE_RESPONSE { PTHI_MESSAGE_HEADER Header; PT_STATUS Status; UINT32 FlashDescriptorOverride; } STATE_GET_FLASH_DESCRIPTOR_OVERRIDE_RESPONSE; /* ================================================================================= 2.1 CHANGES END HERE ===================================================================================*/ typedef struct _CFG_GET_END_OF_BIOS_STATE_RESPONSE { PTHI_MESSAGE_HEADER Header; PT_STATUS Status; UINT8 BiosMode; } CFG_GET_END_OF_BIOS_STATE_RESPONSE; typedef struct _CFG_GET_MAC_ADDRESSES_RESPONSE { PTHI_MESSAGE_HEADER Header; PT_STATUS Status; UINT8 DedicatedMacAddress[6]; UINT8 HostMacAddress[6]; } CFG_GET_MAC_ADDRESSES_RESPONSE; #pragma pack () /*====================================================== struct AMT_COMUNICATION { HANDLE pHandle; HECI_CLIENT mProperties; DWORD nBytes; int AmtConnect(); int AmtWriteData(PCHAR command,ULONG command_size); int AmtReadData(BYTE * &ReadBuffer); int AmtHeciVersion(HECI_VERSION * &HeciVerBuf); int AmtDisConnect(); }; =================================================*/ struct MAC_ADDRESSES { UINT8 DedicatedMacAddress[6]; UINT8 HostMacAddress[6]; }; /* * Constants */ const int DEDICATED_DEF = 1; const int HOST_DEF = 2; const UINT8 ENDOFPOST_BiosMode_Pre_Boot_mode = 0; const UINT8 ENDOFPOST_BiosMode_In_Boot_Mode = 1; const UINT8 ENDOFPOST_BiosMode_Post_Boot_Mode = 2; const UINT32 AMT_STATE_REQUEST = 0x01000001; const UINT32 AMT_STATE_RESPONSE = 0x01800001; const AMT_UUID AMT_UUID_LINK_STATE = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01}; const STATE_GET_AMT_STATE_REQUEST GET_AMT_STATE = { { {MAJOR_VERSION,MINOR_VERSION},0,{AMT_STATE_REQUEST},sizeof(AMT_UUID) }, AMT_UUID_LINK_STATE }; /* const UINT32 ENDOFPOST_STATE_REQUEST = 0x04000020; const UINT32 ENDOFPOST_STATE_RESPONSE = 0x04800020; const PTHI_MESSAGE_HEADER GET_ENDOFPOST_STATE_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{ENDOFPOST_STATE_REQUEST},0 }; */ const UINT32 MAC_ADRESSES_REQUEST = 0x04000025; const UINT32 MAC_ADRESSES_RESPONSE = 0x04800025; const PTHI_MESSAGE_HEADER GET_MAC_ADRESSES_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{MAC_ADRESSES_REQUEST},0 }; /* ================================================================================= 2.1 CHANGES START HERE ===================================================================================*/ const UINT32 FW_UPDATE_COUNTERS_REQUEST = 0x01000002; const UINT32 FW_UPDATE_COUNTERS_RESPONSE = 0x01800002; const PTHI_MESSAGE_HEADER GET_FW_UPDATE_COUNTERS_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{FW_UPDATE_COUNTERS_REQUEST},0 }; const UINT32 FLASH_DESCRIPTOR_OVERRIDE_REQUEST = 0x01000000; const UINT32 FLASH_DESCRIPTOR_OVERRIDE_RESPONSE = 0x01800000; const PTHI_MESSAGE_HEADER GET_FLASH_DESCRIPTOR_OVERRIDE_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{FLASH_DESCRIPTOR_OVERRIDE_REQUEST},0 }; /* ================================================================================= 2.1 CHANGES END HERE ===================================================================================*/ /* * Function prototypes */ PT_STATUS VerifyResponseHeader(const UINT32 command, const PTHI_MESSAGE_HEADER *response_header, ULONG response_size/*,ULONG expected_size*/); PT_STATUS VerifyCodeVersions(const CFG_GET_CODE_VERSIONS_RESPONSE *response); bool VerifyBoolean(PT_BOOLEAN val); void DisplayCodeVersions(const CODE_VERSIONS *versions); void DisplayHeciVersions(const HECI_VERSION *hecversions); //PT_STATUS GetCodeVersions(AMT_COMUNICATION &AmtComunication, CODE_VERSIONS *codeVersions, HECI_VERSION *heciversion); PT_STATUS VerifyAmtState(const STATE_GET_AMT_STATE_RESPONSE *response); void DisplayAmtState(const STATE_DATA *state); //PT_STATUS GetAmtState(AMT_COMUNICATION &AmtComunication, STATE_DATA *state); /* ================================================================================= 2.1 CHANGES START HERE ===================================================================================*/ PT_STATUS VerifyFWUpdateCounters(const STATE_GET_FW_UPDATE_COUNTERS_RESPONSE *response); void DisplayFWUpdateCounters(UINT32 OverrideCounter, UINT32 OverrideQualifier, UINT32 flag); //PT_STATUS GetFWUpdateCounters(AMT_COMUNICATION &AmtComunication,UINT32 *OverrideCounter, UINT32 *OverrideQualifier); PT_STATUS VerifyFlashDescriptorOverride(const STATE_GET_FLASH_DESCRIPTOR_OVERRIDE_RESPONSE *response); void DisplayFlashDescriptorOverride(UINT32 FlashDescriptorOverride); //PT_STATUS GetFlashDescriptorOverride(AMT_COMUNICATION &AmtComunication,UINT32 *FlashDescriptorOverride); //UINT32 IsAMT2_0(AMT_COMUNICATION AmtComunication); /* ================================================================================= 2.1 CHANGES END HERE ===================================================================================*/ PT_STATUS VerifyProvisioningState(const CFG_GET_PROVISIONING_STATE_RESPONSE *response); void DisplayProvisioningState(const AMT_PROVISIONING_STATE *state); //PT_STATUS GetProvisioningState(AMT_COMUNICATION &AmtComunication, AMT_PROVISIONING_STATE *state); PT_STATUS VerifyProvisioningMode(const CFG_GET_PROVISIONING_MODE_RESPONSE *response); void DisplayProvisioningMode(const PT_BOOLEAN *legacy); //PT_STATUS GetProvisioningMode(AMT_COMUNICATION &AmtComunication, PT_BOOLEAN *legacy); /* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 2.5 CHANGES START HERE $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/ //PT_STATUS GetKedronInfo(CHAR * HWVersion, CHAR * DriverVersion); PT_STATUS VerifyKedronDriver(CHAR * SubKeyToOpen); void DisplayKedronInfo(CHAR * HWVersion, CHAR * DriverVersion); //PT_STATUS GetUNSVersion(VS_FIXEDFILEINFO *fileQuerInfo); //void DisplayUNSVersion(VS_FIXEDFILEINFO *fileInfo); /* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 2.5 CHANGES END HERE $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/ //PT_STATUS GetLMSVersion(VS_FIXEDFILEINFO *fileQuerInfo); //void DisplayLMSVersion(VS_FIXEDFILEINFO *fileInfo); //PT_STATUS GetEndOfPostState(AMT_COMUNICATION &AmtComunication, UINT8 *BiosModeState); PT_STATUS VerifyEndOfPostState(const CFG_GET_END_OF_BIOS_STATE_RESPONSE *response); void DisplayBiosModeState(UINT8 BiosModeState); //PT_STATUS GetMacAddresses(AMT_COMUNICATION &AmtComunication,MAC_ADDRESSES *macadresses); PT_STATUS VerifyGetMacAddresses(const CFG_GET_MAC_ADDRESSES_RESPONSE *response); void DisplayMacAddresses(MAC_ADDRESSES macadresses); //PT_STATUS GetReqValue(AMT_COMUNICATION &AmtComunication,char* featName,char* inputValue); PT_STATUS GetReqFeature(PTHICommand &command,char* featName); void DisplayMeDataVersion(); #endif // AMTVersn_H UNS-3.2.0.24/AMTStatus/heci/Linux/heci.h0000644012402100775320000000562610746077316020444 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __HECI_H__ #define __HECI_H__ #include #ifndef GUID_DEFINED #define GUID_DEFINED typedef struct guid { unsigned int data1; unsigned short data2; unsigned short data3; unsigned char data4[8]; } GUID; #endif class HECI { public: HECI(const GUID guid, bool verbose = false): _initialized(false), _verbose(verbose), _bufSize(0) { memcpy(&_guid, &guid, sizeof(_guid)); } virtual ~HECI() {} virtual bool Init() = 0; virtual void Deinit() = 0; virtual int ReceiveMessage(unsigned char *buffer, int len, unsigned long timeout = 2000) = 0; virtual int SendMessage(unsigned char *buffer, int len, unsigned long timeout = 2000) = 0; virtual unsigned long GetBufferSize() = 0; protected: GUID _guid; bool _initialized; bool _verbose; unsigned long _bufSize; }; #endif UNS-3.2.0.24/AMTStatus/heci/Linux/HECI_if.h0000644012402100775320000001214310746077316020712 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ // Define an Interface Guid for HECI device class. // This GUID is used to register (IoRegisterDeviceInterface) // an instance of an interface so that user application // can control the HECI device. // // GUID definition are required to be outside of header inclusion pragma to avoid // error during precompiled headers. // #ifndef __INTRFACE_H__ #define __INTRFACE_H__ //#if (_WIN32_WINNT == 0x0500) typedef unsigned char UINT8, *PUINT8; typedef char INT8, *PINT8; typedef UINT8 UCHAR; typedef unsigned short UINT16, *PUINT16; //#endif typedef enum _HECI_STATUS{ HECI_STATUS_OK = 0x0, HECI_STATUS_GENERAL_ERROR = 0x2000, HECI_STATUS_LOCATE_DEVICE_ERROR, HECI_STATUS_MEMORY_ACCESS_ERROR, HECI_STATUS_WRITE_REGISTER_ERROR, HECI_STATUS_MEMORY_ALLOCATION_ERROR, HECI_STATUS_BUFFER_OVEREFLOW_ERROR, HECI_STATUS_NOT_ENOUGH_MEMORY, HECI_STATUS_MSG_TRANSMISSION_ERROR, HECI_STATUS_VERSION_MISMATCH, HECI_STATUS_UNEXPECTED_INTERRUPT_REASON, HECI_STATUS_TIMEOUT_ERROR, HECI_STATUS_UNEXPECTED_RESPONSE, HECI_STATUS_UNKNOWN_MESSAGE, HECI_STATUS_CANNOT_FOUND_HOST_CLIENT, HECI_STATUS_CANNOT_FOUND_ME_CLIENT, HECI_STATUS_CLIENT_ALREADY_CONNECTED, HECI_STATUS_NO_FREE_CONNECTION, HECI_STATUS_ILLEGAL_PARAMETER, HECI_STATUS_FLOW_CONTROL_ERROR, HECI_STATUS_NO_MESSAGE, HECI_STATUS_BUFFER_TOO_LARGE, HECI_STATUS_BUFFER_TOO_SMALL, HECI_STATUS_BUFFER_NOT_EMPTY, NUM_OF_HECI_STATUSES }HECI_STATUS; // {E2D1FF34-3458-49A9-88DA-8E6915CE9BE5} //DEFINE_GUID(GUID_DEVINTERFACE_HECI, 0xE2D1FF34, 0x3458, 0x49A9,0x88, 0xDA, 0x8E, 0x69, 0x15, 0xCE, 0x9B, 0xE5); //DEFINE_GUID(HECI_PTHI,0x12F80028,0xB4B7,0x4b2d,0xAC,0xA8,0x46,0xE0,0xFF,0x65,0x81,0x4c); //DEFINE_GUID(FW_UPDATE_GUID,0x309dcde8, 0xccb1, 0x4062,0x8f, 0x78, 0x60, 0x1, 0x15, 0xa3, 0x43, 0x27); const GUID HECI_PTHI = {0x12f80028, 0xb4b7, 0x4b2d, {0xac, 0xa8, 0x46, 0xe0, 0xff, 0x65, 0x81, 0x4c}}; //const GUID HECI_PTHI = {0x309dcde8, 0xccb1, 0x4062,{0x8f, 0x78, 0x60, 0x1, 0x15, 0xa3, 0x43, 0x27}};//0x12f80028, 0xb4b7, 0x4b2d, {0xac, 0xa8, 0x46, 0xe0, 0xff, 0x65, 0x81, 0x4c}}; #define FILE_DEVICE_HECI 0x8000 // Define Interface reference/dereference routines for // Interfaces exported by IRP_MN_QUERY_INTERFACE #define HECI_IOCTL(index) \ CTL_CODE(FILE_DEVICE_HECI, index, METHOD_BUFFERED, FILE_READ_DATA) #define IOCTL_HECI_GET_VERSION \ CTL_CODE(FILE_DEVICE_HECI, 0x800, METHOD_BUFFERED, FILE_READ_ACCESS|FILE_WRITE_ACCESS) #define IOCTL_HECI_CONNECT_CLIENT \ CTL_CODE(FILE_DEVICE_HECI, 0x801, METHOD_BUFFERED, FILE_READ_ACCESS|FILE_WRITE_ACCESS) #define IOCTL_HECI_WD \ CTL_CODE(FILE_DEVICE_HECI, 0x802, METHOD_BUFFERED, FILE_READ_ACCESS|FILE_WRITE_ACCESS) #pragma pack(1) typedef struct _HECI_VERSION { UINT8 major; UINT8 minor; UINT8 hotfix; UINT16 build; } HECI_VERSION; typedef struct _HECI_CLIENT { unsigned int MaxMessageLength; UINT8 ProtocolVersion; } HECI_CLIENT; #pragma pack( ) #endif // __INTRFACE_H__ UNS-3.2.0.24/AMTStatus/heci/Linux/HECILinux.cpp0000644012402100775320000001610110746077316021605 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #include #include #include #include #include #include #include "HECILinux.h" #pragma pack(1) typedef struct heci_ioctl_data{ uint32_t size; char* data; }heci_ioctl_data_t; /* IOCTL commands */ #undef HECI_IOCTL #undef IOCTL_HECI_GET_VERSION #undef IOCTL_HECI_CONNECT_CLIENT #undef IOCTL_HECI_WD #define HECI_IOCTL_LETTER 'H' #define IOCTL_HECI_GET_VERSION \ _IOWR(HECI_IOCTL_LETTER ,0x800, heci_ioctl_data_t) #define IOCTL_HECI_CONNECT_CLIENT \ _IOWR(HECI_IOCTL_LETTER ,0x801, heci_ioctl_data_t) #define IOCTL_HECI_WD \ _IOWR(HECI_IOCTL_LETTER ,0x802, heci_ioctl_data_t) #define IAMT_HECI_GET_RECEIVED_MESSAGE_DATA \ _IOW(HECI_IOCTL_LETTER, 0x803, heci_ioctl_data_t) typedef struct heci_client { uint32_t max_message_length; uint8_t protocol_version; } heci_client_t; typedef struct heci_driver_version { uint8_t major; uint8_t minor; uint8_t hotfix; uint16_t build; } heci_driver_version_t; #pragma pack(0) /***************************** public functions *****************************/ HECILinux::HECILinux(const GUID guid, bool verbose): HECI(guid, verbose) { } HECILinux::~HECILinux() { if (_fd != -1) { close(_fd); } } bool HECILinux::Init() { int result; heci_client_t *heci_client; bool return_result = true; heci_ioctl_data_t version_response; heci_ioctl_data_t client_connect; if (_initialized) { Deinit(); } _fd = open("/dev/heci", O_RDWR); if (_fd == -1 ) { if (_verbose) { fprintf(stderr, "Error: Cannot establish a handle to the HECI driver\n"); } return false; } _initialized = true; version_response.size = sizeof(heci_driver_version_t); version_response.data = (char*)malloc(version_response.size); if (!version_response.data) { printf("malloc failure.\n"); return_result = false; Deinit(); goto heci_free; } result = ioctl(_fd, IOCTL_HECI_GET_VERSION, &version_response); if (result) { if (_verbose) { fprintf(stderr, "error in IOCTL_HECI_GET_VERSION recieve message. err=%d\n",result); } return_result = false; Deinit(); goto heci_free; } version = *((HECI_VERSION *)(version_response.data)); if (_verbose) { printf("Connected to HECI driver, version: %d.%d.%d.%d\n", version.major, version.minor, version.hotfix, version.build); printf("Size of guid = %d\n",sizeof(_guid)); } client_connect.size = sizeof(_guid); client_connect.data = (char*)malloc(client_connect.size); if (!client_connect.data) { printf("malloc failure.\n"); return_result = false; Deinit(); goto heci_free; } memcpy(client_connect.data,&_guid,sizeof(_guid)); result = ioctl(_fd, IOCTL_HECI_CONNECT_CLIENT, &client_connect); if (result) { if (_verbose) { fprintf(stderr, "error in IOCTL_HECI_CONNECT_CLIENT recieve message. err=%d\n",result); } return_result = false; Deinit(); goto heci_free; } heci_client = (heci_client_t*) client_connect.data; if (_verbose) { printf("max_message_length %d \n",(heci_client->max_message_length)); printf("protocol_version %d \n",(heci_client->protocol_version)); } _bufSize =heci_client->max_message_length; heci_free: if(NULL!=version_response.data) free(version_response.data); if(NULL!=client_connect.data) free(client_connect.data); return return_result; } void HECILinux::Deinit() { if (_fd != -1) { close(_fd); _fd = -1; } _bufSize = 0; _initialized = false; } int HECILinux::ReceiveMessage(unsigned char *buffer, int len, unsigned long timeout) { int rv = 0; rv = read(_fd,(void*)buffer,len); // fprintf(stderr,"read with status %d\n", rv); if (rv < 0) { if (_verbose) { fprintf(stderr,"read failed with status %d\n", rv); } Deinit(); } return rv; } int HECILinux::SendMessage(unsigned char *buffer, int len, unsigned long timeout) { int rv = 0; int return_length =0; fd_set set; struct timeval tv; tv.tv_sec = timeout / 1000; tv.tv_usec =(timeout % 1000) * 1000000; if (_verbose) { printf("call write length = %d\n",len); } return_length = write( _fd,(void *)buffer,len); if ( return_length < 0) { if (_verbose) { fprintf(stderr,"write failed with status %d\n", rv); } goto out; } FD_ZERO(&set); FD_SET(_fd, &set); rv = select(_fd+1 ,&set,NULL, NULL, &tv); if (rv > 0 && FD_ISSET(_fd, &set)) { if (_verbose) { fprintf(stderr,"write success\n"); } } else if (rv == 0) { if (_verbose) { fprintf(stderr,"write failed on timeout with status\n"); goto out; } } else { //rv<0 if (_verbose) { fprintf(stderr,"write failed on select with status %d\n", rv); goto out; } } rv = return_length; out: if (rv < 0) { printf("Send failed!\n"); Deinit(); } return rv; } UNS-3.2.0.24/AMTStatus/heci/Linux/HECILinux.h0000644012402100775320000000542210746077316021256 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __HECI_LINUX_H__ #define __HECI_LINUX_H__ #include "heci.h" #include "HECI_if.h" class HECILinux : public HECI { public: HECILinux(const GUID guid, bool verbose = true); virtual ~HECILinux(); virtual bool Init(); virtual void Deinit(); virtual int ReceiveMessage(unsigned char *buffer, int len, unsigned long timeout = 2000); virtual int SendMessage(unsigned char *buffer, int len, unsigned long timeout = 2000); virtual unsigned long GetBufferSize() { return _bufSize; } HECI_VERSION version; private: //int _doIoctl(DWORD code, void *inbuf, int inlen, void *outbuf, int outlen); //static char *_getErrMsg(DWORD err); int _fd; }; #endif // __HECI_LINUX_H__ UNS-3.2.0.24/AMTStatus/heci/Linux/PTHICommand.cpp0000644012402100775320000014653110746077316022133 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: PTHICommand.cpp // //---------------------------------------------------------------------------- #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include "HECILinux.h" #include "HECI_if.h" #include "PTHICommand.h" #include "StatusCodeDefinitions.h" PTHICommand::PTHICommand( bool verbose): PTHIClient(HECI_PTHI,verbose) { } PTHICommand::~PTHICommand(void) { } /* * Confirms the correctness of the response message header * and the response message size * Arguments: * command - appropriate Host interface command * response_header - pointer to the response message header * response_size - value that holds the actual size of the * response message * expected_size - value that holds the expected size of the * response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ UINT32 PTHICommand::_verifyResponseHeader(const UINT32 command, const PTHI_MESSAGE_HEADER *response_header, UINT32 response_size) { PT_STATUS status = PT_STATUS_SUCCESS; if ( response_size != (response_header->Length + sizeof(PTHI_MESSAGE_HEADER))) { status = PT_STATUS_INTERNAL_ERROR; } else if( response_header->Command.cmd.val != command ) { status = PT_STATUS_INTERNAL_ERROR; } else if(response_header->Reserved != 0 ) { status = PT_STATUS_INTERNAL_ERROR; } else if(response_header->Version.MajorNumber != MAJOR_VERSION || response_header->Version.MinorNumber < MINOR_VERSION) { status = PT_STATUS_INTERNAL_ERROR; } return status; } /* * Confirms the correctness of the GetCodeVersions response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ PT_STATUS PTHICommand::_verifyCodeVersions(const CFG_GET_CODE_VERSIONS_RESPONSE *response) { PT_STATUS status = PT_STATUS_SUCCESS; UINT32 codeVerLen; UINT32 ptVerTypeCount; UINT32 len = 0; UINT32 i; do { codeVerLen = response->Header.Length - sizeof(PT_STATUS); ptVerTypeCount = codeVerLen - sizeof(response->CodeVersions.BiosVersion)- sizeof(response->CodeVersions.VersionsCount); if ( response->CodeVersions.VersionsCount != (ptVerTypeCount/sizeof( PT_VERSION_TYPE ))) { status = PT_STATUS_INTERNAL_ERROR; break; } for ( i = 0; i < (response->CodeVersions.VersionsCount); i ++ ) { len = response->CodeVersions.Versions[i].Description.Length; if(len > UNICODE_STRING_LEN) { status = PT_STATUS_INTERNAL_ERROR; break; } len = response->CodeVersions.Versions[i].Version.Length; if ( response->CodeVersions.Versions[i].Version.String[len] != '\0' || (len != strlen((PCHAR)(response->CodeVersions.Versions[i].Version.String))) ) { status = PT_STATUS_INTERNAL_ERROR; break; } } }while ( 0 ); return status; } /* * GetVersions response message PTHI command * Arguments: * response - pointer to the CODE_VERSIONS struct * Return values: * PT_STATUS_SUCCESS - on success * PT_STATUS_INTERNAL_ERROR - on failure */ UINT32 PTHICommand::GetCodeVersions(CODE_VERSIONS *CodeVersions, HECI_VERSION *hecversion) { // printf("\nIn GetCodeVersions( ) function..."); if ( CodeVersions == NULL ) { printf("\nNull pointer passed. Exit 1"); printf("\nstatus returned is PTSDK_STATUS_INVALID_PARAM"); return PTSDK_STATUS_INVALID_PARAM; } PT_STATUS status; UCHAR command[sizeof(GET_CODE_VERSION_HEADER)]; memcpy(command ,&GET_CODE_VERSION_HEADER,sizeof(GET_CODE_VERSION_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(GET_CODE_VERSION_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; CFG_GET_CODE_VERSIONS_RESPONSE *tmp_response; PTHI_MESSAGE_HEADER *resp_header; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { printf("\nSend message to Heci failed. Exit 2"); printf("\nstatus returned is PT_STATUS_INTERNAL_ERROR"); return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; printf("\nread from heci failed, outbuffsize = 0. exit 3"); break; } tmp_response = (CFG_GET_CODE_VERSIONS_RESPONSE*)readBuffer; status = tmp_response->Status; if( status != PT_STATUS_SUCCESS ) { printf("\nstatus bit in response from heci is not success. exit 4"); break; } resp_header = &(tmp_response->Header); status = _verifyResponseHeader(CODE_VERSIONS_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { printf("\nverification of response header failed. exit 5"); break; } status = _verifyCodeVersions(tmp_response); if ( status != PT_STATUS_SUCCESS ) { printf("\nverification of code versions failed. exit 6"); break; } memcpy( CodeVersions,&(tmp_response->CodeVersions),sizeof(CODE_VERSIONS)) ; }while(0); if ( readBuffer != NULL ) { free(readBuffer); readBuffer = NULL; } *hecversion = PTHIClient.version; // printf("\nstatus returned is %d",status); return status; } /* * DisplayCodeVersions print code version * Arguments: * response - pointer to the CODE_VERSIONS struct * Return values: * NONE */ VOID PTHICommand::DisplayCodeVersions(const CODE_VERSIONS *versions) { UINT32 i,j; UINT16 len; // BIOS version is free format null terminated string, // max length of BIOS version string is 64 byte fprintf(stdout,"\nBIOS Version:"); fprintf(stdout,"\t\t %s\n\n",versions->BiosVersion); fprintf(stdout,"\nAMT Code Version:\n"); for ( i = 0; i < versions->VersionsCount; i ++ ) { fprintf(stdout,"\t"); len = versions->Versions[i].Description.Length; for ( j = 0; j < len; j ++ ) { fprintf(stdout,"%c",versions->Versions[i].Description.String[j]); } fprintf(stdout,":"); for ( j = 0 ; j < (UINT32)(24 - len); j ++ ) { fprintf(stdout," "); } fprintf(stdout,"%s\n", versions->Versions[i].Version.String); } fprintf(stdout,"\n"); } /* * Calls to GetProvisioningMode Host interface command * Arguments: * legacy - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GetProvisioningMode(AMT_BOOLEAN *legacy) { if ( legacy == NULL ) { return PTSDK_STATUS_INVALID_PARAM; } UCHAR command[sizeof(GET_PROVISIONING_MODE_HEADER)]; memcpy(command ,&GET_PROVISIONING_MODE_HEADER,sizeof(GET_PROVISIONING_MODE_HEADER)); UINT8 *readBuffer; UINT32 inBuffSize =0; UINT32 outBuffSize=0; int bytesWritten = 0; ULONG command_size = sizeof(GET_PROVISIONING_MODE_HEADER); AMT_STATUS status; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_PROVISIONING_MODE_RESPONSE *tmp_response = (CFG_GET_PROVISIONING_MODE_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(PROVISIONING_MODE_RESPONSE,resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyProvisioningMode(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } *legacy = tmp_response->LegacyMode; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); readBuffer = NULL; } return status; } /* * Confirms the correctness of the GetProvisioningMode response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifyProvisioningMode(const CFG_GET_PROVISIONING_MODE_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_GET_PROVISIONING_MODE_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * DisplayAMTMode print legacy mode * Arguments: * *legacy - pointer to the AMT_BOOLEAN enum * Return values: * NONE */ void PTHICommand::DisplayAMTMode(const AMT_BOOLEAN *legacy) { fprintf(stdout,"\nAMT Mode:"); fprintf(stdout,"\t\t\t"); if (*legacy) { fprintf(stdout,"\nAMT Mode 1"); fprintf(stdout,"\n"); } else { fprintf(stdout,"\nAMT Mode 2"); fprintf(stdout,"\n"); } } /* * Calls to GetProvisioningState Host interface command * Arguments: * state - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GetProvisioningState(AMT_PROVISIONING_STATE *state) { if ( state == NULL ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UCHAR command[sizeof(GET_PROVISIONING_STATE_HEADER)]; memcpy(command ,&GET_PROVISIONING_STATE_HEADER,sizeof(GET_PROVISIONING_STATE_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(GET_PROVISIONING_STATE_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_PROVISIONING_STATE_RESPONSE *tmp_response = (CFG_GET_PROVISIONING_STATE_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(PROVISIONING_STATE_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyProvisioningState(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } *state = tmp_response->ProvisioningState; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the GetProvisioningState response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifyProvisioningState(const CFG_GET_PROVISIONING_STATE_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_GET_PROVISIONING_STATE_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * DisplayProvisioningState print provisioning state * Arguments: * *state - pointer to the AMT_PROVISIONING_STATE enum * Return values: * NONE */ VOID PTHICommand::DisplayProvisioningState(const AMT_PROVISIONING_STATE *state) { fprintf(stdout,"Provisioning State:"); fprintf(stdout,"\t"); switch (*state) { case PROVISIONING_STATE_PRE: fprintf(stdout,"Pre"); break; case PROVISIONING_STATE_IN: fprintf(stdout,"In"); break; case PROVISIONING_STATE_POST: fprintf(stdout,"Post"); break; default: fprintf(stdout,"Unknown"); break; } } /* * Calls to GetEndOfPostState Host interface command * Arguments: * legacy - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in AMTVersn.h - on failure */ AMT_STATUS PTHICommand::GetEndOfPostState(UINT8 *BiosModeState) { if ( BiosModeState == NULL ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; PCHAR command = (PCHAR)&GET_ENDOFPOST_STATE_HEADER; //memcpy(command ,&GET_ENDOFPOST_STATE_HEADER,sizeof(GET_ENDOFPOST_STATE_HEADER)); UINT8 *readBuffer; ULONG command_size = sizeof(GET_ENDOFPOST_STATE_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage((UCHAR *)command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_PROVISIONING_STATE_RESPONSE *tmp_response = (CFG_GET_PROVISIONING_STATE_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(PROVISIONING_STATE_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyProvisioningState(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } *BiosModeState = tmp_response->ProvisioningState; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Calls to GenerateRngKey Host interface command * Arguments: * None * Return values: * PT_STATUS_SUCCESS - or AMT_STATUS_IN_PROGRESS on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GenerateRngKey() { AMT_STATUS status; UCHAR command[sizeof(GENERATE_RNG_SEED_HEADER)]; memcpy(command ,&GENERATE_RNG_SEED_HEADER,sizeof(GENERATE_RNG_SEED_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(GENERATE_RNG_SEED_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GENERATE_RNG_SEED_RESPONSE *tmp_response = (CFG_GENERATE_RNG_SEED_RESPONSE*)readBuffer; status = tmp_response->Status; if( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(GENERATE_RNG_SEED_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyGenerateRngKey(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the GenerateRngKey response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifyGenerateRngKey(const CFG_GENERATE_RNG_SEED_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_GENERATE_RNG_SEED_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * Calls to GetRngSeedStatus Host interface command * Arguments: * state - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GetRngSeedStatus(AMT_RNG_STATUS *rngStatus) { if ( rngStatus == NULL ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UCHAR command[sizeof(GET_RNG_SEED_STATUS_HEADER)]; memcpy(command ,&GET_RNG_SEED_STATUS_HEADER,sizeof(GET_RNG_SEED_STATUS_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(GET_RNG_SEED_STATUS_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_RNG_SEED_STATUS_RESPONSE *tmp_response = (CFG_GET_RNG_SEED_STATUS_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(GET_RNG_SEED_STATUS_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyGetRngSeedStatus(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; *rngStatus = tmp_response->RngStatus; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the GetRngSeedStatus response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifyGetRngSeedStatus(const CFG_GET_RNG_SEED_STATUS_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_GET_RNG_SEED_STATUS_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * DisplayRngSeedStatus print RNG seed status * Arguments: * *rngStatus - pointer to the AMT_RNG_STATUS enum * Return values: * NONE */ VOID PTHICommand::DisplayRngSeedStatus(const AMT_RNG_STATUS *rngStatus) { // DisplayMessage(WORD_RNG_SEED_STATUS); fprintf(stdout,"\t"); switch (*rngStatus) { case RNG_STATUS_EXIST: // DisplayMessage(WORD_EXIST); break; case RNG_STATUS_IN_PROGRESS: // DisplayMessage(WORD_IN_PROGRESS); break; case RNG_STATUS_NOT_EXIST: // DisplayMessage(WORD_NOT_EXIST); break; default: // DisplayMessage(UNKNOWN); break; } fprintf(stdout,"\n"); } /* * Calls to ZeroTouchEnabled Host interface command * Arguments: * zeroTouchEnabled - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GetZeroTouchEnabled(AMT_BOOLEAN *zeroTouchEnabled) { if ( zeroTouchEnabled == NULL ) { return PTSDK_STATUS_INVALID_PARAM; } UCHAR command[sizeof(GET_ZERO_TOUCH_ENABLED_HEADER)]; memcpy(command ,&GET_ZERO_TOUCH_ENABLED_HEADER,sizeof(GET_ZERO_TOUCH_ENABLED_HEADER)); UINT8 *readBuffer; UINT32 inBuffSize =0; UINT32 outBuffSize=0; int bytesWritten = 0; ULONG command_size = sizeof(GET_ZERO_TOUCH_ENABLED_HEADER); AMT_STATUS status; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_ZERO_TOUCH_ENABLED_RESPONSE *tmp_response = (CFG_GET_ZERO_TOUCH_ENABLED_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(GET_ZERO_TOUCH_ENABLED_RESPONSE,resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyGetZeroTouchEnabled(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } *zeroTouchEnabled = tmp_response->ZeroTouchEnabled; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); readBuffer = NULL; } return status; } /* * Confirms the correctness of the GetZeroTouchEnabled response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifyGetZeroTouchEnabled(const CFG_GET_ZERO_TOUCH_ENABLED_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_GET_ZERO_TOUCH_ENABLED_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * DisplayZTCEnabled print if ZTC enabled * Arguments: * *ztcEnabled - pointer to the AMT_BOOLEAN enum * Return values: * NONE */ VOID PTHICommand::DisplayZTCEnabled(const AMT_BOOLEAN *ztcEnabled) { // DisplayMessage(WORD_ZTC); fprintf(stdout,"\t\t\t"); if (*ztcEnabled) { // DisplayMessage(WORD_ENABLED); fprintf(stdout,"\n"); } else { // DisplayMessage(WORD_DISABLED); fprintf(stdout,"\n"); } } /* * Calls to GetProvisioningTlsMode Host interface command * Arguments: * state - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GetProvisioningTlsMode(AMT_PROVISIONING_TLS_MODE *provisioningTlsMode) { if ( provisioningTlsMode == NULL ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UCHAR command[sizeof(GET_PROVISIONING_TLS_MODE_HEADER)]; memcpy(command ,&GET_PROVISIONING_TLS_MODE_HEADER,sizeof(GET_PROVISIONING_TLS_MODE_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(GET_PROVISIONING_TLS_MODE_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_PROVISIONING_TLS_MODE_RESPONSE *tmp_response = (CFG_GET_PROVISIONING_TLS_MODE_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(GET_PROVISIONING_TLS_MODE_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyGetProvisioningTlsMode(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; *provisioningTlsMode = tmp_response->ProvisioningTlsMode; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the GetProvisioningTlsMode response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifyGetProvisioningTlsMode(const CFG_GET_PROVISIONING_TLS_MODE_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_GET_PROVISIONING_TLS_MODE_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * DisplayProvisioningTlsMode print provisioning TLS mode * Arguments: * *provisioningTlsMode - pointer to the AMT_PROVISIONING_TLS_MODE enum * Return values: * NONE */ VOID PTHICommand::DisplayProvisioningTlsMode(const AMT_PROVISIONING_TLS_MODE *provisioningTlsMode) { // DisplayMessage(WORD_PROVISIONING_TLS_MODE); fprintf(stdout,"\t"); switch (*provisioningTlsMode) { case PKI: // DisplayMessage(WORD_PKI); break; case PSK: // DisplayMessage(WORD_PSK); break; case NOT_READY: // DisplayMessage(WORD_NOT_READY); break; default: // DisplayMessage(UNKNOWN); break; } fprintf(stdout,"\n"); } /* * Calls to StartConfiguration Host interface command * Arguments: * None * Return values: * PT_STATUS_SUCCESS - or AMT_STATUS_CERTIFICATE_NOT_READY on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::StartConfiguration() { AMT_STATUS status; UCHAR command[sizeof(START_CONFIGURATION_HEADER)]; memcpy(command ,&START_CONFIGURATION_HEADER,sizeof(START_CONFIGURATION_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(START_CONFIGURATION_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_START_CONFIGURATION_RESPONSE *tmp_response = (CFG_START_CONFIGURATION_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS )//||status!= AMT_STATUS_CERTIFICATE_NOT_READY) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(START_CONFIGURATION_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyStartConfiguration(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the StartConfiguration response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifyStartConfiguration(const CFG_START_CONFIGURATION_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_START_CONFIGURATION_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * Calls to SetProvisioningServerOTP Host interface command * Arguments: * passwordOTP AMT_ANSI_STRING structure of OTP password * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::SetProvisioningServerOTP(AMT_ANSI_STRING passwordOTP) { if ( NULL == passwordOTP.Buffer ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UINT32 msgLength = sizeof(passwordOTP.Length) + (passwordOTP.Length*sizeof(CHAR)); PTHI_MESSAGE_HEADER SET_PROVISIONING_SERVER_OTP_HEADER = { {AMT_MAJOR_VERSION,AMT_MINOR_VERSION},0,{SET_PROVISIONING_SERVER_OTP_REQUEST},msgLength }; UINT32 command_size = sizeof(START_CONFIGURATION_HEADER) + msgLength; UCHAR *command; command = (UCHAR*) malloc(command_size); if ( NULL == command ) { return PT_STATUS_INTERNAL_ERROR; } memcpy(command ,&SET_PROVISIONING_SERVER_OTP_HEADER,sizeof(SET_PROVISIONING_SERVER_OTP_HEADER)); memcpy(command + sizeof(SET_PROVISIONING_SERVER_OTP_HEADER),&(passwordOTP.Length),sizeof(passwordOTP.Length)); memcpy( command + sizeof(SET_PROVISIONING_SERVER_OTP_HEADER) + sizeof(passwordOTP.Length), passwordOTP.Buffer, passwordOTP.Length); UINT8 *readBuffer; UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if ( command != NULL ) { free(command); } if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_SET_PROVISIONING_SERVER_OTP_RESPONSE *tmp_response = (CFG_SET_PROVISIONING_SERVER_OTP_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(SET_PROVISIONING_SERVER_OTP_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifySetProvisioningServerOTP(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the SetProvisioningServerOTP response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifySetProvisioningServerOTP(const CFG_SET_PROVISIONING_SERVER_OTP_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_SET_PROVISIONING_SERVER_OTP_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * Calls to SetDnsSuffix Host interface command * Arguments: * passwordOTP AMT_ANSI_STRING structure of DNS suffix * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::SetDnsSuffix(AMT_ANSI_STRING dnsSuffix) { if ( NULL == dnsSuffix.Buffer ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UINT32 msgLength = sizeof(dnsSuffix.Length) + (dnsSuffix.Length*sizeof(CHAR)); PTHI_MESSAGE_HEADER SET_DNS_SUFFIX_HEADER = { {AMT_MAJOR_VERSION,AMT_MINOR_VERSION},0,{SET_DNS_SUFFIX_REQUEST},msgLength }; UINT32 command_size = sizeof(SET_DNS_SUFFIX_HEADER) + msgLength; UCHAR *command; command = (UCHAR*) malloc(command_size); if ( NULL == command ) { return PT_STATUS_INTERNAL_ERROR; } memcpy(command ,&SET_DNS_SUFFIX_HEADER,sizeof(SET_DNS_SUFFIX_HEADER)); memcpy(command + sizeof(SET_DNS_SUFFIX_HEADER),&(dnsSuffix.Length), sizeof(dnsSuffix.Length)); memcpy(command + sizeof(SET_DNS_SUFFIX_HEADER) + sizeof(dnsSuffix.Length),dnsSuffix.Buffer, dnsSuffix.Length); UINT8 *readBuffer; UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if ( command != NULL ) { free(command); } if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_SET_DNS_SUFFIX_RESPONSE *tmp_response = (CFG_SET_DNS_SUFFIX_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(SET_DNS_SUFFIX_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifySetDnsSuffix(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the SetDnsSuffix response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifySetDnsSuffix(const CFG_SET_DNS_SUFFIX_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_SET_DNS_SUFFIX_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; //return PT_STATUS_SUCCESS; } return PT_STATUS_SUCCESS; } /* * Calls to EnumerateHashHandles Host interface command * Arguments: * hashHandles - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::EnumerateHashHandles(AMT_HASH_HANDLES *hashHandles) { if (NULL == hashHandles) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UCHAR command[sizeof(ENUMERATE_HASH_HANDLES_HEADER)]; memcpy(command ,&ENUMERATE_HASH_HANDLES_HEADER,sizeof(ENUMERATE_HASH_HANDLES_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(ENUMERATE_HASH_HANDLES_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_HASH_HANDLES_RESPONSE *tmp_response = (CFG_GET_HASH_HANDLES_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(ENUMERATE_HASH_HANDLES_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyHashHandles(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } hashHandles->Length = tmp_response->HashHandles.Length; memset( hashHandles->Handles,0, sizeof(UINT32) * CERT_HASH_MAX_NUMBER); if (CERT_HASH_MAX_NUMBER < hashHandles->Length) { status = PT_STATUS_INTERNAL_ERROR; break; } memcpy(hashHandles->Handles,tmp_response->HashHandles.Handles,sizeof(UINT32) * hashHandles->Length); }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the EnumerateHashHandles response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifyHashHandles(const CFG_GET_HASH_HANDLES_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != sizeof(AMT_STATUS) + sizeof(response->HashHandles.Length) +(sizeof(UINT32) * response->HashHandles.Length)) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * Calls to GetCertificateHashEntry Host interface command * Arguments: * passwordOTP AMT_ANSI_STRING structure of DNS suffix * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GetCertificateHashEntry(UINT32 hashHandle, CERTHASH_ENTRY *hashEntry) { if ( NULL == hashEntry ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UINT32 msgLength = sizeof(hashHandle); PTHI_MESSAGE_HEADER GET_CERTHASH_ENTRY_HEADER = { {AMT_MAJOR_VERSION,AMT_MINOR_VERSION},0,{GET_CERTHASH_ENTRY_REQUEST},msgLength }; UINT32 command_size = sizeof(GET_CERTHASH_ENTRY_HEADER) + msgLength; UCHAR *command; command = (UCHAR*) malloc(command_size); if ( NULL == command ) { return PT_STATUS_INTERNAL_ERROR; } memcpy(command ,&GET_CERTHASH_ENTRY_HEADER,sizeof(GET_CERTHASH_ENTRY_HEADER)); memcpy(command + sizeof(GET_CERTHASH_ENTRY_HEADER),&(hashHandle), sizeof(hashHandle)); UINT8 *readBuffer; UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if ( command != NULL ) { free(command); } if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_CERTHASH_ENTRY_RESPONSE *tmp_response = (CFG_GET_CERTHASH_ENTRY_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(GET_CERTHASH_ENTRY_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyGetCertificateHashEntry(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; hashEntry->IsActive = tmp_response->Hash.IsActive; hashEntry->IsDefault = tmp_response->Hash.IsDefault; hashEntry->Name.Length = tmp_response->Hash.Name.Length; hashEntry->HashAlgorithm = tmp_response->Hash.HashAlgorithm; memcpy(hashEntry->CertificateHash,tmp_response->Hash.CertificateHash,sizeof(tmp_response->Hash.CertificateHash)); hashEntry->Name.Buffer =(CHAR*)malloc(hashEntry->Name.Length*sizeof(CHAR)); if ( NULL == hashEntry->Name.Buffer ) { status = PT_STATUS_INTERNAL_ERROR; break; } memcpy(hashEntry->Name.Buffer,&(tmp_response->Hash.Name.Buffer) ,hashEntry->Name.Length*sizeof(CHAR)); }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the GetCertificateHashEntry response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand::_verifyGetCertificateHashEntry(const CFG_GET_CERTHASH_ENTRY_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_GET_CERTHASH_ENTRY_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER) - sizeof(CHAR*)+ response->Hash.Name.Length)) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * DisplayHashEntry print Certificate Hash Entry * Arguments: * hashEntry - the CERTHASH_ENTRY struct * Return values: * NONE */ VOID PTHICommand::DisplayHashEntry(CERTHASH_ENTRY hashEntry) { char *printString; //DisplayMessage(HASH_ENTRY); printString =(char*) malloc((hashEntry.Name.Length+1)*sizeof(CHAR)); if ( NULL == printString ) { fprintf(stdout, "Display Hash Entry internal error!\n"); return; } memcpy(printString,hashEntry.Name.Buffer,hashEntry.Name.Length*sizeof(CHAR)); printString[hashEntry.Name.Length*sizeof(CHAR)] ='\0'; fprintf(stdout, "%s", printString); fprintf(stdout,"\n"); free(printString); fprintf(stdout, "Default = "); fprintf(stdout, "%s", hashEntry.IsDefault ? "true" : "false"); fprintf(stdout, "Active = "); fprintf(stdout, "%s", hashEntry.IsActive ? "true" : "false"); fprintf(stdout, "Hash Algorithm = "); int len; switch(hashEntry.HashAlgorithm) { case CERT_HASH_ALGORITHM_MD5: fprintf(stdout, "MD5"); len = 16; break; case CERT_HASH_ALGORITHM_SHA1: fprintf(stdout, "SHA1"); len = 20; break; default: fprintf(stdout, "UNKNOWN"); len = 0; break; } for(int i = 0; i < len; i++) { fprintf(stdout, " %02X", hashEntry.CertificateHash[i]); } } /* * Calls to GetDnsSuffix Host interface command * Arguments: * dnsSuffix - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GetDnsSuffix(AMT_ANSI_STRING *dnsSuffix) { if ( dnsSuffix == NULL ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UCHAR command[sizeof(GET_PKI_FQDN_SUFFIX_HEADER)]; memcpy(command ,&GET_PKI_FQDN_SUFFIX_HEADER,sizeof(GET_PKI_FQDN_SUFFIX_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(GET_PKI_FQDN_SUFFIX_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_PKI_FQDN_SUFFIX_RESPONSE *tmp_response = (CFG_GET_PKI_FQDN_SUFFIX_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(GET_PKI_FQDN_SUFFIX_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyGetDnsSuffix(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; dnsSuffix->Length = tmp_response->Suffix.Length; dnsSuffix->Buffer =(CHAR*)malloc(dnsSuffix->Length * sizeof(CHAR)); if ( NULL == dnsSuffix->Buffer ) { status = PT_STATUS_INTERNAL_ERROR; break; } memcpy(dnsSuffix->Buffer,&(tmp_response->Suffix.Buffer),dnsSuffix->Length * sizeof(CHAR)); }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the GetDnsSuffix response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand :: _verifyGetDnsSuffix(const CFG_GET_PKI_FQDN_SUFFIX_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != sizeof(AMT_STATUS) + sizeof(response->Suffix.Length) + response->Suffix.Length*sizeof(CHAR)) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * Calls to GetAMTSetupAuditRecord Host interface command * Arguments: * auditRecord - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GetAMTSetupAuditRecord(AMT_PROV_AUDIT_RECORD *auditRecord) { if ( auditRecord == NULL ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UCHAR command[sizeof(GET_AUDIT_RECORD_HEADER)]; memcpy(command ,&GET_AUDIT_RECORD_HEADER,sizeof(GET_AUDIT_RECORD_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(GET_AUDIT_RECORD_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_AUDIT_RECORD_RESPONSE *tmp_response = (CFG_GET_AUDIT_RECORD_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(GET_AUDIT_RECORD_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyGetAMTSetupAuditRecord(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; memcpy(auditRecord,&tmp_response->AuditRecord,sizeof(AMT_PROV_AUDIT_RECORD)); }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the GetAMTSetupAuditRecord response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand :: _verifyGetAMTSetupAuditRecord(const CFG_GET_AUDIT_RECORD_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_GET_AUDIT_RECORD_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } /* * Calls to GetPID Host interface command * Arguments: * pid - pointer to the pre-allocated structure * which will hold the result * Return values: * PT_STATUS_SUCCESS - on success * appropriate error value defined in StatusCodeDefinitions.h - on failure */ AMT_STATUS PTHICommand::GetPID(UINT8 *pid) { if ( pid == NULL ) { return PTSDK_STATUS_INVALID_PARAM; } AMT_STATUS status; UCHAR command[sizeof(GET_PID_HEADER)]; memcpy(command ,&GET_PID_HEADER,sizeof(GET_PID_HEADER)); UINT8 *readBuffer; UINT32 command_size = sizeof(GET_PID_HEADER); UINT32 inBuffSize; UINT32 outBuffSize=0; int bytesWritten = 0; bytesWritten = PTHIClient.SendMessage(command,command_size); if(bytesWritten != command_size) { return PT_STATUS_INTERNAL_ERROR; } inBuffSize = PTHIClient.GetBufferSize(); readBuffer = (UINT8*) malloc (sizeof(UINT8) * inBuffSize); if ( NULL == readBuffer ) { return PT_STATUS_INTERNAL_ERROR; } memset(readBuffer,0,inBuffSize); outBuffSize = PTHIClient.ReceiveMessage(readBuffer,inBuffSize); do { if( 0 == outBuffSize) { status = PT_STATUS_INTERNAL_ERROR; break; } CFG_GET_PID_RESPONSE *tmp_response = (CFG_GET_PID_RESPONSE*)readBuffer; status = tmp_response->Status; if ( status != PT_STATUS_SUCCESS ) { break; } PTHI_MESSAGE_HEADER *resp_header = &(tmp_response->Header); status = _verifyResponseHeader(GET_PID_RESPONSE, resp_header,outBuffSize); if ( status != PT_STATUS_SUCCESS ) { break; } status = _verifyGetPID(tmp_response); if ( status != PT_STATUS_SUCCESS ) { break; } status = tmp_response->Status; memcpy(pid,tmp_response->PID,sizeof(tmp_response->PID)); }while ( 0 ); if ( readBuffer != NULL ) { free(readBuffer); } return status; } /* * Confirms the correctness of the GetPID response message * Arguments: * response - pointer to the response message * Return values: * PT_STATUS_SUCCESS - on success * PTSDK_STATUS_INTERNAL_ERROR - on failure */ AMT_STATUS PTHICommand :: _verifyGetPID(const CFG_GET_PID_RESPONSE *response) { ULONG ByteCount; ByteCount = response->Header.Length; if (ByteCount != (sizeof(CFG_GET_PID_RESPONSE) - sizeof(PTHI_MESSAGE_HEADER))) { return PTSDK_STATUS_INTERNAL_ERROR; } return PT_STATUS_SUCCESS; } UNS-3.2.0.24/AMTStatus/heci/Linux/PTHICommand.h0000644012402100775320000003633610746077316021601 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: PTHICommand.h // // Contents: header file of PTHICommand class // //---------------------------------------------------------------------------- #ifndef __PTHI_COMMAND_H__ #define __PTHI_COMMAND_H__ #include "HECILinux.h" #define VOID void #define CERT_HASH_MAX_LENGTH 64 #define CERT_HASH_MAX_NUMBER 23 #define NET_TLS_CERT_PKI_MAX_SERIAL_NUMS 3 #define NET_TLS_CERT_PKI_MAX_SERIAL_NUM_LENGTH 16 /* * Type definitions */ typedef char CHAR; typedef unsigned char UINT8; typedef unsigned short UINT16; typedef unsigned int UINT32; typedef unsigned long ULONG; typedef UINT32 AMT_BOOLEAN; typedef UINT32 AMT_STATUS; typedef UINT32 CFG_PROVISIONING_MODE; typedef CHAR *PCHAR; typedef ULONG *PULONG; typedef UINT32 PT_BOOLEAN; typedef UINT32 CFG_TIMESTAMP; typedef UINT16 CFG_TCPIP_PORT; typedef UINT32 CFG_IPv4_ADDRESS; typedef UINT32 CFG_PROVISIONING_MODE; /* * Constatnts */ static const PT_BOOLEAN PT_TRUE = 1; static const PT_BOOLEAN PT_FALSE = 0; static const UINT32 BIOS_VERSION_LEN = 65; static const UINT32 VERSIONS_NUMBER = 50;///////// static const UINT32 UNICODE_STRING_LEN = 20;//////// static const UINT32 IDER_LOG_ENTRIES = 16; const UINT8 MAJOR_VERSION = 1; const UINT8 MINOR_VERSION = 1; const UINT8 AMT_MAJOR_VERSION = 1; const UINT8 AMT_MINOR_VERSION = 1; typedef enum _AMT_PROVISIONING_TLS_MODE { NOT_READY = 0, PSK = 1, PKI = 2, } AMT_PROVISIONING_TLS_MODE; typedef enum _AMT_PROVISIONING_STATE { PROVISIONING_STATE_PRE = 0, PROVISIONING_STATE_IN = 1, PROVISIONING_STATE_POST = 2 } AMT_PROVISIONING_STATE; typedef enum _AMT_RNG_STATUS { RNG_STATUS_EXIST = 0, RNG_STATUS_IN_PROGRESS = 1, RNG_STATUS_NOT_EXIST = 2 } AMT_RNG_STATUS; #pragma pack (1) typedef struct _PT_UNICODE_STRING { UINT16 Length; UINT8 String[UNICODE_STRING_LEN]; } PT_UNICODE_STRING; typedef struct _PT_VERSION_TYPE { PT_UNICODE_STRING Description; PT_UNICODE_STRING Version; }PT_VERSION_TYPE; typedef struct _PTHI_VERSION { UINT8 MajorNumber; UINT8 MinorNumber; } PTHI_VERSION; typedef struct _CODE_VERSIONS { UINT8 BiosVersion[BIOS_VERSION_LEN]; UINT32 VersionsCount; PT_VERSION_TYPE Versions[VERSIONS_NUMBER]; } CODE_VERSIONS; typedef struct _COMMAND_FMT { union { UINT32 val; struct { UINT32 Operation : 23; UINT32 IsResponse : 1; UINT32 Class : 8; } fields; } cmd; } COMMAND_FMT; typedef struct _AMT_HASH_HANDLES { UINT32 Length; UINT32 Handles[CERT_HASH_MAX_NUMBER]; }AMT_HASH_HANDLES; typedef struct _AMT_ANSI_STRING { UINT16 Length; CHAR* Buffer; }AMT_ANSI_STRING; typedef struct _CERTHASH_ENTRY { AMT_BOOLEAN IsDefault; AMT_BOOLEAN IsActive; UINT8 CertificateHash[CERT_HASH_MAX_LENGTH]; UINT8 HashAlgorithm; AMT_ANSI_STRING Name; }CERTHASH_ENTRY; typedef struct _PTHI_MESSAGE_HEADER { PTHI_VERSION Version; UINT16 Reserved; COMMAND_FMT Command; UINT32 Length; } PTHI_MESSAGE_HEADER; typedef enum { CERT_HASH_ALGORITHM_MD5 = 0, // 16 bytes CERT_HASH_ALGORITHM_SHA1, // 20 bytes CERT_HASH_ALGORITHM_SHA256, // 32 bytes CERT_HASH_ALGORITHM_SHA512, // 64 bytes } CERT_HASH_ALGORITHM; typedef struct { UINT16 Year; UINT16 Month; UINT16 DayOfWeek; UINT16 Day; UINT16 Hour; UINT16 Minute; UINT16 Second; } TIME_DATE; typedef struct _AMT_PROV_AUDIT_RECORD { UINT8 ProvisioningTLSMode; AMT_BOOLEAN SecureDNS; AMT_BOOLEAN HostInitiated; CERT_HASH_ALGORITHM SelectedHashType; UINT8 SelectedHashData[CERT_HASH_MAX_LENGTH]; UINT8 CaCertificateSerials[NET_TLS_CERT_PKI_MAX_SERIAL_NUMS*NET_TLS_CERT_PKI_MAX_SERIAL_NUM_LENGTH]; AMT_BOOLEAN AdditionalCaSerialNums; AMT_BOOLEAN IsOemDefault; AMT_BOOLEAN IsTimeValid; UINT32 ProvServerIP; TIME_DATE TlsStartTime; AMT_ANSI_STRING ProvServerFQDN; }AMT_PROV_AUDIT_RECORD; typedef struct _CFG_GET_CODE_VERSIONS_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; CODE_VERSIONS CodeVersions; } CFG_GET_CODE_VERSIONS_RESPONSE; typedef struct _CFG_GET_PROVISIONING_MODE_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; CFG_PROVISIONING_MODE ProvisioningMode; AMT_BOOLEAN LegacyMode; } CFG_GET_PROVISIONING_MODE_RESPONSE; typedef struct _CFG_GET_PROVISIONING_STATE_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; AMT_PROVISIONING_STATE ProvisioningState; } CFG_GET_PROVISIONING_STATE_RESPONSE; typedef struct _CFG_GENERATE_RNG_SEED_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; } CFG_GENERATE_RNG_SEED_RESPONSE; typedef struct _CFG_GET_RNG_SEED_STATUS_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; AMT_RNG_STATUS RngStatus; } CFG_GET_RNG_SEED_STATUS_RESPONSE; const UINT32 ENDOFPOST_STATE_REQUEST = 0x04000020; const UINT32 ENDOFPOST_STATE_RESPONSE = 0x04800020; const PTHI_MESSAGE_HEADER GET_ENDOFPOST_STATE_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{ENDOFPOST_STATE_REQUEST},0 }; typedef struct _CFG_GET_ZERO_TOUCH_ENABLED_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; AMT_BOOLEAN ZeroTouchEnabled; } CFG_GET_ZERO_TOUCH_ENABLED_RESPONSE; typedef struct _CFG_GET_PROVISIONING_TLS_MODE_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; AMT_PROVISIONING_TLS_MODE ProvisioningTlsMode; } CFG_GET_PROVISIONING_TLS_MODE_RESPONSE; typedef struct _CFG_START_CONFIGURATION_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; } CFG_START_CONFIGURATION_RESPONSE; typedef struct _CFG_SET_PROVISIONING_SERVER_OTP_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; } CFG_SET_PROVISIONING_SERVER_OTP_RESPONSE; typedef struct _CFG_SET_DNS_SUFFIX_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; } CFG_SET_DNS_SUFFIX_RESPONSE; typedef struct _CFG_GET_HASH_HANDLES_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; AMT_HASH_HANDLES HashHandles; } CFG_GET_HASH_HANDLES_RESPONSE; typedef struct _CFG_GET_CERTHASH_ENTRY_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; CERTHASH_ENTRY Hash; } CFG_GET_CERTHASH_ENTRY_RESPONSE; typedef struct _CFG_GET_PKI_FQDN_SUFFIX_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; AMT_ANSI_STRING Suffix; } CFG_GET_PKI_FQDN_SUFFIX_RESPONSE; typedef struct _CFG_GET_AUDIT_RECORD_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; AMT_PROV_AUDIT_RECORD AuditRecord; } CFG_GET_AUDIT_RECORD_RESPONSE; typedef struct _CFG_GET_PID_RESPONSE { PTHI_MESSAGE_HEADER Header; AMT_STATUS Status; UINT8 PID[8]; } CFG_GET_PID_RESPONSE; #pragma pack ( ) class PTHICommand { public: PTHICommand(bool verbose = false); ~PTHICommand(); UINT32 DiscoveryTest(PTHICommand *command, bool isActivate); AMT_STATUS GetCodeVersions(CODE_VERSIONS *CodeVersions,HECI_VERSION *hecversion); VOID DisplayCodeVersions(const CODE_VERSIONS *versions); AMT_STATUS GetProvisioningMode(AMT_BOOLEAN *legacy); VOID DisplayAMTMode(const AMT_BOOLEAN *legacy); AMT_STATUS GetProvisioningState(AMT_PROVISIONING_STATE *state); VOID DisplayProvisioningState(const AMT_PROVISIONING_STATE *state); AMT_STATUS GetEndOfPostState(UINT8 *BiosModeState); AMT_STATUS GenerateRngKey(); AMT_STATUS GetRngSeedStatus(AMT_RNG_STATUS *rngStatus); VOID DisplayRngSeedStatus(const AMT_RNG_STATUS *rngStatus); AMT_STATUS GetZeroTouchEnabled(AMT_BOOLEAN *zeroTouchEnabled); VOID DisplayZTCEnabled(const AMT_BOOLEAN *ztcEnabled); AMT_STATUS GetProvisioningTlsMode(AMT_PROVISIONING_TLS_MODE *provisioningTlsMode); VOID DisplayProvisioningTlsMode(const AMT_PROVISIONING_TLS_MODE *provisioningTlsMode); AMT_STATUS StartConfiguration(); AMT_STATUS SetProvisioningServerOTP(AMT_ANSI_STRING passwordOTP); AMT_STATUS SetDnsSuffix(AMT_ANSI_STRING dnsSuffix); AMT_STATUS EnumerateHashHandles(AMT_HASH_HANDLES *hashHandles); AMT_STATUS GetCertificateHashEntry(UINT32 hashHandle, CERTHASH_ENTRY *hashEntry); AMT_STATUS GetDnsSuffix(AMT_ANSI_STRING *dnsSuffix); AMT_STATUS GetAMTSetupAuditRecord(AMT_PROV_AUDIT_RECORD *auditRecord); VOID DisplayHashEntry(CERTHASH_ENTRY hashEntry); AMT_STATUS GetPID(UINT8 *pid); HECILinux PTHIClient; private: AMT_STATUS _verifyResponseHeader(const UINT32 command,const PTHI_MESSAGE_HEADER *response_header,UINT32 response_size); AMT_STATUS _verifyProvisioningState(const CFG_GET_PROVISIONING_STATE_RESPONSE *response); AMT_STATUS _verifyProvisioningMode(const CFG_GET_PROVISIONING_MODE_RESPONSE *response); AMT_STATUS _verifyCodeVersions(const CFG_GET_CODE_VERSIONS_RESPONSE *response); AMT_STATUS _verifyGenerateRngKey(const CFG_GENERATE_RNG_SEED_RESPONSE *response); AMT_STATUS _verifyGetRngSeedStatus(const CFG_GET_RNG_SEED_STATUS_RESPONSE *response); AMT_STATUS _verifyGetZeroTouchEnabled(const CFG_GET_ZERO_TOUCH_ENABLED_RESPONSE *response); AMT_STATUS _verifyGetProvisioningTlsMode(const CFG_GET_PROVISIONING_TLS_MODE_RESPONSE *response); AMT_STATUS _verifyStartConfiguration(const CFG_START_CONFIGURATION_RESPONSE *response); AMT_STATUS _verifySetProvisioningServerOTP(const CFG_SET_PROVISIONING_SERVER_OTP_RESPONSE *response); AMT_STATUS _verifySetDnsSuffix(const CFG_SET_DNS_SUFFIX_RESPONSE *response); AMT_STATUS _verifyHashHandles(const CFG_GET_HASH_HANDLES_RESPONSE *response); AMT_STATUS _verifyGetCertificateHashEntry(const CFG_GET_CERTHASH_ENTRY_RESPONSE *response); AMT_STATUS _verifyGetDnsSuffix(const CFG_GET_PKI_FQDN_SUFFIX_RESPONSE *response); AMT_STATUS _verifyGetAMTSetupAuditRecord(const CFG_GET_AUDIT_RECORD_RESPONSE *response); AMT_STATUS _verifyGetPID(const CFG_GET_PID_RESPONSE *response); }; /* * Constants */ const UINT32 CODE_VERSIONS_REQUEST = 0x0400001A; const UINT32 CODE_VERSIONS_RESPONSE = 0x0480001A; const PTHI_MESSAGE_HEADER GET_CODE_VERSION_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{CODE_VERSIONS_REQUEST},0 }; const UINT32 PROVISIONING_MODE_REQUEST = 0x04000008; const UINT32 PROVISIONING_MODE_RESPONSE = 0x04800008; const PTHI_MESSAGE_HEADER GET_PROVISIONING_MODE_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{PROVISIONING_MODE_REQUEST},0 }; const UINT32 PROVISIONING_STATE_REQUEST = 0x04000011; const UINT32 PROVISIONING_STATE_RESPONSE = 0x04800011; const PTHI_MESSAGE_HEADER GET_PROVISIONING_STATE_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{PROVISIONING_STATE_REQUEST},0 }; const UINT32 GENERATE_RNG_SEED_REQUEST = 0x04000028; const UINT32 GENERATE_RNG_SEED_RESPONSE = 0x04800028; const PTHI_MESSAGE_HEADER GENERATE_RNG_SEED_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{GENERATE_RNG_SEED_REQUEST},0 }; const UINT32 GET_RNG_SEED_STATUS_REQUEST = 0x0400002E; const UINT32 GET_RNG_SEED_STATUS_RESPONSE = 0x0480002E; const PTHI_MESSAGE_HEADER GET_RNG_SEED_STATUS_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{GET_RNG_SEED_STATUS_REQUEST},0 }; const UINT32 GET_ZERO_TOUCH_ENABLED_REQUEST = 0x04000030; const UINT32 GET_ZERO_TOUCH_ENABLED_RESPONSE = 0x04800030; const PTHI_MESSAGE_HEADER GET_ZERO_TOUCH_ENABLED_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{GET_ZERO_TOUCH_ENABLED_REQUEST},0 }; const UINT32 GET_PROVISIONING_TLS_MODE_REQUEST = 0x0400002B; const UINT32 GET_PROVISIONING_TLS_MODE_RESPONSE = 0x0480002B; const PTHI_MESSAGE_HEADER GET_PROVISIONING_TLS_MODE_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{GET_PROVISIONING_TLS_MODE_REQUEST},0 }; const UINT32 START_CONFIGURATION_REQUEST = 0x04000029; const UINT32 START_CONFIGURATION_RESPONSE = 0x04800029; const PTHI_MESSAGE_HEADER START_CONFIGURATION_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{START_CONFIGURATION_REQUEST},0 }; const UINT32 SET_PROVISIONING_SERVER_OTP_REQUEST = 0x0400002A; const UINT32 SET_PROVISIONING_SERVER_OTP_RESPONSE = 0x0480002A; const UINT32 SET_DNS_SUFFIX_REQUEST = 0x0400002F; const UINT32 SET_DNS_SUFFIX_RESPONSE = 0x0480002F; const UINT32 ENUMERATE_HASH_HANDLES_REQUEST = 0x0400002C; const UINT32 ENUMERATE_HASH_HANDLES_RESPONSE = 0x0480002C; const PTHI_MESSAGE_HEADER ENUMERATE_HASH_HANDLES_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{ENUMERATE_HASH_HANDLES_REQUEST},0 }; const UINT32 GET_CERTHASH_ENTRY_REQUEST = 0x0400002D; const UINT32 GET_CERTHASH_ENTRY_RESPONSE = 0x0480002D; const UINT32 GET_PKI_FQDN_SUFFIX_REQUEST = 0x04000036; const UINT32 GET_PKI_FQDN_SUFFIX_RESPONSE = 0x04800036; const PTHI_MESSAGE_HEADER GET_PKI_FQDN_SUFFIX_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{GET_PKI_FQDN_SUFFIX_REQUEST},0 }; const UINT32 GET_AUDIT_RECORD_REQUEST = 0x04000027; const UINT32 GET_AUDIT_RECORD_RESPONSE = 0x04800027; const PTHI_MESSAGE_HEADER GET_AUDIT_RECORD_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{GET_AUDIT_RECORD_REQUEST},0 }; const UINT32 GET_PID_REQUEST = 0x0400003B; const UINT32 GET_PID_RESPONSE = 0x0480003B; const PTHI_MESSAGE_HEADER GET_PID_HEADER = { {MAJOR_VERSION,MINOR_VERSION},0,{GET_PID_REQUEST},0 }; #endif UNS-3.2.0.24/AMTStatus/heci/StatusStrings/0000755012402100775320000000000010746077316021110 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/AMTStatus/heci/StatusStrings/StatusCodeDefinitions.h0000644012402100775320000003600310746077316025535 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: StatusCodeDefinitions.h // // Notes: This file contains the definitions of the status codes // as defined in the Intel® AMT Network Design Guide. // //---------------------------------------------------------------------------- #ifndef STATUS_CODE_DEFINITIONS_H #define STATUS_CODE_DEFINITIONS_H typedef unsigned int PT_STATUS; typedef unsigned int AMT_STATUS; //Request succeeded #define PT_STATUS_SUCCESS 0x0 #define AMT_STATUS_SUCCESS 0x0 //An internal error in the Intel® AMT device has occurred #define PT_STATUS_INTERNAL_ERROR 0x1 #define AMT_STATUS_INTERNAL_ERROR 0x1 //Intel® AMT device has not progressed far enough in its //initialization to process the command. #define PT_STATUS_NOT_READY 0x2 #define AMT_STATUS_NOT_READY 0x2 //Command is not permitted in current operating mode. #define PT_STATUS_INVALID_PT_MODE 0x3 #define AMT_STATUS_INVALID_PT_MODE 0x3 //Length field of header is invalid. #define PT_STATUS_INVALID_MESSAGE_LENGTH 0x4 #define AMT_STATUS_INVALID_MESSAGE_LENGTH 0x4 //The requested hardware asset inventory table //checksum is not available. #define PT_STATUS_TABLE_FINGERPRINT_NOT_AVAILABLE 0x5 #define AMT_STATUS_TABLE_FINGERPRINT_NOT_AVAILABLE 0x5 //The Integrity Check Value field of the request //message sent by Intel® AMT enabled device is invalid. #define PT_STATUS_INTEGRITY_CHECK_FAILED 0x6 #define AMT_STATUS_INTEGRITY_CHECK_FAILED 0x6 //The specified ISV version is not supported #define PT_STATUS_UNSUPPORTED_ISVS_VERSION 0x7 #define AMT_STATUS_UNSUPPORTED_ISVS_VERSION 0x7 //The specified queried application is not registered. #define PT_STATUS_APPLICATION_NOT_REGISTERED 0x8 #define AMT_STATUS_APPLICATION_NOT_REGISTERED 0x8 //Either an invalid name or a not previously registered //“Enterprise” name was specified #define PT_STATUS_INVALID_REGISTRATION_DATA 0x9 #define AMT_STATUS_INVALID_REGISTRATION_DATA 0x9 //The application handle provided in the request //message has never been allocated. #define PT_STATUS_APPLICATION_DOES_NOT_EXIST 0xA #define AMT_STATUS_APPLICATION_DOES_NOT_EXIST 0xA //The requested number of bytes cannot be allocated in ISV storage. #define PT_STATUS_NOT_ENOUGH_STORAGE 0xB #define AMT_STATUS_NOT_ENOUGH_STORAGE 0xB //The specified name is invalid. #define PT_STATUS_INVALID_NAME 0xC #define AMT_STATUS_INVALID_NAME 0xC //The specified block does not exist. #define PT_STATUS_BLOCK_DOES_NOT_EXIST 0xD #define AMT_STATUS_BLOCK_DOES_NOT_EXIST 0xD //The specified byte offset is invalid. #define PT_STATUS_INVALID_BYTE_OFFSET 0xE #define AMT_STATUS_INVALID_BYTE_OFFSET 0xE //The specified byte count is invalid. #define PT_STATUS_INVALID_BYTE_COUNT 0xF #define AMT_STATUS_INVALID_BYTE_COUNT 0xF //The requesting application is not //permitted to request execution of the specified operation. #define PT_STATUS_NOT_PERMITTED 0x10 #define AMT_STATUS_NOT_PERMITTED 0x10 //The requesting application is not the owner of the block //as required for the requested operation. #define PT_STATUS_NOT_OWNER 0x11 #define AMT_STATUS_NOT_OWNER 0x11 //The specified block is locked by another application. #define PT_STATUS_BLOCK_LOCKED_BY_OTHER 0x12 #define AMT_STATUS_BLOCK_LOCKED_BY_OTHER 0x12 //The specified block is not locked. #define PT_STATUS_BLOCK_NOT_LOCKED 0x13 #define AMT_STATUS_BLOCK_NOT_LOCKED 0x13 //The specified group permission bits are invalid. #define PT_STATUS_INVALID_GROUP_PERMISSIONS 0x14 #define AMT_STATUS_INVALID_GROUP_PERMISSIONS 0x14 //The specified group does not exist. #define PT_STATUS_GROUP_DOES_NOT_EXIST 0x15 #define AMT_STATUS_GROUP_DOES_NOT_EXIST 0x15 //The specified member count is invalid. #define PT_STATUS_INVALID_MEMBER_COUNT 0x16 #define AMT_STATUS_INVALID_MEMBER_COUNT 0x16 //The request cannot be satisfied because a maximum //limit associated with the request has been reached. #define PT_STATUS_MAX_LIMIT_REACHED 0x17 #define AMT_STATUS_MAX_LIMIT_REACHED 0x17 //specified key algorithm is invalid. #define PT_STATUS_INVALID_AUTH_TYPE 0x18 #define AMT_STATUS_INVALID_AUTH_TYPE 0x18 //Not Used #define PT_STATUS_AUTHENTICATION_FAILED 0x19 #define AMT_STATUS_AUTHENTICATION_FAILED 0x19 //The specified DHCP mode is invalid. #define PT_STATUS_INVALID_DHCP_MODE 0x1A #define AMT_STATUS_INVALID_DHCP_MODE 0x1A //The specified IP address is not a valid IP unicast address. #define PT_STATUS_INVALID_IP_ADDRESS 0x1B #define AMT_STATUS_INVALID_IP_ADDRESS 0x1B //The specified domain name is not a valid domain name. #define PT_STATUS_INVALID_DOMAIN_NAME 0x1C #define AMT_STATUS_INVALID_DOMAIN_NAME 0x1C //Not Used #define PT_STATUS_UNSUPPORTED_VERSION 0x1D #define AMT_STATUS_UNSUPPORTED_VERSION 0x1D //The requested operation cannot be performed because a //prerequisite request message has not been received. #define PT_STATUS_REQUEST_UNEXPECTED 0x1E #define AMT_STATUS_REQUEST_UNEXPECTED 0x1E //Not Used #define PT_STATUS_INVALID_TABLE_TYPE 0x1F #define AMT_STATUS_INVALID_TABLE_TYPE 0x1F //The specified provisioning mode code is undefined. #define PT_STATUS_INVALID_PROVISIONING_STATE 0x20 #define AMT_STATUS_INVALID_PROVISIONING_STATE 0x20 //Not Used #define PT_STATUS_UNSUPPORTED_OBJECT 0x21 #define AMT_STATUS_UNSUPPORTED_OBJECT 0x21 //The specified time was not accepted by the Intel® AMT device //since it is earlier than the baseline time set for the device. #define PT_STATUS_INVALID_TIME 0x22 #define AMT_STATUS_INVALID_TIME 0x22 //StartingIndex is invalid. #define PT_STATUS_INVALID_INDEX 0x23 #define AMT_STATUS_INVALID_INDEX 0x23 //A parameter is invalid. #define PT_STATUS_INVALID_PARAMETER 0x24 #define AMT_STATUS_INVALID_PARAMETER 0x24 //An invalid netmask was supplied //(a valid netmask is an IP address in which all ‘1’s are before //the ‘0’ – e.g. FFFC0000h is valid, FF0C0000h is invalid). #define PT_STATUS_INVALID_NETMASK 0x25 #define AMT_STATUS_INVALID_NETMASK 0x25 //The operation failed because the Flash wear-out //protection mechanism prevented a write to an NVRAM sector. #define PT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED 0x26 #define AMT_STATUS_FLASH_WRITE_LIMIT_EXCEEDED 0x26 //ME FW did not receive the entire image file. #define PT_STATUS_INVALID_IMAGE_LENGTH 0x27 #define AMT_STATUS_INVALID_IMAGE_LENGTH 0x27 //ME FW received an image file with an invalid signature. #define PT_STATUS_INVALID_IMAGE_SIGNATURE 0x28 #define AMT_STATUS_INVALID_IMAGE_SIGNATURE 0x28 //LME can not support the requested version. #define PT_STATUS_PROPOSE_ANOTHER_VERSION 0x29 #define AMT_STATUS_PROPOSE_ANOTHER_VERSION 0x29 //The PID must be a 64 bit quantity made up of ASCII codes //of some combination of 8 characters – //capital alphabets (A–Z), and numbers (0–9). #define PT_STATUS_INVALID_PID_FORMAT 0x2A #define AMT_STATUS_INVALID_PID_FORMAT 0x2A //The PID must be a 256 bit quantity made up of ASCII codes //of some combination of 8 characters – //capital alphabets (A–Z), and numbers (0–9). #define PT_STATUS_INVALID_PPS_FORMAT 0x2B #define AMT_STATUS_INVALID_PPS_FORMAT 0x2B //Full BIST test has been blocked #define PT_STATUS_BIST_COMMAND_BLOCKED 0x2C #define AMT_STATUS_BIST_COMMAND_BLOCKED 0x2C //A TCP/IP connection could not be opened on with the selected port. #define PT_STATUS_CONNECTION_FAILED 0x2D #define AMT_STATUS_CONNECTION_FAILED 0x2D //Max number of connection reached. //LME can not open the requested connection. #define PT_STATUS_CONNECTION_TOO_MANY 0x2E #define AMT_STATUS_CONNECTION_TOO_MANY 0x2E // A process rng generation started. #define AMT_STATUS_RNG_GENERATION_IN_PROGRESS 0x002F //rng doesn't exist #define AMT_STATUS_RNG_NOT_READY 0x0030 //Certificate doesn't exist #define AMT_STATUS_CERTIFICATE_NOT_READY 0x0031 //This code establishes a dividing line between //status codes which are common to host interface and //network interface and status codes which are used by //network interface only. #define PT_STATUS_NETWORK_IF_ERROR_BASE 0x800 #define AMT_STATUS_NETWORK_IF_ERROR_BASE 0x800 //The OEM number specified in the remote control //command is not supported by the Intel® AMT device #define PT_STATUS_UNSUPPORTED_OEM_NUMBER 0x801 #define AMT_STATUS_UNSUPPORTED_OEM_NUMBER 0x801 //The boot option specified in the remote control command //is not supported by the Intel® AMT device #define PT_STATUS_UNSUPPORTED_BOOT_OPTION 0x802 #define AMT_STATUS_UNSUPPORTED_BOOT_OPTION 0x802 //The command specified in the remote control command //is not supported by the Intel® AMT device #define PT_STATUS_INVALID_COMMAND 0x803 #define AMT_STATUS_INVALID_COMMAND 0x803 //The special command specified in the remote control command //is not supported by the Intel® AMT device #define PT_STATUS_INVALID_SPECIAL_COMMAND 0x804 #define AMT_STATUS_INVALID_SPECIAL_COMMAND 0x804 //The handle specified in the command is invalid #define PT_STATUS_INVALID_HANDLE 0x805 #define AMT_STATUS_INVALID_HANDLE 0x805 //The password specified in the User ACL is invalid #define PT_STATUS_INVALID_PASSWORD 0x806 #define AMT_STATUS_INVALID_PASSWORD 0x806 //The realm specified in the User ACL is invalid #define PT_STATUS_INVALID_REALM 0x807 #define AMT_STATUS_INVALID_REALM 0x807 //The FPACL or EACL entry is used by an active //registration and cannot be removed or modified. #define PT_STATUS_STORAGE_ACL_ENTRY_IN_USE 0x808 #define AMT_STATUS_STORAGE_ACL_ENTRY_IN_USE 0x808 //Essential data is missing on CommitChanges command. #define PT_STATUS_DATA_MISSING 0x809 #define AMT_STATUS_DATA_MISSING 0x809 //The parameter specified is a duplicate of an existing value. //Returned for a case where duplicate entries are added to FPACL //(Factory Partner Allocation Control List) or EACL //(Enterprise Access Control List) lists. #define PT_STATUS_DUPLICATE 0x80A #define AMT_STATUS_DUPLICATE 0x80A //Event Log operation failed due to the current freeze status of the log. #define PT_STATUS_EVENTLOG_FROZEN 0x80B #define AMT_STATUS_EVENTLOG_FROZEN 0x80B //The device is missing private key material. #define PT_STATUS_PKI_MISSING_KEYS 0x80C #define AMT_STATUS_PKI_MISSING_KEYS 0x80C //The device is currently generating a keypair. //Caller may try repeating this operation at a later time. #define PT_STATUS_PKI_GENERATING_KEYS 0x80D #define AMT_STATUS_PKI_GENERATING_KEYS 0x80D //An invalid Key was entered. #define PT_STATUS_INVALID_KEY 0x80E #define AMT_STATUS_INVALID_KEY 0x80E //An invalid X.509 certificate was entered. #define PT_STATUS_INVALID_CERT 0x80F #define AMT_STATUS_INVALID_CERT 0x80F //Certificate Chain and Private Key do not match. #define PT_STATUS_CERT_KEY_NOT_MATCH 0x810 #define AMT_STATUS_CERT_KEY_NOT_MATCH 0x810 //The request cannot be satisfied because the maximum //number of allowed Kerberos domains has been reached. //(The domain is determined by the first 24 Bytes of the SID.) #define PT_STATUS_MAX_KERB_DOMAIN_REACHED 0x811 #define AMT_STATUS_MAX_KERB_DOMAIN_REACHED 0x811 // The requested configuration is unsupported #define PT_STATUS_UNSUPPORTED 0x812 #define AMT_STATUS_UNSUPPORTED 0x812 // A profile with the requested priority already exists #define PT_STATUS_INVALID_PRIORITY 0x813 #define AMT_STATUS_INVALID_PRIORITY 0x813 // Unable to find specified element #define PT_STATUS_NOT_FOUND 0x814 #define AMT_STATUS_NOT_FOUND 0x814 // Invalid User credentials #define PT_STATUS_INVALID_CREDENTIALS 0x815 #define AMT_STATUS_INVALID_CREDENTIALS 0x815 // Passphrase is invalid #define PT_STATUS_INVALID_PASSPHRASE 0x816 #define AMT_STATUS_INVALID_PASSPHRASE 0x816 //The application has identified an internal error #define PTSDK_STATUS_INTERNAL_ERROR 0x1000 //An ISV operation was called while the library is not //initialized #define PTSDK_STATUS_NOT_INITIALIZED 0x1001 //The requested library I/F is not supported by the current library //implementation. #define PTSDK_STATUS_LIB_VERSION_UNSUPPORTED 0x1002 //One of the parameters is invalid (usually indicates a //NULL pointer or an invalid session handle is specified) #define PTSDK_STATUS_INVALID_PARAM 0x1003 //The SDK could not allocate sufficient resources to complete the operation. #define PTSDK_STATUS_RESOURCES 0x1004 //The Library has identified a HW Internal error. #define PTSDK_STATUS_HARDWARE_ACCESS_ERROR 0x1005 //The application that sent the request message is not registered. //Usually indicates the registration timeout has elapsed. //The caller should reregister with the Intel AMT enabled device. #define PTSDK_STATUS_REQUESTOR_NOT_REGISTERED 0x1006 //A network error has occurred while processing the call. #define PTSDK_STATUS_NETWORK_ERROR 0x1007 //Specified container can not hold the requested string #define PTSDK_STATUS_PARAM_BUFFER_TOO_SHORT 0x1008 //For Windows only. //ISVS_InitializeCOMinThread was not called by the current thread. #define PTSDK_STATUS_COM_NOT_INITIALIZED_IN_THREAD 0x1009 //The URL parameter was not optional in current configuration. #define PTSDK_STATUS_URL_REQUIRED 0x100A #endif UNS-3.2.0.24/AMTStatus/AMTStatusThread.cpp0000644012402100775320000001571310746077316021033 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "AMTStatusThread.h" #include "UNSEventLogger.h" #include "UNSConfig.h" #ifdef _WIN32 #include "heci/Windows/PTHICommand.h" #else #include "heci/Linux/PTHICommand.h" #endif #include "StatusCodeDefinitions.h" #include #include using namespace std; const unsigned long AMTStatusThread::DEFAULT_CHECK_AMT_STATUS_TIMEOUT = 10 * SECOND; const unsigned long AMTStatusThread::HECI_DOWNTIME_ON_RESUME = 10 * SECOND; // Constructor AMTStatusThread::AMTStatusThread(UNSEventLogger *pLogger /*= NULL*/) : PeriodicActionThread("AMTStatusCheck", DEFAULT_CHECK_AMT_STATUS_TIMEOUT, HECI_DOWNTIME_ON_RESUME) { m_pLogger = pLogger; m_nNumPollsDisabled = 0; m_State = INITIAL_STATE; } //Destructor AMTStatusThread::~AMTStatusThread() { m_AMTStatus.close(); } // Initialize this thread with a given action interval time. bool AMTStatusThread::init(const UNSConfig &Config) { m_UNSConfig = Config; m_AMTStatus.init(true); setActionInterval(m_UNSConfig.CheckAMTStatusTimeout()); if (!m_AMTStatus.isOk()) { stringstream ss; ss << "IPCAMTStatus object is not ok: last error=" << m_AMTStatus.lastError(); if (m_pLogger) m_pLogger->ErrorLog(ss.str().c_str()); } return true; } bool AMTStatusThread::IsAMTEnabledByHECI(bool bLogging /*= false*/) { #ifdef _DEBUG //In debug mode, we just return the enablement that was set in the configuration. if (m_UNSConfig.debugMode()) return m_UNSConfig.debugModeAMTEnabled(); #endif PTHICommand pthiCommand; AMT_PROVISIONING_STATE provisioningState; bool bAMTEnabled = false; if (!pthiCommand.PTHIClient.Init()) { debugLog("Could not initialize PTHI client"); return bAMTEnabled; } if (pthiCommand.GetProvisioningState(&provisioningState) == AMT_STATUS_SUCCESS) { if (provisioningState == PROVISIONING_STATE_IN || provisioningState == PROVISIONING_STATE_POST) { debugLog("Got status from HECI: AMT is IN/POST provisioning"); bAMTEnabled = true; } else { debugLog("Got status from HECI: AMT is PRE provisioning"); } } else { debugLog("Got status from HECI: HECI command failed."); //If pthi command failed, because HECI could not be talked to, it is assumed //that AMT is disabled. if (bLogging && m_pLogger) m_pLogger->HECICommandFailedError(); } pthiCommand.PTHIClient.Deinit(); return bAMTEnabled; } void AMTStatusThread::debugLog(const char *msg) { if (m_pLogger && m_UNSConfig.TraceLogEnabled()) m_pLogger->DebugLog(msg); } AMTStatusThread::State AMTStatusThread::SetAMTEnabled(bool bEnabled, bool bLogging /*= false*/) { if (!m_AMTStatus.SetEnablement(bEnabled ? IPCAMTStatus::STATUS_ENABLED : IPCAMTStatus::STATUS_DISABLED)) { if (bLogging && m_pLogger) m_pLogger->SetAMTStatusFailedError(); } stringstream ss; ss << "Setting AMT status: " << (bEnabled ? "Enabled" : "Disabled"); debugLog(ss.str().c_str()); return bEnabled ? ENABLED_STATE : DISABLED_STATE; } void AMTStatusThread::action() { switch (m_State) { case INITIAL_STATE: m_State = OnInitialState(); break; case ENABLED_STATE: m_State = OnEnabledState(); break; case POSSIBLY_DISABLED_STATE: m_State = OnPossiblyDisabledState(); break; case DISABLED_STATE: m_State = OnDisabledState(); break; } } void AMTStatusThread::cleanup() { } AMTStatusThread::State AMTStatusThread::OnInitialState() { if (IsAMTEnabledByHECI(true)) //Do this call with logging { return SetAMTEnabled(true, true); //Do this call with logging } else { return SetAMTEnabled(false, true); //Do this call with logging } } AMTStatusThread::State AMTStatusThread::OnEnabledState() { if (IsAMTEnabledByHECI()) { return ENABLED_STATE; } else { m_nNumPollsDisabled = 1; //We got "disabled" status from HECI once. return OnPossiblyDisabledState(false); } } AMTStatusThread::State AMTStatusThread::OnPossiblyDisabledState(bool bNeedCheck /*=true*/) { //bNeedCheck tells us if we need to check the status by HECI. When it's false, //the status received from HECI is assumed to be disabled. if (bNeedCheck && IsAMTEnabledByHECI()) { return SetAMTEnabled(true); } else { if (m_nNumPollsDisabled++ == m_UNSConfig.NumPollsForDisabled()) { //We reached the threshold for setting "disabled" status. stringstream ss; ss << "Got 'disabled' status from HECI " << (m_nNumPollsDisabled-1) << " times." << " Setting AMT status to 'disabled'."; debugLog(ss.str().c_str()); return SetAMTEnabled(false); } else { //We haven't reached the threshold yet. stringstream ss; ss << "Got 'disabled' status from HECI " << (m_nNumPollsDisabled-1) << " times." << " Still not changing AMT status to 'disabled'."; debugLog(ss.str().c_str()); return POSSIBLY_DISABLED_STATE; } } } AMTStatusThread::State AMTStatusThread::OnDisabledState() { if (IsAMTEnabledByHECI()) { return SetAMTEnabled(true); } else { return DISABLED_STATE; } } UNS-3.2.0.24/AMTStatus/AMTStatusThread.h0000644012402100775320000000663110746077316020477 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _AMT_STATUS_THREAD_H #define _AMT_STATUS_THREAD_H #include "PeriodicActionThread.h" #include "IPCAMTStatus.h" #include "UNSConfig.h" class UNSConfig; class UNSEventLogger; class AMTStatusThread : public PeriodicActionThread { public: // Constructor AMTStatusThread(UNSEventLogger *pLogger = NULL); virtual ~AMTStatusThread(); // Initialize this thread with a given action interval time. bool init(const UNSConfig &UNSConfig); // Set a pointer to the Logger. void SetLogger(UNSEventLogger *pLogger) {m_pLogger = pLogger;} protected: // The periodic action virtual void action(); // cleanup function - called when action is stopped virtual void cleanup(); private: static const unsigned long DEFAULT_CHECK_AMT_STATUS_TIMEOUT; static const unsigned long HECI_DOWNTIME_ON_RESUME; enum State {INITIAL_STATE, ENABLED_STATE, POSSIBLY_DISABLED_STATE, DISABLED_STATE}; void debugLog(const char *msg); bool IsAMTEnabledByHECI(bool bLogging = false); State SetAMTEnabled(bool bEnabled, bool bLogging = false); State OnInitialState(); State OnEnabledState(); State OnPossiblyDisabledState(bool bNeedCheck = true); State OnDisabledState(); State m_State; unsigned long m_nNumPollsDisabled; UNSConfig m_UNSConfig; UNSEventLogger *m_pLogger; IPCAMTStatus m_AMTStatus; }; #endif //_AMT_STATUS_THREAD_H UNS-3.2.0.24/AMTStatus/IPCAMTStatus.cpp0000644012402100775320000001742610746077316020242 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //***************************************************************************** // // Class: IPCAMTStatus // // Description: IPCAMTStatus is an object that holds the status of AMT, and // this status can be shared across processes. When creating the // object, you must specify whether you are the server or client // of this status - being the server means you create the status // and only write to it, and being a client means you connect // to an existing status and only read from it. // After initialization, you should use isOk() and lastError() // to check the error status of the object. //***************************************************************************** #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "IPCAMTStatus.h" #ifdef _WIN32 const char* IPCAMTStatus::BUF_NAME = "Global\\AMTStatus"; #else const char* IPCAMTStatus::BUF_NAME = "/usr/share/AMTStatus"; #endif const unsigned int IPCAMTStatus::BUF_SIZE = 512; const unsigned long IPCAMTStatus::TYPE_ENABLEMENT_ONLY = 0; //default ctor: must use init() afterwards IPCAMTStatus::IPCAMTStatus() { m_bWriteOk = true; m_bServer = false; #ifndef _WIN32 m_shmReconnect = false; #endif } /* ctor: initialize this object. Arguments: bServer - specify whether this object should create the status, or just try to open an existing one.*/ IPCAMTStatus::IPCAMTStatus(bool bServer) { init(bServer); } bool IPCAMTStatus::init(bool bServer) { m_bServer = bServer; //Initializing the IPC buffer if (!shmInit()) { return false; } m_bWriteOk = true; if (m_bServer) { //If we are the server, we need to prepare the status struct in the shared //memory. Status status; status.header.dwType = TYPE_ENABLEMENT_ONLY; status.header.dwBodyLength = sizeof(status.body.enablementOnly); status.body.enablementOnly.enablement = STATUS_UNKNOWN; m_bWriteOk = writeStatus(status); if (!m_bWriteOk) { return false; } #ifndef _WIN32 if (m_shmReconnect) { //reconnect is for clients only m_shmReconnect = false; } #endif } #ifndef _WIN32 if (m_shmReconnect) { m_IPCBuffer.shmDisconnect(); } #endif return true; } //Initialize the IPC buffer bool IPCAMTStatus::shmInit() { unsigned long nAccessType = IPCBuffer::IPC_BUF_ACCESS_READ; //Server can read/write, client can only read. if (m_bServer) { nAccessType |= IPCBuffer::IPC_BUF_ACCESS_WRITE; } //Initializing the IPC buffer if (!m_IPCBuffer.init(BUF_NAME, m_bServer, BUF_SIZE, true, nAccessType)) { return false; } return true; } void IPCAMTStatus::close() { if (m_bServer) { _SetEnablement(STATUS_UNKNOWN); } m_IPCBuffer.close(); } /*return the error code of the last error*/ unsigned long IPCAMTStatus::lastError() const { return m_IPCBuffer.lastError(); } /*returns true if this object is ok (no errors).*/ bool IPCAMTStatus::isOk() const { return m_IPCBuffer.isOk() && m_bWriteOk; } #ifndef _WIN32 /*set option - reconnect for each shared memory access */ void IPCAMTStatus::setShmReconnect(bool reconnect) { if (!m_bServer) { m_shmReconnect = reconnect; if (!m_shmReconnect) { m_IPCBuffer.shmConnect(); } } } #endif /* Set the status of this object. Arguments: status - the status to set Return value: true on success, false on failure.*/ bool IPCAMTStatus::SetEnablement(Enablement enablement) { #ifndef _WIN32 if (m_shmReconnect) { if (!m_IPCBuffer.shmConnect()) { if (!shmInit()) { return false; } } } #endif bool result = _SetEnablement(enablement); #ifndef _WIN32 if (m_shmReconnect) { m_IPCBuffer.shmDisconnect(); } #endif return result; } /* Set the status of this object. Arguments: status - the status to set Return value: true on success, false on failure.*/ bool IPCAMTStatus::_SetEnablement(Enablement enablement) { Status status; if (!readStatus(status)) { return false; } switch (status.header.dwType) { case TYPE_ENABLEMENT_ONLY: status.body.enablementOnly.enablement = enablement; break; default: //unknown type return false; } if (!writeStatus(status)) { return false; } return true; } /* Get the status of this object. Return value: STATUS_DISABLED or STATUS_ENABLED on success, STATUS_UNKNOWN on failure. */ IPCAMTStatus::Enablement IPCAMTStatus::GetEnablement() { #ifndef _WIN32 if (m_shmReconnect) { if (!m_IPCBuffer.shmConnect()) { if (!shmInit()) { return STATUS_UNKNOWN; } } } #endif Enablement result = _GetEnablement(); #ifndef _WIN32 if (m_shmReconnect) { m_IPCBuffer.shmDisconnect(); } #endif return result; } /* Get the status of this object. Return value: STATUS_DISABLED or STATUS_ENABLED on success, STATUS_UNKNOWN on failure. */ IPCAMTStatus::Enablement IPCAMTStatus::_GetEnablement() const { Status status; if (!readStatus(status)) { return STATUS_UNKNOWN; } switch (status.header.dwType) { case TYPE_ENABLEMENT_ONLY: return status.body.enablementOnly.enablement; default: //unknown type return STATUS_UNKNOWN; } } bool IPCAMTStatus::writeStatus(const Status& status) { unsigned int nOffset = 0; //write header if (!m_IPCBuffer.write(nOffset, &status.header, sizeof(status.header))) { return false; } nOffset += sizeof(status.header); //write body if (!m_IPCBuffer.write(nOffset, &status.body, status.header.dwBodyLength)) { return false; } return true; } bool IPCAMTStatus::readStatus(Status& status) const { unsigned int nOffset = 0; //read header if (!m_IPCBuffer.read(nOffset, &status.header, sizeof(status.header))) { return false; } nOffset += sizeof(status.header); //read body if (!m_IPCBuffer.read(nOffset, &status.body, status.header.dwBodyLength)) { return false; } return true; } UNS-3.2.0.24/AMTStatus/IPCAMTStatus.h0000644012402100775320000001136310746077316017701 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _IPC_AMT_STATUS_H #define _IPC_AMT_STATUS_H #ifdef _WIN32 #include #endif #include "IPCBuffer.h" //***************************************************************************** // // Class: IPCAMTStatus // Description: IPCAMTStatus is an object that holds the status of AMT, and // this status can be shared across processes. When creating the // object, you must specify whether you are the server or client // of this status - being the server means you create the status // and only write to it, and being a client means you connect // to an existing status and only read from it. // After initialization, you should use isOk() and lastError() // to check the error status of the object. //***************************************************************************** class IPCAMTStatus { public: //\En*a"ble*ment\, n. The act of enabling, or the state of being enabled; ability. --Bacon enum Enablement {STATUS_DISABLED, STATUS_ENABLED, STATUS_UNKNOWN}; //default ctor: must use init() afterwards IPCAMTStatus(); //ctor IPCAMTStatus(bool bServer); //initialize this object after it was created bool init(bool bServer); //release resources void close(); //get error code of last error unsigned long lastError() const; //is this IPCAMTStatus object ok (no errors) bool isOk() const; #ifndef _WIN32 //enable/disable connecting to shm before each shared memory access void setShmReconnect(bool reconnect); #endif //was this object properly written to shared memory, in case it's a server. //If it isn't, writeOk() returns true always. bool writeOk() const {return m_bWriteOk;} //set the enablement. returns false on failure. bool SetEnablement(Enablement status); //get the enablement. returns STATUS_UNKNOWN on failure. Enablement GetEnablement(); private: static const char* BUF_NAME; static const unsigned int BUF_SIZE; static const unsigned long TYPE_ENABLEMENT_ONLY; IPCBuffer m_IPCBuffer; bool m_bWriteOk; bool m_bServer; #ifndef _WIN32 bool m_shmReconnect; #endif struct Status { struct Header { unsigned long dwType; unsigned long dwBodyLength; } header; union StatusBody { struct EnablementOnly { Enablement enablement; } enablementOnly; } body; }; //set the enablement. returns false on failure. bool _SetEnablement(Enablement status); //get the enablement. returns STATUS_UNKNOWN on failure. Enablement _GetEnablement() const; bool writeStatus(const Status& status); bool readStatus(Status& status) const; bool shmInit(); }; #endif //_IPC_AMT_STATUS_H UNS-3.2.0.24/AMTStatus/IPCBuffer.h0000644012402100775320000001202010746077316017254 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _IPC_BUFFER_H #define _IPC_BUFFER_H //***************************************************************************** // // Class: IPCBuffer // Description: IPCBuffer is a class that provides a section of named shared // memory, to be shared between processes. The bIsOwner // parameter of the ctor determines whether or not the object is // the one that creates the shared memory (server), or just uses // it (client) after it was created. Use isOk() and lastError() // after construction to check for errors. // The object may also me secure, in which case only the owner of the // buffer can change it. To make the object secure, set the // bSecure parameter of the ctor to true. //***************************************************************************** #ifdef _WIN32 #include //for HANDLE #else #include //for key_t #endif class IPCBuffer { public: static const unsigned long IPC_BUF_ACCESS_READ; static const unsigned long IPC_BUF_ACCESS_WRITE; //default ctor: must use init() afterwards IPCBuffer(); //ctor IPCBuffer(const char* pName, bool bIsOwner, unsigned int nSize, bool bSecure, unsigned long nAccess = IPC_BUF_ACCESS_READ | IPC_BUF_ACCESS_WRITE); //initialize this buffer after it was created. bool init(const char* pName, bool bIsOwner, unsigned int nSize, bool bSecure, unsigned long nAccess = IPC_BUF_ACCESS_READ | IPC_BUF_ACCESS_WRITE); //free resources allocated by IPC Buffer void close(); //dtor ~IPCBuffer(); #ifndef _WIN32 //connect to shared memory bool shmConnect(); //disconnect from shared memory void shmDisconnect(); #endif //get name of this IPCBuffer const char* name() const {return m_pName;} //returns true if this object is the owner of the shared memory bool isOwner() const {return m_bIsOwner;} //safely read data from the buffer bool read(unsigned int nOffset, void *pDest, unsigned int nSize) const; //safely write data to the buffer bool write(unsigned int nOffset, const void *pSource, unsigned int nSize); //returns the size of the buffer unsigned int size() const {return m_nSize;} //returns the code of the last error that occurred in this object unsigned long lastError() const {return m_nLastError;} //returns true iff this object had no errors since it was created bool isOk() const {return (m_nLastError == SUCCESS);} private: static const unsigned int SUCCESS; void reset(); const char* m_pName; bool m_bIsOwner; char *m_pData; unsigned int m_nSize; unsigned long m_nLastError; unsigned long m_nAccess; #ifdef _WIN32 HANDLE CreateSecurableFileMapping(bool bSecure); HANDLE m_hMapFile; #else int m_shmid; key_t m_key; int m_shmget_flag; int m_shmat_flag; static const char PROJ; #define SHM_MARKER_RESERVED_BYTES 8 char m_marker[SHM_MARKER_RESERVED_BYTES]; #endif }; #endif //_IPC_BUFFER_H UNS-3.2.0.24/AMTStatus/IPCBufferLinux.cpp0000644012402100775320000002261710746077316020644 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //***************************************************************************** // // Class: IPCBuffer // // Description: IPCBuffer is a class that provides a section of named shared // memory, to be shared between processes. The bIsOwner // parameter of the ctor determines whether or not the object is // the one that creates the shared memory (server), or just uses // it (client) after it was created. Use isOk() and lastError() // after construction to check for errors. // The object may also me secure, in which case only the owner of the // buffer can change it. To make the object secure, set the // bSecure parameter of the ctor to true. //***************************************************************************** #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "IPCBuffer.h" #include #include #include #include #include #include #include #include #include #define FAIL -1 const unsigned long IPCBuffer::IPC_BUF_ACCESS_READ = 1; const unsigned long IPCBuffer::IPC_BUF_ACCESS_WRITE = 2; const char IPCBuffer::PROJ = '#'; //Pre-defined value for proj parameter of ftok() const unsigned int IPCBuffer::SUCCESS = 0; //default ctor: must use init() afterwards IPCBuffer::IPCBuffer() { reset(); } void IPCBuffer::reset() { m_pName = NULL; m_bIsOwner = false; m_pData = NULL; m_nSize = 0; m_nAccess = 0; m_shmid = FAIL; m_nLastError = SUCCESS; m_shmget_flag = 0; m_shmat_flag = 0; m_key = 0; memcpy(m_marker, "INTELAMT_________________________________", SHM_MARKER_RESERVED_BYTES); } /* ctor: initialize this IPCBuffer. arguments: pName - Pointer to name of shared memory, to be used by all processes that access it. The pointed name must be available until the object is destroyed. bIsOwner - determines whether this object should try to create the shared memory, or just open it when it already exists. nSize - required buffer size to allocate. bSecure - Should this buffer be secure, meaning that the OS will enforce that only the owner can change it. nAccess - required access to shared memory. Can be IPC_BUF_ACCESS_READ, IPC_BUF_ACCESS_WRITE, or a combination of both with bitwise OR. */ IPCBuffer::IPCBuffer(const char* pName, bool bIsOwner, unsigned int nSize, bool bSecure, unsigned long nAccess /*= IPC_BUF_ACCESS_READ | IPC_BUF_ACCESS_WRITE*/) { init(pName, bIsOwner, nSize, bSecure, nAccess); } //initialize this buffer after it was created. bool IPCBuffer::init(const char* pName, bool bIsOwner, unsigned int nSize, bool bSecure, unsigned long nAccess /*= IPC_BUF_ACCESS_READ | IPC_BUF_ACCESS_WRITE*/) { char *pmp; int i; int open_flag = 0; int open_mode = 0; close(); reset(); m_pName = pName; m_bIsOwner = bIsOwner; m_nSize = nSize; m_nAccess = nAccess; if (m_bIsOwner) { //Create file (to be used for the shared memory NAME ONLY). open_flag = O_CREAT | O_TRUNC | O_WRONLY; //give read+write permission to owner, read only to group and others. open_mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; //Create the shared memory, give read+write permission to owner, read only //to group and others. m_shmget_flag = IPC_CREAT | IPC_EXCL | open_mode; if (!bSecure) { //If the buffer is not secure, group and others can write to it m_shmget_flag |= (S_IWGRP | S_IWOTH); } } else { open_flag = O_RDONLY; //Open existing file if (nAccess == IPC_BUF_ACCESS_READ) { m_shmat_flag = SHM_RDONLY; //Read only access. } } int fd = open(m_pName, open_flag, open_mode); if (fd == FAIL) { m_nLastError = errno; return false; } ::close(fd); pmp = strrchr(m_pName, '/'); if (NULL == pmp) { pmp = (char *)m_pName; } for (i = 0; ((pmp) && (pmp[i]) && (i < SHM_MARKER_RESERVED_BYTES)); i++) { m_marker[i] = pmp[i]; } m_key = ftok(m_pName, PROJ); if (m_key == FAIL) { m_nLastError = errno; return false; } return shmConnect(); } //connect to shared memory bool IPCBuffer::shmConnect() { if (m_pData) { //already connected return true; } m_shmid = shmget(m_key, m_nSize, m_shmget_flag); if (m_shmid == FAIL) { m_nLastError = errno; if ((m_bIsOwner) && (EEXIST == m_nLastError)) { m_shmid = shmget(m_key, m_nSize, m_shmget_flag & ~(IPC_CREAT | IPC_EXCL)); if (m_shmid == FAIL) { return false; } m_pData = (char*)shmat(m_shmid, NULL, m_shmat_flag); if (m_pData == (char*)FAIL) { m_pData = NULL; m_shmid = FAIL; return false; } if (0 != memcmp(m_pData, m_marker, SHM_MARKER_RESERVED_BYTES)) { shmdt(m_pData); m_pData = NULL; m_shmid = FAIL; return false; } m_nLastError = 0; } else { return false; } } else { m_pData = (char*)shmat(m_shmid, NULL, m_shmat_flag); if (m_pData == (char*)FAIL) { m_pData = NULL; m_nLastError = errno; return false; } if (m_bIsOwner) { memcpy(m_pData, m_marker, SHM_MARKER_RESERVED_BYTES); } else if (0 != memcmp(m_pData, m_marker, SHM_MARKER_RESERVED_BYTES)) { shmdt(m_pData); m_pData = NULL; m_shmid = FAIL; m_nLastError = ENOENT; return false; } } return true; } //disconnect from shared memory void IPCBuffer::shmDisconnect() { if (m_pData) { //Detach shared memory shmdt(m_pData); m_pData = NULL; } } //free resources allocated by IPC Buffer void IPCBuffer::close() { shmDisconnect(); if (m_bIsOwner) { if (m_shmid != FAIL) { //Owner must remove the shared memory when done with it. shmctl(m_shmid, IPC_RMID, NULL); m_shmid = FAIL; } remove(m_pName); } } //dtor IPCBuffer::~IPCBuffer() { close(); } /* Safely read data from the buffer. Arguments: nOffset - offset (in bytes) in IPCBuffer to start reading from pDest - destination buffer that will hold the data we read nSize - number of bytes to read Return value: true on success, false on failure. */ bool IPCBuffer::read(unsigned int nOffset, void *pDest, unsigned int nSize) const { if (! (m_nAccess & IPC_BUF_ACCESS_READ)) { return false; //read not allowed } if (!isOk() || (m_pData == NULL)) { return false; } if ((nOffset + SHM_MARKER_RESERVED_BYTES + nSize > m_nSize) || (nOffset + SHM_MARKER_RESERVED_BYTES + nSize < nSize) || (nOffset + SHM_MARKER_RESERVED_BYTES + nSize < nOffset) || (pDest == NULL)) return false; memcpy(pDest, m_pData + SHM_MARKER_RESERVED_BYTES + nOffset, nSize); return true; } /* Safely write data to the buffer. Arguments: nOffset - offset (in bytes) in IPCBuffer to start writing to. pSource - Source buffer that holds the data to write. nSize - number of bytes to write. Return value: true on success, false on failure. */ bool IPCBuffer::write(unsigned int nOffset, const void *pSource, unsigned int nSize) { if (! (m_nAccess & IPC_BUF_ACCESS_WRITE)) { return false; //write not allowed } if (!isOk() || (m_pData == NULL)) { return false; } if ((nOffset + SHM_MARKER_RESERVED_BYTES + nSize > m_nSize) || (nOffset + SHM_MARKER_RESERVED_BYTES + nSize < nSize) || (nOffset + SHM_MARKER_RESERVED_BYTES + nSize < nOffset) || (pSource == NULL)) { return false; } memcpy(m_pData + SHM_MARKER_RESERVED_BYTES + nOffset, pSource, nSize); return true; } UNS-3.2.0.24/UserNotificationServiceLinux.h0000644012402100775320000001020310746077316021511 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //***************************************************************************** // // Class: UserNotificationServiceLinux // Date created: 10 Feb 2007 // Description: The main class of the service. // //***************************************************************************** #ifndef _USER_NOTIFICATION_SERVICE_H #define _USER_NOTIFICATION_SERVICE_H #include "UNSStatus.h" #include "UNSEventLogger.h" #include "UserNotificationThread.h" #include "Credentials.h" #include "PostureRetrievalThread.h" #include "AMTStatusThread.h" #define BACKLOG (100) // Max. request backlog #define UNS_WAIT_TIME 5000 // Recover wait time. class UserNotificationService { public: UserNotificationService(); virtual ~UserNotificationService(void); // initialize logger void InitLogger(); // disable logger void DeinitLogger(); // Perform initialization tasks. unsigned long ServiceInitialization(unsigned long argc, const char **argv, unsigned long *specificError); // Set credentials from command line unsigned long SetCredentialsMode(unsigned long argc, const char **argv, unsigned long *specificError); // Parse Argument unsigned long ParseArguments( int argc, const char **argv, Credentials **unsCreds, Credentials **eacCreds); unsigned long UpdateRegistry(int argc, const char **argv); // Listen to incoming connections and process them. unsigned long Start(); // Stop the service. void Stop(); // Suspend the service. void Suspend(); // Resume the service. void Resume(); #ifdef _DEBUG void setClientIP(const string &clip); void setServerIP(const string &svip); #endif private: // Stop the service. void InternalStop(); // Data members. UNSEventLogger *m_Logger; // Used to log events. PostureRetrievalThread m_PostureRetreivalThread; // The NAC thread. UserNotificationThread m_UserNotificationThread; // The UNS thread AMTStatusThread m_AMTStatusThread; // The AMTStatus thread. bool m_init; Semaphore m_StopSemaphore; }; #endif UNS-3.2.0.24/UserNotificationThread.cpp0000644012402100775320000002275610746077316020653 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ /////////////////////////////////////////////////////////////////////////////// // // Class: UserNotificationThread // Description: This class is the thread that does the actual User Notification // work, i.e. it subscribing AMT for recieving events and waiting // for events to come. // /////////////////////////////////////////////////////////////////////////////// #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "UserNotificationThread.h" #include "Credentials.h" #include "AMTPPSharedData.h" #include "AMTPPDefs.h" #include "UNSEventLogger.h" #include "PTHICommand.h" // Set the static constants values. const char * UserNotificationThread::IP_LOCALHOST = "127.0.0.1"; const unsigned long UserNotificationThread::DEFAULT_CLIENT_INTERVAL = 10 * SECOND; const unsigned long UserNotificationThread::DEFAULT_BIND_INTERVAL = 5 * SECOND; const unsigned long UserNotificationThread::HECI_DOWNTIME_ON_RESUME = 10 * SECOND; const unsigned long UserNotificationThread::UNS_PROV_WAIT_TIME = 1 * MINUTE; //***************************************************************************** // Name : UserNotificationThread // Description : Constructor //***************************************************************************** UserNotificationThread::UserNotificationThread(UNSEventLogger *pLogger/*=NULL*/) : PeriodicActionThread("UserNotification", DEFAULT_CLIENT_INTERVAL, HECI_DOWNTIME_ON_RESUME) { m_clientIP = IP_LOCALHOST; //default client ip is local host - 127.0.0.1 m_serverIP = IP_LOCALHOST; //default server ip is local host - 127.0.0.1 // Set the logger for client and server. m_pLogger = pLogger; m_client.SetLogger(pLogger); m_server.SetLogger(pLogger); // The first state is SERVER_BIND_STATE, no delay is needed here. m_State = SERVER_BIND_STATE; setActionInterval(0); // Generate credentials. m_client.GenerateCredentials(); // Generate credentials for soap server. m_server.SetCredentials(m_client.GetUserid(), m_client.GetPasswd()); } //***************************************************************************** // Name : UserNotificationThread // Description : Destructor //***************************************************************************** UserNotificationThread::~UserNotificationThread() { } void UserNotificationThread::SetLogger(UNSEventLogger *pLogger) { m_pLogger = pLogger; m_client.SetLogger(pLogger); m_server.SetLogger(pLogger); } //***************************************************************************** // Name : UserNotificationThread::init // Description : //***************************************************************************** void UserNotificationThread::init() { setActionInterval(0); m_client.SetIP(m_clientIP); } //***************************************************************************** // Name : UserNotificationThread::SetClientIP // Description : //***************************************************************************** void UserNotificationThread::SetClientIP(const string &clientIP) { m_clientIP = clientIP; } //***************************************************************************** // Name : UserNotificationThread::SetClientIP // Description : //***************************************************************************** void UserNotificationThread::SetServerIP(const string &serverIP) { m_serverIP = serverIP; } //***************************************************************************** // Name : UserNotificationThread::SetCredentials // Description : Set username and password for connecting AMT. //***************************************************************************** void UserNotificationThread::SetCredentials(const Credentials &cred) { m_client.SetCredentials(cred); } //***************************************************************************** // Name : UserNotificationThread::Cleanup // Description : Remove this client subscription from AMT. //***************************************************************************** void UserNotificationThread::cleanup() { // Cencel client subscription. if (m_client.CancelAlertSubscription(NULL) != UNS_STATUS_SUCCESS) { if (m_pLogger) m_pLogger->CancelSubscriptionError(); } m_pLogger = NULL; printf ("Cleanup: Client subscription removed\n"); } //***************************************************************************** // Name : UserNotificationThread::BindServer // Description : Bind the server to the first available port. //***************************************************************************** UserNotificationThread::State UserNotificationThread::BindServer() { // First bind the server if (!m_server.IsInit()) { if (m_server.Bind(m_serverIP.c_str()) != UNS_STATUS_SUCCESS) { if (m_pLogger) m_pLogger->BindError(); printf ("Failed to bind to %s...\n", m_serverIP.c_str()); setActionInterval(DEFAULT_BIND_INTERVAL); return SERVER_BIND_STATE; } } return SUBSCRIBE_FOR_ALERT_STATE; } //***************************************************************************** // Name : UserNotificationThread::SubscribeForAlert // Description : Subscribe for alert at the local AMT machine. //***************************************************************************** UserNotificationThread::State UserNotificationThread::SubscribeForAlert(bool bLogFailure) { PTHICommand command(false); AMT_PROVISIONING_STATE provState; if (command.PTHIClient.Init() && (command.GetProvisioningState(&provState) == PT_STATUS_SUCCESS) && (provState == PROVISIONING_STATE_POST)) { // Subscribe for alert. if (!m_client.IsSubscribed()) { if (m_client.SubscribeForGeneralAlert(m_server.GetPort()) != UNS_STATUS_SUCCESS) { if (bLogFailure && m_pLogger) m_pLogger->SubscriptionError(); printf("Failed to subscribe AMT local machine...\n"); setActionInterval(DEFAULT_CLIENT_INTERVAL); return SUBSCRIBE_FOR_ALERT_FAILURE_STATE; } } if (m_pLogger) m_pLogger->SubscriptionSuccess(); setActionInterval(0); return SERVER_RUN_STATE; } else { setActionInterval(UNS_PROV_WAIT_TIME); return SUBSCRIBE_FOR_ALERT_STATE; } } //***************************************************************************** // Name : UserNotificationThread::SubscribeForAlertFailure // Description : Subscribe for alert at the local AMT machine (no message). //***************************************************************************** UserNotificationThread::State UserNotificationThread::SubscribeForAlertFailure() { return SubscribeForAlert(false); } //***************************************************************************** // Name : UserNotificationThread::RunServer // Description : Run the server. //***************************************************************************** UserNotificationThread::State UserNotificationThread::RunServer() { m_server.RunServer(); return SERVER_RUN_STATE; } //***************************************************************************** // Name : UserNotificationThread::action // Description : Perform a single thread action according to its state. //***************************************************************************** void UserNotificationThread::action() { switch (m_State) { case SERVER_BIND_STATE: m_State = BindServer(); break; case SUBSCRIBE_FOR_ALERT_STATE: m_State = SubscribeForAlert(); break; case SUBSCRIBE_FOR_ALERT_FAILURE_STATE: m_State = SubscribeForAlertFailure(); break; case SERVER_RUN_STATE: m_State = RunServer(); break; } } UNS-3.2.0.24/UserNotificationThread.h0000644012402100775320000001020010746077316020275 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ /////////////////////////////////////////////////////////////////////////////// // // Class: UserNotificationThread // Description: This class is the thread that does the actual User Notification // work, i.e. it subscribing AMT for recieving events and waiting // for events to come. // /////////////////////////////////////////////////////////////////////////////// #ifndef _USER_NOTIFICATION_THREAD_H #define _USER_NOTIFICATION_THREAD_H #include #include "PeriodicActionThread.h" #include "UNSWSManClient.h" #include "UNSSoapServer.h" #include "soapStub.h" class UserNotificationThread : public PeriodicActionThread { public: UserNotificationThread(UNSEventLogger *pLogger = NULL); virtual ~UserNotificationThread(void); // Initialize this thread with a given action interval time. void init(); // Set the cresentials to be used to connect to AMT. void SetCredentials(const Credentials &cred); void SetClientIP(const string &clientIP); // For debug only void SetServerIP(const string &serverIP); // For debug only // Set a pointer to the Logger. void SetLogger(UNSEventLogger *pLogger); protected: virtual void action(); virtual void cleanup(); private: enum State { SERVER_BIND_STATE, SUBSCRIBE_FOR_ALERT_STATE, SUBSCRIBE_FOR_ALERT_FAILURE_STATE, SERVER_RUN_STATE}; void Cleanup(); /*These functions return the next state into which we should go.*/ State BindServer(); State SubscribeForAlert(bool bLogFailure = true); State SubscribeForAlertFailure(); State RunServer(); // Data members. State m_State; string m_clientIP; string m_serverIP; UNSWSManClient m_client; // Wsman client for subscription. UNSSoapServer m_server; // Soap server. UNSEventLogger *m_pLogger; // Static constants. static const unsigned long DEFAULT_CLIENT_INTERVAL; static const unsigned long DEFAULT_BIND_INTERVAL; static const unsigned long HECI_DOWNTIME_ON_RESUME; static const char * IP_LOCALHOST; static const unsigned long UNS_PROV_WAIT_TIME; }; #endif // _USER_NOTIFICATION_THREAD_H UNS-3.2.0.24/scripts/0000755012402100775320000000000010746077316015205 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/scripts/uns0000755012402100775320000001477210746077316015753 0ustar00gkbld_amtccigk00000000000000#! /bin/sh # # uns Bring up/down Intel(R) Active Management Technology \ # User Notification Service # # chkconfig: 235 50 20 # description: Bring up/down Intel(R) Active Management Technology \ # User Notification Service # # Copyright(c) 2004 - 2007 Intel Corporation. All rights reserved. # ### BEGIN INIT INFO # Provides: uns # Required-Start: lms # Should-Start: lms # Default-Start: 2 3 5 # Default-Stop: S 0 1 6 # Short-Description: Intel(R) AMT User Notification Service # Description: Bring up/down Intel(R) Active Management Technology User Notification Service ### END INIT INFO STARTSCRIPT=$0 PATH=/usr/sbin:/usr/bin:/sbin:/bin DESC="UNS" NAME=uns DAEMON=/sbin/$NAME EXECTBL_PATH=$DAEMON DAEMON_ARGS="" PIDFILE=/var/run/$NAME.pid STST_ARGS="" SCRIPTNAME=/etc/init.d/$NAME DIST="UNKNOWN" USER=`whoami` USERID=`id -u` CWD=`pwd` [ -x "$DAEMON" ] || exit 0 [ -r /etc/default/$NAME ] && . /etc/default/$NAME [ -f /etc/default/rcS ] && . /etc/default/rcS my_check_pidfile() { if [ -f $PIDFILE -a -r $PIDFILE ]; then pid=`cat $PIDFILE` if [ "X$pid" != "X" ]; then if ! kill -0 $pid 2>/dev/null then rm -f $PIDFILE fi else rm -f $PIDFILE fi fi STST_ARGS="" [ -f $PIDFILE ] && STST_ARGS=" -p $PIDFILE " } my_generic_failfunc() { echo " FAILED" } my_generic_successfunc() { echo " OK" } my_generic_startfunc() { ${EXECTBL_PATH} ${DAEMON_ARGS} return $? } my_generic_stopfunc() { if [ -f $PIDFILE ]; then `kill ${MYSIGNAL} \`cat $PIDFILE \` 1>/dev/null 2>&1` else `kill ${MYSIGNAL} \`pidof -o $$ -o $PPID -o %PPID $DAEMON\` 1>/dev/null 2>&1` fi } FAIL_FUNC=my_generic_failfunc SUCCESS_FUNC=my_generic_successfunc START_FUNC=my_generic_startfunc STOP_FUNC=my_generic_stopfunc if [ -f /etc/rc.d/init.d/functions ]; then . /etc/rc.d/init.d/functions DIST="RH" my_rh_failfunc() { failure $1 echo } my_rh_successfunc() { success $1 echo } my_rh_startfunc() { daemon ${STST_ARGS} ${EXECTBL_PATH} ${DAEMON_ARGS} return $? } FAIL_FUNC=my_rh_failfunc SUCCESS_FUNC=my_rh_successfunc START_FUNC=my_rh_startfunc elif [ -f /etc/rc.status ]; then . /etc/rc.status DIST="SUSE" my_suse_failfunc() { echo $rc_failed } my_suse_successfunc() { echo $rc_done } my_suse_startfunc() { /sbin/startproc ${STST_ARGS} ${EXECTBL_PATH} return $? } my_suse_stopfunc() { /sbin/killproc ${STST_ARGS} ${MYSIGNAL} ${EXECTBL_PATH} } FAIL_FUNC=my_suse_failfunc SUCCESS_FUNC=my_suse_successfunc START_FUNC=my_suse_startfunc STOP_FUNC=my_suse_stopfunc elif [ -f /lib/lsb/init-functions ]; then . /lib/lsb/init-functions if [ -f /etc/debian_version ]; then DIST="Debian" my_debian_failfunc() { log_end_msg 1 } my_debian_successfunc() { log_end_msg 0 } FAIL_FUNC=my_debian_failfunc SUCCESS_FUNC=my_debian_successfunc else DIST="LSB" MY_LSB_BEGIN_MSG="$DESC" my_lsb_failfunc() { log_failure_msg "$MY_LSB_BEGIN_MSG" } my_lsb_successfunc() { log_success_msg "$MY_LSB_BEGIN_MSG" } my_lsb_startfunc() { start_daemon ${STST_ARGS} ${EXECTBL_PATH} ${DAEMON_ARGS} return $? } FAIL_FUNC=my_lsb_failfunc SUCCESS_FUNC=my_lsb_successfunc START_FUNC=my_lsb_startfunc fi fi RET=0 myaction_success() { if [ "$RET" -eq 0 ]; then $SUCCESS_FUNC $1 else $FAIL_FUNC $1 fi } my_failure_msg() { if [ "x$DIST" = "xDebian" ]; then log_failure_msg "$1" elif [ "x$DIST" = "xLSB" ]; then log_failure_msg "$1" else echo " $1" fi } my_begin_msg() { if [ "x$DIST" = "xDebian" ]; then log_begin_msg "$1" elif [ "x$DIST" = "xLSB" ]; then MY_LSB_BEGIN_MSG="$1" else echo -n "$1" fi } check_running() { PROCESSES=`ps -Af | grep ${EXECTBL_PATH} | grep -v grep | wc -l` if [ "$PROCESSES" -ne "0" ]; then return 0 else return 1 fi } check_user() { if [ "x$USERID" != "x0" ]; then my_failure_msg "Error: You must have root privileges to $1 $DESC" exit 1 fi } my_debian_start() { MYSSD_XARGS="" [ -f $PIDFILE ] && MYSSD_XARGS="--pidfile $PIDFILE" /sbin/start-stop-daemon --start --quiet $MYSSD_XARGS --exec $DAEMON --test > /dev/null \ || return 1 /sbin/start-stop-daemon --start --quiet $MYSSD_XARGS --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 return 0 } start() { check_user "start" my_check_pidfile my_begin_msg "Starting $DESC" if [ "x$DIST" = "xDebian" ]; then my_debian_start case "$?" in 0|1) RET=0 ;; 2) RET=2 ;; esac else check_running if [ "$?" -eq 0 ]; then RET=0 else $START_FUNC RET=$? fi fi myaction_success "start" } my_stopprocsignal() { MYSIGNAL=$1 w_tout=$2 $STOP_FUNC i=0 while [ $i -lt $w_tout ] ; do i=$(($i+1)) sleep 1 check_running if [ "$?" -ne 0 ]; then return 0 fi done return 2 } my_generic_stop() { MY_GS_RET=1 check_running if [ "$?" -eq 0 ]; then my_stopprocsignal -TERM 30 MY_GS_RET=$? if [ "$MY_GS_RET" -ne 0 ]; then my_stopprocsignal -KILL 5 MY_GS_RET=$? fi fi return $MY_GS_RET } my_debian_stop() { if [ -f $PIDFILE ]; then /sbin/start-stop-daemon --stop --quiet --oknodo --retry=TERM/30/KILL/5 --pidfile=$PIDFILE --exec $DAEMON -- [ "$?" -eq 2 ] && return 2 else /sbin/start-stop-daemon --stop --quiet --oknodo --retry=TERM/30/KILL/5 --exec $DAEMON -- [ "$?" -eq 2 ] && return 2 fi return 0 } stop() { check_user "stop" my_check_pidfile my_begin_msg "Stopping $DESC" if [ "x$DIST" = "xDebian" ]; then my_debian_stop RET=$? else my_generic_stop RET=$? fi if [ -f $PIDFILE ]; then check_running if [ "$?" -ne 0 ]; then rm -f $PIDFILE fi fi myaction_success "stop" } my_debian_restart() { my_begin_msg "Restarting $DESC" my_debian_stop RET=$? if [ "$RET" -ne 2 ]; then my_debian_start RET=$? fi myaction_success "restart" } my_status() { if [ "x$DIST" = "xRH" ]; then status "${EXECTBL_PATH}" RET=$? else check_running RET=$? if [ "$RET" -eq 0 ]; then echo "$DESC is running" else echo "$DESC is NOT running" fi fi } my_print_usage() { if [ "x$DIST" = "xDebian" ]; then echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2 else echo "Usage: $STARTSCRIPT {start|stop|restart|reload|status}" fi RET=3 } # See how we were called. case "$1" in start) start ;; stop) stop ;; reload) check_user "reload" if [ "x$DIST" = "xDebian" ]; then my_print_usage else $0 stop sleep 1 $0 start fi ;; restart|force-reload) check_user "restart" if [ "x$DIST" = "xDebian" ]; then my_debian_restart else $0 stop sleep 1 $0 start fi ;; status) my_status ;; *) my_print_usage ;; esac exit $RET UNS-3.2.0.24/SoapServer/0000755012402100775320000000000010746102025015571 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/SoapServer/gSOAP/0000755012402100775320000000000010746077317016521 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/SoapServer/gSOAP/import/0000755012402100775320000000000010746077317020033 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/SoapServer/gSOAP/import/c14n.h0000644012402100775320000000207010746077316020747 0ustar00gkbld_amtccigk00000000000000/* c14n.h */ /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap c14n schema import: http://www.w3.org/2001/10/xml-exc-c14n# //gsoap c14n schema elementForm: qualified //gsoap c14n schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ typedef struct _c14n__InclusiveNamespaces { @char* PrefixList; } _c14n__InclusiveNamespaces; UNS-3.2.0.24/SoapServer/gSOAP/import/dom.h0000644012402100775320000005627610746077316021002 0ustar00gkbld_amtccigk00000000000000/* dom.h gSOAP DOM interface gSOAP XML Web services tools Copyright (C) 2001-2005, Robert van Engelen, Genivia, Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2004 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ /** @mainpage The gSOAP level-2 DOM parser The gSOAP level-2 DOM parser features "smart" XML namespace handling and can be used to mix gSOAP XML serializers with plain XML parsing. The DOM parser is also an essential component of the wsse plugin to verify digital signatures. The DOM parser is not a stand-alone application. The DOM parser is integrated with the SOAP engine to populate a node set and to render a node set in XML. Two files are needed to work with DOM node sets: - dom.h to use a DOM node set in a gSOAP header file with service definitions. - dom.cpp (or dom.c) to be linked with your application code. @section dom_1 Declaring DOM Node Sets in a gSOAP Header File To use the DOM node set with the data structures defined in a gSOAP header file, import the dom.h file into your header file: @code #import "dom.h" @endcode By importing dom.h a special data type @ref xsd__anyType is available that represents a hierarchical DOM node set. The DOM node set data structure can be used within structs, classes, STL containers, and as arguments of service operations. For example: @code #import "dom.h" #import "wsu.h" class ns__myProduct { public: @char* wsu__Id; _wsu__Timestamp* wsu__Timestamp; char* name; int SKU; double price; xsd__anyType* any; ns__myProduct(); ~ns__myProduct(); }; @endcode It is important to declare the @ref xsd__anyType at the end of the struct or class, since the DOM parser consumes any XML element (the field name, 'any' in this case, is irrelavant). Thus, the other fields must be defined first to ensure they are populated first before the DOM node set is populated with any non-previously matched XML element. Note that we also imported wsu.h as an example to show how to add a wsu:Id attribute to a struct or class if we want to digitally sign instances, and how to add a standardized wsu:Timestamp element to record creation and expiration times. To compile, run soapcpp2 (with -Iimport) and compile your code by linking dom.cpp (or dom.c for C). Note that the DOM data structures are declared in stdsoap2.h, while the DOM operations are defined in dom.cpp (or dom.c for C). Methods to populate and traverse DOM node sets will be explained later. First, let's take a look at parsing and generating XML documents. @section dom_2 Parsing and Generating XML The following examples assume that the soapcpp2 compiler was used on a header file (just the dom.h file will do) and the generated soapC.cpp or (soapC.c for C) code was compiled and linked with dom.cpp (or dom.c for C), stdsoap2.cpp (or stdsoap2.c) and the example application code. The generated namespace table should also be used, since the namespace bindings are relevant for consuming and producing XML for DOM node sets. Therefore, each of the example codes in this documentation is assumed to start with the following two includes: @code #include "soapH.h" // generated by soapcpp2 #include "ns.nsmap" // a namespace table with the XML namespace used @endcode The C++ std::iostream operators are overloaded to parse XML octet streams into node sets and to emit XML from node sets: @code soap_dom_element dom; dom.soap = soap_new1(SOAP_DOM_TREE | SOAP_C_UTFSTRING); cin >> dom; // parse XML if (dom.soap->error) ... // parse error cout << dom; // display XML if (dom.soap->error) ... // output error soap_destroy(dom.soap); soap_end(dom.soap); soap_done(dom.soap); free(dom.soap); @endcode In the example above we copied an XML document from stdin to stdout. In C we use the DOM "serializers" to accomplish this as follows: @code soap_dom_element dom; dom.soap = soap_new1(SOAP_DOM_TREE | SOAP_C_UTFSTRING); dom.soap->recvfd = stdin; if (soap_begin_recv(dom.soap) || NULL != soap_in_xsd__anyType(dom.soap, NULL, &dom, NULL) || soap_end_recv(dom.soap)) ... // parse error dom.soap->sendfd = stdout; if (soap_begin_send(dom.soap) || soap_out_xsd__anyType(dom.soap, NULL, 0, &dom, NULL) || soap_end_send(dom.soap)) ... // output error soap_end(dom.soap); soap_done(dom.soap); free(dom.soap); @endcode The SOAP_DOM_NODE flag is used to instruct the parser to populate a DOM node set with deserialized C and C++ data structures using the data type's deserializers that were generated with soapcpp2 from a header file with the data type declarations. Suppose for example that the following header file was used (in fact, this declaration appears in wsu.h): @code typedef struct _wsu__Timestamp { @char* wsu__Id; char* Created; char* Expires; } _wsu__Timestamp; @endcode Note that the leading underscore of the type name indicates an XML element definition (rather than a complexType definition), so the name of the data type is relevant when comparing XML element tags to C/C++ data types by the deserializers. When an XML document is parsed with one or more elements, the DOM will be automatically populated with the _wsu__Timestamp objects. Suppose the XML document root is a , then the root node of the DOM is a _wsu__Timestamp object: @code soap_dom_element dom; dom.soap = soap_new1(SOAP_DOM_NODE); cin >> dom; // parse XML if (dom.soap->error) ... // parse error if (dom.type == SOAP_TYPE__wsu__Timestamp) { _wsu__Timestamp *t = (_wsu__Timestamp*)dom.node; cout << "Start " << (t->Created ? t->Created : "") << " till " << (t->Expires ? t->Expires : "") << endl; } @endcode Note that the soapcpp2 compiler generates a unique type identification constant SOAP_TYPE_X for each data type X, which is used to determine the node's type in the example above. When objects occur deeper within the DOM node set then the DOM tree should be traversed. This subject will be discussed next. @section dom_3 Traversing a DOM Node Set The DOM node set is traversed with a C++ iterator or with the C functions @ref soap_dom_next_element and @ref soap_dom_next_attribute. For example, to walk the node set visiting nodes in the same order as they appeared in the document, use: @code soap_dom_element dom; dom.soap = soap_new1(SOAP_DOM_TREE | SOAP_C_UTFSTRING); ... for (soap_dom_element::iterator iter = dom.begin(); iter != dom.end(); ++iter) for (soap_dom_attribute::iterator attr = (*iter).atts.begin(); attr != (*iter).atts.end(); ++attr) ... @endcode In C code, use: @code soap_dom_element dom, *iter; soap_dom_attribute *attr; dom.soap = soap_new1(SOAP_DOM_TREE | SOAP_C_UTFSTRING); ... for (iter = &dom; iter; iter = soap_dom_next_element(iter)) for (attr = iter->atts; attr; attr = soap_dom_next_attribute(attr)) ... @endcode The @ref soap_dom_element and @ref soap_dom_attribute structs form essentially linked lists, so it would not be too difficult to write your own tree walkers: - @ref soap_dom_element::prnt points to the parent soap_dom_element node. - @ref soap_dom_element::elts points to the linked list of child element nodes. - @ref soap_dom_element::atts points to the linked list of attribute nodes. The linked lists of sibling elements nodes and attribute nodes are respectively: - @ref soap_dom_element::next points to the next sibling element node. - @ref soap_dom_attribute::next points to the next attribute in the attribute list of an element node. Note that for a root node, the @ref soap_dom_element::prnt and @ref soap_dom_element::next are both NULL. Tag names of elements and attributes are stored in @ref soap_dom_element::name and @ref soap_dom_attribute::name strings, respectively. The names are UTF-8 encoded. XML namespace bindings are explicitly propagated throughout the DOM node set for those elements and attributes that are namespace qualified (either with a namespace prefix or when they occur in a xmlns default namespace scope). The namespaces are stored in the @ref soap_dom_element::nstr and @ref soap_dom_attribute::nstr strings. The following example shows how to traverse a DOM node set and print the elements with their namespace URIs when present: @code soap_dom_element dom; dom.soap = soap_new1(SOAP_DOM_TREE | SOAP_C_UTFSTRING); cin >> dom; for (soap_dom_element::iterator iter = dom.begin(); iter != dom.end(); ++iter) { cout << "Element " << (*iter).name; if ((*iter).nstr) cout << " has namespace " << (*iter).nstr; cout << endl; } soap_destroy(dom.soap); soap_end(dom.soap); soap_done(dom.soap); free(dom.soap); @endcode Text content of a node is stored in the @ref soap_dom_element::data string in UTF-8 format. This string is populated if the SOAP_C_UTFSTRING flag was set. Otherwise the data content will be stored in the @ref soap_dom_element::wide wide-character string. The following example prints those element nodes that have text content (in UTF-8 format): @code soap_dom_element dom; ... for (soap_dom_element::iterator iter = dom.begin(); iter != dom.end(); ++iter) { cout << "Element " << (*iter).name; if ((*iter).data) cout << " = " << (*iter).data; cout << endl; } ... @endcode When a DOM node set contains deserialized objects (enabled with the SOAP_DOM_NODE flag), the @ref soap_dom_element::type and @ref soap_dom_element::node values are set: @code soap_dom_element dom; ... for (soap_dom_element::iterator iter = dom.begin(); iter != dom.end(); ++iter) { cout << "Element " << (*iter).name; if ((*iter).type) cout << "Element " << (*iter).name << " contains a deserialized object" << endl; cout << endl; } ... @endcode The @ref soap_dom_element::type is 0 or a SOAP_TYPE_X constant, where X is the name of the deserialized type. The @ref soap_dom_element::node points to the deserialized object. If this is a char* string, it points directly to the character sequence. Note: the SOAP_DOM_TREE flag restricts the parser to DOM content only, so deserializers is not used. When the SOAP_DOM_TREE flag is not used, an appropriate deserializer MAY be used by gSOAP when an element contains an id attribute and gSOAP can determine the type from the id attribute reference and/or the xsi:type attribute of an element. @section dom_4 Searching Common operations on DOM node sets in level-2 DOM parsers are searching and filtering. For C++ code, the built-in @ref soap_dom_element::iterator can be used to search for matching element nodes. C programmers are out of luck as they should write looping code to search for nodes explicitly. The @ref soap_dom_element::find method returns a search iterator. The method takes an optional namespace URI and element name to match elements in the DOM node set. For example, to iterate over all "product" elements: @code soap_dom_element dom; ... for (soap_dom_element::iterator iter = dom.find(NULL, "product"); iter != dom.end(); ++iter) cout << "Element " << (*iter).name << endl; ... @endcode To iterate over all elements in a particular namespace: @code soap_dom_element dom; ... for (soap_dom_element::iterator iter = dom.find("http://www.w3.org/2001/XMLSchema", NULL); iter != dom.end(); ++iter) cout << "Element " << (*iter).name << endl; ... @endcode Since namespaces may have different version, a '*' wildcard can be used with the namespace string. Likewise, tag names may be namespace qualified with prefixes that are not relevant to the search: @code soap_dom_element dom; ... for (soap_dom_element::iterator iter = dom.find("http://www.w3.org/*XMLSchema", "*:schema"); iter != dom.end(); ++iter) cout << "Element " << (*iter).name << endl; ... @endcode This searches for qualified elements in one of the XSD namespaces. @section dom_5 Constructing DOM Node Sets The @ref soap_dom_element::set and @ref soap_dom_element::add methods are used to decorate a DOM node set with child element nodes and attribute nodes. Application data with serializers can be incorporated in the node set as well. The following examples are shown in C++. C programmers can use the @ref soap_dom_element:elts list and @ref soap_dom_elements::atts list to add child nodes and attribute nodes, respectively. @code soap_dom_element dom; dom.soap = soap_new1(SOAP_C_UTFSTRING | SOAP_XML_INDENT); const char *myURI = "http://www.mydomain.com/myproducts"; ns__myProduct product(); product.soap_default(dom.soap); // method generated by soapcpp2 product.name = "Ernie"; product.SKU = 123; product.price = 9.95; dom.set(myURI, "list"); dom.add(soap_dom_attribute(dom.soap, myURI, "version", "0.9")); dom.add(soap_dom_element(dom.soap, myURI, "documentation", "List of products")); dom.add(soap_dom_element(dom.soap, myURI, "product", SOAP_TYPE_ns__myProduct, &product); cout << dom; ... @endcode Assuming that myURI is associated with namespace prefix "ns" in the namespace table, the rendition is @code List of products Ernie 123 9.95 @endcode Note that the namespace table content is "dumped" into the XML rendition. The global namespace mapping table "namespaces[]" contains the namespace bindings that should be meaningful to the application. The soap context can be set to a new table as follows: @code Namespace myNamespaces[] = { { "ns", "..." }, ... , { NULL } }; soap_dom_element dom; dom.soap = soap_new1(SOAP_C_UTFSTRING | SOAP_XML_INDENT); dom.soap->namespaces = myNamespaces; @endcode To produce cleaner XML, use the SOAP_XML_CANONICAL flag to initiate the soap context: @code List of products Ernie 123 9.95 @endcode Note that the xmlns bindings are rendered automatically. When parsing an XML document, xmlns bindings are not added to the attribute node set. The @ref soap_dom_element::nstr and @ref soap_dom_attribute::nstr namespace strings are set to retain namespace URIs. The XML rendering algorithm uses the namespace strings to add xmlns bindings that are not already in the namespace table. When it is desirable to render XML exactly as represented in the DOM node set, e.g. when xmlns bindings are explicitly included in the attribute node set, use the SOAP_DOM_ASIS flag: @code soap_dom_element dom; dom.soap = soap_new1(SOAP_C_UTFSTRING | SOAP_DOM_ASIS); @endcode @section dom_6 Example The gSOAP header file below imports DOM and declares xsd:float to enable serializing floats embedded within DOM node sets and deserializing floats to populate DOM node sets: @code #import "dom.h" typedef float xsd__float; @endcode Consider invoking the XMethods delayed stock quote service to obtain a stock quote. The float deserializer is used to store the floating-point value of a stock given that the element has an xsi:type="xsd:float" attribute. @code struct soap *soap = soap_new1(SOAP_C_UTFSTRING | SOAP_DOM_NODE); soap_dom_element envelope(soap, "http://schemas.xmlsoap.org/soap/envelope/", "Envelope"); soap_dom_element body(soap, "http://schemas.xmlsoap.org/soap/envelope/", "Body"); soap_dom_attribute encodingStyle(soap, "http://schemas.xmlsoap.org/soap/envelope/", "encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/"); soap_dom_element request(soap, "urn:xmethods-delayed-quotes", "getQuote"); soap_dom_element symbol(soap, NULL, "symbol", "IBM"); soap_dom_element response(soap); envelope.add(body); body.add(encodingStyle); body.add(request); request.add(symbol); cout << "Request message:" << endl << envelope << endl; if (soap_connect(soap, "http://services.xmethods.net/soap", "") || soap_out_xsd__anyType(soap, NULL, 0, &envelope, NULL) || soap_end_send(soap) || soap_begin_recv(soap) || NULL != soap_in_xsd__anyType(soap, NULL, &response, NULL) || soap_end_recv(soap) || soap_closesock(soap)) { soap_print_fault(soap, stderr); soap_print_fault_location(soap, stderr); } else { cout << "Response message:" << endl << response << endl; for (soap_dom_element::iterator walker = response.find(SOAP_TYPE_xsd__float); walker != response.end(); ++walker) cout << "Quote = " << *(xsd__float*)(*walker).node << endl; } soap_destroy(soap); soap_end(soap); soap_done(soap); free(soap); @endcode @section dom_7 Summary The DOM parser needs a soap context to allocate nodes: @code soap_dom_element dom; dom.soap = soap_new1(... flags ...); ... soap_destroy(dom.soap); soap_end(dom.soap); soap_done(dom.soap); soap_free(dom.soap); @endcode The nodes are removed with soap_destroy (for C++) and soap_end. The soap_done function should only be used before the soap context is deallocated. The soap context flags that control the parsing and rendition of XML are: - (no flag): only elements with an id attribute are deserialized as C/C++ data types (when a deserializer is available). XML elements with character data are deserialized into the @ref soap_dom_element::wide field. - SOAP_C_UTFSTRING: store character data in UTF-8 format in @ref soap_dom_element::data. - SOAP_C_MBSTRING: store character data in multi-byte format in @ref soap_dom_element::data, where the decoding depends on the current localication. The platform must support MB strings (HAVE_MBTOWC). - SOAP_DOM_TREE: prevents deserialization of C/C++ data structures into the DOM. - SOAP_DOM_NODE: attempt to deserialize C/C++ data structures when a deserializer is available. A deserializer is selected based on the element name or the xsi:type attribute. - SOAP_DOM_ASIS: render XML "as is", i.e. do not insert xmlns bindings for URIs stored in nstr. Assumes the DOM is self-contained. - SOAP_XML_INDENT: render XML with indent. - SOAP_XML_CANONICAL: render XML in exc-c14n form. The DOM traversal operations: - @ref soap_dom_next_element returns the next element in an in-order traversal. - @ref soap_dom_next_attribute returns the next attribute of a node. The @ref soap_dom_element fields: - @ref soap_dom_element::next pointer to next sibling in list. - @ref soap_dom_element::prnt pointer to parent node. - @ref soap_dom_element::elts pointer to list of child element nodes. - @ref soap_dom_element::atts pointer to list of attribute nodes. - @ref soap_dom_element::nstr optional namespace string of this node. - @ref soap_dom_element::name the name of the element node (with optional prefix). - @ref soap_dom_element::data optional character data in UTF-8 format. - @ref soap_dom_element::wide optional character data in wide string format. - @ref soap_dom_element::type optional SOAP_TYPE_X type of a C/C++ data structure stored with this node. - @ref soap_dom_element::node optional pointer to the C/C++ data structure stored with this node. - @ref soap_dom_element::head optional leading whitespace to the start tag. - @ref soap_dom_element::tail optional leading whitespace to the end tag. - @ref soap_dom_element::soap the soap context that manages this node. The @ref soap_dom_element types: - @ref soap_dom_element::iterator The @ref soap_dom_element methods: - @ref soap_dom_element::set(nstr, name); - @ref soap_dom_element::set(data); - @ref soap_dom_element::set(node, type); - @ref soap_dom_element::add(soap_dom_element); - @ref soap_dom_element::add(soap_dom_attribute); - @ref soap_dom_element::begin(); - @ref soap_dom_element::end(); - @ref soap_dom_element::find(nstr, name); - @ref soap_dom_element::find(type); - @ref soap_dom_element::unlink(); The @ref soap_dom_element constructors: - @ref soap_dom_element(); - @ref soap_dom_element(soap); - @ref soap_dom_element(soap, nstr, name); - @ref soap_dom_element(soap, nstr, name, data); - @ref soap_dom_element(soap, nstr, name, node, type); The @ref soap_dom_attribute fields: - @ref soap_dom_attribute::next pointer to next attribute node in list. - @ref soap_dom_attribute::nstr optional namespace string of this node. - @ref soap_dom_attribute::name the name of the attribute (with optional prefix). - @ref soap_dom_attribute::data optional character data in UTF-8 format. - @ref soap_dom_attribute::soap the soap context that manages this node. The @ref soap_dom_attribute types: - @ref soap_dom_attribute::iterator The @ref soap_dom_attribute methods: - @ref soap_dom_attribute::set(nstr, name); - @ref soap_dom_attribute::set(data); - @ref soap_dom_attribute::begin(); - @ref soap_dom_attribute::end(); - @ref soap_dom_attribute::find(nstr, name); - @ref soap_dom_attribute::unlink(); The @ref soap_dom_attribute constructors: - @ref soap_dom_attribute(); - @ref soap_dom_attribute(soap); - @ref soap_dom_attribute(soap, nstr, name, data); */ /// @brief The custom serializer for DOM nodes is represented by xsd__anyType. extern typedef struct soap_dom_element xsd__anyType; UNS-3.2.0.24/SoapServer/gSOAP/import/ds.h0000644012402100775320000004611710746077316020622 0ustar00gkbld_amtccigk00000000000000/* ds.h Generated with: wsdl2h -cuxy -o ds.h -t WS/WS-typemap.dat WS/ds.xsd - Removed //gsoapopt - Added //gsoap ds schema import: http://www.w3.org/2000/09/xmldsig# */ /******************************************************************************\ * * * http://www.w3.org/2000/09/xmldsig# * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap ds schema import: http://www.w3.org/2000/09/xmldsig# //gsoap ds schema elementForm: qualified //gsoap ds schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SignatureType from typemap WS/WS-typemap.dat. typedef struct ds__SignatureType { struct ds__SignedInfoType* SignedInfo; char* SignatureValue; struct ds__KeyInfoType* KeyInfo; @char* Id; } ds__SignatureType; /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SignatureValueType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Typedef synonym for struct ds__SignedInfoType. typedef struct ds__SignedInfoType ds__SignedInfoType; /// Typedef synonym for struct ds__CanonicalizationMethodType. typedef struct ds__CanonicalizationMethodType ds__CanonicalizationMethodType; /// Typedef synonym for struct ds__SignatureMethodType. typedef struct ds__SignatureMethodType ds__SignatureMethodType; /// Typedef synonym for struct ds__ReferenceType. typedef struct ds__ReferenceType ds__ReferenceType; /// Typedef synonym for struct ds__TransformsType. typedef struct ds__TransformsType ds__TransformsType; /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":TransformType from typemap WS/WS-typemap.dat. #import "c14n.h" typedef struct ds__TransformType { _c14n__InclusiveNamespaces* c14n__InclusiveNamespaces; _XML __any; @char* Algorithm; } ds__TransformType; /// Typedef synonym for struct ds__DigestMethodType. typedef struct ds__DigestMethodType ds__DigestMethodType; /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":KeyInfoType from typemap WS/WS-typemap.dat. typedef struct ds__KeyInfoType { char* KeyName; struct ds__KeyValueType* KeyValue; struct ds__RetrievalMethodType* RetrievalMethod; struct ds__X509DataType* X509Data; struct _wsse__SecurityTokenReference* wsse__SecurityTokenReference; @char* Id; } ds__KeyInfoType; /// Typedef synonym for struct ds__KeyValueType. typedef struct ds__KeyValueType ds__KeyValueType; /// Typedef synonym for struct ds__RetrievalMethodType. typedef struct ds__RetrievalMethodType ds__RetrievalMethodType; /// Typedef synonym for struct ds__X509DataType. typedef struct ds__X509DataType ds__X509DataType; /// Typedef synonym for struct ds__X509IssuerSerialType. typedef struct ds__X509IssuerSerialType ds__X509IssuerSerialType; /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":PGPDataType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SPKIDataType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":ObjectType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":ManifestType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SignaturePropertiesType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SignaturePropertyType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Typedef synonym for struct ds__DSAKeyValueType. typedef struct ds__DSAKeyValueType ds__DSAKeyValueType; /// Typedef synonym for struct ds__RSAKeyValueType. typedef struct ds__RSAKeyValueType ds__RSAKeyValueType; /// Imported simpleType "http://www.w3.org/2000/09/xmldsig#":CryptoBinary from typemap WS/WS-typemap.dat. /// simpleType definition intentionally left blank. /// Imported simpleType "http://www.w3.org/2000/09/xmldsig#":DigestValueType from typemap WS/WS-typemap.dat. /// simpleType definition intentionally left blank. /// Imported simpleType "http://www.w3.org/2000/09/xmldsig#":HMACOutputLengthType from typemap WS/WS-typemap.dat. /// simpleType definition intentionally left blank. /// "http://www.w3.org/2000/09/xmldsig#":SignedInfoType is a complexType. struct ds__SignedInfoType { /// Element reference "http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod. struct ds__CanonicalizationMethodType* CanonicalizationMethod 1; ///< Required element. /// Element reference "http://www.w3.org/2000/09/xmldsig#":SignatureMethod. struct ds__SignatureMethodType* SignatureMethod 1; ///< Required element. /// Size of the dynamic array of struct ds__ReferenceType* is 0..unbounded int __sizeReference ; /// Pointer to array of struct ds__ReferenceType*. struct ds__ReferenceType* *Reference 1; /// Attribute Id of type xs:ID. @char* /*ID*/ Id 0; ///< Optional attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethodType is a complexType. struct ds__CanonicalizationMethodType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. /// Attribute Algorithm of type xs:anyURI. @char* /*URI*/ Algorithm 1; ///< Required attribute. /// Member declared in WS/WS-typemap.dat _c14n__InclusiveNamespaces* c14n__InclusiveNamespaces; }; /// "http://www.w3.org/2000/09/xmldsig#":SignatureMethodType is a complexType. struct ds__SignatureMethodType { /// Element HMACOutputLength of type "http://www.w3.org/2000/09/xmldsig#":HMACOutputLengthType. int* HMACOutputLength 0; ///< Optional element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. /// Attribute Algorithm of type xs:anyURI. @char* /*URI*/ Algorithm 1; ///< Required attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":ReferenceType is a complexType. struct ds__ReferenceType { /// Element reference "http://www.w3.org/2000/09/xmldsig#":Transforms. struct ds__TransformsType* Transforms 0; ///< Optional element. /// Element reference "http://www.w3.org/2000/09/xmldsig#":DigestMethod. struct ds__DigestMethodType* DigestMethod 1; ///< Required element. /// Element reference "http://www.w3.org/2000/09/xmldsig#":DigestValue. char* /*base64*/ DigestValue 1; ///< Required element. /// Attribute Id of type xs:ID. @char* /*ID*/ Id 0; ///< Optional attribute. /// Attribute URI of type xs:anyURI. @char* /*URI*/ URI 0; ///< Optional attribute. /// Attribute Type of type xs:anyURI. @char* /*URI*/ Type 0; ///< Optional attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":TransformsType is a complexType. struct ds__TransformsType { /// Size of the dynamic array of ds__TransformType is 0..unbounded int __sizeTransform ; /// Pointer to array of ds__TransformType. ds__TransformType *Transform 1; }; /// "http://www.w3.org/2000/09/xmldsig#":DigestMethodType is a complexType. struct ds__DigestMethodType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. /// Attribute Algorithm of type xs:anyURI. @char* /*URI*/ Algorithm 1; ///< Required attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":KeyValueType is a complexType. struct ds__KeyValueType { /// CHOICE OF ELEMENTS /// Element reference "http://www.w3.org/2000/09/xmldsig#":DSAKeyValue. struct ds__DSAKeyValueType* DSAKeyValue 1; ///< Required element. /// Element reference "http://www.w3.org/2000/09/xmldsig#":RSAKeyValue. struct ds__RSAKeyValueType* RSAKeyValue 1; ///< Required element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. // END OF CHOICE }; /// "http://www.w3.org/2000/09/xmldsig#":RetrievalMethodType is a complexType. struct ds__RetrievalMethodType { /// Element reference "http://www.w3.org/2000/09/xmldsig#":Transforms. struct ds__TransformsType* Transforms 0; ///< Optional element. /// Attribute URI of type xs:anyURI. @char* /*URI*/ URI 0; ///< Optional attribute. /// Attribute Type of type xs:anyURI. @char* /*URI*/ Type 0; ///< Optional attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":X509DataType is a complexType. struct ds__X509DataType { /// CHOICE OF ELEMENTS /// Element X509IssuerSerial of type "http://www.w3.org/2000/09/xmldsig#":X509IssuerSerialType. struct ds__X509IssuerSerialType* X509IssuerSerial 1; ///< Required element. /// Element X509SKI of type xs:base64Binary. char* /*base64*/ X509SKI 1; ///< Required element. /// Element X509SubjectName of type xs:string. char* X509SubjectName 1; ///< Required element. /// Element X509Certificate of type xs:base64Binary. char* /*base64*/ X509Certificate 1; ///< Required element. /// Element X509CRL of type xs:base64Binary. char* /*base64*/ X509CRL 1; ///< Required element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. // END OF CHOICE }; /// "http://www.w3.org/2000/09/xmldsig#":X509IssuerSerialType is a complexType. struct ds__X509IssuerSerialType { /// Element X509IssuerName of type xs:string. char* X509IssuerName 1; ///< Required element. /// Element X509SerialNumber of type xs:integer. int X509SerialNumber 1; ///< Required element. }; /// "http://www.w3.org/2000/09/xmldsig#":DSAKeyValueType is a complexType. struct ds__DSAKeyValueType { /// Element G of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ G 0; ///< Optional element. /// Element Y of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Y 1; ///< Required element. /// Element J of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ J 0; ///< Optional element. /// Element P of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ P 1; ///< Required element. /// Element Q of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Q 1; ///< Required element. /// Element Seed of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Seed 1; ///< Required element. /// Element PgenCounter of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ PgenCounter 1; ///< Required element. }; /// "http://www.w3.org/2000/09/xmldsig#":RSAKeyValueType is a complexType. struct ds__RSAKeyValueType { /// Element Modulus of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Modulus 1; ///< Required element. /// Element Exponent of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Exponent 1; ///< Required element. }; /// Element "http://www.w3.org/2000/09/xmldsig#":Signature of complexType "http://www.w3.org/2000/09/xmldsig#":SignatureType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignatureValue of complexType "http://www.w3.org/2000/09/xmldsig#":SignatureValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignedInfo of complexType "http://www.w3.org/2000/09/xmldsig#":SignedInfoType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod of complexType "http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethodType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignatureMethod of complexType "http://www.w3.org/2000/09/xmldsig#":SignatureMethodType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Reference of complexType "http://www.w3.org/2000/09/xmldsig#":ReferenceType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Transforms of complexType "http://www.w3.org/2000/09/xmldsig#":TransformsType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Transform of complexType "http://www.w3.org/2000/09/xmldsig#":TransformType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":DigestMethod of complexType "http://www.w3.org/2000/09/xmldsig#":DigestMethodType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":DigestValue of complexType "http://www.w3.org/2000/09/xmldsig#":DigestValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":KeyInfo of complexType "http://www.w3.org/2000/09/xmldsig#":KeyInfoType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":KeyName of complexType xs:string. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":MgmtData of complexType xs:string. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":KeyValue of complexType "http://www.w3.org/2000/09/xmldsig#":KeyValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":RetrievalMethod of complexType "http://www.w3.org/2000/09/xmldsig#":RetrievalMethodType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":X509Data of complexType "http://www.w3.org/2000/09/xmldsig#":X509DataType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":PGPData of complexType "http://www.w3.org/2000/09/xmldsig#":PGPDataType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SPKIData of complexType "http://www.w3.org/2000/09/xmldsig#":SPKIDataType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Object of complexType "http://www.w3.org/2000/09/xmldsig#":ObjectType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Manifest of complexType "http://www.w3.org/2000/09/xmldsig#":ManifestType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignatureProperties of complexType "http://www.w3.org/2000/09/xmldsig#":SignaturePropertiesType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignatureProperty of complexType "http://www.w3.org/2000/09/xmldsig#":SignaturePropertyType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":DSAKeyValue of complexType "http://www.w3.org/2000/09/xmldsig#":DSAKeyValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":RSAKeyValue of complexType "http://www.w3.org/2000/09/xmldsig#":RSAKeyValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /* End of ds.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/ds2.h0000644012402100775320000004612110746077316020677 0ustar00gkbld_amtccigk00000000000000/* ds.h Generated with: wsdl2h -cuxy -o ds.h -t WS/WS-typemap.dat WS/ds.xsd - Removed //gsoapopt - Added //gsoap ds schema import: http://www.w3.org/2000/09/xmldsig# */ /******************************************************************************\ * * * http://www.w3.org/2000/09/xmldsig# * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap ds schema import: http://www.w3.org/2000/09/xmldsig# //gsoap ds schema elementForm: qualified //gsoap ds schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SignatureType from typemap WS/WS-typemap.dat. typedef struct ds__SignatureType { struct ds__SignedInfoType* SignedInfo; char* SignatureValue; struct ds__KeyInfoType* KeyInfo; @char* Id; } ds__SignatureType; /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SignatureValueType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Typedef synonym for struct ds__SignedInfoType. typedef struct ds__SignedInfoType ds__SignedInfoType; /// Typedef synonym for struct ds__CanonicalizationMethodType. typedef struct ds__CanonicalizationMethodType ds__CanonicalizationMethodType; /// Typedef synonym for struct ds__SignatureMethodType. typedef struct ds__SignatureMethodType ds__SignatureMethodType; /// Typedef synonym for struct ds__ReferenceType. typedef struct ds__ReferenceType ds__ReferenceType; /// Typedef synonym for struct ds__TransformsType. typedef struct ds__TransformsType ds__TransformsType; /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":TransformType from typemap WS/WS-typemap.dat. #import "c14n.h" typedef struct ds__TransformType { _c14n__InclusiveNamespaces* c14n__InclusiveNamespaces; _XML __any; @char* Algorithm; } ds__TransformType; /// Typedef synonym for struct ds__DigestMethodType. typedef struct ds__DigestMethodType ds__DigestMethodType; /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":KeyInfoType from typemap WS/WS-typemap.dat. typedef struct ds__KeyInfoType { char* KeyName; struct ds__KeyValueType* KeyValue; struct ds__RetrievalMethodType* RetrievalMethod; struct ds__X509DataType* X509Data; struct _wsse2__SecurityTokenReference* wsse2__SecurityTokenReference; @char* Id; } ds__KeyInfoType; /// Typedef synonym for struct ds__KeyValueType. typedef struct ds__KeyValueType ds__KeyValueType; /// Typedef synonym for struct ds__RetrievalMethodType. typedef struct ds__RetrievalMethodType ds__RetrievalMethodType; /// Typedef synonym for struct ds__X509DataType. typedef struct ds__X509DataType ds__X509DataType; /// Typedef synonym for struct ds__X509IssuerSerialType. typedef struct ds__X509IssuerSerialType ds__X509IssuerSerialType; /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":PGPDataType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SPKIDataType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":ObjectType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":ManifestType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SignaturePropertiesType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2000/09/xmldsig#":SignaturePropertyType from typemap WS/WS-typemap.dat. /// complexType definition intentionally left blank. /// Typedef synonym for struct ds__DSAKeyValueType. typedef struct ds__DSAKeyValueType ds__DSAKeyValueType; /// Typedef synonym for struct ds__RSAKeyValueType. typedef struct ds__RSAKeyValueType ds__RSAKeyValueType; /// Imported simpleType "http://www.w3.org/2000/09/xmldsig#":CryptoBinary from typemap WS/WS-typemap.dat. /// simpleType definition intentionally left blank. /// Imported simpleType "http://www.w3.org/2000/09/xmldsig#":DigestValueType from typemap WS/WS-typemap.dat. /// simpleType definition intentionally left blank. /// Imported simpleType "http://www.w3.org/2000/09/xmldsig#":HMACOutputLengthType from typemap WS/WS-typemap.dat. /// simpleType definition intentionally left blank. /// "http://www.w3.org/2000/09/xmldsig#":SignedInfoType is a complexType. struct ds__SignedInfoType { /// Element reference "http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod. struct ds__CanonicalizationMethodType* CanonicalizationMethod 1; ///< Required element. /// Element reference "http://www.w3.org/2000/09/xmldsig#":SignatureMethod. struct ds__SignatureMethodType* SignatureMethod 1; ///< Required element. /// Size of the dynamic array of struct ds__ReferenceType* is 0..unbounded int __sizeReference ; /// Pointer to array of struct ds__ReferenceType*. struct ds__ReferenceType* *Reference 1; /// Attribute Id of type xs:ID. @char* /*ID*/ Id 0; ///< Optional attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethodType is a complexType. struct ds__CanonicalizationMethodType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. /// Attribute Algorithm of type xs:anyURI. @char* /*URI*/ Algorithm 1; ///< Required attribute. /// Member declared in WS/WS-typemap.dat _c14n__InclusiveNamespaces* c14n__InclusiveNamespaces; }; /// "http://www.w3.org/2000/09/xmldsig#":SignatureMethodType is a complexType. struct ds__SignatureMethodType { /// Element HMACOutputLength of type "http://www.w3.org/2000/09/xmldsig#":HMACOutputLengthType. int* HMACOutputLength 0; ///< Optional element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. /// Attribute Algorithm of type xs:anyURI. @char* /*URI*/ Algorithm 1; ///< Required attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":ReferenceType is a complexType. struct ds__ReferenceType { /// Element reference "http://www.w3.org/2000/09/xmldsig#":Transforms. struct ds__TransformsType* Transforms 0; ///< Optional element. /// Element reference "http://www.w3.org/2000/09/xmldsig#":DigestMethod. struct ds__DigestMethodType* DigestMethod 1; ///< Required element. /// Element reference "http://www.w3.org/2000/09/xmldsig#":DigestValue. char* /*base64*/ DigestValue 1; ///< Required element. /// Attribute Id of type xs:ID. @char* /*ID*/ Id 0; ///< Optional attribute. /// Attribute URI of type xs:anyURI. @char* /*URI*/ URI 0; ///< Optional attribute. /// Attribute Type of type xs:anyURI. @char* /*URI*/ Type 0; ///< Optional attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":TransformsType is a complexType. struct ds__TransformsType { /// Size of the dynamic array of ds__TransformType is 0..unbounded int __sizeTransform ; /// Pointer to array of ds__TransformType. ds__TransformType *Transform 1; }; /// "http://www.w3.org/2000/09/xmldsig#":DigestMethodType is a complexType. struct ds__DigestMethodType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. /// Attribute Algorithm of type xs:anyURI. @char* /*URI*/ Algorithm 1; ///< Required attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":KeyValueType is a complexType. struct ds__KeyValueType { /// CHOICE OF ELEMENTS /// Element reference "http://www.w3.org/2000/09/xmldsig#":DSAKeyValue. struct ds__DSAKeyValueType* DSAKeyValue 1; ///< Required element. /// Element reference "http://www.w3.org/2000/09/xmldsig#":RSAKeyValue. struct ds__RSAKeyValueType* RSAKeyValue 1; ///< Required element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. // END OF CHOICE }; /// "http://www.w3.org/2000/09/xmldsig#":RetrievalMethodType is a complexType. struct ds__RetrievalMethodType { /// Element reference "http://www.w3.org/2000/09/xmldsig#":Transforms. struct ds__TransformsType* Transforms 0; ///< Optional element. /// Attribute URI of type xs:anyURI. @char* /*URI*/ URI 0; ///< Optional attribute. /// Attribute Type of type xs:anyURI. @char* /*URI*/ Type 0; ///< Optional attribute. }; /// "http://www.w3.org/2000/09/xmldsig#":X509DataType is a complexType. struct ds__X509DataType { /// CHOICE OF ELEMENTS /// Element X509IssuerSerial of type "http://www.w3.org/2000/09/xmldsig#":X509IssuerSerialType. struct ds__X509IssuerSerialType* X509IssuerSerial 1; ///< Required element. /// Element X509SKI of type xs:base64Binary. char* /*base64*/ X509SKI 1; ///< Required element. /// Element X509SubjectName of type xs:string. char* X509SubjectName 1; ///< Required element. /// Element X509Certificate of type xs:base64Binary. char* /*base64*/ X509Certificate 1; ///< Required element. /// Element X509CRL of type xs:base64Binary. char* /*base64*/ X509CRL 1; ///< Required element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. // END OF CHOICE }; /// "http://www.w3.org/2000/09/xmldsig#":X509IssuerSerialType is a complexType. struct ds__X509IssuerSerialType { /// Element X509IssuerName of type xs:string. char* X509IssuerName 1; ///< Required element. /// Element X509SerialNumber of type xs:integer. int X509SerialNumber 1; ///< Required element. }; /// "http://www.w3.org/2000/09/xmldsig#":DSAKeyValueType is a complexType. struct ds__DSAKeyValueType { /// Element G of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ G 0; ///< Optional element. /// Element Y of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Y 1; ///< Required element. /// Element J of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ J 0; ///< Optional element. /// Element P of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ P 1; ///< Required element. /// Element Q of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Q 1; ///< Required element. /// Element Seed of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Seed 1; ///< Required element. /// Element PgenCounter of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ PgenCounter 1; ///< Required element. }; /// "http://www.w3.org/2000/09/xmldsig#":RSAKeyValueType is a complexType. struct ds__RSAKeyValueType { /// Element Modulus of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Modulus 1; ///< Required element. /// Element Exponent of type "http://www.w3.org/2000/09/xmldsig#":CryptoBinary. char* /*base64*/ Exponent 1; ///< Required element. }; /// Element "http://www.w3.org/2000/09/xmldsig#":Signature of complexType "http://www.w3.org/2000/09/xmldsig#":SignatureType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignatureValue of complexType "http://www.w3.org/2000/09/xmldsig#":SignatureValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignedInfo of complexType "http://www.w3.org/2000/09/xmldsig#":SignedInfoType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethod of complexType "http://www.w3.org/2000/09/xmldsig#":CanonicalizationMethodType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignatureMethod of complexType "http://www.w3.org/2000/09/xmldsig#":SignatureMethodType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Reference of complexType "http://www.w3.org/2000/09/xmldsig#":ReferenceType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Transforms of complexType "http://www.w3.org/2000/09/xmldsig#":TransformsType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Transform of complexType "http://www.w3.org/2000/09/xmldsig#":TransformType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":DigestMethod of complexType "http://www.w3.org/2000/09/xmldsig#":DigestMethodType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":DigestValue of complexType "http://www.w3.org/2000/09/xmldsig#":DigestValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":KeyInfo of complexType "http://www.w3.org/2000/09/xmldsig#":KeyInfoType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":KeyName of complexType xs:string. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":MgmtData of complexType xs:string. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":KeyValue of complexType "http://www.w3.org/2000/09/xmldsig#":KeyValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":RetrievalMethod of complexType "http://www.w3.org/2000/09/xmldsig#":RetrievalMethodType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":X509Data of complexType "http://www.w3.org/2000/09/xmldsig#":X509DataType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":PGPData of complexType "http://www.w3.org/2000/09/xmldsig#":PGPDataType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SPKIData of complexType "http://www.w3.org/2000/09/xmldsig#":SPKIDataType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Object of complexType "http://www.w3.org/2000/09/xmldsig#":ObjectType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":Manifest of complexType "http://www.w3.org/2000/09/xmldsig#":ManifestType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignatureProperties of complexType "http://www.w3.org/2000/09/xmldsig#":SignaturePropertiesType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":SignatureProperty of complexType "http://www.w3.org/2000/09/xmldsig#":SignaturePropertyType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":DSAKeyValue of complexType "http://www.w3.org/2000/09/xmldsig#":DSAKeyValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /// Element "http://www.w3.org/2000/09/xmldsig#":RSAKeyValue of complexType "http://www.w3.org/2000/09/xmldsig#":RSAKeyValueType. /// Note: use wsdl2h option -g to generate this global element declaration. /* End of ds.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/README.txt0000644012402100775320000000257210746077316021536 0ustar00gkbld_amtccigk00000000000000This directory contains common #import-ed items. dom.h DOM support (requires dom.c/pp) stldeque.h std::deque serializer stllist.h std::list serializer stlset.h std::set serializer stlvector.h std::vector serializer stl.h std::deque, std::list, std::set, and std::vector serializer soap12.h SOAP 1.2 namespaces wsa.h WS-Addressing 2004/08 (see plugin/wsaapi.c) wsa3.h WS-Addressing 2003/03 (see plugin/wsaapi.c) wsa4.h WS-Addressing 2004/03 (see plugin/wsaapi.c) wsa5.h WS-Addressing 2005/03 (see plugin/wsaapi.c) wsse.h WS-Security (see plugin/wsseapi.c) wsu.h Utility xmlmime.h XML MIME bindings xop.h XOP MTOM attachments This directory further contains files to support a growing number of WS-* specifications. For example, wsa.h is generated from WS/WS-Addressing.xsd with: wsdl2h -cgy -o wsa.h -t WS/WS-typemap.dat WS/WS-Addressing.xsd The typemap.dat file that is needed by wsdl2h to convert WSDL to a gSOAP header file defines imported namespaces as follows: wsa = This ensures that the WS-Addressing support is #import-ed from "wsa.h" when wsdl2h sees WS-Addressing elements. Thus, it does not attempt to extract the WS-Addressing schema but instead uses the pre-build wsa.h definitions. Note that the regular XML namespace bindings are defined in typemap.dat using quotes, for example: aws = "urn:PI/DevCentral/SoapService" UNS-3.2.0.24/SoapServer/gSOAP/import/soap12.h0000644012402100775320000000455610746077316021322 0ustar00gkbld_amtccigk00000000000000/* soap12.h Use #import "soap12.h" in a gSOAP header file to enable SOAP 1.2 bindings. Alternatively, use soapcpp2 option -2 Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ //gsoap SOAP-ENV schema namespace: http://www.w3.org/2003/05/soap-envelope //gsoap SOAP-ENC schema namespace: http://www.w3.org/2003/05/soap-encoding UNS-3.2.0.24/SoapServer/gSOAP/import/stl.h0000644012402100775320000000442110746077316021006 0ustar00gkbld_amtccigk00000000000000/* stl.h Use #import "stl.h" in a gSOAP header file to enable STL vectors, deques, lists, and sets. Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ #import "stldeque.h" #import "stllist.h" #import "stlvector.h" #import "stlset.h" UNS-3.2.0.24/SoapServer/gSOAP/import/stldeque.h0000644012402100775320000000434510746077316022037 0ustar00gkbld_amtccigk00000000000000/* stldeque.h Use #import "stldeque.h" in a gSOAP header file to enable STL deques. Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ #include template class std::deque; UNS-3.2.0.24/SoapServer/gSOAP/import/stllist.h0000644012402100775320000000434010746077316021702 0ustar00gkbld_amtccigk00000000000000/* stllist.h Use #import "stllist.h" in a gSOAP header file to enable STL lists. Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ #include template class std::list; UNS-3.2.0.24/SoapServer/gSOAP/import/stlset.h0000644012402100775320000000433310746077316021524 0ustar00gkbld_amtccigk00000000000000/* stlset.h Use #import "stlset.h" in a gSOAP header file to enable STL sets. Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ #include template class std::set; UNS-3.2.0.24/SoapServer/gSOAP/import/stlvector.h0000644012402100775320000000435210746077316022234 0ustar00gkbld_amtccigk00000000000000/* stlvector.h Use #import "stlvector.h" in a gSOAP header file to enable STL vectors. Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ #include template class std::vector; UNS-3.2.0.24/SoapServer/gSOAP/import/wsa.h0000644012402100775320000003207510746077316021004 0ustar00gkbld_amtccigk00000000000000/* wsa.h Usage: See plugin/wsaapi.c Generated with: wsdl2h -cgye -o wsa.h -t WS/WS-typemap.dat WS/WS-Addressing.xsd Modified by Robert van Engelen: - Removed //gsoapopt - Added the following directive to import WS-Addressing namespace: //gsoap wsa schema import: http://schemas.xmlsoap.org/ws/2004/08/addressing This ensures that the WS-Addressing schemas are not copied into the generated WSDL by soapcpp2 but are referenced with schema import in the generated WSDL. Usage: // header file for soapcpp2 #import "wsa.h" struct SOAP_ENV__Header { _wsa__MessageID wsa__MessageID 0; _wsa__RelatesTo *wsa__RelatesTo 0; _wsa__From *wsa__From 0; mustUnderstand _wsa__ReplyTo *wsa__ReplyTo 0; mustUnderstand _wsa__FaultTo *wsa__FaultTo 0; mustUnderstand _wsa__To wsa__To 0; mustUnderstand _wsa__Action wsa__Action 0; }; // client-side source code { struct soap soap; struct SOAP_ENV__Header header; _wsa__ReplyTo replyTo; soap_init(&soap); soap_default_SOAP_ENV__Header(&soap, &header); soap.header = &header; soap_default_wsa__EndpointReferenceType(&soap, &replyTo); replyTo.Address = "http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anony mous"; header.wsa__MessageID = "..."; header.wsa__To = "..."; header.wsa__Action = "..."; header.wsa__ReplyTo = &replyTo; if (soap_call_ns__method(&soap, ...) != SOAP_OK) // server-side source code int soap_ns__method(struct soap *soap, ...) { if (!soap->header) return soap_sender_fault(soap, "No SOAP header, must send one", NULL); if (!soap->header->wsa__MessageID) return soap_sender_fault(soap, "No WS-Addressing MessageID", NULL); soap->header->wsa__RelatesTo = (struct wsa__Relationship*)soap_malloc(soap, sizeof(struct wsa__Relationship)); soap_default_wsa__Relationship(soap, soap->header->wsa__RelatesTo); soap->header->wsa__RelatesTo->__item = soap->header->wsa__MessageID; if (!soap->header->wsa__ReplyTo || !soap->header->wsa__ReplyTo->Address) return soap_sender_fault(soap, "No WS-Addressing ReplyTo address", NULL); soap->header->wsa__To = soap->header->wsa__ReplyTo->Address; soap->header->wsa__MessageID = "..."; soap->header->wsa__Action = "..."; ... */ /******************************************************************************\ * * * http://schemas.xmlsoap.org/ws/2004/08/addressing * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap wsa schema import: http://schemas.xmlsoap.org/ws/2004/08/addressing //gsoap wsa schema elementForm: qualified //gsoap wsa schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Typedef synonym for struct wsa__EndpointReferenceType. typedef struct wsa__EndpointReferenceType wsa__EndpointReferenceType; /// Typedef synonym for struct wsa__ReferencePropertiesType. typedef struct wsa__ReferencePropertiesType wsa__ReferencePropertiesType; /// Typedef synonym for struct wsa__ReferenceParametersType. typedef struct wsa__ReferenceParametersType wsa__ReferenceParametersType; /// Typedef synonym for struct wsa__ServiceNameType. typedef struct wsa__ServiceNameType wsa__ServiceNameType; /// Typedef synonym for struct wsa__Relationship. typedef struct wsa__Relationship wsa__Relationship; /// Imported complexType "http://schemas.xmlsoap.org/ws/2004/08/addressing":ReplyAfterType from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// Imported complexType "http://schemas.xmlsoap.org/ws/2004/08/addressing":AttributedQName from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// Imported complexType "http://schemas.xmlsoap.org/ws/2004/08/addressing":AttributedURI from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// "http://schemas.xmlsoap.org/ws/2004/08/addressing":RelationshipTypeValues is a simpleType restriction of xs:QName. enum wsa__RelationshipTypeValues { wsa__Reply, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/08/addressing":Reply" }; /// Typedef synonym for enum wsa__RelationshipTypeValues. typedef enum wsa__RelationshipTypeValues wsa__RelationshipTypeValues; /// "http://schemas.xmlsoap.org/ws/2004/08/addressing":FaultSubcodeValues is a simpleType restriction of xs:QName. enum wsa__FaultSubcodeValues { wsa__InvalidMessageInformationHeader, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/08/addressing":InvalidMessageInformationHeader" wsa__MessageInformationHeaderRequired, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/08/addressing":MessageInformationHeaderRequired" wsa__DestinationUnreachable, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/08/addressing":DestinationUnreachable" wsa__ActionNotSupported, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/08/addressing":ActionNotSupported" wsa__EndpointUnavailable, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/08/addressing":EndpointUnavailable" }; /// Typedef synonym for enum wsa__FaultSubcodeValues. typedef enum wsa__FaultSubcodeValues wsa__FaultSubcodeValues; /// "http://schemas.xmlsoap.org/ws/2004/08/addressing":EndpointReferenceType is a complexType. struct wsa__EndpointReferenceType { /// Element Address of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":AttributedURI. char* Address 1; ///< Required element. /// Element ReferenceProperties of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":ReferencePropertiesType. struct wsa__ReferencePropertiesType* ReferenceProperties 0; ///< Optional element. /// Element ReferenceParameters of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":ReferenceParametersType. struct wsa__ReferenceParametersType* ReferenceParameters 0; ///< Optional element. /// Element PortType of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":AttributedQName. _QName* PortType 0; ///< Optional element. /// Element ServiceName of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":ServiceNameType. struct wsa__ServiceNameType* ServiceName 0; ///< Optional element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2004/08/addressing":ReferencePropertiesType is a complexType. struct wsa__ReferencePropertiesType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2004/08/addressing":ReferenceParametersType is a complexType. struct wsa__ReferenceParametersType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2004/08/addressing":ServiceNameType is a complexType with simpleContent. struct wsa__ServiceNameType { /// __item wraps 'xs:QName' simpleContent. _QName __item ; /// Attribute PortName of type xs:NCName. @char* /*NCName*/ PortName 0; ///< Optional attribute. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2004/08/addressing":Relationship is a complexType with simpleContent. struct wsa__Relationship { /// __item wraps 'xs:anyURI' simpleContent. char* /*URI*/ __item ; /// Attribute RelationshipType of type xs:QName. @_QName RelationshipType 0; ///< Optional attribute. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// Element "http://schemas.xmlsoap.org/ws/2004/08/addressing":EndpointReference of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":EndpointReferenceType. typedef struct wsa__EndpointReferenceType _wsa__EndpointReference; /// Element "http://schemas.xmlsoap.org/ws/2004/08/addressing":MessageID of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":AttributedURI. typedef char* _wsa__MessageID; /// Element "http://schemas.xmlsoap.org/ws/2004/08/addressing":RelatesTo of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":Relationship. typedef struct wsa__Relationship _wsa__RelatesTo; /// Element "http://schemas.xmlsoap.org/ws/2004/08/addressing":To of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":AttributedURI. typedef char* _wsa__To; /// Element "http://schemas.xmlsoap.org/ws/2004/08/addressing":Action of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":AttributedURI. typedef char* _wsa__Action; /// Element "http://schemas.xmlsoap.org/ws/2004/08/addressing":From of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":EndpointReferenceType. typedef struct wsa__EndpointReferenceType _wsa__From; /// Element "http://schemas.xmlsoap.org/ws/2004/08/addressing":ReplyTo of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":EndpointReferenceType. typedef struct wsa__EndpointReferenceType _wsa__ReplyTo; /// Element "http://schemas.xmlsoap.org/ws/2004/08/addressing":FaultTo of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":EndpointReferenceType. typedef struct wsa__EndpointReferenceType _wsa__FaultTo; /// Element "http://schemas.xmlsoap.org/ws/2004/08/addressing":ReplyAfter of type "http://schemas.xmlsoap.org/ws/2004/08/addressing":ReplyAfterType. typedef unsigned int _wsa__ReplyAfter; /// Attribute "http://schemas.xmlsoap.org/ws/2004/08/addressing":Action of simpleType xs:anyURI. // '_wsa__Action' attribute definition intentionally left blank. /* End of wsa.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/wsa3.h0000644012402100775320000002234110746077317021063 0ustar00gkbld_amtccigk00000000000000/* wsa3.h Usage: See plugin/wsaapi.c Generated with: wsdl2h -cgye -o wsa3.h -t WS/WS-typemap.dat WS/WS-Addressing03.xsd Modified by Robert van Engelen: - Removed //gsoapopt - Added the following directive to import WS-Addressing namespace: //gsoap wsa4 schema import: http://schemas.xmlsoap.org/ws/2003/03/addressing This ensures that the WS-Addressing schemas are not copied into the generated WSDL by soapcpp2 but are referenced with schema import in the generated WSDL. - Added #define SOAP_WSA_2003 */ #define SOAP_WSA_2003 /******************************************************************************\ * * * http://schemas.xmlsoap.org/ws/2003/03/addressing * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap wsa3 schema import: http://schemas.xmlsoap.org/ws/2003/03/addressing //gsoap wsa3 schema elementForm: qualified //gsoap wsa3 schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Typedef synonym for struct wsa3__EndpointReferenceType. typedef struct wsa3__EndpointReferenceType wsa3__EndpointReferenceType; /// Typedef synonym for struct wsa3__ReferencePropertiesType. typedef struct wsa3__ReferencePropertiesType wsa3__ReferencePropertiesType; /// Typedef synonym for struct wsa3__ServiceNameType. typedef struct wsa3__ServiceNameType wsa3__ServiceNameType; /// Typedef synonym for struct wsa3__Relationship. typedef struct wsa3__Relationship wsa3__Relationship; /// Imported complexType "http://schemas.xmlsoap.org/ws/2003/03/addressing":AttributedQName from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// Imported complexType "http://schemas.xmlsoap.org/ws/2003/03/addressing":AttributedURI from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// "http://schemas.xmlsoap.org/ws/2003/03/addressing":RelationshipTypeValues is a simpleType restriction of xs:QName. enum wsa3__RelationshipTypeValues { wsa3__Response, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2003/03/addressing":Response" }; /// Typedef synonym for enum wsa3__RelationshipTypeValues. typedef enum wsa3__RelationshipTypeValues wsa3__RelationshipTypeValues; /// "http://schemas.xmlsoap.org/ws/2003/03/addressing":EndpointReferenceType is a complexType. struct wsa3__EndpointReferenceType { /// Element Address of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":AttributedURI. char* /*URI*/ Address 1; ///< Required element. /// Element ReferenceProperties of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":ReferencePropertiesType. struct wsa3__ReferencePropertiesType* ReferenceProperties 0; ///< Optional element. /// Element PortType of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":AttributedQName. _QName* PortType 0; ///< Optional element. /// Element ServiceName of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":ServiceNameType. struct wsa3__ServiceNameType* ServiceName 0; ///< Optional element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2003/03/addressing":ReferencePropertiesType is a complexType. struct wsa3__ReferencePropertiesType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2003/03/addressing":ServiceNameType is a complexType with simpleContent. struct wsa3__ServiceNameType { /// __item wraps 'xs:QName' simpleContent. _QName __item ; /// Attribute PortName of type xs:NCName. @char* /*NCName*/ PortName 0; ///< Optional attribute. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2003/03/addressing":Relationship is a complexType with simpleContent. struct wsa3__Relationship { /// __item wraps 'xs:anyURI' simpleContent. char* /*URI*/ __item ; /// Attribute RelationshipType of type xs:QName. @_QName RelationshipType 0; ///< Optional attribute. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// Element "http://schemas.xmlsoap.org/ws/2003/03/addressing":EndpointReference of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":EndpointReferenceType. typedef struct wsa3__EndpointReferenceType _wsa3__EndpointReference; /// Element "http://schemas.xmlsoap.org/ws/2003/03/addressing":MessageID of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":AttributedURI. typedef char* /*URI*/ _wsa3__MessageID; /// Element "http://schemas.xmlsoap.org/ws/2003/03/addressing":RelatesTo of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":Relationship. typedef struct wsa3__Relationship _wsa3__RelatesTo; /// Element "http://schemas.xmlsoap.org/ws/2003/03/addressing":To of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":AttributedURI. typedef char* /*URI*/ _wsa3__To; /// Element "http://schemas.xmlsoap.org/ws/2003/03/addressing":Action of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":AttributedURI. typedef char* /*URI*/ _wsa3__Action; /// Element "http://schemas.xmlsoap.org/ws/2003/03/addressing":From of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":EndpointReferenceType. typedef struct wsa3__EndpointReferenceType _wsa3__From; /// Element "http://schemas.xmlsoap.org/ws/2003/03/addressing":ReplyTo of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":EndpointReferenceType. typedef struct wsa3__EndpointReferenceType _wsa3__ReplyTo; /// Element "http://schemas.xmlsoap.org/ws/2003/03/addressing":FaultTo of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":EndpointReferenceType. typedef struct wsa3__EndpointReferenceType _wsa3__FaultTo; /// Element "http://schemas.xmlsoap.org/ws/2003/03/addressing":Recipient of type "http://schemas.xmlsoap.org/ws/2003/03/addressing":EndpointReferenceType. typedef struct wsa3__EndpointReferenceType _wsa3__Recipient; /* End of wsa3.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/wsa4.h0000644012402100775320000002450510746077317021070 0ustar00gkbld_amtccigk00000000000000/* wsa4.h Usage: See plugin/wsaapi.c Generated with: wsdl2h -cgye -o wsa4.h -t WS/WS-typemap.dat WS/WS-Addressing04.xsd Modified by Robert van Engelen: - Removed //gsoapopt - Added the following directive to import WS-Addressing namespace: //gsoap wsa4 schema import: http://schemas.xmlsoap.org/ws/2004/03/addressing This ensures that the WS-Addressing schemas are not copied into the generated WSDL by soapcpp2 but are referenced with schema import in the generated WSDL. - Added #define SOAP_WSA_2004 */ #define SOAP_WSA_2004 /******************************************************************************\ * * * http://schemas.xmlsoap.org/ws/2004/03/addressing * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap wsa4 import namespace: http://schemas.xmlsoap.org/ws/2004/03/addressing //gsoap wsa4 schema elementForm: qualified //gsoap wsa4 schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Typedef synonym for struct wsa4__EndpointReferenceType. typedef struct wsa4__EndpointReferenceType wsa4__EndpointReferenceType; /// Typedef synonym for struct wsa4__ReferencePropertiesType. typedef struct wsa4__ReferencePropertiesType wsa4__ReferencePropertiesType; /// Typedef synonym for struct wsa4__ServiceNameType. typedef struct wsa4__ServiceNameType wsa4__ServiceNameType; /// Typedef synonym for struct wsa4__Relationship. typedef struct wsa4__Relationship wsa4__Relationship; /// Imported complexType "http://schemas.xmlsoap.org/ws/2004/03/addressing":ReplyAfterType from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// Imported complexType "http://schemas.xmlsoap.org/ws/2004/03/addressing":AttributedQName from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// Imported complexType "http://schemas.xmlsoap.org/ws/2004/03/addressing":AttributedURI from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// Element "http://schemas.xmlsoap.org/ws/2004/03/addressing":ReplyAfter. /// "http://schemas.xmlsoap.org/ws/2004/03/addressing":RelationshipTypeValues is a simpleType restriction of xs:QName. enum wsa4__RelationshipTypeValues { wsa4__Reply, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/03/addressing":Reply" }; /// Typedef synonym for enum wsa4__RelationshipTypeValues. typedef enum wsa4__RelationshipTypeValues wsa4__RelationshipTypeValues; /// "http://schemas.xmlsoap.org/ws/2004/03/addressing":FaultSubcodeValues is a simpleType restriction of xs:QName. enum wsa4__FaultSubcodeValues { wsa4__InvalidMessageInformationHeader, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/03/addressing":InvalidMessageInformationHeader" wsa4__MessageInformationHeaderRequired, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/03/addressing":MessageInformationHeaderRequired" wsa4__DestinationUnreachable, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/03/addressing":DestinationUnreachable" wsa4__ActionNotSupported, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/03/addressing":ActionNotSupported" wsa4__EndpointUnavailable, ///< xs:QName value=""http://schemas.xmlsoap.org/ws/2004/03/addressing":EndpointUnavailable" }; /// Typedef synonym for enum wsa4__FaultSubcodeValues. typedef enum wsa4__FaultSubcodeValues wsa4__FaultSubcodeValues; /// "http://schemas.xmlsoap.org/ws/2004/03/addressing":EndpointReferenceType is a complexType. struct wsa4__EndpointReferenceType { /// Element Address of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":AttributedURI. char* /*URI*/ Address 1; ///< Required element. /// Element ReferenceProperties of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":ReferencePropertiesType. struct wsa4__ReferencePropertiesType* ReferenceProperties 0; ///< Optional element. /// Element PortType of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":AttributedQName. _QName* PortType 0; ///< Optional element. /// Element ServiceName of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":ServiceNameType. struct wsa4__ServiceNameType* ServiceName 0; ///< Optional element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2004/03/addressing":ReferencePropertiesType is a complexType. struct wsa4__ReferencePropertiesType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2004/03/addressing":ServiceNameType is a complexType with simpleContent. struct wsa4__ServiceNameType { /// __item wraps 'xs:QName' simpleContent. _QName __item ; /// Attribute PortName of type xs:NCName. @char* /*NCName*/ PortName 0; ///< Optional attribute. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://schemas.xmlsoap.org/ws/2004/03/addressing":Relationship is a complexType with simpleContent. struct wsa4__Relationship { /// __item wraps 'xs:anyURI' simpleContent. char* /*URI*/ __item ; /// Attribute RelationshipType of type xs:QName. @_QName RelationshipType 0; ///< Optional attribute. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// Element "http://schemas.xmlsoap.org/ws/2004/03/addressing":EndpointReference of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":EndpointReferenceType. typedef struct wsa4__EndpointReferenceType _wsa4__EndpointReference; /// Element "http://schemas.xmlsoap.org/ws/2004/03/addressing":MessageID of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":AttributedURI. typedef char* /*URI*/ _wsa4__MessageID; /// Element "http://schemas.xmlsoap.org/ws/2004/03/addressing":RelatesTo of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":Relationship. typedef struct wsa4__Relationship _wsa4__RelatesTo; /// Element "http://schemas.xmlsoap.org/ws/2004/03/addressing":To of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":AttributedURI. typedef char* /*URI*/ _wsa4__To; /// Element "http://schemas.xmlsoap.org/ws/2004/03/addressing":Action of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":AttributedURI. typedef char* /*URI*/ _wsa4__Action; /// Element "http://schemas.xmlsoap.org/ws/2004/03/addressing":From of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":EndpointReferenceType. typedef struct wsa4__EndpointReferenceType _wsa4__From; /// Element "http://schemas.xmlsoap.org/ws/2004/03/addressing":ReplyTo of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":EndpointReferenceType. typedef struct wsa4__EndpointReferenceType _wsa4__ReplyTo; /// Element "http://schemas.xmlsoap.org/ws/2004/03/addressing":FaultTo of type "http://schemas.xmlsoap.org/ws/2004/03/addressing":EndpointReferenceType. typedef struct wsa4__EndpointReferenceType _wsa4__FaultTo; /// Attribute "http://schemas.xmlsoap.org/ws/2004/03/addressing":Action of simpleType xs:anyURI. // '_wsa4__Action' attribute definition intentionally left blank. /* End of wsa4.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/wsa5.h0000644012402100775320000003243510746077317021072 0ustar00gkbld_amtccigk00000000000000/* wsa5.h Usage: See plugin/wsaapi.c Generated with: wsdl2h -cgye -o wsa5.h -t WS/WS-typemap.dat WS/WS-Addressing05.xsd Modified by Robert van Engelen: - Removed //gsoapopt - Removed xsd__boolean declaration - Added the following directive to import WS-Addressing namespace: //gsoap wsa5 schema import: http://www.w3.org/2005/08/addressing This ensures that the WS-Addressing schemas are not copied into the generated WSDL by soapcpp2 but are referenced with schema import in the generated WSDL. - Added #define SOAP_WSA_2005 */ #define SOAP_WSA_2005 /******************************************************************************\ * * * http://www.w3.org/2005/08/addressing * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap wsa5 schema import: http://www.w3.org/2005/08/addressing //gsoap wsa5 schema elementForm: qualified //gsoap wsa5 schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Built-in type "xs:boolean". // enum xsd__boolean_ { _false, _true }; /// Typedef synonym for struct wsa5__EndpointReferenceType. typedef struct wsa5__EndpointReferenceType wsa5__EndpointReferenceType; /// Typedef synonym for struct wsa5__ReferenceParametersType. typedef struct wsa5__ReferenceParametersType wsa5__ReferenceParametersType; /// Typedef synonym for struct wsa5__MetadataType. typedef struct wsa5__MetadataType wsa5__MetadataType; /// Typedef synonym for struct wsa5__RelatesToType. typedef struct wsa5__RelatesToType wsa5__RelatesToType; /// Imported complexType "http://www.w3.org/2005/08/addressing":AttributedURIType from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2005/08/addressing":AttributedUnsignedLongType from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// Imported complexType "http://www.w3.org/2005/08/addressing":AttributedQNameType from typemap WS/WS-typemap.dat. // complexType definition intentionally left blank. /// Typedef synonym for struct wsa5__ProblemActionType. typedef struct wsa5__ProblemActionType wsa5__ProblemActionType; /// union of values "tns:RelationshipType xs:anyURI" typedef char* wsa5__RelationshipTypeOpenEnum; /// union of values "tns:FaultCodesType xs:QName" typedef char* wsa5__FaultCodesOpenEnumType; /// "http://www.w3.org/2005/08/addressing":RelationshipType is a simpleType restriction of xs:anyURI. enum wsa5__RelationshipType { http_x003a_x002f_x002fwww_x002ew3_x002eorg_x002f2005_x002f08_x002faddressing_x002freply, ///< xs:anyURI value="http://www.w3.org/2005/08/addressing/reply" }; /// Typedef synonym for enum wsa5__RelationshipType. typedef enum wsa5__RelationshipType wsa5__RelationshipType; /// "http://www.w3.org/2005/08/addressing":FaultCodesType is a simpleType restriction of xs:QName. enum wsa5__FaultCodesType { wsa5__InvalidAddressingHeader, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":InvalidAddressingHeader" wsa5__InvalidAddress, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":InvalidAddress" wsa5__InvalidEPR, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":InvalidEPR" wsa5__InvalidCardinality, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":InvalidCardinality" wsa5__MissingAddressInEPR, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":MissingAddressInEPR" wsa5__DuplicateMessageID, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":DuplicateMessageID" wsa5__ActionMismatch, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":ActionMismatch" wsa5__MessageAddressingHeaderRequired, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":MessageAddressingHeaderRequired" wsa5__DestinationUnreachable, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":DestinationUnreachable" wsa5__ActionNotSupported, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":ActionNotSupported" wsa5__EndpointUnavailable, ///< xs:QName value=""http://www.w3.org/2005/08/addressing":EndpointUnavailable" }; /// Typedef synonym for enum wsa5__FaultCodesType. typedef enum wsa5__FaultCodesType wsa5__FaultCodesType; /// "http://www.w3.org/2005/08/addressing":EndpointReferenceType is a complexType. struct wsa5__EndpointReferenceType { /// Element Address of type "http://www.w3.org/2005/08/addressing":AttributedURIType. char* /*URI*/ Address 1; ///< Required element. /// Element reference "http://www.w3.org/2005/08/addressing":ReferenceParameters. struct wsa5__ReferenceParametersType* ReferenceParameters 0; ///< Optional element. /// Element reference "http://www.w3.org/2005/08/addressing":Metadata. struct wsa5__MetadataType* Metadata 0; ///< Optional element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://www.w3.org/2005/08/addressing":ReferenceParametersType is a complexType. struct wsa5__ReferenceParametersType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://www.w3.org/2005/08/addressing":MetadataType is a complexType. struct wsa5__MetadataType { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this element. /// Use wsdl2h option -d to use xsd__anyType DOM. /// Size of the dynamic array of XML is 0..unbounded int __size ; _XML *__any ; ///< Catch any element content in XML string. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://www.w3.org/2005/08/addressing":ProblemActionType is a complexType. struct wsa5__ProblemActionType { /// Element reference "http://www.w3.org/2005/08/addressing":Action. char* /*URI*/ Action 0; ///< Optional element. /// Element SoapAction of type xs:anyURI. char* /*URI*/ SoapAction 0; ///< Optional element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// "http://www.w3.org/2005/08/addressing":RelatesToType is a complexType with simpleContent. struct wsa5__RelatesToType { /// __item wraps 'xs:anyURI' simpleContent. char* /*URI*/ __item ; /// Attribute RelationshipType of type "http://www.w3.org/2005/08/addressing":RelationshipTypeOpenEnum. @wsa5__RelationshipTypeOpenEnum RelationshipType 0; ///< Optional attribute. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// Element "http://www.w3.org/2005/08/addressing":EndpointReference of type "http://www.w3.org/2005/08/addressing":EndpointReferenceType. typedef struct wsa5__EndpointReferenceType _wsa5__EndpointReference; /// Element "http://www.w3.org/2005/08/addressing":ReferenceParameters of type "http://www.w3.org/2005/08/addressing":ReferenceParametersType. typedef struct wsa5__ReferenceParametersType _wsa5__ReferenceParameters; /// Element "http://www.w3.org/2005/08/addressing":Metadata of type "http://www.w3.org/2005/08/addressing":MetadataType. typedef struct wsa5__MetadataType _wsa5__Metadata; /// Element "http://www.w3.org/2005/08/addressing":MessageID of type "http://www.w3.org/2005/08/addressing":AttributedURIType. typedef char* /*URI*/ _wsa5__MessageID; /// Element "http://www.w3.org/2005/08/addressing":RelatesTo of type "http://www.w3.org/2005/08/addressing":RelatesToType. typedef struct wsa5__RelatesToType _wsa5__RelatesTo; /// Element "http://www.w3.org/2005/08/addressing":ReplyTo of type "http://www.w3.org/2005/08/addressing":EndpointReferenceType. typedef struct wsa5__EndpointReferenceType _wsa5__ReplyTo; /// Element "http://www.w3.org/2005/08/addressing":From of type "http://www.w3.org/2005/08/addressing":EndpointReferenceType. typedef struct wsa5__EndpointReferenceType _wsa5__From; /// Element "http://www.w3.org/2005/08/addressing":FaultTo of type "http://www.w3.org/2005/08/addressing":EndpointReferenceType. typedef struct wsa5__EndpointReferenceType _wsa5__FaultTo; /// Element "http://www.w3.org/2005/08/addressing":To of type "http://www.w3.org/2005/08/addressing":AttributedURIType. typedef char* /*URI*/ _wsa5__To; /// Element "http://www.w3.org/2005/08/addressing":Action of type "http://www.w3.org/2005/08/addressing":AttributedURIType. typedef char* /*URI*/ _wsa5__Action; /// Element "http://www.w3.org/2005/08/addressing":RetryAfter of type "http://www.w3.org/2005/08/addressing":AttributedUnsignedLongType. typedef ULONG64 _wsa5__RetryAfter; /// Element "http://www.w3.org/2005/08/addressing":ProblemHeaderQName of type "http://www.w3.org/2005/08/addressing":AttributedQNameType. typedef _QName _wsa5__ProblemHeaderQName; /// Element "http://www.w3.org/2005/08/addressing":ProblemIRI of type "http://www.w3.org/2005/08/addressing":AttributedURIType. typedef char* /*URI*/ _wsa5__ProblemIRI; /// Element "http://www.w3.org/2005/08/addressing":ProblemAction of type "http://www.w3.org/2005/08/addressing":ProblemActionType. typedef struct wsa5__ProblemActionType _wsa5__ProblemAction; /// Attribute "http://www.w3.org/2005/08/addressing":IsReferenceParameter of simpleType xs:boolean. /// Imported attribute _wsa5__IsReferenceParameter from typemap WS/WS-typemap.dat. typedef enum _wsa5__IsReferenceParameter { wsa5__false, wsa5__true } _wsa5__IsReferenceParameter; /* End of wsa5.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/wsp.h0000644012402100775320000002121210746077317021013 0ustar00gkbld_amtccigk00000000000000/* wsp.h Generated with: wsdl2h -c -x -o wsp.h -t WS/WS-typemap.dat WS/WS-Policy.xsd Modified by Robert van Engelen: - Removed //gsoapopt - Removed #import "wsu.h" since only wsu__Id is needed - Removed wsu__Id, since this type is defined in wsse.h - Removed enum xsd__boolean_ - Added //gsoap wsu schema import: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd - Added //gsoap wsp schema import: http://schemas.xmlsoap.org/ws/2004/09/policy - Added #import "wsse.h" - Modified wsp__union_1/_2/_3 to include wsse elements - Added wsse elements to wsp__union_1 and _2 */ /******************************************************************************\ * * * http://schemas.xmlsoap.org/ws/2004/09/policy * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ #import "wsse.h" /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap wsu schema import: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd //gsoap wsp schema import: http://schemas.xmlsoap.org/ws/2004/09/policy //gsoap wsp schema elementForm: qualified //gsoap wsp schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Built-in type "xs:base64Binary" struct xsd__base64Binary_ { unsigned char *__ptr; int __size; }; /// "http://schemas.xmlsoap.org/ws/2004/09/policy":PolicyURIs is a simpleType containing a whitespace separated list of xs:anyURI. typedef char* _wsp__PolicyURIs; /// Modified wsp__union_1 to add wsse elements union wsp__union_1 { /// Element reference "http://schemas.xmlsoap.org/ws/2004/09/policy":Policy struct _wsp__Policy* Policy 1; ///< Required element /// Element reference "http://schemas.xmlsoap.org/ws/2004/09/policy":All struct wsp__OperatorContentType* All 1; ///< Required element /// Element reference "http://schemas.xmlsoap.org/ws/2004/09/policy":ExactlyOne struct wsp__OperatorContentType* ExactlyOne 1; ///< Required element /// Element reference "http://schemas.xmlsoap.org/ws/2004/09/policy":PolicyReference struct _wsp__PolicyReference* PolicyReference 1; ///< Required element /// Added wsse:Confidentiality element struct wsse__Confidentiality* wsse__Confidentiality 1; /// Added wsse:SecurityHeader element struct wsse__SecurityHeader* wsse__SecurityHeader 1; /// Added wsse:SecurityToken element struct wsse__SecurityToken* wsse__SecurityToken 1; }; /// Modified __wsp__union_1 by removing duplicate __wsp__union_3 struct __wsp__union_1 { int __union_1 0; ///< Union wsp__union_1 selector: set to SOAP_UNION_wsp__union_1_ or 0 union wsp__union_1 *union_1 ; }; /// "http://schemas.xmlsoap.org/ws/2004/09/policy":OperatorContentType is a complexType. struct wsp__OperatorContentType { int __sizeunion_1 0; struct __wsp__union_1 *__union_1 ; }; /// "http://schemas.xmlsoap.org/ws/2004/09/policy":PolicyReference is a complexType. struct _wsp__PolicyReference { /// Attribute URI of type xs:anyURI @char* URI 0; ///< Optional attribute /// Attribute Digest of type xs:base64Binary @struct xsd__base64Binary_* Digest 0; ///< Optional attribute /// Attribute DigestAlgorithm of type xs:anyURI @char* DigestAlgorithm 0; ///< Optional attribute /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. }; /// "http://schemas.xmlsoap.org/ws/2004/09/policy":UsingPolicy is a complexType. struct _wsp__UsingPolicy { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. }; /// Modified wsp__union_2 union wsp__union_2 { /// Element reference "http://schemas.xmlsoap.org/ws/2004/09/policy":Policy struct _wsp__Policy* Policy 1; ///< Required element /// Element reference "http://schemas.xmlsoap.org/ws/2004/09/policy":PolicyReference struct _wsp__PolicyReference* PolicyReference 1; ///< Required element }; // Modified __wsp__union_2 struct __wsp__union_2 { int __union_2 ; ///< Union wsp__union_2 selector: set to SOAP_UNION_wsp__union_2_ union wsp__union_2 union_2 ; }; /// "http://schemas.xmlsoap.org/ws/2004/09/policy":PolicyAttachment is a complexType. struct _wsp__PolicyAttachment { /// Element reference "http://schemas.xmlsoap.org/ws/2004/09/policy":AppliesTo struct _wsp__AppliesTo* AppliesTo 1; ///< Required element /// CHOICE OF ELEMENTS int __sizeunion_2 ; struct __wsp__union_2 *__union_2 ; /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. }; /// "http://schemas.xmlsoap.org/ws/2004/09/policy":AppliesTo is a complexType. struct _wsp__AppliesTo { /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. }; /// "http://schemas.xmlsoap.org/ws/2004/09/policy":Policy is a complexType with complexContent extension of "http://schemas.xmlsoap.org/ws/2004/09/policy":OperatorContentType. struct _wsp__Policy { int __sizeunion_1 0; struct __wsp__union_1 *__union_1 ; /// Attribute TargetNamespace of type xs:anyURI @char* TargetNamespace 0; ///< Optional attribute /// Attribute reference "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":Id @wsu__Id wsu__Id_ 0; ///< Optional attribute /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. }; /* End of wsp.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/wsrp.h0000644012402100775320000002536710746077317021214 0ustar00gkbld_amtccigk00000000000000/* wsrp.h Generated with: wsdl2h -cgy -o wsrp.h -t WS/WS-typemap.dat WS/WS-Routing.xsd Modified by Robert van Engelen: - Removed //gsoapopt - Added the following directive to import WS-Routing namespace: //gsoap wsa schema import: http://schemas.xmlsoap.org/rp/ This ensures that the WS-Routing schemas are not copied into the generated WSDL by soapcpp2 but are referenced with schema import in the generated WSDL. */ /******************************************************************************\ * * * http://schemas.xmlsoap.org/rp/ * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap wsrp schema import: http://schemas.xmlsoap.org/rp/ //gsoap wsrp schema form: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Typedef synonym for struct wsrp__path_USCOREt. typedef struct wsrp__path_USCOREt wsrp__path_USCOREt; /// Typedef synonym for struct wsrp__via_USCOREt. typedef struct wsrp__via_USCOREt wsrp__via_USCOREt; /// Typedef synonym for struct wsrp__fwd_USCOREt. typedef struct wsrp__fwd_USCOREt wsrp__fwd_USCOREt; /// Typedef synonym for struct wsrp__rev_USCOREt. typedef struct wsrp__rev_USCOREt wsrp__rev_USCOREt; /// Typedef synonym for struct wsrp__found_USCOREt. typedef struct wsrp__found_USCOREt wsrp__found_USCOREt; /// Typedef synonym for struct wsrp__fault_USCOREt. typedef struct wsrp__fault_USCOREt wsrp__fault_USCOREt; /// Imported simpleType "http://schemas.xmlsoap.org/rp/":action_t from typemap WS/WS-typemap.dat. /// Element "http://schemas.xmlsoap.org/rp/":action of simpleType "http://schemas.xmlsoap.org/rp/":action_t. typedef char _wsrp__action; /// Imported simpleType "http://schemas.xmlsoap.org/rp/":to_t from typemap WS/WS-typemap.dat. /// Element "http://schemas.xmlsoap.org/rp/":to of simpleType "http://schemas.xmlsoap.org/rp/":to_t. typedef char _wsrp__to; /// Imported simpleType "http://schemas.xmlsoap.org/rp/":from_t from typemap WS/WS-typemap.dat. /// Element "http://schemas.xmlsoap.org/rp/":from of simpleType "http://schemas.xmlsoap.org/rp/":from_t. typedef char _wsrp__from; /// Imported simpleType "http://schemas.xmlsoap.org/rp/":id_t from typemap WS/WS-typemap.dat. /// Element "http://schemas.xmlsoap.org/rp/":id of simpleType "http://schemas.xmlsoap.org/rp/":id_t. typedef char _wsrp__id; /// Imported simpleType "http://schemas.xmlsoap.org/rp/":relatesTo_t from typemap WS/WS-typemap.dat. /// Element "http://schemas.xmlsoap.org/rp/":relatesTo of simpleType "http://schemas.xmlsoap.org/rp/":relatesTo_t. typedef char _wsrp__relatesTo; /// Imported simpleType "http://schemas.xmlsoap.org/rp/":faultcode_t from typemap WS/WS-typemap.dat. /// Element "http://schemas.xmlsoap.org/rp/":faultcode of simpleType "http://schemas.xmlsoap.org/rp/":faultcode_t. typedef char _wsrp__faultcode; /// Imported simpleType "http://schemas.xmlsoap.org/rp/":faultreason_t from typemap WS/WS-typemap.dat. /// Element "http://schemas.xmlsoap.org/rp/":faultreason of simpleType "http://schemas.xmlsoap.org/rp/":faultreason_t. typedef char _wsrp__faultreason; /// "http://schemas.xmlsoap.org/rp/":path_t is a complexType. struct wsrp__path_USCOREt { /// Element reference "http://schemas.xmlsoap.org/rp/":action. char* wsrp__action 1; ///< Required element. /// Element reference "http://schemas.xmlsoap.org/rp/":to. char* wsrp__to 0; ///< Optional element. /// Element reference "http://schemas.xmlsoap.org/rp/":fwd. struct wsrp__fwd_USCOREt* wsrp__fwd 0; ///< Optional element. /// Element reference "http://schemas.xmlsoap.org/rp/":rev. struct wsrp__rev_USCOREt* wsrp__rev 0; ///< Optional element. /// Element reference "http://schemas.xmlsoap.org/rp/":from. char* wsrp__from 0; ///< Optional element. /// Element reference "http://schemas.xmlsoap.org/rp/":id. char* wsrp__id 0; ///< Optional element. /// Element reference "http://schemas.xmlsoap.org/rp/":relatesTo. char* wsrp__relatesTo 0; ///< Optional element. /// Element reference "http://schemas.xmlsoap.org/rp/":fault. struct wsrp__fault_USCOREt* wsrp__fault 0; ///< Optional element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// Element "http://schemas.xmlsoap.org/rp/":path of complexType "http://schemas.xmlsoap.org/rp/":path_t. typedef struct wsrp__path_USCOREt _wsrp__path; /// "http://schemas.xmlsoap.org/rp/":fwd_t is a complexType. struct wsrp__fwd_USCOREt { /// Size of the dynamic array of struct wsrp__via_USCOREt* is 0..unbounded int __sizevia ; /// Pointer to array of struct wsrp__via_USCOREt*. struct wsrp__via_USCOREt* *wsrp__via 0; /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// Element "http://schemas.xmlsoap.org/rp/":fwd of complexType "http://schemas.xmlsoap.org/rp/":fwd_t. typedef struct wsrp__fwd_USCOREt _wsrp__fwd; /// "http://schemas.xmlsoap.org/rp/":rev_t is a complexType. struct wsrp__rev_USCOREt { /// Size of the dynamic array of struct wsrp__via_USCOREt* is 0..unbounded int __sizevia ; /// Pointer to array of struct wsrp__via_USCOREt*. struct wsrp__via_USCOREt* *wsrp__via 0; /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// Element "http://schemas.xmlsoap.org/rp/":rev of complexType "http://schemas.xmlsoap.org/rp/":rev_t. typedef struct wsrp__rev_USCOREt _wsrp__rev; /// "http://schemas.xmlsoap.org/rp/":found_t is a complexType. struct wsrp__found_USCOREt { /// Size of the dynamic array of char* is 0..unbounded int __sizeat ; /// Pointer to array of char*. char* *at 1; /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// Element "http://schemas.xmlsoap.org/rp/":found of complexType "http://schemas.xmlsoap.org/rp/":found_t. typedef struct wsrp__found_USCOREt _wsrp__found; /// "http://schemas.xmlsoap.org/rp/":fault_t is a complexType. struct wsrp__fault_USCOREt { /// Element reference "http://schemas.xmlsoap.org/rp/":faultcode. char* wsrp__faultcode 1; ///< Required element. /// Element reference "http://schemas.xmlsoap.org/rp/":faultreason. char* wsrp__faultreason 1; ///< Required element. /// Element endpoint of type xs:anyURI. char* endpoint 0; ///< Optional element. /// Element found of type "http://schemas.xmlsoap.org/rp/":found_t. struct wsrp__found_USCOREt* found 0; ///< Optional element. /// Element maxsize of type xs:integer. int* maxsize 0; ///< Optional element. /// Element maxtime of type xs:integer. int* maxtime 0; ///< Optional element. /// Element retryAfter of type xs:integer. int* retryAfter 0; ///< Optional element. /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change and/or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. }; /// Element "http://schemas.xmlsoap.org/rp/":fault of complexType "http://schemas.xmlsoap.org/rp/":fault_t. typedef struct wsrp__fault_USCOREt _wsrp__fault; /// "http://schemas.xmlsoap.org/rp/":via_t is a complexType with simpleContent. struct wsrp__via_USCOREt { /// __item wraps simpleContent. char* __item ; /// Attribute vid of type xs:anyURI. @char* vid 0; ///< Optional attribute. }; /// Element "http://schemas.xmlsoap.org/rp/":via of complexType "http://schemas.xmlsoap.org/rp/":via_t. typedef struct wsrp__via_USCOREt _wsrp__via; /* End of wsrp.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/wsse.h0000644012402100775320000003022710746077317021171 0ustar00gkbld_amtccigk00000000000000/* wsse.h Generated with: wsdl2h -cegxy -o wsse.h -t WS/WS-typemap.dat WS/wsse.xsd - Removed //gsoapopt - Added //gsoap wsse schema import: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd */ /******************************************************************************\ * * * http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd* * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ #import "wsu.h" // wsu = /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap wsse schema import: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd //gsoap wsse schema elementForm: qualified //gsoap wsse schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":AttributedString from typemap WS/WS-typemap.dat. /// @brief This type represents an element with arbitrary attributes. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":PasswordString from typemap WS/WS-typemap.dat. /// @brief This type is used for password elements per Section 4.1. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":EncodedString from typemap WS/WS-typemap.dat. /// @brief This type is used for elements containing stringified binary data. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UsernameTokenType from typemap WS/WS-typemap.dat. /// @brief This type represents a username token per Section 4.1 /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":BinarySecurityTokenType from typemap WS/WS-typemap.dat. /// @brief A security token that is encoded in binary /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":KeyIdentifierType from typemap WS/WS-typemap.dat. /// @brief A security token key identifier /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":ReferenceType from typemap WS/WS-typemap.dat. /// @brief This type represents a reference to an external security token. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":EmbeddedType from typemap WS/WS-typemap.dat. /// @brief This type represents a reference to an embedded security token. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityTokenReferenceType from typemap WS/WS-typemap.dat. /// @brief This type is used reference a security token. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityHeaderType from typemap WS/WS-typemap.dat. /// @brief This complexType defines header block to use for security-relevant data directed at a specific SOAP actor. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":TransformationParametersType from typemap WS/WS-typemap.dat. /// @brief This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation. /// complexType definition intentionally left blank. /// Imported simpleType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":tUsage from typemap WS/WS-typemap.dat. /// @brief Typedef to allow a list of usages (as URIs). /// simpleType definition intentionally left blank. /// "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":FaultcodeEnum is a simpleType restriction of xs:QName. enum wsse__FaultcodeEnum { wsse__UnsupportedSecurityToken, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UnsupportedSecurityToken" wsse__UnsupportedAlgorithm, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UnsupportedAlgorithm" wsse__InvalidSecurity, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":InvalidSecurity" wsse__InvalidSecurityToken, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":InvalidSecurityToken" wsse__FailedAuthentication, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":FailedAuthentication" wsse__FailedCheck, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":FailedCheck" wsse__SecurityTokenUnavailable, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityTokenUnavailable" }; /// Typedef synonym for enum wsse__FaultcodeEnum. typedef enum wsse__FaultcodeEnum wsse__FaultcodeEnum; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UsernameToken of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UsernameTokenType. /// @brief This element defines the wsse:UsernameToken element per Section 4.1. /// Imported element _wsse__UsernameToken from typemap WS/WS-typemap.dat. typedef struct _wsse__UsernameToken { char* Username; struct _wsse__Password* Password; char* Nonce; char* wsu__Created; @char* wsu__Id; } _wsse__UsernameToken; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":BinarySecurityToken of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":BinarySecurityTokenType. /// @brief This element defines the wsse:BinarySecurityToken element per Section 4.2. /// Imported element _wsse__BinarySecurityToken from typemap WS/WS-typemap.dat. typedef struct _wsse__BinarySecurityToken { char* __item; @char* wsu__Id; @char* ValueType; @char* EncodingType; } _wsse__BinarySecurityToken; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Reference of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":ReferenceType. /// @brief This element defines a security token reference /// Imported element _wsse__Reference from typemap WS/WS-typemap.dat. typedef struct _wsse__Reference { @char* URI; @char* ValueType; } _wsse__Reference; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Embedded of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":EmbeddedType. /// @brief This element defines a security token embedded reference /// Imported element _wsse__Embedded from typemap WS/WS-typemap.dat. typedef struct _wsse__Embedded { /* Extensible with embedded tokens and assertions */ @char* wsu__Id; @char* ValueType; } _wsse__Embedded; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":KeyIdentifier of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":KeyIdentifierType. /// @brief This element defines a key identifier reference /// Imported element _wsse__KeyIdentifier from typemap WS/WS-typemap.dat. typedef struct _wsse__KeyIdentifier { char* __item; @char* wsu__Id; @char* ValueType; @char* EncodingType; } _wsse__KeyIdentifier; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityTokenReference of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityTokenReferenceType. /// @brief This element defines the wsse:SecurityTokenReference per Section 4.3. /// Imported element _wsse__SecurityTokenReference from typemap WS/WS-typemap.dat. typedef struct _wsse__SecurityTokenReference { struct _wsse__Reference* Reference; struct _wsse__KeyIdentifier* KeyIdentifier; struct _wsse__Embedded* Embedded; @char* wsu__Id; @char* Usage; } _wsse__SecurityTokenReference; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Security of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityHeaderType. /// @brief This element defines the wsse:Security SOAP header element per Section 4. /// Imported element _wsse__Security from typemap WS/WS-typemap.dat. #import "ds.h" typedef struct _wsse__Security { struct _wsu__Timestamp* wsu__Timestamp; struct _wsse__UsernameToken* UsernameToken; struct _wsse__BinarySecurityToken* BinarySecurityToken; struct ds__SignatureType* ds__Signature; @char* SOAP_ENV__actor; @char* SOAP_ENV__role; } _wsse__Security; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":TransformationParameters of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":TransformationParametersType. /// @brief This element contains properties for transformations from any namespace, including DSIG. /// '_wsse__TransformationParameters' element definition intentionally left blank. /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Password of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":PasswordString. /// Imported element _wsse__Password from typemap WS/WS-typemap.dat. typedef struct _wsse__Password { char* __item; @char* Type; } _wsse__Password; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Nonce of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":EncodedString. /// '_wsse__Nonce' element definition intentionally left blank. /// Attribute "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Usage of simpleType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":tUsage. /// @brief This global attribute is used to indicate the usage of a referenced or indicated token within the containing context /// '_wsse__Usage' attribute definition intentionally left blank. /* End of wsse.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/wsse2.h0000644012402100775320000003021110746077317021244 0ustar00gkbld_amtccigk00000000000000/* wsse2.h See wsse.h - Copied from wsse.h - Removed //gsoapopt - Added //gsoap wsse2 schema import: http://schemas.xmlsoap.org/ws/2002/12/secext - Renamed //gsoap wsse => wsse2 - Renamed wsse__ => wsse2__ */ /******************************************************************************\ * * * http://schemas.xmlsoap.org/ws/2002/12/secext * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ #import "wsu.h" // wsu = /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap wsse2 schema import: http://schemas.xmlsoap.org/ws/2002/12/secext //gsoap wsse2 schema elementForm: qualified //gsoap wsse2 schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":AttributedString from typemap WS/WS-typemap.dat. /// @brief This type represents an element with arbitrary attributes. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":PasswordString from typemap WS/WS-typemap.dat. /// @brief This type is used for password elements per Section 4.1. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":EncodedString from typemap WS/WS-typemap.dat. /// @brief This type is used for elements containing stringified binary data. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UsernameTokenType from typemap WS/WS-typemap.dat. /// @brief This type represents a username token per Section 4.1 /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":BinarySecurityTokenType from typemap WS/WS-typemap.dat. /// @brief A security token that is encoded in binary /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":KeyIdentifierType from typemap WS/WS-typemap.dat. /// @brief A security token key identifier /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":ReferenceType from typemap WS/WS-typemap.dat. /// @brief This type represents a reference to an external security token. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":EmbeddedType from typemap WS/WS-typemap.dat. /// @brief This type represents a reference to an embedded security token. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityTokenReferenceType from typemap WS/WS-typemap.dat. /// @brief This type is used reference a security token. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityHeaderType from typemap WS/WS-typemap.dat. /// @brief This complexType defines header block to use for security-relevant data directed at a specific SOAP actor. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":TransformationParametersType from typemap WS/WS-typemap.dat. /// @brief This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation. /// complexType definition intentionally left blank. /// Imported simpleType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":tUsage from typemap WS/WS-typemap.dat. /// @brief Typedef to allow a list of usages (as URIs). /// simpleType definition intentionally left blank. /// "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":FaultcodeEnum is a simpleType restriction of xs:QName. enum wsse2__FaultcodeEnum { wsse2__UnsupportedSecurityToken, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UnsupportedSecurityToken" wsse2__UnsupportedAlgorithm, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UnsupportedAlgorithm" wsse2__InvalidSecurity, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":InvalidSecurity" wsse2__InvalidSecurityToken, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":InvalidSecurityToken" wsse2__FailedAuthentication, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":FailedAuthentication" wsse2__FailedCheck, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":FailedCheck" wsse2__SecurityTokenUnavailable, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityTokenUnavailable" }; /// Typedef synonym for enum wsse2__FaultcodeEnum. typedef enum wsse2__FaultcodeEnum wsse2__FaultcodeEnum; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UsernameToken of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":UsernameTokenType. /// @brief This element defines the wsse:UsernameToken element per Section 4.1. /// Imported element _wsse2__UsernameToken from typemap WS/WS-typemap.dat. typedef struct _wsse2__UsernameToken { char* Username; struct _wsse2__Password* Password; char* Nonce; char* wsu__Created; @char* wsu__Id; } _wsse2__UsernameToken; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":BinarySecurityToken of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":BinarySecurityTokenType. /// @brief This element defines the wsse:BinarySecurityToken element per Section 4.2. /// Imported element _wsse2__BinarySecurityToken from typemap WS/WS-typemap.dat. typedef struct _wsse2__BinarySecurityToken { char* __item; @char* wsu__Id; @char* ValueType; @char* EncodingType; } _wsse2__BinarySecurityToken; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Reference of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":ReferenceType. /// @brief This element defines a security token reference /// Imported element _wsse2__Reference from typemap WS/WS-typemap.dat. typedef struct _wsse2__Reference { @char* URI; @char* ValueType; } _wsse2__Reference; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Embedded of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":EmbeddedType. /// @brief This element defines a security token embedded reference /// Imported element _wsse2__Embedded from typemap WS/WS-typemap.dat. typedef struct _wsse2__Embedded { /* Extensible with embedded tokens and assertions */ @char* wsu__Id; @char* ValueType; } _wsse2__Embedded; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":KeyIdentifier of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":KeyIdentifierType. /// @brief This element defines a key identifier reference /// Imported element _wsse2__KeyIdentifier from typemap WS/WS-typemap.dat. typedef struct _wsse2__KeyIdentifier { char* __item; @char* wsu__Id; @char* ValueType; @char* EncodingType; } _wsse2__KeyIdentifier; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityTokenReference of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityTokenReferenceType. /// @brief This element defines the wsse:SecurityTokenReference per Section 4.3. /// Imported element _wsse2__SecurityTokenReference from typemap WS/WS-typemap.dat. typedef struct _wsse2__SecurityTokenReference { struct _wsse2__Reference* Reference; struct _wsse2__KeyIdentifier* KeyIdentifier; struct _wsse2__Embedded* Embedded; @char* wsu__Id; @char* Usage; } _wsse2__SecurityTokenReference; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Security of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":SecurityHeaderType. /// @brief This element defines the wsse:Security SOAP header element per Section 4. /// Imported element _wsse2__Security from typemap WS/WS-typemap.dat. #import "ds2.h" typedef struct _wsse2__Security { struct _wsu__Timestamp* wsu__Timestamp; struct _wsse2__UsernameToken* UsernameToken; struct _wsse2__BinarySecurityToken* BinarySecurityToken; struct ds__SignatureType* ds__Signature; @char* SOAP_ENV__actor; @char* SOAP_ENV__role; } _wsse2__Security; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":TransformationParameters of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":TransformationParametersType. /// @brief This element contains properties for transformations from any namespace, including DSIG. /// '_wsse2__TransformationParameters' element definition intentionally left blank. /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Password of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":PasswordString. /// Imported element _wsse2__Password from typemap WS/WS-typemap.dat. typedef struct _wsse2__Password { char* __item; @char* Type; } _wsse2__Password; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Nonce of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":EncodedString. /// '_wsse2__Nonce' element definition intentionally left blank. /// Attribute "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":Usage of simpleType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd":tUsage. /// @brief This global attribute is used to indicate the usage of a referenced or indicated token within the containing context /// '_wsse2__Usage' attribute definition intentionally left blank. /* End of wsse.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/wsu.h0000644012402100775320000001262210746077317021025 0ustar00gkbld_amtccigk00000000000000/* wsu.h Generated with: wsdl2h -cegy -o wsu.h -t WS/WS-typemap.dat WS/wsu.xsd Modified by Robert van Engelen: - Removed //gsoapopt - Added the following directive to import wsu namespace //gsoap wsu schema import: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd This ensures that the WS-Addressing schemas are not copied into the generated WSDL by soapcpp2 but are referenced with schema import in the generated WSDL. */ /******************************************************************************\ * * * http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd* * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ //gsoap wsu schema import: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd //gsoap wsu schema elementForm: qualified //gsoap wsu schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":AttributedDateTime from typemap WS/WS-typemap.dat. /// @brief This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":AttributedURI from typemap WS/WS-typemap.dat. /// @brief This type is for elements whose [children] is an anyURI and can have arbitrary attributes. /// complexType definition intentionally left blank. /// Imported complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":TimestampType from typemap WS/WS-typemap.dat. /// @brief This complex type ties together the timestamp related elements into a composite type. /// complexType definition intentionally left blank. /// "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":tTimestampFault is a simpleType restriction of xs:QName. /// @brief This type defines the fault code value for Timestamp message expiration. /// Note: enum values are prefixed with 'wsu__tTimestampFault' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum wsu__tTimestampFault { wsu__MessageExpired, ///< xs:QName value=""http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":MessageExpired" }; /// Typedef synonym for enum wsu__tTimestampFault. typedef enum wsu__tTimestampFault wsu__tTimestampFault; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":Timestamp of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":TimestampType. /// @brief This element allows Timestamps to be applied anywhere element wildcards are present, including as a SOAP header. /// Imported element _wsu__Timestamp from typemap WS/WS-typemap.dat. typedef struct _wsu__Timestamp { @char* wsu__Id; // use qualified form to enable signature char* Created; char* Expires; } _wsu__Timestamp; /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":Expires of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":AttributedDateTime. /// @brief This element allows an expiration time to be applied anywhere element wildcards are present. /// '_wsu__Expires' element definition intentionally left blank. /// Element "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":Created of complexType "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":AttributedDateTime. /// @brief This element allows a creation time to be applied anywhere element wildcards are present. /// '_wsu__Created' element definition intentionally left blank. /// Attribute "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd":Id of simpleType xs:ID. /// @brief This global attribute supports annotating arbitrary elements with an ID. /// '_wsu__Id' attribute definition intentionally left blank. /* End of wsu.h */ UNS-3.2.0.24/SoapServer/gSOAP/import/xlink.h0000644012402100775320000000435410746077317021337 0ustar00gkbld_amtccigk00000000000000/* xlink.h Use #import "xlink.h" in a gSOAP header file to enable xlink 1999 bindings. Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ //gsoap xlink schema import: http://www.w3.org/1999/xlink UNS-3.2.0.24/SoapServer/gSOAP/import/xmime.h0000644012402100775320000000471110746077317021326 0ustar00gkbld_amtccigk00000000000000/* xmime.h Use #import "xmime.h" in a gSOAP header file to enable xmlmime 2004/06 bindings. The xmime:contentType attribute can be used to associate a MIME type with binary content, as in: #import "xmime.h" struct ns__myBinaryData { unsigned char *__ptr; int __size; @char *xmime__contentType; }; Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ //gsoap xmime schema import: http://www.w3.org/2004/06/xmlmime UNS-3.2.0.24/SoapServer/gSOAP/import/xml.h0000644012402100775320000000501410746077317021004 0ustar00gkbld_amtccigk00000000000000/* xml.h Literal XML strings. A literal XML string contains XML content. This declaration provides a simple interface to the literal XML string handler. The XML string contains UTF8 content when the SOAP_C_UTFSTRING flag is set. Note: the built-in _XML type provides the same functionality. Example: #import "xml.h" struct ns__MyData { int num; XML str; // has XML content }; struct ns__Mixed { int num; XML __any; // __any is not a tag: this allows parsing of mixed content }; gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ typedef char *XML; UNS-3.2.0.24/SoapServer/gSOAP/import/xmlmime.h0000644012402100775320000000472510746077317021664 0ustar00gkbld_amtccigk00000000000000/* xmlmime.h Use #import "xmlmime.h" in a gSOAP header file to enable xmlmime 2004/11 bindings. The xmlmime:contentType attribute can be used to associate a MIME type with binary content, as in: #import "xmlmime.h" struct ns__myBinaryData { unsigned char *__ptr; int __size; @char *xmlmime__contentType; }; Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ //gsoap xmlmime schema import: http://www.w3.org/2004/11/xmlmime UNS-3.2.0.24/SoapServer/gSOAP/import/xop.h0000644012402100775320000000476110746077317021022 0ustar00gkbld_amtccigk00000000000000/* xop.h Use #import "xop.h" in a gSOAP header file to enable MTOM attachments. Use SOAP_ENC_MTOM flag in your code to switch to MTOM attachments, see the gSOAP documentation soapdoc2.html Use soapcpp2 option -Ipath:path:... to specify the path(s) for #import gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005 Robert A. van Engelen, Genivia inc. All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ //gsoap xop schema import: http://www.w3.org/2004/08/xop/include struct _xop__Include { unsigned char *__ptr; int __size; char *id; char *type; char *options; }; typedef struct _xop__Include _xop__Include; UNS-3.2.0.24/SoapServer/gSOAP/plugin/0000755012402100775320000000000010746077317020017 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/SoapServer/gSOAP/plugin/httpda.c0000644012402100775320000006105510746077317021456 0ustar00gkbld_amtccigk00000000000000/* httpda.c gSOAP HTTP Digest Authentication plugin. Supports both Basic and Digest authentication. Usage (client side, see httpdatest.h/.c for example): soap_register_plugin(&soap, http_da); if (soap_call_ns__method(&soap, ...) != SOAP_OK) { if (soap.error == 401) // HTTP authentication is required { if (!strcmp(soap.authrealm, authrealm)) // check authentication realm { struct http_da_info info; // to store userid and passwd http_da_save(&soap, &info, authrealm, userid, passwd); if (soap_call_ns__method(&soap, ...) == SOAP_OK) { ... soap_end(&soap); ... // userid and passwd were deallocated http_da_restore(&soap, &info); // get userid and passwd after soap_end() if (!soap_call_ns__method(&soap, ...) == SOAP_OK) ... http_da_release(&soap, &info); // remove userid and passwd Usage (server side, see httpdatest.h/.c for example): soap_register_plugin(&soap, http_da); ... soap_serve(&soap); ... int ns__method(struct soap *soap, ...) { if (soap->userid && soap->passwd) // Basic authentication { if (!strcmp(soap->userid, userid) && !strcmp(soap->passwd, passwd)) { ... // can also check soap->authrealm return SOAP_OK; } } else if (soap->authrealm && soap->userid) // Digest authentication { passwd = ... // database lookup on userid and authrealm to find passwd if (!strcmp(soap->authrealm, authrealm) && !strcmp(soap->userid, userid)) { if (!http_da_verify_post(soap, passwd)) // HTTP POST DA verification { ... return SOAP_OK; } } } soap->authrealm = authrealm; // realm to send to client return 401; // Not authorized, challenge with digest authentication } Compile with -DWITH_OPENSSL Link with OpenSSL (for md5evp.c), httpda.c, md5evp.c, and threads.c gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005, Robert van Engelen, Genivia, Inc., All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ #include "httpda.h" const char http_da_id[12] = HTTP_DA_ID; /* session database and lock */ static struct http_da_session *http_da_session = NULL; static MUTEX_TYPE http_da_session_lock; #define HTTP_DA_NONCELEN 21 #define HTTP_DA_OPAQUELEN 9 /******************************************************************************\ * * Forward decls * \******************************************************************************/ static int http_da_init(struct soap *soap, struct http_da_data *data); static int http_da_copy(struct soap *soap, struct soap_plugin *dst, struct soap_plugin *src); static void http_da_delete(struct soap *soap, struct soap_plugin *p); static int http_da_post_header(struct soap *soap, const char *key, const char *val); static int http_da_parse_header(struct soap *soap, const char *key, const char *val); static int http_da_prepareinit(struct soap *soap); static int http_da_preparesend(struct soap *soap, const char *buf, size_t len); static int http_da_preparerecv(struct soap *soap, const char *buf, size_t len); static int http_da_disconnect(struct soap *soap); static int http_da_verify_method(struct soap *soap, char *method, char *passwd); static void http_da_session_start(const char *realm, const char *nonce, const char *opaque); static int http_da_session_update(const char *realm, const char *nonce, const char *opaque, const char *cnonce, const char *ncount); static void http_da_session_cleanup(void); void http_da_calc_nonce(struct soap *soap, char nonce[HTTP_DA_NONCELEN]); void http_da_calc_opaque(struct soap *soap, char opaque[HTTP_DA_OPAQUELEN]); static void http_da_calc_HA1(struct soap *soap, void **context, char *alg, char *userid, char *realm, char *passwd, char *nonce, char *cnonce, char HA1hex[33]); static void http_da_calc_response(struct soap *soap, void **context, char HA1hex[33], char *nonce, char *ncount, char *cnonce, char *qop, char *method, char *uri, char entityHAhex[33], char response[33]); /******************************************************************************\ * * Plugin registry * \******************************************************************************/ int http_da(struct soap *soap, struct soap_plugin *p, void *arg) { p->id = http_da_id; p->data = (void*)SOAP_MALLOC(soap, sizeof(struct http_da_data)); p->fcopy = http_da_copy; p->fdelete = http_da_delete; if (p->data) { if (http_da_init(soap, (struct http_da_data*)p->data)) { SOAP_FREE(soap, p->data); return SOAP_EOM; } } return SOAP_OK; } static int http_da_init(struct soap *soap, struct http_da_data *data) { data->fposthdr = soap->fposthdr; soap->fposthdr = http_da_post_header; data->fparsehdr = soap->fparsehdr; soap->fparsehdr = http_da_parse_header; data->fprepareinit = soap->fprepareinit; soap->fprepareinit = http_da_prepareinit; data->context = NULL; memset(data->digest, 0, sizeof(data->digest)); return SOAP_OK; } static int http_da_copy(struct soap *soap, struct soap_plugin *dst, struct soap_plugin *src) { *dst = *src; dst->data = (void*)SOAP_MALLOC(soap, sizeof(struct http_da_data)); memcpy(dst->data, src->data, sizeof(struct http_da_data)); ((struct http_da_data*)dst->data)->context = NULL; memset(((struct http_da_data*)dst->data)->digest, 0, sizeof(((struct http_da_data*)dst->data)->digest)); ((struct http_da_data*)dst->data)->nonce = NULL; ((struct http_da_data*)dst->data)->opaque = NULL; ((struct http_da_data*)dst->data)->qop = NULL; ((struct http_da_data*)dst->data)->alg = NULL; ((struct http_da_data*)dst->data)->nc = 0; ((struct http_da_data*)dst->data)->ncount = NULL; ((struct http_da_data*)dst->data)->cnonce = NULL; ((struct http_da_data*)dst->data)->response = NULL; return SOAP_OK; } static void http_da_delete(struct soap *soap, struct soap_plugin *p) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (data) { if (data->context) md5_handler(soap, &data->context, MD5_DELETE, NULL, 0); SOAP_FREE(soap, data); } } /******************************************************************************\ * * Callbacks * \******************************************************************************/ static int http_da_post_header(struct soap *soap, const char *key, const char *val) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (!data) return SOAP_PLUGIN_ERROR; /* client's HTTP Authorization response */ if (key && !strcmp(key, "Authorization")) { char HA1[33], entityHAhex[33], response[33]; char cnonce[HTTP_DA_NONCELEN]; char ncount[9]; char *qop, *method; md5_handler(soap, &data->context, MD5_FINAL, data->digest, 0); http_da_calc_nonce(soap, cnonce); http_da_calc_HA1(soap, &data->context, data->alg, soap->userid, soap->authrealm, soap->passwd, data->nonce, cnonce, HA1); if (data->qop && !soap_tag_cmp(data->qop, "*auth-int*")) { qop = "auth-int"; soap_s2hex(soap, (unsigned char*)data->digest, entityHAhex, 16); } else if (data->qop) qop = "auth"; else qop = NULL; if (soap->status == SOAP_GET) method = "GET"; else method = "POST"; char _ncount[32]; sprintf(_ncount, "%8.8lx", data->nc++); // limit ncount string to 8 chars strncpy(ncount, _ncount, 8); http_da_calc_response(soap, &data->context, HA1, data->nonce, ncount, cnonce, qop, method, soap->path, entityHAhex, response); if (qop) sprintf(soap->tmpbuf, "Digest realm=\"%s\", username=\"%s\", nonce=\"%s\", uri=\"%s\", qop=\"%s\", nc=%s, cnonce=\"%s\", response=\"%s\", opaque=\"%s\"", soap->authrealm, soap->userid, data->nonce, soap->path, qop, ncount, cnonce, response, data->opaque); else sprintf(soap->tmpbuf, "Digest realm=\"%s\", username=\"%s\", nonce=\"%s\", uri=\"%s\", response=\"%s\", opaque=\"%s\"", soap->authrealm, soap->userid, data->nonce, soap->path, response, data->opaque); return data->fposthdr(soap, key, soap->tmpbuf); } /* server's HTTP Authorization response */ if (key && !strcmp(key, "WWW-Authenticate")) { char nonce[HTTP_DA_NONCELEN]; char opaque[HTTP_DA_OPAQUELEN]; http_da_calc_nonce(soap, nonce); http_da_calc_opaque(soap, opaque); http_da_session_start(soap->authrealm, nonce, opaque); sprintf(soap->tmpbuf, "Digest realm=\"%s\", qop=\"auth,auth-int\", nonce=\"%s\", opaque=\"%s\"", soap->authrealm, nonce, opaque); return data->fposthdr(soap, key, soap->tmpbuf); } return data->fposthdr(soap, key, val); } static int http_da_parse_header(struct soap *soap, const char *key, const char *val) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (!data) return SOAP_PLUGIN_ERROR; /* check if server received Authorization Digest HTTP header from client */ if (!soap_tag_cmp(key, "Authorization") && !soap_tag_cmp(val, "Digest *")) { soap->authrealm = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "realm")); soap->userid = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "username")); soap->passwd = NULL; data->nonce = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "nonce")); data->opaque = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "opaque")); data->qop = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "qop")); data->alg = NULL; data->ncount = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "nc")); data->cnonce = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "cnonce")); data->response = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "response")); if (data->qop && !soap_tag_cmp(data->qop, "auth-int")) { if (soap->fpreparerecv != http_da_preparerecv) { data->fpreparerecv = soap->fpreparerecv; soap->fpreparerecv = http_da_preparerecv; } if (soap->fdisconnect != http_da_disconnect) { data->fdisconnect = soap->fdisconnect; soap->fdisconnect = http_da_disconnect; } md5_handler(soap, &data->context, MD5_INIT, NULL, 0); } return SOAP_OK; } /* check if client received WWW-Authenticate Digest HTTP header from server */ if (!soap_tag_cmp(key, "WWW-Authenticate") && !soap_tag_cmp(val, "Digest *")) { soap->authrealm = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "realm")); data->nonce = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "nonce")); data->opaque = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "opaque")); data->qop = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "qop")); data->alg = soap_strdup(soap, soap_get_header_attribute(soap, val + 7, "algorithm")); data->nc = 1; data->ncount = NULL; data->cnonce = NULL; data->response = NULL; return SOAP_OK; } return data->fparsehdr(soap, key, val); } static int http_da_prepareinit(struct soap *soap) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (!data) return SOAP_PLUGIN_ERROR; if ((soap->mode & SOAP_IO) != SOAP_IO_STORE && (soap->mode & (SOAP_ENC_DIME | SOAP_ENC_MIME))) { /* TODO: handle attachments automatically, does not work yet */ soap->mode &= ~SOAP_IO; soap->mode |= SOAP_IO_STORE; } else { if (soap->fpreparerecv == http_da_preparerecv) soap->fpreparerecv = data->fpreparerecv; if (soap->fdisconnect == http_da_disconnect) soap->fdisconnect = data->fdisconnect; if (soap->userid && soap->passwd) { md5_handler(soap, &data->context, MD5_INIT, NULL, 0); if (soap->fpreparesend != http_da_preparesend) { data->fpreparesend = soap->fpreparesend; soap->fpreparesend = http_da_preparesend; } } if (data->fprepareinit) return data->fprepareinit(soap); } return SOAP_OK; } static int http_da_preparesend(struct soap *soap, const char *buf, size_t len) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (!data) return SOAP_PLUGIN_ERROR; md5_handler(soap, &data->context, MD5_UPDATE, (char*)buf, len); if (data->fpreparesend) return data->fpreparesend(soap, buf, len); return SOAP_OK; } static int http_da_preparerecv(struct soap *soap, const char *buf, size_t len) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (!data) return SOAP_PLUGIN_ERROR; md5_handler(soap, &data->context, MD5_UPDATE, (char*)buf, len); if (data->fpreparerecv) return data->fpreparerecv(soap, buf, len); return SOAP_OK; } static int http_da_disconnect(struct soap *soap) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (!data) return SOAP_PLUGIN_ERROR; md5_handler(soap, &data->context, MD5_FINAL, data->digest, 0); soap->fpreparerecv = data->fpreparerecv; soap->fdisconnect = data->fdisconnect; if (soap->fdisconnect) return soap->fdisconnect(soap); return SOAP_OK; } /******************************************************************************\ * * Client-side digest authentication state management * \******************************************************************************/ void http_da_save(struct soap *soap, struct http_da_info *info, const char *realm, const char *userid, const char *passwd) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (!data) return; info->authrealm = soap->authrealm = soap_strdup(NULL, realm); info->userid = soap->userid = soap_strdup(NULL, userid); info->passwd = soap->passwd = soap_strdup(NULL, passwd); info->nonce = soap_strdup(NULL, data->nonce); info->opaque = soap_strdup(NULL, data->opaque); info->qop = soap_strdup(NULL, data->qop); info->alg = soap_strdup(NULL, data->alg); } void http_da_restore(struct soap *soap, struct http_da_info *info) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (!data) return; soap->authrealm = info->authrealm; soap->userid = info->userid; soap->passwd = info->passwd; data->nonce = info->nonce; data->opaque = info->opaque; data->qop = info->qop; data->alg = info->alg; } void http_da_release(struct soap *soap, struct http_da_info *info) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); if (!data) return; soap->authrealm = NULL; soap->userid = NULL; soap->passwd = NULL; data->nonce = NULL; data->opaque = NULL; data->qop = NULL; data->alg = NULL; if (info->authrealm) { free(info->authrealm); info->authrealm = NULL; } if (info->userid) { free(info->userid); info->userid = NULL; } if (info->passwd) { free(info->passwd); info->passwd = NULL; } if (info->nonce) { free(info->nonce); info->nonce = NULL; } if (info->opaque) { free(info->opaque); info->opaque = NULL; } if (info->qop) { free(info->qop); info->qop = NULL; } if (info->alg) { free(info->alg); info->alg = NULL; } } /******************************************************************************\ * * Server-side digest authentication verification * \******************************************************************************/ int http_da_verify_post(struct soap *soap, char *passwd) { return http_da_verify_method(soap, "POST", passwd); } int http_da_verify_get(struct soap *soap, char *passwd) { return http_da_verify_method(soap, "GET", passwd); } static int http_da_verify_method(struct soap *soap, char *method, char *passwd) { struct http_da_data *data = (struct http_da_data*)soap_lookup_plugin(soap, http_da_id); char HA1[33], entityHAhex[33], response[33]; if (!data) return SOAP_ERR; /* reject if none or basic authentication was used */ if (!soap->authrealm || !soap->userid || soap->passwd) /* passwd is set when basic auth is used */ return SOAP_ERR; /* require at least qop="auth" to prevent replay attacks */ if (!data->qop) return SOAP_ERR; if (http_da_session_update(soap->authrealm, data->nonce, data->opaque, data->cnonce, data->ncount)) return SOAP_ERR; http_da_calc_HA1(soap, &data->context, NULL, soap->userid, soap->authrealm, passwd, data->nonce, data->cnonce, HA1); if (!soap_tag_cmp(data->qop, "auth-int")) soap_s2hex(soap, (unsigned char*)data->digest, entityHAhex, 16); http_da_calc_response(soap, &data->context, HA1, data->nonce, data->ncount, data->cnonce, data->qop, method, soap->path, entityHAhex, response); #ifdef SOAP_DEBUG fprintf(stderr, "Verifying client response=%s with calculated digest=%s\n", data->response, response); #endif /* check digest response values */ if (strcmp(data->response, response)) return SOAP_ERR; return SOAP_OK; } /******************************************************************************\ * * Digest authentication session database management * \******************************************************************************/ static void http_da_session_start(const char *realm, const char *nonce, const char *opaque) { struct http_da_session *session; time_t now = time(NULL); if (now % 10 == 0) /* don't do this all the time to improve efficiency */ http_da_session_cleanup(); #ifdef SOAP_DEBUG fprintf(stderr, "Starting session realm=%s nonce=%s\n", realm, nonce); #endif MUTEX_LOCK(http_da_session_lock); session = (struct http_da_session*)malloc(sizeof(struct http_da_session)); if (session) { session->next = http_da_session; session->modified = now; session->realm = soap_strdup(NULL, realm); session->nonce = soap_strdup(NULL, nonce); session->opaque = soap_strdup(NULL, opaque); session->nc = 0; http_da_session = session; } MUTEX_UNLOCK(http_da_session_lock); } static int http_da_session_update(const char *realm, const char *nonce, const char *opaque, const char *cnonce, const char *ncount) { struct http_da_session *session; if (!realm || !nonce || !opaque || !cnonce || !ncount) return SOAP_ERR; #ifdef SOAP_DEBUG fprintf(stderr, "Updating session realm=%s nonce=%s\n", realm, nonce); #endif MUTEX_LOCK(http_da_session_lock); for (session = http_da_session; session; session = session->next) if (!strcmp(session->realm, realm) && !strcmp(session->nonce, nonce) && !strcmp(session->opaque, opaque)) break; if (session) { unsigned long nc = soap_strtoul(ncount, NULL, 16); if (session->nc >= nc) { session->modified = 0; /* replay attack: terminate session */ session = NULL; } else { session->nc = nc; session->modified = time(NULL); } } MUTEX_UNLOCK(http_da_session_lock); if (!session) return SOAP_ERR; return SOAP_OK; } static void http_da_session_cleanup(void) { struct http_da_session **session; time_t now = time(NULL); MUTEX_LOCK(http_da_session_lock); session = &http_da_session; while (*session) { if ((*session)->modified + HTTP_DA_SESSION_TIMEOUT < now) { struct http_da_session *p = *session; #ifdef SOAP_DEBUG fprintf(stderr, "Deleting session realm=%s nonce=%s\n", p->realm, p->nonce); #endif if (p->realm) free(p->realm); if (p->nonce) free(p->nonce); if (p->opaque) free(p->opaque); *session = p->next; free(p); } else session = &(*session)->next; } MUTEX_UNLOCK(http_da_session_lock); } /******************************************************************************\ * * Calculate hex nonce and opaque values * \******************************************************************************/ void http_da_calc_nonce(struct soap *soap, char nonce[HTTP_DA_NONCELEN]) { static short count = 0xCA53; sprintf(nonce, "%8.8x%4.4hx%8.8x", (int)time(NULL), count++, soap_random); } void http_da_calc_opaque(struct soap *soap, char opaque[HTTP_DA_OPAQUELEN]) { // temporary opaque value char _opaque[32]; sprintf(_opaque, "%8.8x", soap_random); // limit opaque string to HTTP_DA_OPAQUELEN-1 chars strncpy(opaque, _opaque, HTTP_DA_OPAQUELEN - 1); } /******************************************************************************\ * * Calculate HA1, HA2, and response digest as per RFC 2617 specification * \******************************************************************************/ static void http_da_calc_HA1(struct soap *soap, void **context, char *alg, char *userid, char *realm, char *passwd, char *nonce, char *cnonce, char HA1hex[33]) { char HA1[16]; md5_handler(soap, context, MD5_INIT, NULL, 0); md5_handler(soap, context, MD5_UPDATE, userid, strlen(userid)); md5_handler(soap, context, MD5_UPDATE, ":", 1); md5_handler(soap, context, MD5_UPDATE, realm, strlen(realm)); md5_handler(soap, context, MD5_UPDATE, ":", 1); md5_handler(soap, context, MD5_UPDATE, passwd, strlen(passwd)); md5_handler(soap, context, MD5_FINAL, HA1, 0); if (alg && !soap_tag_cmp(alg, "MD5-sess")) { md5_handler(soap, context, MD5_INIT, NULL, 0); md5_handler(soap, context, MD5_UPDATE, HA1, 16); md5_handler(soap, context, MD5_UPDATE, ":", 1); md5_handler(soap, context, MD5_UPDATE, nonce, strlen(nonce)); md5_handler(soap, context, MD5_UPDATE, ":", 1); md5_handler(soap, context, MD5_UPDATE, cnonce, strlen(cnonce)); md5_handler(soap, context, MD5_FINAL, HA1, 0); }; soap_s2hex(soap, (unsigned char*)HA1, HA1hex, 16); }; static void http_da_calc_response(struct soap *soap, void **context, char HA1hex[33], char *nonce, char *ncount, char *cnonce, char *qop, char *method, char *uri, char entityHAhex[33], char response[33]) { char HA2[16], HA2hex[33], responseHA[16]; md5_handler(soap, context, MD5_INIT, NULL, 0); md5_handler(soap, context, MD5_UPDATE, method, strlen(method)); md5_handler(soap, context, MD5_UPDATE, ":", 1); md5_handler(soap, context, MD5_UPDATE, uri, strlen(uri)); if (!soap_tag_cmp(qop, "auth-int")) { md5_handler(soap, context, MD5_UPDATE, ":", 1); md5_handler(soap, context, MD5_UPDATE, entityHAhex, 32); } md5_handler(soap, context, MD5_FINAL, HA2, 0); soap_s2hex(soap, (unsigned char*)HA2, HA2hex, 16); md5_handler(soap, context, MD5_INIT, NULL, 0); md5_handler(soap, context, MD5_UPDATE, HA1hex, 32); md5_handler(soap, context, MD5_UPDATE, ":", 1); md5_handler(soap, context, MD5_UPDATE, nonce, strlen(nonce)); md5_handler(soap, context, MD5_UPDATE, ":", 1); if (qop && *qop) { md5_handler(soap, context, MD5_UPDATE, ncount, strlen(ncount)); md5_handler(soap, context, MD5_UPDATE, ":", 1); md5_handler(soap, context, MD5_UPDATE, cnonce, strlen(cnonce)); md5_handler(soap, context, MD5_UPDATE, ":", 1); md5_handler(soap, context, MD5_UPDATE, qop, strlen(qop)); md5_handler(soap, context, MD5_UPDATE, ":", 1); } md5_handler(soap, context, MD5_UPDATE, HA2hex, 32); md5_handler(soap, context, MD5_FINAL, responseHA, 0); soap_s2hex(soap, (unsigned char*)responseHA, response, 16); } UNS-3.2.0.24/SoapServer/gSOAP/plugin/httpda.h0000644012402100775320000001325410746077317021461 0ustar00gkbld_amtccigk00000000000000/* httpda.h gSOAP HTTP Digest Authentication plugin. Supports both Basic and Digest authentication. Usage (client side, see httpdatest.h/.c for example): soap_register_plugin(&soap, http_da); if (soap_call_ns__method(&soap, ...) != SOAP_OK) { if (soap.error == 401) // HTTP authentication is required { if (!strcmp(soap.authrealm, authrealm)) // check authentication realm { struct http_da_info info; // to store userid and passwd http_da_save(&soap, &info, authrealm, userid, passwd); if (soap_call_ns__method(&soap, ...) == SOAP_OK) { ... soap_end(&soap); ... // userid and passwd were deallocated http_da_restore(&soap, &info); // get userid and passwd after soap_end() if (!soap_call_ns__method(&soap, ...) == SOAP_OK) ... http_da_release(&soap, &info); // remove userid and passwd Usage (server side, see httpdatest.h/.c for example): soap_register_plugin(&soap, http_da); ... soap_serve(&soap); ... int ns__method(struct soap *soap, ...) { if (soap->userid && soap->passwd) // Basic authentication { if (!strcmp(soap->userid, userid) && !strcmp(soap->passwd, passwd)) { ... return SOAP_OK; } } else if (soap->authrealm && soap->userid) // Digest authentication { passwd = ... // database lookup on userid and authrealm to find passwd if (!strcmp(soap->authrealm, authrealm) && !strcmp(soap->userid, userid)) { if (!http_da_verify_post(soap, passwd)) { ... return SOAP_OK; } } } soap->authrealm = authrealm; return 401; // Not authorized, challenge digest authentication } Compile with -DWITH_OPENSSL Link with OpenSSL (for md5evp.c), httpda.c, md5evp.c, and threads.c gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005, Robert van Engelen, Genivia, Inc., All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ #ifndef HTTPDA_H #define HTTPDA_H #include "stdsoap2.h" #include "md5evp.h" /* requires MD5 */ #include "threads.h" /* mutex for multi-threaded server implementations */ #define HTTP_DA_ID "HTTP-DA-1.0" /* plugin identification */ #define HTTP_DA_SESSION_TIMEOUT (600) /* sessions time out after ten minutes */ extern const char http_da_id[]; struct http_da_data { int (*fposthdr)(struct soap*, const char*, const char*); int (*fparsehdr)(struct soap*, const char*, const char*); int (*fprepareinit)(struct soap*); int (*fpreparesend)(struct soap*, const char*, size_t); int (*fpreparerecv)(struct soap*, const char*, size_t); int (*fdisconnect)(struct soap*); void *context; /* ptr to MD5 context for MD5 handler */ char digest[16]; /* MD5 entity body digest */ char *nonce; /* client/server-side copy of server's nonce value */ char *opaque; /* client/server-side copy of server's opaque value */ char *qop; /* client/server-side copy of server's qop value(s) */ char *alg; /* client-side: server's algorithm value */ unsigned long nc; /* client-side: generated nonce count */ char *ncount; /* server-side: client's nonce count */ char *cnonce; /* server-side: client's nonce */ char *response; /* server-side: client's response digest key */ }; struct http_da_session { struct http_da_session *next; time_t modified; char *realm; char *nonce; char *opaque; unsigned long nc; }; int http_da(struct soap *soap, struct soap_plugin *p, void *arg); int http_da_verify_post(struct soap *soap, char *passwd); int http_da_verify_get(struct soap *soap, char *passwd); struct http_da_info { char *authrealm; char *userid; char *passwd; char *nonce; char *opaque; char *qop; char *alg; }; void http_da_save(struct soap *soap, struct http_da_info *info, const char *realm, const char *userid, const char *passwd); void http_da_restore(struct soap *soap, struct http_da_info *info); void http_da_release(struct soap *soap, struct http_da_info *info); #endif UNS-3.2.0.24/SoapServer/gSOAP/plugin/md5evp.c0000644012402100775320000000665110746077317021373 0ustar00gkbld_amtccigk00000000000000/* md5evp.c gSOAP HTTP Content-MD5 digest EVP handler for httpmd5 plugin gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005, Robert van Engelen, Genivia, Inc., All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ #include "md5evp.h" int md5_handler(struct soap *soap, void **context, enum md5_action action, char *buf, size_t len) { EVP_MD_CTX *ctx; unsigned char hash[EVP_MAX_MD_SIZE]; unsigned int size; switch (action) { case MD5_INIT: #ifdef WITH_OPENSSL OpenSSL_add_all_digests(); #endif if (!*context) { *context = (void*)SOAP_MALLOC(soap, sizeof(EVP_MD_CTX)); EVP_MD_CTX_init((EVP_MD_CTX*)*context); } ctx = (EVP_MD_CTX*)*context; DBGLOG(TEST, SOAP_MESSAGE(fdebug, "-- MD5 Init %p\n", ctx)); EVP_DigestInit(ctx, EVP_md5()); break; case MD5_UPDATE: ctx = (EVP_MD_CTX*)*context; DBGLOG(TEST, SOAP_MESSAGE(fdebug, "-- MD5 Update %p --\n", ctx)); DBGMSG(TEST, buf, len); DBGLOG(TEST, SOAP_MESSAGE(fdebug, "\n--")); EVP_DigestUpdate(ctx, (void*)buf, (unsigned int)len); break; case MD5_FINAL: ctx = (EVP_MD_CTX*)*context; DBGLOG(TEST, SOAP_MESSAGE(fdebug, "-- MD5 Final %p --\n", ctx)); EVP_DigestFinal(ctx, (unsigned char*)hash, &size); memcpy(buf, hash, 16); break; case MD5_DELETE: ctx = (EVP_MD_CTX*)*context; DBGLOG(TEST, SOAP_MESSAGE(fdebug, "-- MD5 Delete %p --\n", ctx)); if (ctx) { EVP_MD_CTX_cleanup(ctx); SOAP_FREE(soap, ctx); } *context = NULL; } return SOAP_OK; } UNS-3.2.0.24/SoapServer/gSOAP/plugin/md5evp.h0000644012402100775320000000547510746077317021403 0ustar00gkbld_amtccigk00000000000000/* md5evp.h gSOAP HTTP Content-MD5 digest plugin. gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005, Robert van Engelen, Genivia, Inc., All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- Defines MD5 handler using EVP interface (e.g. using OpenSSL) int md5_handler(struct soap *soap, void **context, enum md5_action action, char *buf, size_t len) context can be set and passed to subsequent calls. Parameters: action = MD5_INIT: init context MD5_UPDATE: update context with data from buf with size len MD5_FINAL: fill buf with 16 bytes MD5 hash value MD5_DELETE: delete context buf input data, output MD5 128 bit hash value len length of input data */ #ifndef MD5EVP_H #define MD5EVP_H #include "stdsoap2.h" #ifdef WITH_OPENSSL #include #endif enum md5_action { MD5_INIT, MD5_UPDATE, MD5_FINAL, MD5_DELETE }; int md5_handler(struct soap *soap, void **context, enum md5_action action, char *buf, size_t len); #endif UNS-3.2.0.24/SoapServer/gSOAP/plugin/threads.h0000644012402100775320000001065210746077317021626 0ustar00gkbld_amtccigk00000000000000/* threads.h gSOAP XML Web services tools Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. -------------------------------------------------------------------------------- gSOAP public license. The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. -------------------------------------------------------------------------------- GPL license. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Author contact information: engelen@genivia.com / engelen@acm.org -------------------------------------------------------------------------------- A commercial use license is available from Genivia, Inc., contact@genivia.com -------------------------------------------------------------------------------- */ #ifndef THREADS_H #define THREADS_H #ifndef WIN32 # include /* defines _POSIX_THREADS if pthreads are available */ #else # define ssize_t int # include # include #endif #ifdef _POSIX_THREADS # include #endif /******************************************************************************\ * * Threads * \******************************************************************************/ #if defined(WIN32) # define THREAD_TYPE HANDLE # define THREAD_ID GetCurrentThreadId() # define THREAD_CREATE(x,y,z) *(x) = _beginthread((y), 8*4096, (z)) # define THREAD_DETACH(x) # define THREAD_JOIN(x) WaitForSingleObject((x), INFINITE) # define THREAD_EXIT _endthread() # define MUTEX_TYPE HANDLE # define MUTEX_SETUP(x) (x) = CreateMutex(NULL, FALSE, NULL) # define MUTEX_CLEANUP(x) CloseHandle(x) # define MUTEX_LOCK(x) WaitForSingleObject((x), INFINITE) # define MUTEX_UNLOCK(x) ReleaseMutex(x) # define COND_SETUP(x) emulate_pthread_cond_init(&(x)) # define COND_CLEANUP(x) emulate_pthread_cond_destroy(&(x)) # define COND_SIGNAL(x) emulate_pthread_signal(&(x)) # define COND_WAIT(x,y) emulate_pthread_wait(&(x), &(y)) typedef struct { u_int waiters_count_; CRITICAL_SECTION waiters_count_lock_; HANDLE signal_event_; } COND_TYPE; int emulate_pthread_cond_init(COND_TYPE*); int emulate_pthread_cond_destroy(COND_TYPE*); int emulate_pthread_signal(COND_TYPE*); int emulate_pthread_wait(COND_TYPE*, MUTEX_TYPE*); #elif defined(_POSIX_THREADS) # define THREAD_TYPE pthread_t # define THREAD_ID pthread_self() # define THREAD_CREATE(x,y,z) pthread_create((x), NULL, (y), (z)) # define THREAD_DETACH(x) pthread_detach((x)) # define THREAD_JOIN(x) pthread_join((x), NULL) # define THREAD_EXIT pthread_exit(NULL) # define MUTEX_TYPE pthread_mutex_t # define MUTEX_SETUP(x) pthread_mutex_init(&(x), NULL) # define MUTEX_CLEANUP(x) pthread_mutex_destroy(&(x)) # define MUTEX_LOCK(x) pthread_mutex_lock(&(x)) # define MUTEX_UNLOCK(x) pthread_mutex_unlock(&(x)) # define COND_TYPE pthread_cond_t # define COND_SETUP(x) pthread_cond_init(&(x), NULL) # define COND_CLEANUP(x) pthread_cond_destroy(&(x)) # define COND_SIGNAL(x) pthread_cond_signal(&(x)) # define COND_WAIT(x,y) pthread_cond_wait(&(x), &(y)) #else # error "No POSIX threads detected: we need thread and mutex operations. See for example OpenSSL /threads/th-lock.c on how to implement mutex on your platform" #endif #endif UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/0000755012402100775320000000000010746077317021273 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/cmn.nsmap0000644012402100775320000000151510746077317023112 0ustar00gkbld_amtccigk00000000000000 #include "soapH.h" SOAP_NMAC struct Namespace namespaces[] = { {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL}, {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL}, {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, {"cmn", "http://schemas.intel.com/platform/client/Common/2006/01", NULL, NULL}, {"emi", "http://schemas.intel.com/platform/client/EventManager/2004/01", NULL, NULL}, {"sai", "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01", NULL, NULL}, {"emc", "http://schemas.intel.com/platform/client/EventManagerClient/2006/01", NULL, NULL}, {NULL, NULL, NULL, NULL} }; UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/emi.nsmap0000644012402100775320000000151510746077317023107 0ustar00gkbld_amtccigk00000000000000 #include "soapH.h" SOAP_NMAC struct Namespace namespaces[] = { {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL}, {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL}, {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, {"cmn", "http://schemas.intel.com/platform/client/Common/2006/01", NULL, NULL}, {"emi", "http://schemas.intel.com/platform/client/EventManager/2004/01", NULL, NULL}, {"sai", "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01", NULL, NULL}, {"emc", "http://schemas.intel.com/platform/client/EventManagerClient/2006/01", NULL, NULL}, {NULL, NULL, NULL, NULL} }; UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/sai.nsmap0000644012402100775320000000151510746077317023111 0ustar00gkbld_amtccigk00000000000000 #include "soapH.h" SOAP_NMAC struct Namespace namespaces[] = { {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL}, {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL}, {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, {"cmn", "http://schemas.intel.com/platform/client/Common/2006/01", NULL, NULL}, {"emi", "http://schemas.intel.com/platform/client/EventManager/2004/01", NULL, NULL}, {"sai", "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01", NULL, NULL}, {"emc", "http://schemas.intel.com/platform/client/EventManagerClient/2006/01", NULL, NULL}, {NULL, NULL, NULL, NULL} }; UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/EventManagerClientSoapBinding.nsmap0000644012402100775320000000151510746077317030166 0ustar00gkbld_amtccigk00000000000000 #include "soapH.h" SOAP_NMAC struct Namespace namespaces[] = { {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL}, {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL}, {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, {"cmn", "http://schemas.intel.com/platform/client/Common/2006/01", NULL, NULL}, {"emi", "http://schemas.intel.com/platform/client/EventManager/2004/01", NULL, NULL}, {"sai", "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01", NULL, NULL}, {"emc", "http://schemas.intel.com/platform/client/EventManagerClient/2006/01", NULL, NULL}, {NULL, NULL, NULL, NULL} }; UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/SoapBinding.nsmap0000644012402100775320000000151510746077317024532 0ustar00gkbld_amtccigk00000000000000 #include "soapH.h" SOAP_NMAC struct Namespace namespaces[] = { {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL}, {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL}, {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, {"cmn", "http://schemas.intel.com/platform/client/Common/2006/01", NULL, NULL}, {"emi", "http://schemas.intel.com/platform/client/EventManager/2004/01", NULL, NULL}, {"sai", "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01", NULL, NULL}, {"emc", "http://schemas.intel.com/platform/client/EventManagerClient/2006/01", NULL, NULL}, {NULL, NULL, NULL, NULL} }; UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/soapC.cpp0000644012402100775320000261700710746077317023061 0ustar00gkbld_amtccigk00000000000000/* soapC.cpp Generated by gSOAP 2.7.9e from /root/Projects/UNS/SoapServer/gSoapGeneratedCode/SoapInterfaceTmp.h Copyright(C) 2000-2006, Robert van Engelen, Genivia Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. */ #include "soapH.h" SOAP_SOURCE_STAMP("@(#) soapC.cpp ver 2.7.9e 2007-04-25 11:57:11 GMT") #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_serializeheader(struct soap *soap) { if (soap->header) soap_serialize_SOAP_ENV__Header(soap, soap->header); } SOAP_FMAC3 int SOAP_FMAC4 soap_putheader(struct soap *soap) { if (soap->header) { soap->part = SOAP_IN_HEADER; soap_out_SOAP_ENV__Header(soap, "SOAP-ENV:Header", 0, soap->header, NULL); soap->part = SOAP_END_HEADER; } return SOAP_OK; } SOAP_FMAC3 int SOAP_FMAC4 soap_getheader(struct soap *soap) { soap->part = SOAP_IN_HEADER; soap->header = soap_in_SOAP_ENV__Header(soap, "SOAP-ENV:Header", NULL, NULL); soap->part = SOAP_END_HEADER; return soap->header == NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_fault(struct soap *soap) { if (!soap->fault) { soap->fault = soap_new_SOAP_ENV__Fault(soap, -1); soap_default_SOAP_ENV__Fault(soap, soap->fault); } if (soap->version == 2 && !soap->fault->SOAP_ENV__Code) { soap->fault->SOAP_ENV__Code = soap_new_SOAP_ENV__Code(soap, -1); soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code); } if (soap->version == 2 && !soap->fault->SOAP_ENV__Reason) { soap->fault->SOAP_ENV__Reason = soap_new_SOAP_ENV__Reason(soap, -1); soap_default_SOAP_ENV__Reason(soap, soap->fault->SOAP_ENV__Reason); } } SOAP_FMAC3 void SOAP_FMAC4 soap_serializefault(struct soap *soap) { soap_fault(soap); if (soap->fault) soap_serialize_SOAP_ENV__Fault(soap, soap->fault); } SOAP_FMAC3 int SOAP_FMAC4 soap_putfault(struct soap *soap) { if (soap->fault) return soap_put_SOAP_ENV__Fault(soap, soap->fault, "SOAP-ENV:Fault", NULL); return SOAP_OK; } SOAP_FMAC3 int SOAP_FMAC4 soap_getfault(struct soap *soap) { return (soap->fault = soap_get_SOAP_ENV__Fault(soap, NULL, "SOAP-ENV:Fault", NULL)) == NULL; } SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultcode(struct soap *soap) { soap_fault(soap); if (soap->version == 2) return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Value; return (const char**)&soap->fault->faultcode; } SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultsubcode(struct soap *soap) { soap_fault(soap); if (soap->version == 2) { if (!soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode) { soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode = soap_new_SOAP_ENV__Code(soap, -1); soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode); } return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode->SOAP_ENV__Value; } return (const char**)&soap->fault->faultcode; } SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultstring(struct soap *soap) { soap_fault(soap); if (soap->version == 2) return (const char**)&soap->fault->SOAP_ENV__Reason->SOAP_ENV__Text; return (const char**)&soap->fault->faultstring; } SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultdetail(struct soap *soap) { soap_fault(soap); if (soap->version == 1) { if (!soap->fault->detail) { soap->fault->detail = (struct SOAP_ENV__Detail*)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail)); soap_default_SOAP_ENV__Detail(soap, soap->fault->detail); } return (const char**)&soap->fault->detail->__any; } if (!soap->fault->SOAP_ENV__Detail) { soap->fault->SOAP_ENV__Detail = soap_new_SOAP_ENV__Detail(soap, -1); soap_default_SOAP_ENV__Detail(soap, soap->fault->SOAP_ENV__Detail); } return (const char**)&soap->fault->SOAP_ENV__Detail->__any; } #endif #ifndef WITH_NOIDREF SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap *soap) { int t; for (;;) if (!soap_getelement(soap, &t)) if (soap->error || soap_ignore_element(soap)) break; if (soap->error == SOAP_NO_TAG || soap->error == SOAP_EOF) soap->error = SOAP_OK; return soap->error; } #endif #ifndef WITH_NOIDREF #ifdef __cplusplus extern "C" { #endif SOAP_FMAC3 void * SOAP_FMAC4 soap_getelement(struct soap *soap, int *type) { if (soap_peek_element(soap)) return NULL; if (!*soap->id || !(*type = soap_lookup_type(soap, soap->id))) *type = soap_lookup_type(soap, soap->href); switch (*type) { case SOAP_TYPE_byte: return soap_in_byte(soap, NULL, NULL, "xsd:byte"); case SOAP_TYPE_short: return soap_in_short(soap, NULL, NULL, "xsd:short"); case SOAP_TYPE_int: return soap_in_int(soap, NULL, NULL, "xsd:int"); case SOAP_TYPE_emi__AlertSubscriptionPolicyIDType: return soap_in_emi__AlertSubscriptionPolicyIDType(soap, NULL, NULL, "emi:AlertSubscriptionPolicyIDType"); case SOAP_TYPE_unsignedByte: return soap_in_unsignedByte(soap, NULL, NULL, "xsd:unsignedByte"); case SOAP_TYPE_unsignedShort: return soap_in_unsignedShort(soap, NULL, NULL, "xsd:unsignedShort"); case SOAP_TYPE_sai__CertificateHandleType: return soap_in_sai__CertificateHandleType(soap, NULL, NULL, "sai:CertificateHandleType"); case SOAP_TYPE_sai__IPv4AddressType: return soap_in_sai__IPv4AddressType(soap, NULL, NULL, "sai:IPv4AddressType"); case SOAP_TYPE_sai__UserAclEntryHandleType: return soap_in_sai__UserAclEntryHandleType(soap, NULL, NULL, "sai:UserAclEntryHandleType"); case SOAP_TYPE_sai__PT_USCORESTATUS: return soap_in_sai__PT_USCORESTATUS(soap, NULL, NULL, "sai:PT_STATUS"); case SOAP_TYPE_emi__SensorHandleType: return soap_in_emi__SensorHandleType(soap, NULL, NULL, "emi:SensorHandleType"); case SOAP_TYPE_emi__IPv4AddressType: return soap_in_emi__IPv4AddressType(soap, NULL, NULL, "emi:IPv4AddressType"); case SOAP_TYPE_emi__PT_USCORESTATUS: return soap_in_emi__PT_USCORESTATUS(soap, NULL, NULL, "emi:PT_STATUS"); case SOAP_TYPE_emi__EventFilterHandleType: return soap_in_emi__EventFilterHandleType(soap, NULL, NULL, "emi:EventFilterHandleType"); case SOAP_TYPE_emi__AlertSubscriptionHandleType: return soap_in_emi__AlertSubscriptionHandleType(soap, NULL, NULL, "emi:AlertSubscriptionHandleType"); case SOAP_TYPE_emi__TimeType: return soap_in_emi__TimeType(soap, NULL, NULL, "emi:TimeType"); case SOAP_TYPE_cmn__InterfaceHandleType: return soap_in_cmn__InterfaceHandleType(soap, NULL, NULL, "cmn:InterfaceHandleType"); case SOAP_TYPE_cmn__IPv4AddressType: return soap_in_cmn__IPv4AddressType(soap, NULL, NULL, "cmn:IPv4AddressType"); case SOAP_TYPE_cmn__PT_USCORESTATUS: return soap_in_cmn__PT_USCORESTATUS(soap, NULL, NULL, "cmn:PT_STATUS"); case SOAP_TYPE_unsignedInt: return soap_in_unsignedInt(soap, NULL, NULL, "xsd:unsignedInt"); case SOAP_TYPE_bool: return soap_in_bool(soap, NULL, NULL, "xsd:boolean"); case SOAP_TYPE_sai__UNOptionsType: return soap_in_sai__UNOptionsType(soap, NULL, NULL, "sai:UNOptionsType"); case SOAP_TYPE_sai__HashTypeType: return soap_in_sai__HashTypeType(soap, NULL, NULL, "sai:HashTypeType"); case SOAP_TYPE_sai__ProvisioningTLSModeType: return soap_in_sai__ProvisioningTLSModeType(soap, NULL, NULL, "sai:ProvisioningTLSModeType"); case SOAP_TYPE_sai__TlsAthenticationType: return soap_in_sai__TlsAthenticationType(soap, NULL, NULL, "sai:TlsAthenticationType"); case SOAP_TYPE_sai__InterfaceType: return soap_in_sai__InterfaceType(soap, NULL, NULL, "sai:InterfaceType"); case SOAP_TYPE_sai__EnabledInterfacesType: return soap_in_sai__EnabledInterfacesType(soap, NULL, NULL, "sai:EnabledInterfacesType"); case SOAP_TYPE_sai__PowerStateType: return soap_in_sai__PowerStateType(soap, NULL, NULL, "sai:PowerStateType"); case SOAP_TYPE_sai__KerberosEncryptionType: return soap_in_sai__KerberosEncryptionType(soap, NULL, NULL, "sai:KerberosEncryptionType"); case SOAP_TYPE_sai__KerberosSpnProtocolType: return soap_in_sai__KerberosSpnProtocolType(soap, NULL, NULL, "sai:KerberosSpnProtocolType"); case SOAP_TYPE_sai__AccessPermissionType: return soap_in_sai__AccessPermissionType(soap, NULL, NULL, "sai:AccessPermissionType"); case SOAP_TYPE_sai__ProvisioningModeType: return soap_in_sai__ProvisioningModeType(soap, NULL, NULL, "sai:ProvisioningModeType"); case SOAP_TYPE_sai__RngKeyEncodingType: return soap_in_sai__RngKeyEncodingType(soap, NULL, NULL, "sai:RngKeyEncodingType"); case SOAP_TYPE_sai__RsaCertificateEncodingType: return soap_in_sai__RsaCertificateEncodingType(soap, NULL, NULL, "sai:RsaCertificateEncodingType"); case SOAP_TYPE_sai__RsaKeyEncodingType: return soap_in_sai__RsaKeyEncodingType(soap, NULL, NULL, "sai:RsaKeyEncodingType"); case SOAP_TYPE_sai__UserAclRealmType: return soap_in_sai__UserAclRealmType(soap, NULL, NULL, "sai:UserAclRealmType"); case SOAP_TYPE_emi__AlertAuthOptionsType: return soap_in_emi__AlertAuthOptionsType(soap, NULL, NULL, "emi:AlertAuthOptionsType"); case SOAP_TYPE_emi__EventSeverityType: return soap_in_emi__EventSeverityType(soap, NULL, NULL, "emi:EventSeverityType"); case SOAP_TYPE_sai__FriendlyNameType: return soap_in_sai__FriendlyNameType(soap, NULL, NULL, "sai:FriendlyNameType"); case SOAP_TYPE_sai__ProvisioningOTPType: return soap_in_sai__ProvisioningOTPType(soap, NULL, NULL, "sai:ProvisioningOTPType"); case SOAP_TYPE_sai__MEBxPasswordType: return soap_in_sai__MEBxPasswordType(soap, NULL, NULL, "sai:MEBxPasswordType"); case SOAP_TYPE_sai__AclPasswordStringType: return soap_in_sai__AclPasswordStringType(soap, NULL, NULL, "sai:AclPasswordStringType"); case SOAP_TYPE_sai__AclStringType: return soap_in_sai__AclStringType(soap, NULL, NULL, "sai:AclStringType"); case SOAP_TYPE_emi__CommunityStringType: return soap_in_emi__CommunityStringType(soap, NULL, NULL, "emi:CommunityStringType"); case SOAP_TYPE_cmn__GuidBuf: return soap_in_cmn__GuidBuf(soap, NULL, NULL, "cmn:GuidBuf"); case SOAP_TYPE_cmn__IPv6AddressStringType: return soap_in_cmn__IPv6AddressStringType(soap, NULL, NULL, "cmn:IPv6AddressStringType"); case SOAP_TYPE_cmn__IPv4AddressStringType: return soap_in_cmn__IPv4AddressStringType(soap, NULL, NULL, "cmn:IPv4AddressStringType"); case SOAP_TYPE_cmn__HostNameType: return soap_in_cmn__HostNameType(soap, NULL, NULL, "cmn:HostNameType"); case SOAP_TYPE_sai__GlobalPowerPolicyType: return soap_in_sai__GlobalPowerPolicyType(soap, NULL, NULL, "sai:GlobalPowerPolicyType"); case SOAP_TYPE_sai__EnvironmentDetectionType: return soap_in_sai__EnvironmentDetectionType(soap, NULL, NULL, "sai:EnvironmentDetectionType"); case SOAP_TYPE_sai__EnvironmentDetectionDomainType: return soap_in_sai__EnvironmentDetectionDomainType(soap, NULL, NULL, "sai:EnvironmentDetectionDomainType"); case SOAP_TYPE_sai__EnvironmentDetectionHTTPSType: return soap_in_sai__EnvironmentDetectionHTTPSType(soap, NULL, NULL, "sai:EnvironmentDetectionHTTPSType"); case SOAP_TYPE_sai__ProvisioningAuditRecordType: return soap_in_sai__ProvisioningAuditRecordType(soap, NULL, NULL, "sai:ProvisioningAuditRecordType"); case SOAP_TYPE_sai__CertHashEntryType: return soap_in_sai__CertHashEntryType(soap, NULL, NULL, "sai:CertHashEntryType"); case SOAP_TYPE_sai__PkiCapsType: return soap_in_sai__PkiCapsType(soap, NULL, NULL, "sai:PkiCapsType"); case SOAP_TYPE_sai__CrlType: return soap_in_sai__CrlType(soap, NULL, NULL, "sai:CrlType"); case SOAP_TYPE_sai__CertificateType: return soap_in_sai__CertificateType(soap, NULL, NULL, "sai:CertificateType"); case SOAP_TYPE_sai__TlsOptionsType: return soap_in_sai__TlsOptionsType(soap, NULL, NULL, "sai:TlsOptionsType"); case SOAP_TYPE_sai__KerberosOptionsType: return soap_in_sai__KerberosOptionsType(soap, NULL, NULL, "sai:KerberosOptionsType"); case SOAP_TYPE_sai__KerberosSpnType: return soap_in_sai__KerberosSpnType(soap, NULL, NULL, "sai:KerberosSpnType"); case SOAP_TYPE_sai__AdminAclEntryExType: return soap_in_sai__AdminAclEntryExType(soap, NULL, NULL, "sai:AdminAclEntryExType"); case SOAP_TYPE_sai__UserAclEntryExType: return soap_in_sai__UserAclEntryExType(soap, NULL, NULL, "sai:UserAclEntryExType"); case SOAP_TYPE_sai__UserEntryKerberosType: return soap_in_sai__UserEntryKerberosType(soap, NULL, NULL, "sai:UserEntryKerberosType"); case SOAP_TYPE_sai__UserEntryDigestType: return soap_in_sai__UserEntryDigestType(soap, NULL, NULL, "sai:UserEntryDigestType"); case SOAP_TYPE_sai__AmtVersion: return soap_in_sai__AmtVersion(soap, NULL, NULL, "sai:AmtVersion"); case SOAP_TYPE_sai__UpdateCoreUrlKeyType: return soap_in_sai__UpdateCoreUrlKeyType(soap, NULL, NULL, "sai:UpdateCoreUrlKeyType"); case SOAP_TYPE_sai__CertificateChainType: return soap_in_sai__CertificateChainType(soap, NULL, NULL, "sai:CertificateChainType"); case SOAP_TYPE_sai__RngKeyType: return soap_in_sai__RngKeyType(soap, NULL, NULL, "sai:RngKeyType"); case SOAP_TYPE_sai__RsaKeyType: return soap_in_sai__RsaKeyType(soap, NULL, NULL, "sai:RsaKeyType"); case SOAP_TYPE_sai__UserAclRealmListType: return soap_in_sai__UserAclRealmListType(soap, NULL, NULL, "sai:UserAclRealmListType"); case SOAP_TYPE_sai__UserAclEntryHandleListType: return soap_in_sai__UserAclEntryHandleListType(soap, NULL, NULL, "sai:UserAclEntryHandleListType"); case SOAP_TYPE_sai__AdminAclEntryType: return soap_in_sai__AdminAclEntryType(soap, NULL, NULL, "sai:AdminAclEntryType"); case SOAP_TYPE_sai__UserAclEntryType: return soap_in_sai__UserAclEntryType(soap, NULL, NULL, "sai:UserAclEntryType"); case SOAP_TYPE_emi__AlertSubscriptionGeneralType: return soap_in_emi__AlertSubscriptionGeneralType(soap, NULL, NULL, "emi:AlertSubscriptionGeneralType"); case SOAP_TYPE_emi__AlertSubscriptionSoapType: return soap_in_emi__AlertSubscriptionSoapType(soap, NULL, NULL, "emi:AlertSubscriptionSoapType"); case SOAP_TYPE_emi__AlertSubscriptionSNMPType: return soap_in_emi__AlertSubscriptionSNMPType(soap, NULL, NULL, "emi:AlertSubscriptionSNMPType"); case SOAP_TYPE_emi__AlertCredentialsType: return soap_in_emi__AlertCredentialsType(soap, NULL, NULL, "emi:AlertCredentialsType"); case SOAP_TYPE_emi__ByteStr: return soap_in_emi__ByteStr(soap, NULL, NULL, "emi:ByteStr"); case SOAP_TYPE_emi__SensorAttributesType: return soap_in_emi__SensorAttributesType(soap, NULL, NULL, "emi:SensorAttributesType"); case SOAP_TYPE_emi__SensorHandleArrayType: return soap_in_emi__SensorHandleArrayType(soap, NULL, NULL, "emi:SensorHandleArrayType"); case SOAP_TYPE_emi__EventLogRecordArrayType: return soap_in_emi__EventLogRecordArrayType(soap, NULL, NULL, "emi:EventLogRecordArrayType"); case SOAP_TYPE_emi__EventFilterHandleArrayType: return soap_in_emi__EventFilterHandleArrayType(soap, NULL, NULL, "emi:EventFilterHandleArrayType"); case SOAP_TYPE_emi__AlertSubscriptionHandleArrayType: return soap_in_emi__AlertSubscriptionHandleArrayType(soap, NULL, NULL, "emi:AlertSubscriptionHandleArrayType"); case SOAP_TYPE_emi__AlertSubscriptionType: return soap_in_emi__AlertSubscriptionType(soap, NULL, NULL, "emi:AlertSubscriptionType"); case SOAP_TYPE_emi__EventFilterType: return soap_in_emi__EventFilterType(soap, NULL, NULL, "emi:EventFilterType"); case SOAP_TYPE_emi__EventLogRecordType: return soap_in_emi__EventLogRecordType(soap, NULL, NULL, "emi:EventLogRecordType"); case SOAP_TYPE_emi__ByteData: return soap_in_emi__ByteData(soap, NULL, NULL, "emi:ByteData"); case SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType: return soap_in_emi__AlertSubscriptionPolicyIDArrayType(soap, NULL, NULL, "emi:AlertSubscriptionPolicyIDArrayType"); case SOAP_TYPE_cmn__NodeAddressType: return soap_in_cmn__NodeAddressType(soap, NULL, NULL, "cmn:NodeAddressType"); case SOAP_TYPE_cmn__URLType: return soap_in_cmn__URLType(soap, NULL, NULL, "cmn:URLType"); case SOAP_TYPE_xsd__base64Binary: return soap_in_xsd__base64Binary(soap, NULL, NULL, "xsd:base64Binary"); case SOAP_TYPE_xsd__anyURI: return soap_in_xsd__anyURI(soap, NULL, NULL, "xsd:anyURI"); case SOAP_TYPE_std__string: return soap_in_std__string(soap, NULL, NULL, "xsd:string"); case SOAP_TYPE_PointerTo_emc__SoapAlertResponse: return soap_in_PointerTo_emc__SoapAlertResponse(soap, NULL, NULL, "emc:SoapAlertResponse"); case SOAP_TYPE_PointerTo_emc__SoapAlertRequest: return soap_in_PointerTo_emc__SoapAlertRequest(soap, NULL, NULL, "emc:SoapAlertRequest"); case SOAP_TYPE_PointerTounsignedInt: return soap_in_PointerTounsignedInt(soap, NULL, NULL, "xsd:unsignedInt"); case SOAP_TYPE_PointerTosai__EnvironmentDetectionHTTPSType: return soap_in_PointerTosai__EnvironmentDetectionHTTPSType(soap, NULL, NULL, "sai:EnvironmentDetectionHTTPSType"); case SOAP_TYPE_PointerTosai__EnvironmentDetectionDomainType: return soap_in_PointerTosai__EnvironmentDetectionDomainType(soap, NULL, NULL, "sai:EnvironmentDetectionDomainType"); case SOAP_TYPE_PointerTobool: return soap_in_PointerTobool(soap, NULL, NULL, "xsd:boolean"); case SOAP_TYPE_PointerToxsd__base64Binary: return soap_in_PointerToxsd__base64Binary(soap, NULL, NULL, "xsd:base64Binary"); case SOAP_TYPE_PointerTostd__string: return soap_in_PointerTostd__string(soap, NULL, NULL, "xsd:string"); case SOAP_TYPE_PointerTosai__KerberosSpnType: return soap_in_PointerTosai__KerberosSpnType(soap, NULL, NULL, "sai:KerberosSpnType"); case SOAP_TYPE_PointerTosai__UserEntryKerberosType: return soap_in_PointerTosai__UserEntryKerberosType(soap, NULL, NULL, "sai:UserEntryKerberosType"); case SOAP_TYPE_PointerTosai__UserEntryDigestType: return soap_in_PointerTosai__UserEntryDigestType(soap, NULL, NULL, "sai:UserEntryDigestType"); case SOAP_TYPE_PointerTosai__UserAclRealmListType: return soap_in_PointerTosai__UserAclRealmListType(soap, NULL, NULL, "sai:UserAclRealmListType"); case SOAP_TYPE_PointerToemi__AlertSubscriptionPolicyIDType: return soap_in_PointerToemi__AlertSubscriptionPolicyIDType(soap, NULL, NULL, "emi:AlertSubscriptionPolicyIDType"); case SOAP_TYPE_PointerToemi__AlertSubscriptionGeneralType: return soap_in_PointerToemi__AlertSubscriptionGeneralType(soap, NULL, NULL, "emi:AlertSubscriptionGeneralType"); case SOAP_TYPE_PointerToemi__AlertSubscriptionSoapType: return soap_in_PointerToemi__AlertSubscriptionSoapType(soap, NULL, NULL, "emi:AlertSubscriptionSoapType"); case SOAP_TYPE_PointerToemi__AlertSubscriptionSNMPType: return soap_in_PointerToemi__AlertSubscriptionSNMPType(soap, NULL, NULL, "emi:AlertSubscriptionSNMPType"); case SOAP_TYPE_PointerToemi__AlertCredentialsType: return soap_in_PointerToemi__AlertCredentialsType(soap, NULL, NULL, "emi:AlertCredentialsType"); case SOAP_TYPE_PointerTosai__CertificateHandleType: return soap_in_PointerTosai__CertificateHandleType(soap, NULL, NULL, "sai:CertificateHandleType"); case SOAP_TYPE_PointerTocmn__URLType: return soap_in_PointerTocmn__URLType(soap, NULL, NULL, "cmn:URLType"); case SOAP_TYPE_PointerToemi__CommunityStringType: return soap_in_PointerToemi__CommunityStringType(soap, NULL, NULL, "emi:CommunityStringType"); case SOAP_TYPE_PointerTocmn__NodeAddressType: return soap_in_PointerTocmn__NodeAddressType(soap, NULL, NULL, "cmn:NodeAddressType"); case SOAP_TYPE_PointerToemi__EventLogRecordType: return soap_in_PointerToemi__EventLogRecordType(soap, NULL, NULL, "emi:EventLogRecordType"); case SOAP_TYPE_PointerToemi__ByteData: return soap_in_PointerToemi__ByteData(soap, NULL, NULL, "emi:ByteData"); case SOAP_TYPE_PointerTocmn__IPv6AddressStringType: return soap_in_PointerTocmn__IPv6AddressStringType(soap, NULL, NULL, "cmn:IPv6AddressStringType"); case SOAP_TYPE_PointerTocmn__IPv4AddressStringType: return soap_in_PointerTocmn__IPv4AddressStringType(soap, NULL, NULL, "cmn:IPv4AddressStringType"); case SOAP_TYPE_PointerTocmn__HostNameType: return soap_in_PointerTocmn__HostNameType(soap, NULL, NULL, "cmn:HostNameType"); case SOAP_TYPE_PointerTounsignedByte: return soap_in_PointerTounsignedByte(soap, NULL, NULL, "xsd:unsignedByte"); case SOAP_TYPE_string: { char **s; s = soap_in_string(soap, NULL, NULL, "xsd:string"); return s ? *s : NULL; } default: { const char *t = soap->type; if (!*t) t = soap->tag; if (!soap_match_tag(soap, t, "xsd:byte")) { *type = SOAP_TYPE_byte; return soap_in_byte(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:short")) { *type = SOAP_TYPE_short; return soap_in_short(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:int")) { *type = SOAP_TYPE_int; return soap_in_int(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertSubscriptionPolicyIDType")) { *type = SOAP_TYPE_emi__AlertSubscriptionPolicyIDType; return soap_in_emi__AlertSubscriptionPolicyIDType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedByte")) { *type = SOAP_TYPE_unsignedByte; return soap_in_unsignedByte(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedShort")) { *type = SOAP_TYPE_unsignedShort; return soap_in_unsignedShort(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:CertificateHandleType")) { *type = SOAP_TYPE_sai__CertificateHandleType; return soap_in_sai__CertificateHandleType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:IPv4AddressType")) { *type = SOAP_TYPE_sai__IPv4AddressType; return soap_in_sai__IPv4AddressType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UserAclEntryHandleType")) { *type = SOAP_TYPE_sai__UserAclEntryHandleType; return soap_in_sai__UserAclEntryHandleType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:PT_STATUS")) { *type = SOAP_TYPE_sai__PT_USCORESTATUS; return soap_in_sai__PT_USCORESTATUS(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:SensorHandleType")) { *type = SOAP_TYPE_emi__SensorHandleType; return soap_in_emi__SensorHandleType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:IPv4AddressType")) { *type = SOAP_TYPE_emi__IPv4AddressType; return soap_in_emi__IPv4AddressType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:PT_STATUS")) { *type = SOAP_TYPE_emi__PT_USCORESTATUS; return soap_in_emi__PT_USCORESTATUS(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:EventFilterHandleType")) { *type = SOAP_TYPE_emi__EventFilterHandleType; return soap_in_emi__EventFilterHandleType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertSubscriptionHandleType")) { *type = SOAP_TYPE_emi__AlertSubscriptionHandleType; return soap_in_emi__AlertSubscriptionHandleType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:TimeType")) { *type = SOAP_TYPE_emi__TimeType; return soap_in_emi__TimeType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "cmn:InterfaceHandleType")) { *type = SOAP_TYPE_cmn__InterfaceHandleType; return soap_in_cmn__InterfaceHandleType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "cmn:IPv4AddressType")) { *type = SOAP_TYPE_cmn__IPv4AddressType; return soap_in_cmn__IPv4AddressType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "cmn:PT_STATUS")) { *type = SOAP_TYPE_cmn__PT_USCORESTATUS; return soap_in_cmn__PT_USCORESTATUS(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedInt")) { *type = SOAP_TYPE_unsignedInt; return soap_in_unsignedInt(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:boolean")) { *type = SOAP_TYPE_bool; return soap_in_bool(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UNOptionsType")) { *type = SOAP_TYPE_sai__UNOptionsType; return soap_in_sai__UNOptionsType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:HashTypeType")) { *type = SOAP_TYPE_sai__HashTypeType; return soap_in_sai__HashTypeType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:ProvisioningTLSModeType")) { *type = SOAP_TYPE_sai__ProvisioningTLSModeType; return soap_in_sai__ProvisioningTLSModeType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:TlsAthenticationType")) { *type = SOAP_TYPE_sai__TlsAthenticationType; return soap_in_sai__TlsAthenticationType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:InterfaceType")) { *type = SOAP_TYPE_sai__InterfaceType; return soap_in_sai__InterfaceType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:EnabledInterfacesType")) { *type = SOAP_TYPE_sai__EnabledInterfacesType; return soap_in_sai__EnabledInterfacesType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:PowerStateType")) { *type = SOAP_TYPE_sai__PowerStateType; return soap_in_sai__PowerStateType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:KerberosEncryptionType")) { *type = SOAP_TYPE_sai__KerberosEncryptionType; return soap_in_sai__KerberosEncryptionType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:KerberosSpnProtocolType")) { *type = SOAP_TYPE_sai__KerberosSpnProtocolType; return soap_in_sai__KerberosSpnProtocolType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:AccessPermissionType")) { *type = SOAP_TYPE_sai__AccessPermissionType; return soap_in_sai__AccessPermissionType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:ProvisioningModeType")) { *type = SOAP_TYPE_sai__ProvisioningModeType; return soap_in_sai__ProvisioningModeType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:RngKeyEncodingType")) { *type = SOAP_TYPE_sai__RngKeyEncodingType; return soap_in_sai__RngKeyEncodingType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:RsaCertificateEncodingType")) { *type = SOAP_TYPE_sai__RsaCertificateEncodingType; return soap_in_sai__RsaCertificateEncodingType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:RsaKeyEncodingType")) { *type = SOAP_TYPE_sai__RsaKeyEncodingType; return soap_in_sai__RsaKeyEncodingType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UserAclRealmType")) { *type = SOAP_TYPE_sai__UserAclRealmType; return soap_in_sai__UserAclRealmType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertAuthOptionsType")) { *type = SOAP_TYPE_emi__AlertAuthOptionsType; return soap_in_emi__AlertAuthOptionsType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:EventSeverityType")) { *type = SOAP_TYPE_emi__EventSeverityType; return soap_in_emi__EventSeverityType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:FriendlyNameType")) { *type = SOAP_TYPE_sai__FriendlyNameType; return soap_in_sai__FriendlyNameType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:ProvisioningOTPType")) { *type = SOAP_TYPE_sai__ProvisioningOTPType; return soap_in_sai__ProvisioningOTPType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:MEBxPasswordType")) { *type = SOAP_TYPE_sai__MEBxPasswordType; return soap_in_sai__MEBxPasswordType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:AclPasswordStringType")) { *type = SOAP_TYPE_sai__AclPasswordStringType; return soap_in_sai__AclPasswordStringType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:AclStringType")) { *type = SOAP_TYPE_sai__AclStringType; return soap_in_sai__AclStringType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:CommunityStringType")) { *type = SOAP_TYPE_emi__CommunityStringType; return soap_in_emi__CommunityStringType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "cmn:GuidBuf")) { *type = SOAP_TYPE_cmn__GuidBuf; return soap_in_cmn__GuidBuf(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "cmn:IPv6AddressStringType")) { *type = SOAP_TYPE_cmn__IPv6AddressStringType; return soap_in_cmn__IPv6AddressStringType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "cmn:IPv4AddressStringType")) { *type = SOAP_TYPE_cmn__IPv4AddressStringType; return soap_in_cmn__IPv4AddressStringType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "cmn:HostNameType")) { *type = SOAP_TYPE_cmn__HostNameType; return soap_in_cmn__HostNameType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:GlobalPowerPolicyType")) { *type = SOAP_TYPE_sai__GlobalPowerPolicyType; return soap_in_sai__GlobalPowerPolicyType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:EnvironmentDetectionType")) { *type = SOAP_TYPE_sai__EnvironmentDetectionType; return soap_in_sai__EnvironmentDetectionType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:EnvironmentDetectionDomainType")) { *type = SOAP_TYPE_sai__EnvironmentDetectionDomainType; return soap_in_sai__EnvironmentDetectionDomainType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:EnvironmentDetectionHTTPSType")) { *type = SOAP_TYPE_sai__EnvironmentDetectionHTTPSType; return soap_in_sai__EnvironmentDetectionHTTPSType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:ProvisioningAuditRecordType")) { *type = SOAP_TYPE_sai__ProvisioningAuditRecordType; return soap_in_sai__ProvisioningAuditRecordType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:CertHashEntryType")) { *type = SOAP_TYPE_sai__CertHashEntryType; return soap_in_sai__CertHashEntryType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:PkiCapsType")) { *type = SOAP_TYPE_sai__PkiCapsType; return soap_in_sai__PkiCapsType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:CrlType")) { *type = SOAP_TYPE_sai__CrlType; return soap_in_sai__CrlType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:CertificateType")) { *type = SOAP_TYPE_sai__CertificateType; return soap_in_sai__CertificateType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:TlsOptionsType")) { *type = SOAP_TYPE_sai__TlsOptionsType; return soap_in_sai__TlsOptionsType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:KerberosOptionsType")) { *type = SOAP_TYPE_sai__KerberosOptionsType; return soap_in_sai__KerberosOptionsType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:KerberosSpnType")) { *type = SOAP_TYPE_sai__KerberosSpnType; return soap_in_sai__KerberosSpnType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:AdminAclEntryExType")) { *type = SOAP_TYPE_sai__AdminAclEntryExType; return soap_in_sai__AdminAclEntryExType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UserAclEntryExType")) { *type = SOAP_TYPE_sai__UserAclEntryExType; return soap_in_sai__UserAclEntryExType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UserEntryKerberosType")) { *type = SOAP_TYPE_sai__UserEntryKerberosType; return soap_in_sai__UserEntryKerberosType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UserEntryDigestType")) { *type = SOAP_TYPE_sai__UserEntryDigestType; return soap_in_sai__UserEntryDigestType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:AmtVersion")) { *type = SOAP_TYPE_sai__AmtVersion; return soap_in_sai__AmtVersion(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UpdateCoreUrlKeyType")) { *type = SOAP_TYPE_sai__UpdateCoreUrlKeyType; return soap_in_sai__UpdateCoreUrlKeyType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:CertificateChainType")) { *type = SOAP_TYPE_sai__CertificateChainType; return soap_in_sai__CertificateChainType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:RngKeyType")) { *type = SOAP_TYPE_sai__RngKeyType; return soap_in_sai__RngKeyType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:RsaKeyType")) { *type = SOAP_TYPE_sai__RsaKeyType; return soap_in_sai__RsaKeyType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UserAclRealmListType")) { *type = SOAP_TYPE_sai__UserAclRealmListType; return soap_in_sai__UserAclRealmListType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UserAclEntryHandleListType")) { *type = SOAP_TYPE_sai__UserAclEntryHandleListType; return soap_in_sai__UserAclEntryHandleListType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:AdminAclEntryType")) { *type = SOAP_TYPE_sai__AdminAclEntryType; return soap_in_sai__AdminAclEntryType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:UserAclEntryType")) { *type = SOAP_TYPE_sai__UserAclEntryType; return soap_in_sai__UserAclEntryType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertSubscriptionGeneralType")) { *type = SOAP_TYPE_emi__AlertSubscriptionGeneralType; return soap_in_emi__AlertSubscriptionGeneralType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertSubscriptionSoapType")) { *type = SOAP_TYPE_emi__AlertSubscriptionSoapType; return soap_in_emi__AlertSubscriptionSoapType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertSubscriptionSNMPType")) { *type = SOAP_TYPE_emi__AlertSubscriptionSNMPType; return soap_in_emi__AlertSubscriptionSNMPType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertCredentialsType")) { *type = SOAP_TYPE_emi__AlertCredentialsType; return soap_in_emi__AlertCredentialsType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:ByteStr")) { *type = SOAP_TYPE_emi__ByteStr; return soap_in_emi__ByteStr(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:SensorAttributesType")) { *type = SOAP_TYPE_emi__SensorAttributesType; return soap_in_emi__SensorAttributesType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:SensorHandleArrayType")) { *type = SOAP_TYPE_emi__SensorHandleArrayType; return soap_in_emi__SensorHandleArrayType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:EventLogRecordArrayType")) { *type = SOAP_TYPE_emi__EventLogRecordArrayType; return soap_in_emi__EventLogRecordArrayType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:EventFilterHandleArrayType")) { *type = SOAP_TYPE_emi__EventFilterHandleArrayType; return soap_in_emi__EventFilterHandleArrayType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertSubscriptionHandleArrayType")) { *type = SOAP_TYPE_emi__AlertSubscriptionHandleArrayType; return soap_in_emi__AlertSubscriptionHandleArrayType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertSubscriptionType")) { *type = SOAP_TYPE_emi__AlertSubscriptionType; return soap_in_emi__AlertSubscriptionType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:EventFilterType")) { *type = SOAP_TYPE_emi__EventFilterType; return soap_in_emi__EventFilterType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:EventLogRecordType")) { *type = SOAP_TYPE_emi__EventLogRecordType; return soap_in_emi__EventLogRecordType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:ByteData")) { *type = SOAP_TYPE_emi__ByteData; return soap_in_emi__ByteData(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:AlertSubscriptionPolicyIDArrayType")) { *type = SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType; return soap_in_emi__AlertSubscriptionPolicyIDArrayType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "cmn:NodeAddressType")) { *type = SOAP_TYPE_cmn__NodeAddressType; return soap_in_cmn__NodeAddressType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "cmn:URLType")) { *type = SOAP_TYPE_cmn__URLType; return soap_in_cmn__URLType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:base64Binary")) { *type = SOAP_TYPE_xsd__base64Binary; return soap_in_xsd__base64Binary(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:anyURI")) { *type = SOAP_TYPE_xsd__anyURI; return soap_in_xsd__anyURI(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:string")) { *type = SOAP_TYPE_std__string; return soap_in_std__string(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:string")) { char **s; *type = SOAP_TYPE_string; s = soap_in_string(soap, NULL, NULL, NULL); return s ? *s : NULL; } t = soap->tag; if (!soap_match_tag(soap, t, "sai:KerberosRealmName")) { *type = SOAP_TYPE__sai__KerberosRealmName; return soap_in__sai__KerberosRealmName(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "sai:SpnString")) { *type = SOAP_TYPE__sai__SpnString; return soap_in__sai__SpnString(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emc:SoapAlertResponse")) { *type = SOAP_TYPE__emc__SoapAlertResponse; return soap_in__emc__SoapAlertResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emc:SoapAlertRequest")) { *type = SOAP_TYPE__emc__SoapAlertRequest; return soap_in__emc__SoapAlertRequest(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:GetGeneralAlertSubscriptionResponse")) { *type = SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse; return soap_in__emi__GetGeneralAlertSubscriptionResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:GetGeneralAlertSubscription")) { *type = SOAP_TYPE__emi__GetGeneralAlertSubscription; return soap_in__emi__GetGeneralAlertSubscription(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:EnumerateGeneralAlertSubscriptionsResponse")) { *type = SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse; return soap_in__emi__EnumerateGeneralAlertSubscriptionsResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:EnumerateGeneralAlertSubscriptions")) { *type = SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions; return soap_in__emi__EnumerateGeneralAlertSubscriptions(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:SubscribeForGeneralAlertResponse")) { *type = SOAP_TYPE__emi__SubscribeForGeneralAlertResponse; return soap_in__emi__SubscribeForGeneralAlertResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:SubscribeForGeneralAlert")) { *type = SOAP_TYPE__emi__SubscribeForGeneralAlert; return soap_in__emi__SubscribeForGeneralAlert(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:CancelAlertSubscriptionResponse")) { *type = SOAP_TYPE__emi__CancelAlertSubscriptionResponse; return soap_in__emi__CancelAlertSubscriptionResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "emi:CancelAlertSubscription")) { *type = SOAP_TYPE__emi__CancelAlertSubscription; return soap_in__emi__CancelAlertSubscription(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:QName")) { char **s; *type = SOAP_TYPE__QName; s = soap_in__QName(soap, NULL, NULL, NULL); return s ? *s : NULL; } } } soap->error = SOAP_TAG_MISMATCH; return NULL; } #ifdef __cplusplus } #endif #endif SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap *soap) { if (!soap_peek_element(soap)) { int t; if (soap->mustUnderstand && !soap->other) return soap->error = SOAP_MUSTUNDERSTAND; if (((soap->mode & SOAP_XML_STRICT) && soap->part != SOAP_IN_HEADER) || !soap_match_tag(soap, soap->tag, "SOAP-ENV:")) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "REJECTING element '%s'\n", soap->tag)); return soap->error = SOAP_TAG_MISMATCH; } if (!*soap->id || !soap_getelement(soap, &t)) { soap->peeked = 0; DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unknown element '%s' (level=%u, %d)\n", soap->tag, soap->level, soap->body)); if (soap->fignore) soap->error = soap->fignore(soap, soap->tag); else soap->error = SOAP_OK; DBGLOG(TEST, if (!soap->error) SOAP_MESSAGE(fdebug, "IGNORING element '%s'\n", soap->tag)); if (!soap->error && soap->body) { soap->level++; while (!soap_ignore_element(soap)) ; if (soap->error == SOAP_NO_TAG) soap->error = soap_element_end_in(soap, NULL); } } } return soap->error; } #ifndef WITH_NOIDREF SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap *soap) { int i; struct soap_plist *pp; if (soap->version == 1 && soap->encodingStyle && !(soap->mode & (SOAP_XML_TREE | SOAP_XML_GRAPH))) for (i = 0; i < SOAP_PTRHASH; i++) for (pp = soap->pht[i]; pp; pp = pp->next) if (pp->mark1 == 2 || pp->mark2 == 2) if (soap_putelement(soap, pp->ptr, "id", pp->id, pp->type)) return soap->error; return SOAP_OK; } #endif #ifndef WITH_NOIDREF #ifdef __cplusplus extern "C" { #endif SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap *soap, const void *ptr, const char *tag, int id, int type) { switch (type) { case SOAP_TYPE_byte: return soap_out_byte(soap, tag, id, (const char *)ptr, "xsd:byte"); case SOAP_TYPE_short: return soap_out_short(soap, tag, id, (const short *)ptr, "xsd:short"); case SOAP_TYPE_int: return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int"); case SOAP_TYPE_emi__AlertSubscriptionPolicyIDType: return soap_out_emi__AlertSubscriptionPolicyIDType(soap, tag, id, (const unsigned char *)ptr, "emi:AlertSubscriptionPolicyIDType"); case SOAP_TYPE_unsignedByte: return soap_out_unsignedByte(soap, tag, id, (const unsigned char *)ptr, "xsd:unsignedByte"); case SOAP_TYPE_unsignedShort: return soap_out_unsignedShort(soap, tag, id, (const unsigned short *)ptr, "xsd:unsignedShort"); case SOAP_TYPE_sai__CertificateHandleType: return soap_out_sai__CertificateHandleType(soap, tag, id, (const unsigned int *)ptr, "sai:CertificateHandleType"); case SOAP_TYPE_sai__IPv4AddressType: return soap_out_sai__IPv4AddressType(soap, tag, id, (const unsigned int *)ptr, "sai:IPv4AddressType"); case SOAP_TYPE_sai__UserAclEntryHandleType: return soap_out_sai__UserAclEntryHandleType(soap, tag, id, (const unsigned int *)ptr, "sai:UserAclEntryHandleType"); case SOAP_TYPE_sai__PT_USCORESTATUS: return soap_out_sai__PT_USCORESTATUS(soap, tag, id, (const unsigned int *)ptr, "sai:PT_STATUS"); case SOAP_TYPE_emi__SensorHandleType: return soap_out_emi__SensorHandleType(soap, tag, id, (const unsigned int *)ptr, "emi:SensorHandleType"); case SOAP_TYPE_emi__IPv4AddressType: return soap_out_emi__IPv4AddressType(soap, tag, id, (const unsigned int *)ptr, "emi:IPv4AddressType"); case SOAP_TYPE_emi__PT_USCORESTATUS: return soap_out_emi__PT_USCORESTATUS(soap, tag, id, (const unsigned int *)ptr, "emi:PT_STATUS"); case SOAP_TYPE_emi__EventFilterHandleType: return soap_out_emi__EventFilterHandleType(soap, tag, id, (const unsigned int *)ptr, "emi:EventFilterHandleType"); case SOAP_TYPE_emi__AlertSubscriptionHandleType: return soap_out_emi__AlertSubscriptionHandleType(soap, tag, id, (const unsigned int *)ptr, "emi:AlertSubscriptionHandleType"); case SOAP_TYPE_emi__TimeType: return soap_out_emi__TimeType(soap, tag, id, (const unsigned int *)ptr, "emi:TimeType"); case SOAP_TYPE_cmn__InterfaceHandleType: return soap_out_cmn__InterfaceHandleType(soap, tag, id, (const unsigned int *)ptr, "cmn:InterfaceHandleType"); case SOAP_TYPE_cmn__IPv4AddressType: return soap_out_cmn__IPv4AddressType(soap, tag, id, (const unsigned int *)ptr, "cmn:IPv4AddressType"); case SOAP_TYPE_cmn__PT_USCORESTATUS: return soap_out_cmn__PT_USCORESTATUS(soap, tag, id, (const unsigned int *)ptr, "cmn:PT_STATUS"); case SOAP_TYPE_unsignedInt: return soap_out_unsignedInt(soap, tag, id, (const unsigned int *)ptr, "xsd:unsignedInt"); case SOAP_TYPE_bool: return soap_out_bool(soap, tag, id, (const bool *)ptr, "xsd:boolean"); case SOAP_TYPE_sai__UNOptionsType: return soap_out_sai__UNOptionsType(soap, tag, id, (const enum sai__UNOptionsType *)ptr, "sai:UNOptionsType"); case SOAP_TYPE_sai__HashTypeType: return soap_out_sai__HashTypeType(soap, tag, id, (const enum sai__HashTypeType *)ptr, "sai:HashTypeType"); case SOAP_TYPE_sai__ProvisioningTLSModeType: return soap_out_sai__ProvisioningTLSModeType(soap, tag, id, (const enum sai__ProvisioningTLSModeType *)ptr, "sai:ProvisioningTLSModeType"); case SOAP_TYPE_sai__TlsAthenticationType: return soap_out_sai__TlsAthenticationType(soap, tag, id, (const enum sai__TlsAthenticationType *)ptr, "sai:TlsAthenticationType"); case SOAP_TYPE_sai__InterfaceType: return soap_out_sai__InterfaceType(soap, tag, id, (const enum sai__InterfaceType *)ptr, "sai:InterfaceType"); case SOAP_TYPE_sai__EnabledInterfacesType: return soap_out_sai__EnabledInterfacesType(soap, tag, id, (const enum sai__EnabledInterfacesType *)ptr, "sai:EnabledInterfacesType"); case SOAP_TYPE_sai__PowerStateType: return soap_out_sai__PowerStateType(soap, tag, id, (const enum sai__PowerStateType *)ptr, "sai:PowerStateType"); case SOAP_TYPE_sai__KerberosEncryptionType: return soap_out_sai__KerberosEncryptionType(soap, tag, id, (const enum sai__KerberosEncryptionType *)ptr, "sai:KerberosEncryptionType"); case SOAP_TYPE_sai__KerberosSpnProtocolType: return soap_out_sai__KerberosSpnProtocolType(soap, tag, id, (const enum sai__KerberosSpnProtocolType *)ptr, "sai:KerberosSpnProtocolType"); case SOAP_TYPE_sai__AccessPermissionType: return soap_out_sai__AccessPermissionType(soap, tag, id, (const enum sai__AccessPermissionType *)ptr, "sai:AccessPermissionType"); case SOAP_TYPE_sai__ProvisioningModeType: return soap_out_sai__ProvisioningModeType(soap, tag, id, (const enum sai__ProvisioningModeType *)ptr, "sai:ProvisioningModeType"); case SOAP_TYPE_sai__RngKeyEncodingType: return soap_out_sai__RngKeyEncodingType(soap, tag, id, (const enum sai__RngKeyEncodingType *)ptr, "sai:RngKeyEncodingType"); case SOAP_TYPE_sai__RsaCertificateEncodingType: return soap_out_sai__RsaCertificateEncodingType(soap, tag, id, (const enum sai__RsaCertificateEncodingType *)ptr, "sai:RsaCertificateEncodingType"); case SOAP_TYPE_sai__RsaKeyEncodingType: return soap_out_sai__RsaKeyEncodingType(soap, tag, id, (const enum sai__RsaKeyEncodingType *)ptr, "sai:RsaKeyEncodingType"); case SOAP_TYPE_sai__UserAclRealmType: return soap_out_sai__UserAclRealmType(soap, tag, id, (const enum sai__UserAclRealmType *)ptr, "sai:UserAclRealmType"); case SOAP_TYPE_emi__AlertAuthOptionsType: return soap_out_emi__AlertAuthOptionsType(soap, tag, id, (const enum emi__AlertAuthOptionsType *)ptr, "emi:AlertAuthOptionsType"); case SOAP_TYPE_emi__EventSeverityType: return soap_out_emi__EventSeverityType(soap, tag, id, (const enum emi__EventSeverityType *)ptr, "emi:EventSeverityType"); case SOAP_TYPE__sai__KerberosRealmName: return soap_out__sai__KerberosRealmName(soap, "sai:KerberosRealmName", id, (const std::string *)ptr, NULL); case SOAP_TYPE__sai__SpnString: return soap_out__sai__SpnString(soap, "sai:SpnString", id, (const std::string *)ptr, NULL); case SOAP_TYPE_sai__FriendlyNameType: return soap_out_sai__FriendlyNameType(soap, tag, id, (const std::string *)ptr, "sai:FriendlyNameType"); case SOAP_TYPE_sai__ProvisioningOTPType: return soap_out_sai__ProvisioningOTPType(soap, tag, id, (const xsd__base64Binary *)ptr, "sai:ProvisioningOTPType"); case SOAP_TYPE_sai__MEBxPasswordType: return soap_out_sai__MEBxPasswordType(soap, tag, id, (const std::string *)ptr, "sai:MEBxPasswordType"); case SOAP_TYPE_sai__AclPasswordStringType: return soap_out_sai__AclPasswordStringType(soap, tag, id, (const std::string *)ptr, "sai:AclPasswordStringType"); case SOAP_TYPE_sai__AclStringType: return soap_out_sai__AclStringType(soap, tag, id, (const std::string *)ptr, "sai:AclStringType"); case SOAP_TYPE_emi__CommunityStringType: return soap_out_emi__CommunityStringType(soap, tag, id, (const std::string *)ptr, "emi:CommunityStringType"); case SOAP_TYPE_cmn__GuidBuf: return soap_out_cmn__GuidBuf(soap, tag, id, (const xsd__base64Binary *)ptr, "cmn:GuidBuf"); case SOAP_TYPE_cmn__IPv6AddressStringType: return soap_out_cmn__IPv6AddressStringType(soap, tag, id, (const std::string *)ptr, "cmn:IPv6AddressStringType"); case SOAP_TYPE_cmn__IPv4AddressStringType: return soap_out_cmn__IPv4AddressStringType(soap, tag, id, (const std::string *)ptr, "cmn:IPv4AddressStringType"); case SOAP_TYPE_cmn__HostNameType: return soap_out_cmn__HostNameType(soap, tag, id, (const std::string *)ptr, "cmn:HostNameType"); case SOAP_TYPE_sai__GlobalPowerPolicyType: return ((sai__GlobalPowerPolicyType *)ptr)->soap_out(soap, tag, id, "sai:GlobalPowerPolicyType"); case SOAP_TYPE_sai__EnvironmentDetectionType: return ((sai__EnvironmentDetectionType *)ptr)->soap_out(soap, tag, id, "sai:EnvironmentDetectionType"); case SOAP_TYPE_sai__EnvironmentDetectionDomainType: return ((sai__EnvironmentDetectionDomainType *)ptr)->soap_out(soap, tag, id, "sai:EnvironmentDetectionDomainType"); case SOAP_TYPE_sai__EnvironmentDetectionHTTPSType: return ((sai__EnvironmentDetectionHTTPSType *)ptr)->soap_out(soap, tag, id, "sai:EnvironmentDetectionHTTPSType"); case SOAP_TYPE_sai__ProvisioningAuditRecordType: return ((sai__ProvisioningAuditRecordType *)ptr)->soap_out(soap, tag, id, "sai:ProvisioningAuditRecordType"); case SOAP_TYPE_sai__CertHashEntryType: return ((sai__CertHashEntryType *)ptr)->soap_out(soap, tag, id, "sai:CertHashEntryType"); case SOAP_TYPE_sai__PkiCapsType: return ((sai__PkiCapsType *)ptr)->soap_out(soap, tag, id, "sai:PkiCapsType"); case SOAP_TYPE_sai__CrlType: return ((sai__CrlType *)ptr)->soap_out(soap, tag, id, "sai:CrlType"); case SOAP_TYPE_sai__CertificateType: return ((sai__CertificateType *)ptr)->soap_out(soap, tag, id, "sai:CertificateType"); case SOAP_TYPE_sai__TlsOptionsType: return ((sai__TlsOptionsType *)ptr)->soap_out(soap, tag, id, "sai:TlsOptionsType"); case SOAP_TYPE_sai__KerberosOptionsType: return ((sai__KerberosOptionsType *)ptr)->soap_out(soap, tag, id, "sai:KerberosOptionsType"); case SOAP_TYPE_sai__KerberosSpnType: return ((sai__KerberosSpnType *)ptr)->soap_out(soap, tag, id, "sai:KerberosSpnType"); case SOAP_TYPE_sai__AdminAclEntryExType: return ((sai__AdminAclEntryExType *)ptr)->soap_out(soap, tag, id, "sai:AdminAclEntryExType"); case SOAP_TYPE_sai__UserAclEntryExType: return ((sai__UserAclEntryExType *)ptr)->soap_out(soap, tag, id, "sai:UserAclEntryExType"); case SOAP_TYPE_sai__UserEntryKerberosType: return ((sai__UserEntryKerberosType *)ptr)->soap_out(soap, tag, id, "sai:UserEntryKerberosType"); case SOAP_TYPE_sai__UserEntryDigestType: return ((sai__UserEntryDigestType *)ptr)->soap_out(soap, tag, id, "sai:UserEntryDigestType"); case SOAP_TYPE_sai__AmtVersion: return ((sai__AmtVersion *)ptr)->soap_out(soap, tag, id, "sai:AmtVersion"); case SOAP_TYPE_sai__UpdateCoreUrlKeyType: return ((sai__UpdateCoreUrlKeyType *)ptr)->soap_out(soap, tag, id, "sai:UpdateCoreUrlKeyType"); case SOAP_TYPE_sai__CertificateChainType: return ((sai__CertificateChainType *)ptr)->soap_out(soap, tag, id, "sai:CertificateChainType"); case SOAP_TYPE_sai__RngKeyType: return ((sai__RngKeyType *)ptr)->soap_out(soap, tag, id, "sai:RngKeyType"); case SOAP_TYPE_sai__RsaKeyType: return ((sai__RsaKeyType *)ptr)->soap_out(soap, tag, id, "sai:RsaKeyType"); case SOAP_TYPE_sai__UserAclRealmListType: return ((sai__UserAclRealmListType *)ptr)->soap_out(soap, tag, id, "sai:UserAclRealmListType"); case SOAP_TYPE_sai__UserAclEntryHandleListType: return ((sai__UserAclEntryHandleListType *)ptr)->soap_out(soap, tag, id, "sai:UserAclEntryHandleListType"); case SOAP_TYPE_sai__AdminAclEntryType: return ((sai__AdminAclEntryType *)ptr)->soap_out(soap, tag, id, "sai:AdminAclEntryType"); case SOAP_TYPE_sai__UserAclEntryType: return ((sai__UserAclEntryType *)ptr)->soap_out(soap, tag, id, "sai:UserAclEntryType"); case SOAP_TYPE__emc__SoapAlertResponse: return ((_emc__SoapAlertResponse *)ptr)->soap_out(soap, "emc:SoapAlertResponse", id, NULL); case SOAP_TYPE__emc__SoapAlertRequest: return ((_emc__SoapAlertRequest *)ptr)->soap_out(soap, "emc:SoapAlertRequest", id, NULL); case SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse: return ((_emi__GetGeneralAlertSubscriptionResponse *)ptr)->soap_out(soap, "emi:GetGeneralAlertSubscriptionResponse", id, NULL); case SOAP_TYPE__emi__GetGeneralAlertSubscription: return ((_emi__GetGeneralAlertSubscription *)ptr)->soap_out(soap, "emi:GetGeneralAlertSubscription", id, NULL); case SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse: return ((_emi__EnumerateGeneralAlertSubscriptionsResponse *)ptr)->soap_out(soap, "emi:EnumerateGeneralAlertSubscriptionsResponse", id, NULL); case SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions: return ((_emi__EnumerateGeneralAlertSubscriptions *)ptr)->soap_out(soap, "emi:EnumerateGeneralAlertSubscriptions", id, NULL); case SOAP_TYPE__emi__SubscribeForGeneralAlertResponse: return ((_emi__SubscribeForGeneralAlertResponse *)ptr)->soap_out(soap, "emi:SubscribeForGeneralAlertResponse", id, NULL); case SOAP_TYPE__emi__SubscribeForGeneralAlert: return ((_emi__SubscribeForGeneralAlert *)ptr)->soap_out(soap, "emi:SubscribeForGeneralAlert", id, NULL); case SOAP_TYPE__emi__CancelAlertSubscriptionResponse: return ((_emi__CancelAlertSubscriptionResponse *)ptr)->soap_out(soap, "emi:CancelAlertSubscriptionResponse", id, NULL); case SOAP_TYPE__emi__CancelAlertSubscription: return ((_emi__CancelAlertSubscription *)ptr)->soap_out(soap, "emi:CancelAlertSubscription", id, NULL); case SOAP_TYPE_emi__AlertSubscriptionGeneralType: return ((emi__AlertSubscriptionGeneralType *)ptr)->soap_out(soap, tag, id, "emi:AlertSubscriptionGeneralType"); case SOAP_TYPE_emi__AlertSubscriptionSoapType: return ((emi__AlertSubscriptionSoapType *)ptr)->soap_out(soap, tag, id, "emi:AlertSubscriptionSoapType"); case SOAP_TYPE_emi__AlertSubscriptionSNMPType: return ((emi__AlertSubscriptionSNMPType *)ptr)->soap_out(soap, tag, id, "emi:AlertSubscriptionSNMPType"); case SOAP_TYPE_emi__AlertCredentialsType: return ((emi__AlertCredentialsType *)ptr)->soap_out(soap, tag, id, "emi:AlertCredentialsType"); case SOAP_TYPE_emi__ByteStr: return ((emi__ByteStr *)ptr)->soap_out(soap, tag, id, "emi:ByteStr"); case SOAP_TYPE_emi__SensorAttributesType: return ((emi__SensorAttributesType *)ptr)->soap_out(soap, tag, id, "emi:SensorAttributesType"); case SOAP_TYPE_emi__SensorHandleArrayType: return ((emi__SensorHandleArrayType *)ptr)->soap_out(soap, tag, id, "emi:SensorHandleArrayType"); case SOAP_TYPE_emi__EventLogRecordArrayType: return ((emi__EventLogRecordArrayType *)ptr)->soap_out(soap, tag, id, "emi:EventLogRecordArrayType"); case SOAP_TYPE_emi__EventFilterHandleArrayType: return ((emi__EventFilterHandleArrayType *)ptr)->soap_out(soap, tag, id, "emi:EventFilterHandleArrayType"); case SOAP_TYPE_emi__AlertSubscriptionHandleArrayType: return ((emi__AlertSubscriptionHandleArrayType *)ptr)->soap_out(soap, tag, id, "emi:AlertSubscriptionHandleArrayType"); case SOAP_TYPE_emi__AlertSubscriptionType: return ((emi__AlertSubscriptionType *)ptr)->soap_out(soap, tag, id, "emi:AlertSubscriptionType"); case SOAP_TYPE_emi__EventFilterType: return ((emi__EventFilterType *)ptr)->soap_out(soap, tag, id, "emi:EventFilterType"); case SOAP_TYPE_emi__EventLogRecordType: return ((emi__EventLogRecordType *)ptr)->soap_out(soap, tag, id, "emi:EventLogRecordType"); case SOAP_TYPE_emi__ByteData: return ((emi__ByteData *)ptr)->soap_out(soap, tag, id, "emi:ByteData"); case SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType: return ((emi__AlertSubscriptionPolicyIDArrayType *)ptr)->soap_out(soap, tag, id, "emi:AlertSubscriptionPolicyIDArrayType"); case SOAP_TYPE_cmn__NodeAddressType: return ((cmn__NodeAddressType *)ptr)->soap_out(soap, tag, id, "cmn:NodeAddressType"); case SOAP_TYPE_cmn__URLType: return ((cmn__URLType *)ptr)->soap_out(soap, tag, id, "cmn:URLType"); case SOAP_TYPE_xsd__base64Binary: return ((xsd__base64Binary *)ptr)->soap_out(soap, tag, id, "xsd:base64Binary"); case SOAP_TYPE_xsd__anyURI: return soap_out_xsd__anyURI(soap, tag, id, (const std::string *)ptr, "xsd:anyURI"); case SOAP_TYPE_std__string: return soap_out_std__string(soap, tag, id, (const std::string *)ptr, "xsd:string"); case SOAP_TYPE_PointerTo_emc__SoapAlertResponse: return soap_out_PointerTo_emc__SoapAlertResponse(soap, tag, id, (_emc__SoapAlertResponse *const*)ptr, "emc:SoapAlertResponse"); case SOAP_TYPE_PointerTo_emc__SoapAlertRequest: return soap_out_PointerTo_emc__SoapAlertRequest(soap, tag, id, (_emc__SoapAlertRequest *const*)ptr, "emc:SoapAlertRequest"); case SOAP_TYPE_PointerTounsignedInt: return soap_out_PointerTounsignedInt(soap, tag, id, (unsigned int *const*)ptr, "xsd:unsignedInt"); case SOAP_TYPE_PointerTosai__EnvironmentDetectionHTTPSType: return soap_out_PointerTosai__EnvironmentDetectionHTTPSType(soap, tag, id, (sai__EnvironmentDetectionHTTPSType *const*)ptr, "sai:EnvironmentDetectionHTTPSType"); case SOAP_TYPE_PointerTosai__EnvironmentDetectionDomainType: return soap_out_PointerTosai__EnvironmentDetectionDomainType(soap, tag, id, (sai__EnvironmentDetectionDomainType *const*)ptr, "sai:EnvironmentDetectionDomainType"); case SOAP_TYPE_PointerTobool: return soap_out_PointerTobool(soap, tag, id, (bool *const*)ptr, "xsd:boolean"); case SOAP_TYPE_PointerToxsd__base64Binary: return soap_out_PointerToxsd__base64Binary(soap, tag, id, (xsd__base64Binary *const*)ptr, "xsd:base64Binary"); case SOAP_TYPE_PointerTostd__string: return soap_out_PointerTostd__string(soap, tag, id, (std::string *const*)ptr, "xsd:string"); case SOAP_TYPE_PointerTosai__KerberosSpnType: return soap_out_PointerTosai__KerberosSpnType(soap, tag, id, (sai__KerberosSpnType *const*)ptr, "sai:KerberosSpnType"); case SOAP_TYPE_PointerTosai__UserEntryKerberosType: return soap_out_PointerTosai__UserEntryKerberosType(soap, tag, id, (sai__UserEntryKerberosType *const*)ptr, "sai:UserEntryKerberosType"); case SOAP_TYPE_PointerTosai__UserEntryDigestType: return soap_out_PointerTosai__UserEntryDigestType(soap, tag, id, (sai__UserEntryDigestType *const*)ptr, "sai:UserEntryDigestType"); case SOAP_TYPE_PointerTosai__UserAclRealmListType: return soap_out_PointerTosai__UserAclRealmListType(soap, tag, id, (sai__UserAclRealmListType *const*)ptr, "sai:UserAclRealmListType"); case SOAP_TYPE_PointerToemi__AlertSubscriptionPolicyIDType: return soap_out_PointerToemi__AlertSubscriptionPolicyIDType(soap, tag, id, (unsigned char *const*)ptr, "emi:AlertSubscriptionPolicyIDType"); case SOAP_TYPE_PointerToemi__AlertSubscriptionGeneralType: return soap_out_PointerToemi__AlertSubscriptionGeneralType(soap, tag, id, (emi__AlertSubscriptionGeneralType *const*)ptr, "emi:AlertSubscriptionGeneralType"); case SOAP_TYPE_PointerToemi__AlertSubscriptionSoapType: return soap_out_PointerToemi__AlertSubscriptionSoapType(soap, tag, id, (emi__AlertSubscriptionSoapType *const*)ptr, "emi:AlertSubscriptionSoapType"); case SOAP_TYPE_PointerToemi__AlertSubscriptionSNMPType: return soap_out_PointerToemi__AlertSubscriptionSNMPType(soap, tag, id, (emi__AlertSubscriptionSNMPType *const*)ptr, "emi:AlertSubscriptionSNMPType"); case SOAP_TYPE_PointerToemi__AlertCredentialsType: return soap_out_PointerToemi__AlertCredentialsType(soap, tag, id, (emi__AlertCredentialsType *const*)ptr, "emi:AlertCredentialsType"); case SOAP_TYPE_PointerTosai__CertificateHandleType: return soap_out_PointerTosai__CertificateHandleType(soap, tag, id, (unsigned int *const*)ptr, "sai:CertificateHandleType"); case SOAP_TYPE_PointerTocmn__URLType: return soap_out_PointerTocmn__URLType(soap, tag, id, (cmn__URLType *const*)ptr, "cmn:URLType"); case SOAP_TYPE_PointerToemi__CommunityStringType: return soap_out_PointerToemi__CommunityStringType(soap, tag, id, (std::string *const*)ptr, "emi:CommunityStringType"); case SOAP_TYPE_PointerTocmn__NodeAddressType: return soap_out_PointerTocmn__NodeAddressType(soap, tag, id, (cmn__NodeAddressType *const*)ptr, "cmn:NodeAddressType"); case SOAP_TYPE_PointerToemi__EventLogRecordType: return soap_out_PointerToemi__EventLogRecordType(soap, tag, id, (emi__EventLogRecordType *const*)ptr, "emi:EventLogRecordType"); case SOAP_TYPE_PointerToemi__ByteData: return soap_out_PointerToemi__ByteData(soap, tag, id, (emi__ByteData *const*)ptr, "emi:ByteData"); case SOAP_TYPE_PointerTocmn__IPv6AddressStringType: return soap_out_PointerTocmn__IPv6AddressStringType(soap, tag, id, (std::string *const*)ptr, "cmn:IPv6AddressStringType"); case SOAP_TYPE_PointerTocmn__IPv4AddressStringType: return soap_out_PointerTocmn__IPv4AddressStringType(soap, tag, id, (std::string *const*)ptr, "cmn:IPv4AddressStringType"); case SOAP_TYPE_PointerTocmn__HostNameType: return soap_out_PointerTocmn__HostNameType(soap, tag, id, (std::string *const*)ptr, "cmn:HostNameType"); case SOAP_TYPE_PointerTounsignedByte: return soap_out_PointerTounsignedByte(soap, tag, id, (unsigned char *const*)ptr, "xsd:unsignedByte"); case SOAP_TYPE__QName: return soap_out_string(soap, "xsd:QName", id, (char**)&ptr, NULL); case SOAP_TYPE_string: return soap_out_string(soap, tag, id, (char**)&ptr, "xsd:string"); } return SOAP_OK; } #ifdef __cplusplus } #endif #endif #ifndef WITH_NOIDREF #ifdef __cplusplus extern "C" { #endif SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr, int type) { (void)soap; (void)ptr; (void)type; /* appease -Wall -Werror */ switch (type) { case SOAP_TYPE__sai__KerberosRealmName: soap_serialize__sai__KerberosRealmName(soap, (const std::string *)ptr); break; case SOAP_TYPE__sai__SpnString: soap_serialize__sai__SpnString(soap, (const std::string *)ptr); break; case SOAP_TYPE_sai__FriendlyNameType: soap_serialize_sai__FriendlyNameType(soap, (const std::string *)ptr); break; case SOAP_TYPE_sai__ProvisioningOTPType: soap_serialize_sai__ProvisioningOTPType(soap, (const xsd__base64Binary *)ptr); break; case SOAP_TYPE_sai__MEBxPasswordType: soap_serialize_sai__MEBxPasswordType(soap, (const std::string *)ptr); break; case SOAP_TYPE_sai__AclPasswordStringType: soap_serialize_sai__AclPasswordStringType(soap, (const std::string *)ptr); break; case SOAP_TYPE_sai__AclStringType: soap_serialize_sai__AclStringType(soap, (const std::string *)ptr); break; case SOAP_TYPE_emi__CommunityStringType: soap_serialize_emi__CommunityStringType(soap, (const std::string *)ptr); break; case SOAP_TYPE_cmn__GuidBuf: soap_serialize_cmn__GuidBuf(soap, (const xsd__base64Binary *)ptr); break; case SOAP_TYPE_cmn__IPv6AddressStringType: soap_serialize_cmn__IPv6AddressStringType(soap, (const std::string *)ptr); break; case SOAP_TYPE_cmn__IPv4AddressStringType: soap_serialize_cmn__IPv4AddressStringType(soap, (const std::string *)ptr); break; case SOAP_TYPE_cmn__HostNameType: soap_serialize_cmn__HostNameType(soap, (const std::string *)ptr); break; case SOAP_TYPE_sai__GlobalPowerPolicyType: ((sai__GlobalPowerPolicyType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__EnvironmentDetectionType: ((sai__EnvironmentDetectionType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__EnvironmentDetectionDomainType: ((sai__EnvironmentDetectionDomainType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__EnvironmentDetectionHTTPSType: ((sai__EnvironmentDetectionHTTPSType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__ProvisioningAuditRecordType: ((sai__ProvisioningAuditRecordType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__CertHashEntryType: ((sai__CertHashEntryType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__PkiCapsType: ((sai__PkiCapsType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__CrlType: ((sai__CrlType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__CertificateType: ((sai__CertificateType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__TlsOptionsType: ((sai__TlsOptionsType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__KerberosOptionsType: ((sai__KerberosOptionsType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__KerberosSpnType: ((sai__KerberosSpnType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__AdminAclEntryExType: ((sai__AdminAclEntryExType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__UserAclEntryExType: ((sai__UserAclEntryExType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__UserEntryKerberosType: ((sai__UserEntryKerberosType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__UserEntryDigestType: ((sai__UserEntryDigestType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__AmtVersion: ((sai__AmtVersion *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__UpdateCoreUrlKeyType: ((sai__UpdateCoreUrlKeyType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__CertificateChainType: ((sai__CertificateChainType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__RngKeyType: ((sai__RngKeyType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__RsaKeyType: ((sai__RsaKeyType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__UserAclRealmListType: ((sai__UserAclRealmListType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__UserAclEntryHandleListType: ((sai__UserAclEntryHandleListType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__AdminAclEntryType: ((sai__AdminAclEntryType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_sai__UserAclEntryType: ((sai__UserAclEntryType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emc__SoapAlertResponse: ((_emc__SoapAlertResponse *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emc__SoapAlertRequest: ((_emc__SoapAlertRequest *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse: ((_emi__GetGeneralAlertSubscriptionResponse *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emi__GetGeneralAlertSubscription: ((_emi__GetGeneralAlertSubscription *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse: ((_emi__EnumerateGeneralAlertSubscriptionsResponse *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions: ((_emi__EnumerateGeneralAlertSubscriptions *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emi__SubscribeForGeneralAlertResponse: ((_emi__SubscribeForGeneralAlertResponse *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emi__SubscribeForGeneralAlert: ((_emi__SubscribeForGeneralAlert *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emi__CancelAlertSubscriptionResponse: ((_emi__CancelAlertSubscriptionResponse *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__emi__CancelAlertSubscription: ((_emi__CancelAlertSubscription *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__AlertSubscriptionGeneralType: ((emi__AlertSubscriptionGeneralType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__AlertSubscriptionSoapType: ((emi__AlertSubscriptionSoapType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__AlertSubscriptionSNMPType: ((emi__AlertSubscriptionSNMPType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__AlertCredentialsType: ((emi__AlertCredentialsType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__ByteStr: ((emi__ByteStr *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__SensorAttributesType: ((emi__SensorAttributesType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__SensorHandleArrayType: ((emi__SensorHandleArrayType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__EventLogRecordArrayType: ((emi__EventLogRecordArrayType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__EventFilterHandleArrayType: ((emi__EventFilterHandleArrayType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__AlertSubscriptionHandleArrayType: ((emi__AlertSubscriptionHandleArrayType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__AlertSubscriptionType: ((emi__AlertSubscriptionType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__EventFilterType: ((emi__EventFilterType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__EventLogRecordType: ((emi__EventLogRecordType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__ByteData: ((emi__ByteData *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType: ((emi__AlertSubscriptionPolicyIDArrayType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_cmn__NodeAddressType: ((cmn__NodeAddressType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_cmn__URLType: ((cmn__URLType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__base64Binary: ((xsd__base64Binary *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__anyURI: soap_serialize_xsd__anyURI(soap, (const std::string *)ptr); break; case SOAP_TYPE_std__string: soap_serialize_std__string(soap, (const std::string *)ptr); break; case SOAP_TYPE___emc__SoapAlert: soap_serialize___emc__SoapAlert(soap, (const struct __emc__SoapAlert *)ptr); break; case SOAP_TYPE_PointerTo_emc__SoapAlertResponse: soap_serialize_PointerTo_emc__SoapAlertResponse(soap, (_emc__SoapAlertResponse *const*)ptr); break; case SOAP_TYPE_PointerTo_emc__SoapAlertRequest: soap_serialize_PointerTo_emc__SoapAlertRequest(soap, (_emc__SoapAlertRequest *const*)ptr); break; case SOAP_TYPE_PointerTounsignedInt: soap_serialize_PointerTounsignedInt(soap, (unsigned int *const*)ptr); break; case SOAP_TYPE_PointerTosai__EnvironmentDetectionHTTPSType: soap_serialize_PointerTosai__EnvironmentDetectionHTTPSType(soap, (sai__EnvironmentDetectionHTTPSType *const*)ptr); break; case SOAP_TYPE_PointerTosai__EnvironmentDetectionDomainType: soap_serialize_PointerTosai__EnvironmentDetectionDomainType(soap, (sai__EnvironmentDetectionDomainType *const*)ptr); break; case SOAP_TYPE_PointerTobool: soap_serialize_PointerTobool(soap, (bool *const*)ptr); break; case SOAP_TYPE_PointerToxsd__base64Binary: soap_serialize_PointerToxsd__base64Binary(soap, (xsd__base64Binary *const*)ptr); break; case SOAP_TYPE_PointerTostd__string: soap_serialize_PointerTostd__string(soap, (std::string *const*)ptr); break; case SOAP_TYPE_PointerTosai__KerberosSpnType: soap_serialize_PointerTosai__KerberosSpnType(soap, (sai__KerberosSpnType *const*)ptr); break; case SOAP_TYPE_PointerTosai__UserEntryKerberosType: soap_serialize_PointerTosai__UserEntryKerberosType(soap, (sai__UserEntryKerberosType *const*)ptr); break; case SOAP_TYPE_PointerTosai__UserEntryDigestType: soap_serialize_PointerTosai__UserEntryDigestType(soap, (sai__UserEntryDigestType *const*)ptr); break; case SOAP_TYPE_PointerTosai__UserAclRealmListType: soap_serialize_PointerTosai__UserAclRealmListType(soap, (sai__UserAclRealmListType *const*)ptr); break; case SOAP_TYPE_PointerToemi__AlertSubscriptionPolicyIDType: soap_serialize_PointerToemi__AlertSubscriptionPolicyIDType(soap, (unsigned char *const*)ptr); break; case SOAP_TYPE_PointerToemi__AlertSubscriptionGeneralType: soap_serialize_PointerToemi__AlertSubscriptionGeneralType(soap, (emi__AlertSubscriptionGeneralType *const*)ptr); break; case SOAP_TYPE_PointerToemi__AlertSubscriptionSoapType: soap_serialize_PointerToemi__AlertSubscriptionSoapType(soap, (emi__AlertSubscriptionSoapType *const*)ptr); break; case SOAP_TYPE_PointerToemi__AlertSubscriptionSNMPType: soap_serialize_PointerToemi__AlertSubscriptionSNMPType(soap, (emi__AlertSubscriptionSNMPType *const*)ptr); break; case SOAP_TYPE_PointerToemi__AlertCredentialsType: soap_serialize_PointerToemi__AlertCredentialsType(soap, (emi__AlertCredentialsType *const*)ptr); break; case SOAP_TYPE_PointerTosai__CertificateHandleType: soap_serialize_PointerTosai__CertificateHandleType(soap, (unsigned int *const*)ptr); break; case SOAP_TYPE_PointerTocmn__URLType: soap_serialize_PointerTocmn__URLType(soap, (cmn__URLType *const*)ptr); break; case SOAP_TYPE_PointerToemi__CommunityStringType: soap_serialize_PointerToemi__CommunityStringType(soap, (std::string *const*)ptr); break; case SOAP_TYPE_PointerTocmn__NodeAddressType: soap_serialize_PointerTocmn__NodeAddressType(soap, (cmn__NodeAddressType *const*)ptr); break; case SOAP_TYPE_PointerToemi__EventLogRecordType: soap_serialize_PointerToemi__EventLogRecordType(soap, (emi__EventLogRecordType *const*)ptr); break; case SOAP_TYPE_PointerToemi__ByteData: soap_serialize_PointerToemi__ByteData(soap, (emi__ByteData *const*)ptr); break; case SOAP_TYPE_PointerTocmn__IPv6AddressStringType: soap_serialize_PointerTocmn__IPv6AddressStringType(soap, (std::string *const*)ptr); break; case SOAP_TYPE_PointerTocmn__IPv4AddressStringType: soap_serialize_PointerTocmn__IPv4AddressStringType(soap, (std::string *const*)ptr); break; case SOAP_TYPE_PointerTocmn__HostNameType: soap_serialize_PointerTocmn__HostNameType(soap, (std::string *const*)ptr); break; case SOAP_TYPE_PointerTounsignedByte: soap_serialize_PointerTounsignedByte(soap, (unsigned char *const*)ptr); break; case SOAP_TYPE__QName: soap_serialize_string(soap, (char**)&ptr); break; case SOAP_TYPE_string: soap_serialize_string(soap, (char**)&ptr); break; } } #ifdef __cplusplus } #endif #endif SOAP_FMAC3 void * SOAP_FMAC4 soap_instantiate(struct soap *soap, int t, const char *type, const char *arrayType, size_t *n) { switch (t) { case SOAP_TYPE_std__string: return (void*)soap_instantiate_std__string(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__base64Binary: return (void*)soap_instantiate_xsd__base64Binary(soap, -1, type, arrayType, n); case SOAP_TYPE_cmn__NodeAddressType: return (void*)soap_instantiate_cmn__NodeAddressType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType: return (void*)soap_instantiate_emi__AlertSubscriptionPolicyIDArrayType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__ByteData: return (void*)soap_instantiate_emi__ByteData(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__EventLogRecordType: return (void*)soap_instantiate_emi__EventLogRecordType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__EventFilterType: return (void*)soap_instantiate_emi__EventFilterType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__AlertSubscriptionType: return (void*)soap_instantiate_emi__AlertSubscriptionType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__AlertSubscriptionHandleArrayType: return (void*)soap_instantiate_emi__AlertSubscriptionHandleArrayType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__EventFilterHandleArrayType: return (void*)soap_instantiate_emi__EventFilterHandleArrayType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__EventLogRecordArrayType: return (void*)soap_instantiate_emi__EventLogRecordArrayType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__SensorHandleArrayType: return (void*)soap_instantiate_emi__SensorHandleArrayType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__SensorAttributesType: return (void*)soap_instantiate_emi__SensorAttributesType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__ByteStr: return (void*)soap_instantiate_emi__ByteStr(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__AlertCredentialsType: return (void*)soap_instantiate_emi__AlertCredentialsType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__AlertSubscriptionSNMPType: return (void*)soap_instantiate_emi__AlertSubscriptionSNMPType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__AlertSubscriptionSoapType: return (void*)soap_instantiate_emi__AlertSubscriptionSoapType(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__AlertSubscriptionGeneralType: return (void*)soap_instantiate_emi__AlertSubscriptionGeneralType(soap, -1, type, arrayType, n); case SOAP_TYPE__emi__CancelAlertSubscription: return (void*)soap_instantiate__emi__CancelAlertSubscription(soap, -1, type, arrayType, n); case SOAP_TYPE__emi__CancelAlertSubscriptionResponse: return (void*)soap_instantiate__emi__CancelAlertSubscriptionResponse(soap, -1, type, arrayType, n); case SOAP_TYPE__emi__SubscribeForGeneralAlert: return (void*)soap_instantiate__emi__SubscribeForGeneralAlert(soap, -1, type, arrayType, n); case SOAP_TYPE__emi__SubscribeForGeneralAlertResponse: return (void*)soap_instantiate__emi__SubscribeForGeneralAlertResponse(soap, -1, type, arrayType, n); case SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions: return (void*)soap_instantiate__emi__EnumerateGeneralAlertSubscriptions(soap, -1, type, arrayType, n); case SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse: return (void*)soap_instantiate__emi__EnumerateGeneralAlertSubscriptionsResponse(soap, -1, type, arrayType, n); case SOAP_TYPE__emi__GetGeneralAlertSubscription: return (void*)soap_instantiate__emi__GetGeneralAlertSubscription(soap, -1, type, arrayType, n); case SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse: return (void*)soap_instantiate__emi__GetGeneralAlertSubscriptionResponse(soap, -1, type, arrayType, n); case SOAP_TYPE__emc__SoapAlertRequest: return (void*)soap_instantiate__emc__SoapAlertRequest(soap, -1, type, arrayType, n); case SOAP_TYPE__emc__SoapAlertResponse: return (void*)soap_instantiate__emc__SoapAlertResponse(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__UserAclEntryType: return (void*)soap_instantiate_sai__UserAclEntryType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__AdminAclEntryType: return (void*)soap_instantiate_sai__AdminAclEntryType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__UserAclEntryHandleListType: return (void*)soap_instantiate_sai__UserAclEntryHandleListType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__UserAclRealmListType: return (void*)soap_instantiate_sai__UserAclRealmListType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__RsaKeyType: return (void*)soap_instantiate_sai__RsaKeyType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__RngKeyType: return (void*)soap_instantiate_sai__RngKeyType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__CertificateChainType: return (void*)soap_instantiate_sai__CertificateChainType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__UpdateCoreUrlKeyType: return (void*)soap_instantiate_sai__UpdateCoreUrlKeyType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__AmtVersion: return (void*)soap_instantiate_sai__AmtVersion(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__UserEntryDigestType: return (void*)soap_instantiate_sai__UserEntryDigestType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__UserEntryKerberosType: return (void*)soap_instantiate_sai__UserEntryKerberosType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__UserAclEntryExType: return (void*)soap_instantiate_sai__UserAclEntryExType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__AdminAclEntryExType: return (void*)soap_instantiate_sai__AdminAclEntryExType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__KerberosSpnType: return (void*)soap_instantiate_sai__KerberosSpnType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__KerberosOptionsType: return (void*)soap_instantiate_sai__KerberosOptionsType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__TlsOptionsType: return (void*)soap_instantiate_sai__TlsOptionsType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__CertificateType: return (void*)soap_instantiate_sai__CertificateType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__CrlType: return (void*)soap_instantiate_sai__CrlType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__PkiCapsType: return (void*)soap_instantiate_sai__PkiCapsType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__CertHashEntryType: return (void*)soap_instantiate_sai__CertHashEntryType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__ProvisioningAuditRecordType: return (void*)soap_instantiate_sai__ProvisioningAuditRecordType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__EnvironmentDetectionHTTPSType: return (void*)soap_instantiate_sai__EnvironmentDetectionHTTPSType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__EnvironmentDetectionDomainType: return (void*)soap_instantiate_sai__EnvironmentDetectionDomainType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__EnvironmentDetectionType: return (void*)soap_instantiate_sai__EnvironmentDetectionType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__GlobalPowerPolicyType: return (void*)soap_instantiate_sai__GlobalPowerPolicyType(soap, -1, type, arrayType, n); case SOAP_TYPE_cmn__URLType: return (void*)soap_instantiate_cmn__URLType(soap, -1, type, arrayType, n); case SOAP_TYPE___emc__SoapAlert: return (void*)soap_instantiate___emc__SoapAlert(soap, -1, type, arrayType, n); #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Header: return (void*)soap_instantiate_SOAP_ENV__Header(soap, -1, type, arrayType, n); #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Code: return (void*)soap_instantiate_SOAP_ENV__Code(soap, -1, type, arrayType, n); #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Detail: return (void*)soap_instantiate_SOAP_ENV__Detail(soap, -1, type, arrayType, n); #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Reason: return (void*)soap_instantiate_SOAP_ENV__Reason(soap, -1, type, arrayType, n); #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Fault: return (void*)soap_instantiate_SOAP_ENV__Fault(soap, -1, type, arrayType, n); #endif case SOAP_TYPE_xsd__anyURI: return (void*)soap_instantiate_xsd__anyURI(soap, -1, type, arrayType, n); case SOAP_TYPE_cmn__HostNameType: return (void*)soap_instantiate_cmn__HostNameType(soap, -1, type, arrayType, n); case SOAP_TYPE_cmn__IPv4AddressStringType: return (void*)soap_instantiate_cmn__IPv4AddressStringType(soap, -1, type, arrayType, n); case SOAP_TYPE_cmn__IPv6AddressStringType: return (void*)soap_instantiate_cmn__IPv6AddressStringType(soap, -1, type, arrayType, n); case SOAP_TYPE_cmn__GuidBuf: return (void*)soap_instantiate_cmn__GuidBuf(soap, -1, type, arrayType, n); case SOAP_TYPE_emi__CommunityStringType: return (void*)soap_instantiate_emi__CommunityStringType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__AclStringType: return (void*)soap_instantiate_sai__AclStringType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__AclPasswordStringType: return (void*)soap_instantiate_sai__AclPasswordStringType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__MEBxPasswordType: return (void*)soap_instantiate_sai__MEBxPasswordType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__ProvisioningOTPType: return (void*)soap_instantiate_sai__ProvisioningOTPType(soap, -1, type, arrayType, n); case SOAP_TYPE_sai__FriendlyNameType: return (void*)soap_instantiate_sai__FriendlyNameType(soap, -1, type, arrayType, n); case SOAP_TYPE__sai__SpnString: return (void*)soap_instantiate__sai__SpnString(soap, -1, type, arrayType, n); case SOAP_TYPE__sai__KerberosRealmName: return (void*)soap_instantiate__sai__KerberosRealmName(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfstd__string: return (void*)soap_instantiate_std__vectorTemplateOfstd__string(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfxsd__anyURI: return (void*)soap_instantiate_std__vectorTemplateOfxsd__anyURI(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfunsignedInt: return (void*)soap_instantiate_std__vectorTemplateOfunsignedInt(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfxsd__base64Binary: return (void*)soap_instantiate_std__vectorTemplateOfxsd__base64Binary(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfPointerTosai__KerberosSpnType: return (void*)soap_instantiate_std__vectorTemplateOfPointerTosai__KerberosSpnType(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfsai__UserAclRealmType: return (void*)soap_instantiate_std__vectorTemplateOfsai__UserAclRealmType(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfsai__UserAclEntryHandleType: return (void*)soap_instantiate_std__vectorTemplateOfsai__UserAclEntryHandleType(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfemi__AlertAuthOptionsType: return (void*)soap_instantiate_std__vectorTemplateOfemi__AlertAuthOptionsType(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfemi__SensorHandleType: return (void*)soap_instantiate_std__vectorTemplateOfemi__SensorHandleType(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfPointerToemi__EventLogRecordType: return (void*)soap_instantiate_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfemi__EventFilterHandleType: return (void*)soap_instantiate_std__vectorTemplateOfemi__EventFilterHandleType(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionHandleType: return (void*)soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfunsignedByte: return (void*)soap_instantiate_std__vectorTemplateOfunsignedByte(soap, -1, type, arrayType, n); case SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType: return (void*)soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(soap, -1, type, arrayType, n); } return NULL; } SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete(struct soap_clist *p) { switch (p->type) { case SOAP_TYPE_std__string: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_xsd__base64Binary: if (p->size < 0) delete (xsd__base64Binary*)p->ptr; else delete[] (xsd__base64Binary*)p->ptr; break; case SOAP_TYPE_cmn__NodeAddressType: if (p->size < 0) delete (cmn__NodeAddressType*)p->ptr; else delete[] (cmn__NodeAddressType*)p->ptr; break; case SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType: if (p->size < 0) delete (emi__AlertSubscriptionPolicyIDArrayType*)p->ptr; else delete[] (emi__AlertSubscriptionPolicyIDArrayType*)p->ptr; break; case SOAP_TYPE_emi__ByteData: if (p->size < 0) delete (emi__ByteData*)p->ptr; else delete[] (emi__ByteData*)p->ptr; break; case SOAP_TYPE_emi__EventLogRecordType: if (p->size < 0) delete (emi__EventLogRecordType*)p->ptr; else delete[] (emi__EventLogRecordType*)p->ptr; break; case SOAP_TYPE_emi__EventFilterType: if (p->size < 0) delete (emi__EventFilterType*)p->ptr; else delete[] (emi__EventFilterType*)p->ptr; break; case SOAP_TYPE_emi__AlertSubscriptionType: if (p->size < 0) delete (emi__AlertSubscriptionType*)p->ptr; else delete[] (emi__AlertSubscriptionType*)p->ptr; break; case SOAP_TYPE_emi__AlertSubscriptionHandleArrayType: if (p->size < 0) delete (emi__AlertSubscriptionHandleArrayType*)p->ptr; else delete[] (emi__AlertSubscriptionHandleArrayType*)p->ptr; break; case SOAP_TYPE_emi__EventFilterHandleArrayType: if (p->size < 0) delete (emi__EventFilterHandleArrayType*)p->ptr; else delete[] (emi__EventFilterHandleArrayType*)p->ptr; break; case SOAP_TYPE_emi__EventLogRecordArrayType: if (p->size < 0) delete (emi__EventLogRecordArrayType*)p->ptr; else delete[] (emi__EventLogRecordArrayType*)p->ptr; break; case SOAP_TYPE_emi__SensorHandleArrayType: if (p->size < 0) delete (emi__SensorHandleArrayType*)p->ptr; else delete[] (emi__SensorHandleArrayType*)p->ptr; break; case SOAP_TYPE_emi__SensorAttributesType: if (p->size < 0) delete (emi__SensorAttributesType*)p->ptr; else delete[] (emi__SensorAttributesType*)p->ptr; break; case SOAP_TYPE_emi__ByteStr: if (p->size < 0) delete (emi__ByteStr*)p->ptr; else delete[] (emi__ByteStr*)p->ptr; break; case SOAP_TYPE_emi__AlertCredentialsType: if (p->size < 0) delete (emi__AlertCredentialsType*)p->ptr; else delete[] (emi__AlertCredentialsType*)p->ptr; break; case SOAP_TYPE_emi__AlertSubscriptionSNMPType: if (p->size < 0) delete (emi__AlertSubscriptionSNMPType*)p->ptr; else delete[] (emi__AlertSubscriptionSNMPType*)p->ptr; break; case SOAP_TYPE_emi__AlertSubscriptionSoapType: if (p->size < 0) delete (emi__AlertSubscriptionSoapType*)p->ptr; else delete[] (emi__AlertSubscriptionSoapType*)p->ptr; break; case SOAP_TYPE_emi__AlertSubscriptionGeneralType: if (p->size < 0) delete (emi__AlertSubscriptionGeneralType*)p->ptr; else delete[] (emi__AlertSubscriptionGeneralType*)p->ptr; break; case SOAP_TYPE__emi__CancelAlertSubscription: if (p->size < 0) delete (_emi__CancelAlertSubscription*)p->ptr; else delete[] (_emi__CancelAlertSubscription*)p->ptr; break; case SOAP_TYPE__emi__CancelAlertSubscriptionResponse: if (p->size < 0) delete (_emi__CancelAlertSubscriptionResponse*)p->ptr; else delete[] (_emi__CancelAlertSubscriptionResponse*)p->ptr; break; case SOAP_TYPE__emi__SubscribeForGeneralAlert: if (p->size < 0) delete (_emi__SubscribeForGeneralAlert*)p->ptr; else delete[] (_emi__SubscribeForGeneralAlert*)p->ptr; break; case SOAP_TYPE__emi__SubscribeForGeneralAlertResponse: if (p->size < 0) delete (_emi__SubscribeForGeneralAlertResponse*)p->ptr; else delete[] (_emi__SubscribeForGeneralAlertResponse*)p->ptr; break; case SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions: if (p->size < 0) delete (_emi__EnumerateGeneralAlertSubscriptions*)p->ptr; else delete[] (_emi__EnumerateGeneralAlertSubscriptions*)p->ptr; break; case SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse: if (p->size < 0) delete (_emi__EnumerateGeneralAlertSubscriptionsResponse*)p->ptr; else delete[] (_emi__EnumerateGeneralAlertSubscriptionsResponse*)p->ptr; break; case SOAP_TYPE__emi__GetGeneralAlertSubscription: if (p->size < 0) delete (_emi__GetGeneralAlertSubscription*)p->ptr; else delete[] (_emi__GetGeneralAlertSubscription*)p->ptr; break; case SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse: if (p->size < 0) delete (_emi__GetGeneralAlertSubscriptionResponse*)p->ptr; else delete[] (_emi__GetGeneralAlertSubscriptionResponse*)p->ptr; break; case SOAP_TYPE__emc__SoapAlertRequest: if (p->size < 0) delete (_emc__SoapAlertRequest*)p->ptr; else delete[] (_emc__SoapAlertRequest*)p->ptr; break; case SOAP_TYPE__emc__SoapAlertResponse: if (p->size < 0) delete (_emc__SoapAlertResponse*)p->ptr; else delete[] (_emc__SoapAlertResponse*)p->ptr; break; case SOAP_TYPE_sai__UserAclEntryType: if (p->size < 0) delete (sai__UserAclEntryType*)p->ptr; else delete[] (sai__UserAclEntryType*)p->ptr; break; case SOAP_TYPE_sai__AdminAclEntryType: if (p->size < 0) delete (sai__AdminAclEntryType*)p->ptr; else delete[] (sai__AdminAclEntryType*)p->ptr; break; case SOAP_TYPE_sai__UserAclEntryHandleListType: if (p->size < 0) delete (sai__UserAclEntryHandleListType*)p->ptr; else delete[] (sai__UserAclEntryHandleListType*)p->ptr; break; case SOAP_TYPE_sai__UserAclRealmListType: if (p->size < 0) delete (sai__UserAclRealmListType*)p->ptr; else delete[] (sai__UserAclRealmListType*)p->ptr; break; case SOAP_TYPE_sai__RsaKeyType: if (p->size < 0) delete (sai__RsaKeyType*)p->ptr; else delete[] (sai__RsaKeyType*)p->ptr; break; case SOAP_TYPE_sai__RngKeyType: if (p->size < 0) delete (sai__RngKeyType*)p->ptr; else delete[] (sai__RngKeyType*)p->ptr; break; case SOAP_TYPE_sai__CertificateChainType: if (p->size < 0) delete (sai__CertificateChainType*)p->ptr; else delete[] (sai__CertificateChainType*)p->ptr; break; case SOAP_TYPE_sai__UpdateCoreUrlKeyType: if (p->size < 0) delete (sai__UpdateCoreUrlKeyType*)p->ptr; else delete[] (sai__UpdateCoreUrlKeyType*)p->ptr; break; case SOAP_TYPE_sai__AmtVersion: if (p->size < 0) delete (sai__AmtVersion*)p->ptr; else delete[] (sai__AmtVersion*)p->ptr; break; case SOAP_TYPE_sai__UserEntryDigestType: if (p->size < 0) delete (sai__UserEntryDigestType*)p->ptr; else delete[] (sai__UserEntryDigestType*)p->ptr; break; case SOAP_TYPE_sai__UserEntryKerberosType: if (p->size < 0) delete (sai__UserEntryKerberosType*)p->ptr; else delete[] (sai__UserEntryKerberosType*)p->ptr; break; case SOAP_TYPE_sai__UserAclEntryExType: if (p->size < 0) delete (sai__UserAclEntryExType*)p->ptr; else delete[] (sai__UserAclEntryExType*)p->ptr; break; case SOAP_TYPE_sai__AdminAclEntryExType: if (p->size < 0) delete (sai__AdminAclEntryExType*)p->ptr; else delete[] (sai__AdminAclEntryExType*)p->ptr; break; case SOAP_TYPE_sai__KerberosSpnType: if (p->size < 0) delete (sai__KerberosSpnType*)p->ptr; else delete[] (sai__KerberosSpnType*)p->ptr; break; case SOAP_TYPE_sai__KerberosOptionsType: if (p->size < 0) delete (sai__KerberosOptionsType*)p->ptr; else delete[] (sai__KerberosOptionsType*)p->ptr; break; case SOAP_TYPE_sai__TlsOptionsType: if (p->size < 0) delete (sai__TlsOptionsType*)p->ptr; else delete[] (sai__TlsOptionsType*)p->ptr; break; case SOAP_TYPE_sai__CertificateType: if (p->size < 0) delete (sai__CertificateType*)p->ptr; else delete[] (sai__CertificateType*)p->ptr; break; case SOAP_TYPE_sai__CrlType: if (p->size < 0) delete (sai__CrlType*)p->ptr; else delete[] (sai__CrlType*)p->ptr; break; case SOAP_TYPE_sai__PkiCapsType: if (p->size < 0) delete (sai__PkiCapsType*)p->ptr; else delete[] (sai__PkiCapsType*)p->ptr; break; case SOAP_TYPE_sai__CertHashEntryType: if (p->size < 0) delete (sai__CertHashEntryType*)p->ptr; else delete[] (sai__CertHashEntryType*)p->ptr; break; case SOAP_TYPE_sai__ProvisioningAuditRecordType: if (p->size < 0) delete (sai__ProvisioningAuditRecordType*)p->ptr; else delete[] (sai__ProvisioningAuditRecordType*)p->ptr; break; case SOAP_TYPE_sai__EnvironmentDetectionHTTPSType: if (p->size < 0) delete (sai__EnvironmentDetectionHTTPSType*)p->ptr; else delete[] (sai__EnvironmentDetectionHTTPSType*)p->ptr; break; case SOAP_TYPE_sai__EnvironmentDetectionDomainType: if (p->size < 0) delete (sai__EnvironmentDetectionDomainType*)p->ptr; else delete[] (sai__EnvironmentDetectionDomainType*)p->ptr; break; case SOAP_TYPE_sai__EnvironmentDetectionType: if (p->size < 0) delete (sai__EnvironmentDetectionType*)p->ptr; else delete[] (sai__EnvironmentDetectionType*)p->ptr; break; case SOAP_TYPE_sai__GlobalPowerPolicyType: if (p->size < 0) delete (sai__GlobalPowerPolicyType*)p->ptr; else delete[] (sai__GlobalPowerPolicyType*)p->ptr; break; case SOAP_TYPE_cmn__URLType: if (p->size < 0) delete (cmn__URLType*)p->ptr; else delete[] (cmn__URLType*)p->ptr; break; case SOAP_TYPE___emc__SoapAlert: if (p->size < 0) delete (struct __emc__SoapAlert*)p->ptr; else delete[] (struct __emc__SoapAlert*)p->ptr; break; case SOAP_TYPE_SOAP_ENV__Header: if (p->size < 0) delete (struct SOAP_ENV__Header*)p->ptr; else delete[] (struct SOAP_ENV__Header*)p->ptr; break; case SOAP_TYPE_SOAP_ENV__Code: if (p->size < 0) delete (struct SOAP_ENV__Code*)p->ptr; else delete[] (struct SOAP_ENV__Code*)p->ptr; break; case SOAP_TYPE_SOAP_ENV__Detail: if (p->size < 0) delete (struct SOAP_ENV__Detail*)p->ptr; else delete[] (struct SOAP_ENV__Detail*)p->ptr; break; case SOAP_TYPE_SOAP_ENV__Reason: if (p->size < 0) delete (struct SOAP_ENV__Reason*)p->ptr; else delete[] (struct SOAP_ENV__Reason*)p->ptr; break; case SOAP_TYPE_SOAP_ENV__Fault: if (p->size < 0) delete (struct SOAP_ENV__Fault*)p->ptr; else delete[] (struct SOAP_ENV__Fault*)p->ptr; break; case SOAP_TYPE_xsd__anyURI: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_cmn__HostNameType: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_cmn__IPv4AddressStringType: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_cmn__IPv6AddressStringType: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_cmn__GuidBuf: if (p->size < 0) delete (xsd__base64Binary*)p->ptr; else delete[] (xsd__base64Binary*)p->ptr; break; case SOAP_TYPE_emi__CommunityStringType: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_sai__AclStringType: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_sai__AclPasswordStringType: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_sai__MEBxPasswordType: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_sai__ProvisioningOTPType: if (p->size < 0) delete (xsd__base64Binary*)p->ptr; else delete[] (xsd__base64Binary*)p->ptr; break; case SOAP_TYPE_sai__FriendlyNameType: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE__sai__SpnString: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE__sai__KerberosRealmName: if (p->size < 0) delete (std::string*)p->ptr; else delete[] (std::string*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfstd__string: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfxsd__anyURI: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfunsignedInt: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfxsd__base64Binary: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfPointerTosai__KerberosSpnType: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfsai__UserAclRealmType: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfsai__UserAclEntryHandleType: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfemi__AlertAuthOptionsType: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfemi__SensorHandleType: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfPointerToemi__EventLogRecordType: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfemi__EventFilterHandleType: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionHandleType: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfunsignedByte: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; case SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType: if (p->size < 0) delete (std::vector*)p->ptr; else delete[] (std::vector*)p->ptr; break; default: return SOAP_ERR; } return SOAP_OK; } SOAP_FMAC3 void* SOAP_FMAC4 soap_class_id_enter(struct soap *soap, const char *id, void *p, int t, size_t n, const char *type, const char *arrayType) { return soap_id_enter(soap, id, p, t, n, 0, type, arrayType, soap_instantiate); } SOAP_FMAC3 void* SOAP_FMAC4 soap_container_id_forward(struct soap *soap, const char *href, void *p, size_t len, int st, int tt, size_t n, unsigned int k) { return soap_id_forward(soap, href, p, len, st, tt, n, k, soap_container_insert); } SOAP_FMAC3 void SOAP_FMAC4 soap_container_insert(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { switch (tt) { case SOAP_TYPE_std__vectorTemplateOfstd__string: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(std::string *)q; break; case SOAP_TYPE_std__vectorTemplateOfxsd__anyURI: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(std::string *)q; break; case SOAP_TYPE_std__vectorTemplateOfunsignedInt: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(unsigned int *)q; break; case SOAP_TYPE_std__vectorTemplateOfxsd__base64Binary: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(xsd__base64Binary *)q; break; case SOAP_TYPE_std__vectorTemplateOfPointerTosai__KerberosSpnType: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(sai__KerberosSpnType **)q; break; case SOAP_TYPE_std__vectorTemplateOfsai__UserAclRealmType: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(enum sai__UserAclRealmType *)q; break; case SOAP_TYPE_std__vectorTemplateOfsai__UserAclEntryHandleType: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(unsigned int *)q; break; case SOAP_TYPE_std__vectorTemplateOfemi__AlertAuthOptionsType: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(enum emi__AlertAuthOptionsType *)q; break; case SOAP_TYPE_std__vectorTemplateOfemi__SensorHandleType: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(unsigned int *)q; break; case SOAP_TYPE_std__vectorTemplateOfPointerToemi__EventLogRecordType: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(emi__EventLogRecordType **)q; break; case SOAP_TYPE_std__vectorTemplateOfemi__EventFilterHandleType: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(unsigned int *)q; break; case SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionHandleType: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(unsigned int *)q; break; case SOAP_TYPE_std__vectorTemplateOfunsignedByte: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(unsigned char *)q; break; case SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Container insert type=%d in %d location=%p object=%p len=%lu\n", st, tt, p, q, (unsigned long)len)); (*(std::vector*)p)[len] = *(unsigned char *)q; break; default: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Could not insert type=%d in %d\n", st, tt)); } } SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap *soap, char *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_byte *a = SOAP_DEFAULT_byte; #else *a = (char)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap *soap, const char *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_byte); if (soap_out_byte(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap *soap, const char *tag, int id, const char *a, const char *type) { return soap_outbyte(soap, tag, id, a, type, SOAP_TYPE_byte); } SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap *soap, char *p, const char *tag, const char *type) { if ((p = soap_in_byte(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap *soap, const char *tag, char *a, const char *type) { return soap_inbyte(soap, tag, a, type, SOAP_TYPE_byte); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_short(struct soap *soap, short *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_short *a = SOAP_DEFAULT_short; #else *a = (short)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_short(struct soap *soap, const short *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_short); if (soap_out_short(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_short(struct soap *soap, const char *tag, int id, const short *a, const char *type) { return soap_outshort(soap, tag, id, a, type, SOAP_TYPE_short); } SOAP_FMAC3 short * SOAP_FMAC4 soap_get_short(struct soap *soap, short *p, const char *tag, const char *type) { if ((p = soap_in_short(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 short * SOAP_FMAC4 soap_in_short(struct soap *soap, const char *tag, short *a, const char *type) { return soap_inshort(soap, tag, a, type, SOAP_TYPE_short); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap *soap, int *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_int *a = SOAP_DEFAULT_int; #else *a = (int)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap *soap, const int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_int); if (soap_out_int(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap *soap, const char *tag, int id, const int *a, const char *type) { return soap_outint(soap, tag, id, a, type, SOAP_TYPE_int); } SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap *soap, int *p, const char *tag, const char *type) { if ((p = soap_in_int(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap *soap, const char *tag, int *a, const char *type) { return soap_inint(soap, tag, a, type, SOAP_TYPE_int); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__AlertSubscriptionPolicyIDType(struct soap *soap, unsigned char *a) { soap_default_unsignedByte(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__AlertSubscriptionPolicyIDType(struct soap *soap, const unsigned char *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__AlertSubscriptionPolicyIDType); if (soap_out_emi__AlertSubscriptionPolicyIDType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionPolicyIDType(struct soap *soap, const char *tag, int id, const unsigned char *a, const char *type) { return soap_outunsignedByte(soap, tag, id, a, type, SOAP_TYPE_emi__AlertSubscriptionPolicyIDType); } SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_get_emi__AlertSubscriptionPolicyIDType(struct soap *soap, unsigned char *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertSubscriptionPolicyIDType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_in_emi__AlertSubscriptionPolicyIDType(struct soap *soap, const char *tag, unsigned char *a, const char *type) { return soap_inunsignedByte(soap, tag, a, type, SOAP_TYPE_emi__AlertSubscriptionPolicyIDType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedByte(struct soap *soap, unsigned char *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_unsignedByte *a = SOAP_DEFAULT_unsignedByte; #else *a = (unsigned char)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedByte(struct soap *soap, const unsigned char *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_unsignedByte); if (soap_out_unsignedByte(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedByte(struct soap *soap, const char *tag, int id, const unsigned char *a, const char *type) { return soap_outunsignedByte(soap, tag, id, a, type, SOAP_TYPE_unsignedByte); } SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_get_unsignedByte(struct soap *soap, unsigned char *p, const char *tag, const char *type) { if ((p = soap_in_unsignedByte(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_in_unsignedByte(struct soap *soap, const char *tag, unsigned char *a, const char *type) { return soap_inunsignedByte(soap, tag, a, type, SOAP_TYPE_unsignedByte); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedShort(struct soap *soap, unsigned short *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_unsignedShort *a = SOAP_DEFAULT_unsignedShort; #else *a = (unsigned short)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedShort(struct soap *soap, const unsigned short *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_unsignedShort); if (soap_out_unsignedShort(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedShort(struct soap *soap, const char *tag, int id, const unsigned short *a, const char *type) { return soap_outunsignedShort(soap, tag, id, a, type, SOAP_TYPE_unsignedShort); } SOAP_FMAC3 unsigned short * SOAP_FMAC4 soap_get_unsignedShort(struct soap *soap, unsigned short *p, const char *tag, const char *type) { if ((p = soap_in_unsignedShort(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned short * SOAP_FMAC4 soap_in_unsignedShort(struct soap *soap, const char *tag, unsigned short *a, const char *type) { return soap_inunsignedShort(soap, tag, a, type, SOAP_TYPE_unsignedShort); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__CertificateHandleType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__CertificateHandleType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__CertificateHandleType); if (soap_out_sai__CertificateHandleType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CertificateHandleType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_sai__CertificateHandleType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_sai__CertificateHandleType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_sai__CertificateHandleType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_sai__CertificateHandleType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_sai__CertificateHandleType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__IPv4AddressType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__IPv4AddressType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__IPv4AddressType); if (soap_out_sai__IPv4AddressType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__IPv4AddressType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_sai__IPv4AddressType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_sai__IPv4AddressType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_sai__IPv4AddressType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_sai__IPv4AddressType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_sai__IPv4AddressType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__UserAclEntryHandleType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__UserAclEntryHandleType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__UserAclEntryHandleType); if (soap_out_sai__UserAclEntryHandleType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclEntryHandleType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_sai__UserAclEntryHandleType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_sai__UserAclEntryHandleType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_sai__UserAclEntryHandleType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_sai__UserAclEntryHandleType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_sai__UserAclEntryHandleType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__PT_USCORESTATUS(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__PT_USCORESTATUS(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__PT_USCORESTATUS); if (soap_out_sai__PT_USCORESTATUS(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__PT_USCORESTATUS(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_sai__PT_USCORESTATUS); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_sai__PT_USCORESTATUS(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_sai__PT_USCORESTATUS(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_sai__PT_USCORESTATUS(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_sai__PT_USCORESTATUS); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__SensorHandleType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__SensorHandleType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__SensorHandleType); if (soap_out_emi__SensorHandleType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__SensorHandleType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_emi__SensorHandleType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__SensorHandleType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_emi__SensorHandleType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__SensorHandleType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_emi__SensorHandleType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__IPv4AddressType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__IPv4AddressType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__IPv4AddressType); if (soap_out_emi__IPv4AddressType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__IPv4AddressType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_emi__IPv4AddressType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__IPv4AddressType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_emi__IPv4AddressType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__IPv4AddressType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_emi__IPv4AddressType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__PT_USCORESTATUS(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__PT_USCORESTATUS(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__PT_USCORESTATUS); if (soap_out_emi__PT_USCORESTATUS(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__PT_USCORESTATUS(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_emi__PT_USCORESTATUS); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__PT_USCORESTATUS(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_emi__PT_USCORESTATUS(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__PT_USCORESTATUS(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_emi__PT_USCORESTATUS); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__EventFilterHandleType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__EventFilterHandleType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__EventFilterHandleType); if (soap_out_emi__EventFilterHandleType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventFilterHandleType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_emi__EventFilterHandleType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__EventFilterHandleType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_emi__EventFilterHandleType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__EventFilterHandleType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_emi__EventFilterHandleType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__AlertSubscriptionHandleType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__AlertSubscriptionHandleType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__AlertSubscriptionHandleType); if (soap_out_emi__AlertSubscriptionHandleType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionHandleType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_emi__AlertSubscriptionHandleType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__AlertSubscriptionHandleType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertSubscriptionHandleType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__AlertSubscriptionHandleType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_emi__AlertSubscriptionHandleType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__TimeType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__TimeType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__TimeType); if (soap_out_emi__TimeType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__TimeType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_emi__TimeType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__TimeType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_emi__TimeType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__TimeType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_emi__TimeType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__InterfaceHandleType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__InterfaceHandleType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_cmn__InterfaceHandleType); if (soap_out_cmn__InterfaceHandleType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__InterfaceHandleType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_cmn__InterfaceHandleType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_cmn__InterfaceHandleType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_cmn__InterfaceHandleType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_cmn__InterfaceHandleType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_cmn__InterfaceHandleType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__IPv4AddressType(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__IPv4AddressType(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_cmn__IPv4AddressType); if (soap_out_cmn__IPv4AddressType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__IPv4AddressType(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_cmn__IPv4AddressType); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_cmn__IPv4AddressType(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_cmn__IPv4AddressType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_cmn__IPv4AddressType(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_cmn__IPv4AddressType); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__PT_USCORESTATUS(struct soap *soap, unsigned int *a) { soap_default_unsignedInt(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__PT_USCORESTATUS(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_cmn__PT_USCORESTATUS); if (soap_out_cmn__PT_USCORESTATUS(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__PT_USCORESTATUS(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_cmn__PT_USCORESTATUS); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_cmn__PT_USCORESTATUS(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_cmn__PT_USCORESTATUS(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_cmn__PT_USCORESTATUS(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_cmn__PT_USCORESTATUS); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedInt(struct soap *soap, unsigned int *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_unsignedInt *a = SOAP_DEFAULT_unsignedInt; #else *a = (unsigned int)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedInt(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_unsignedInt); if (soap_out_unsignedInt(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedInt(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_unsignedInt); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_unsignedInt(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_unsignedInt(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_unsignedInt(struct soap *soap, const char *tag, unsigned int *a, const char *type) { return soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_unsignedInt); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_bool(struct soap *soap, bool *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_bool *a = SOAP_DEFAULT_bool; #else *a = (bool)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_bool(struct soap *soap, const bool *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_bool); if (soap_out_bool(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_bool[] = { { (long)false, "false" }, { (long)true, "true" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_bool2s(struct soap *soap, bool n) { return soap_code_str(soap_codes_bool, n!=0); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_bool(struct soap *soap, const char *tag, int id, const bool *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_bool), type); soap_send(soap, soap_bool2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 bool * SOAP_FMAC4 soap_get_bool(struct soap *soap, bool *p, const char *tag, const char *type) { if ((p = soap_in_bool(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2bool(struct soap *soap, const char *s, bool *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_bool, s); if (map) *a = (bool)(map->code != 0); else { long n; if (soap_s2long(soap, s, &n) || n < 0 || n > 1) return soap->error = SOAP_TYPE; *a = (bool)(n != 0); } return SOAP_OK; } SOAP_FMAC3 bool * SOAP_FMAC4 soap_in_bool(struct soap *soap, const char *tag, bool *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type) && soap_match_tag(soap, soap->type, ":boolean")) { soap->error = SOAP_TYPE; return NULL; } a = (bool *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_bool, sizeof(bool), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2bool(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (bool *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_bool, 0, sizeof(bool), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__UNOptionsType(struct soap *soap, enum sai__UNOptionsType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__UNOptionsType *a = SOAP_DEFAULT_sai__UNOptionsType; #else *a = (enum sai__UNOptionsType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__UNOptionsType(struct soap *soap, const enum sai__UNOptionsType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__UNOptionsType); if (soap_out_sai__UNOptionsType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__UNOptionsType[] = { { (long)sai__UNOptionsType__NoAuth, "NoAuth" }, { (long)sai__UNOptionsType__Auth, "Auth" }, { (long)sai__UNOptionsType__Disable, "Disable" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__UNOptionsType2s(struct soap *soap, enum sai__UNOptionsType n) { const char *s = soap_code_str(soap_codes_sai__UNOptionsType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UNOptionsType(struct soap *soap, const char *tag, int id, const enum sai__UNOptionsType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__UNOptionsType), type); soap_send(soap, soap_sai__UNOptionsType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__UNOptionsType * SOAP_FMAC4 soap_get_sai__UNOptionsType(struct soap *soap, enum sai__UNOptionsType *p, const char *tag, const char *type) { if ((p = soap_in_sai__UNOptionsType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__UNOptionsType(struct soap *soap, const char *s, enum sai__UNOptionsType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__UNOptionsType, s); if (map) *a = (enum sai__UNOptionsType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 2))) return soap->error = SOAP_TYPE; *a = (enum sai__UNOptionsType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__UNOptionsType * SOAP_FMAC4 soap_in_sai__UNOptionsType(struct soap *soap, const char *tag, enum sai__UNOptionsType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__UNOptionsType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__UNOptionsType, sizeof(enum sai__UNOptionsType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__UNOptionsType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__UNOptionsType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__UNOptionsType, 0, sizeof(enum sai__UNOptionsType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__HashTypeType(struct soap *soap, enum sai__HashTypeType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__HashTypeType *a = SOAP_DEFAULT_sai__HashTypeType; #else *a = (enum sai__HashTypeType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__HashTypeType(struct soap *soap, const enum sai__HashTypeType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__HashTypeType); if (soap_out_sai__HashTypeType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__HashTypeType[] = { { (long)sai__HashTypeType__1, "1" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__HashTypeType2s(struct soap *soap, enum sai__HashTypeType n) { const char *s = soap_code_str(soap_codes_sai__HashTypeType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__HashTypeType(struct soap *soap, const char *tag, int id, const enum sai__HashTypeType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__HashTypeType), type); soap_send(soap, soap_sai__HashTypeType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__HashTypeType * SOAP_FMAC4 soap_get_sai__HashTypeType(struct soap *soap, enum sai__HashTypeType *p, const char *tag, const char *type) { if ((p = soap_in_sai__HashTypeType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__HashTypeType(struct soap *soap, const char *s, enum sai__HashTypeType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__HashTypeType, s); if (map) *a = (enum sai__HashTypeType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 1))) return soap->error = SOAP_TYPE; *a = (enum sai__HashTypeType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__HashTypeType * SOAP_FMAC4 soap_in_sai__HashTypeType(struct soap *soap, const char *tag, enum sai__HashTypeType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__HashTypeType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__HashTypeType, sizeof(enum sai__HashTypeType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__HashTypeType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__HashTypeType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__HashTypeType, 0, sizeof(enum sai__HashTypeType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__ProvisioningTLSModeType(struct soap *soap, enum sai__ProvisioningTLSModeType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__ProvisioningTLSModeType *a = SOAP_DEFAULT_sai__ProvisioningTLSModeType; #else *a = (enum sai__ProvisioningTLSModeType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__ProvisioningTLSModeType(struct soap *soap, const enum sai__ProvisioningTLSModeType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__ProvisioningTLSModeType); if (soap_out_sai__ProvisioningTLSModeType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__ProvisioningTLSModeType[] = { { (long)sai__ProvisioningTLSModeType__0, "0" }, { (long)sai__ProvisioningTLSModeType__1, "1" }, { (long)sai__ProvisioningTLSModeType__2, "2" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__ProvisioningTLSModeType2s(struct soap *soap, enum sai__ProvisioningTLSModeType n) { const char *s = soap_code_str(soap_codes_sai__ProvisioningTLSModeType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__ProvisioningTLSModeType(struct soap *soap, const char *tag, int id, const enum sai__ProvisioningTLSModeType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__ProvisioningTLSModeType), type); soap_send(soap, soap_sai__ProvisioningTLSModeType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__ProvisioningTLSModeType * SOAP_FMAC4 soap_get_sai__ProvisioningTLSModeType(struct soap *soap, enum sai__ProvisioningTLSModeType *p, const char *tag, const char *type) { if ((p = soap_in_sai__ProvisioningTLSModeType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__ProvisioningTLSModeType(struct soap *soap, const char *s, enum sai__ProvisioningTLSModeType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__ProvisioningTLSModeType, s); if (map) *a = (enum sai__ProvisioningTLSModeType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 2))) return soap->error = SOAP_TYPE; *a = (enum sai__ProvisioningTLSModeType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__ProvisioningTLSModeType * SOAP_FMAC4 soap_in_sai__ProvisioningTLSModeType(struct soap *soap, const char *tag, enum sai__ProvisioningTLSModeType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__ProvisioningTLSModeType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__ProvisioningTLSModeType, sizeof(enum sai__ProvisioningTLSModeType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__ProvisioningTLSModeType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__ProvisioningTLSModeType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__ProvisioningTLSModeType, 0, sizeof(enum sai__ProvisioningTLSModeType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__TlsAthenticationType(struct soap *soap, enum sai__TlsAthenticationType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__TlsAthenticationType *a = SOAP_DEFAULT_sai__TlsAthenticationType; #else *a = (enum sai__TlsAthenticationType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__TlsAthenticationType(struct soap *soap, const enum sai__TlsAthenticationType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__TlsAthenticationType); if (soap_out_sai__TlsAthenticationType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__TlsAthenticationType[] = { { (long)sai__TlsAthenticationType__NoAuth, "NoAuth" }, { (long)sai__TlsAthenticationType__ServerAuth, "ServerAuth" }, { (long)sai__TlsAthenticationType__MutualAuth, "MutualAuth" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__TlsAthenticationType2s(struct soap *soap, enum sai__TlsAthenticationType n) { const char *s = soap_code_str(soap_codes_sai__TlsAthenticationType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__TlsAthenticationType(struct soap *soap, const char *tag, int id, const enum sai__TlsAthenticationType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__TlsAthenticationType), type); soap_send(soap, soap_sai__TlsAthenticationType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__TlsAthenticationType * SOAP_FMAC4 soap_get_sai__TlsAthenticationType(struct soap *soap, enum sai__TlsAthenticationType *p, const char *tag, const char *type) { if ((p = soap_in_sai__TlsAthenticationType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__TlsAthenticationType(struct soap *soap, const char *s, enum sai__TlsAthenticationType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__TlsAthenticationType, s); if (map) *a = (enum sai__TlsAthenticationType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 2))) return soap->error = SOAP_TYPE; *a = (enum sai__TlsAthenticationType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__TlsAthenticationType * SOAP_FMAC4 soap_in_sai__TlsAthenticationType(struct soap *soap, const char *tag, enum sai__TlsAthenticationType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__TlsAthenticationType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__TlsAthenticationType, sizeof(enum sai__TlsAthenticationType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__TlsAthenticationType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__TlsAthenticationType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__TlsAthenticationType, 0, sizeof(enum sai__TlsAthenticationType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__InterfaceType(struct soap *soap, enum sai__InterfaceType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__InterfaceType *a = SOAP_DEFAULT_sai__InterfaceType; #else *a = (enum sai__InterfaceType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__InterfaceType(struct soap *soap, const enum sai__InterfaceType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__InterfaceType); if (soap_out_sai__InterfaceType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__InterfaceType[] = { { (long)sai__InterfaceType__NetworkInterface, "NetworkInterface" }, { (long)sai__InterfaceType__LocalHostInterface, "LocalHostInterface" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__InterfaceType2s(struct soap *soap, enum sai__InterfaceType n) { const char *s = soap_code_str(soap_codes_sai__InterfaceType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__InterfaceType(struct soap *soap, const char *tag, int id, const enum sai__InterfaceType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__InterfaceType), type); soap_send(soap, soap_sai__InterfaceType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__InterfaceType * SOAP_FMAC4 soap_get_sai__InterfaceType(struct soap *soap, enum sai__InterfaceType *p, const char *tag, const char *type) { if ((p = soap_in_sai__InterfaceType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__InterfaceType(struct soap *soap, const char *s, enum sai__InterfaceType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__InterfaceType, s); if (map) *a = (enum sai__InterfaceType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 1))) return soap->error = SOAP_TYPE; *a = (enum sai__InterfaceType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__InterfaceType * SOAP_FMAC4 soap_in_sai__InterfaceType(struct soap *soap, const char *tag, enum sai__InterfaceType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__InterfaceType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__InterfaceType, sizeof(enum sai__InterfaceType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__InterfaceType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__InterfaceType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__InterfaceType, 0, sizeof(enum sai__InterfaceType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__EnabledInterfacesType(struct soap *soap, enum sai__EnabledInterfacesType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__EnabledInterfacesType *a = SOAP_DEFAULT_sai__EnabledInterfacesType; #else *a = (enum sai__EnabledInterfacesType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__EnabledInterfacesType(struct soap *soap, const enum sai__EnabledInterfacesType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__EnabledInterfacesType); if (soap_out_sai__EnabledInterfacesType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__EnabledInterfacesType[] = { { (long)sai__EnabledInterfacesType__WebUI, "WebUI" }, { (long)sai__EnabledInterfacesType__SerialOverLAN, "SerialOverLAN" }, { (long)sai__EnabledInterfacesType__IdeRedirection, "IdeRedirection" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__EnabledInterfacesType2s(struct soap *soap, enum sai__EnabledInterfacesType n) { const char *s = soap_code_str(soap_codes_sai__EnabledInterfacesType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__EnabledInterfacesType(struct soap *soap, const char *tag, int id, const enum sai__EnabledInterfacesType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__EnabledInterfacesType), type); soap_send(soap, soap_sai__EnabledInterfacesType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__EnabledInterfacesType * SOAP_FMAC4 soap_get_sai__EnabledInterfacesType(struct soap *soap, enum sai__EnabledInterfacesType *p, const char *tag, const char *type) { if ((p = soap_in_sai__EnabledInterfacesType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__EnabledInterfacesType(struct soap *soap, const char *s, enum sai__EnabledInterfacesType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__EnabledInterfacesType, s); if (map) *a = (enum sai__EnabledInterfacesType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 2))) return soap->error = SOAP_TYPE; *a = (enum sai__EnabledInterfacesType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__EnabledInterfacesType * SOAP_FMAC4 soap_in_sai__EnabledInterfacesType(struct soap *soap, const char *tag, enum sai__EnabledInterfacesType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__EnabledInterfacesType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__EnabledInterfacesType, sizeof(enum sai__EnabledInterfacesType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__EnabledInterfacesType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__EnabledInterfacesType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__EnabledInterfacesType, 0, sizeof(enum sai__EnabledInterfacesType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__PowerStateType(struct soap *soap, enum sai__PowerStateType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__PowerStateType *a = SOAP_DEFAULT_sai__PowerStateType; #else *a = (enum sai__PowerStateType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__PowerStateType(struct soap *soap, const enum sai__PowerStateType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__PowerStateType); if (soap_out_sai__PowerStateType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__PowerStateType[] = { { (long)sai__PowerStateType__PowerStateS0, "PowerStateS0" }, { (long)sai__PowerStateType__PowerStateS1, "PowerStateS1" }, { (long)sai__PowerStateType__PowerStateS2, "PowerStateS2" }, { (long)sai__PowerStateType__PowerStateS3, "PowerStateS3" }, { (long)sai__PowerStateType__PowerStateS4, "PowerStateS4" }, { (long)sai__PowerStateType__PowerStateS5, "PowerStateS5" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__PowerStateType2s(struct soap *soap, enum sai__PowerStateType n) { const char *s = soap_code_str(soap_codes_sai__PowerStateType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__PowerStateType(struct soap *soap, const char *tag, int id, const enum sai__PowerStateType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__PowerStateType), type); soap_send(soap, soap_sai__PowerStateType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__PowerStateType * SOAP_FMAC4 soap_get_sai__PowerStateType(struct soap *soap, enum sai__PowerStateType *p, const char *tag, const char *type) { if ((p = soap_in_sai__PowerStateType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__PowerStateType(struct soap *soap, const char *s, enum sai__PowerStateType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__PowerStateType, s); if (map) *a = (enum sai__PowerStateType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 5))) return soap->error = SOAP_TYPE; *a = (enum sai__PowerStateType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__PowerStateType * SOAP_FMAC4 soap_in_sai__PowerStateType(struct soap *soap, const char *tag, enum sai__PowerStateType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__PowerStateType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__PowerStateType, sizeof(enum sai__PowerStateType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__PowerStateType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__PowerStateType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__PowerStateType, 0, sizeof(enum sai__PowerStateType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__KerberosEncryptionType(struct soap *soap, enum sai__KerberosEncryptionType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__KerberosEncryptionType *a = SOAP_DEFAULT_sai__KerberosEncryptionType; #else *a = (enum sai__KerberosEncryptionType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__KerberosEncryptionType(struct soap *soap, const enum sai__KerberosEncryptionType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__KerberosEncryptionType); if (soap_out_sai__KerberosEncryptionType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__KerberosEncryptionType[] = { { (long)sai__KerberosEncryptionType__HMAC_USCORERC4, "HMAC_RC4" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__KerberosEncryptionType2s(struct soap *soap, enum sai__KerberosEncryptionType n) { const char *s = soap_code_str(soap_codes_sai__KerberosEncryptionType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__KerberosEncryptionType(struct soap *soap, const char *tag, int id, const enum sai__KerberosEncryptionType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__KerberosEncryptionType), type); soap_send(soap, soap_sai__KerberosEncryptionType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__KerberosEncryptionType * SOAP_FMAC4 soap_get_sai__KerberosEncryptionType(struct soap *soap, enum sai__KerberosEncryptionType *p, const char *tag, const char *type) { if ((p = soap_in_sai__KerberosEncryptionType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__KerberosEncryptionType(struct soap *soap, const char *s, enum sai__KerberosEncryptionType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__KerberosEncryptionType, s); if (map) *a = (enum sai__KerberosEncryptionType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 0))) return soap->error = SOAP_TYPE; *a = (enum sai__KerberosEncryptionType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__KerberosEncryptionType * SOAP_FMAC4 soap_in_sai__KerberosEncryptionType(struct soap *soap, const char *tag, enum sai__KerberosEncryptionType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__KerberosEncryptionType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__KerberosEncryptionType, sizeof(enum sai__KerberosEncryptionType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__KerberosEncryptionType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__KerberosEncryptionType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__KerberosEncryptionType, 0, sizeof(enum sai__KerberosEncryptionType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__KerberosSpnProtocolType(struct soap *soap, enum sai__KerberosSpnProtocolType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__KerberosSpnProtocolType *a = SOAP_DEFAULT_sai__KerberosSpnProtocolType; #else *a = (enum sai__KerberosSpnProtocolType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__KerberosSpnProtocolType(struct soap *soap, const enum sai__KerberosSpnProtocolType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__KerberosSpnProtocolType); if (soap_out_sai__KerberosSpnProtocolType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__KerberosSpnProtocolType[] = { { (long)sai__KerberosSpnProtocolType__HTTP, "HTTP" }, { (long)sai__KerberosSpnProtocolType__HTTPS, "HTTPS" }, { (long)sai__KerberosSpnProtocolType__SOL_USCOREIDER, "SOL_IDER" }, { (long)sai__KerberosSpnProtocolType__SOL_USCOREIDER_USCORESSL, "SOL_IDER_SSL" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__KerberosSpnProtocolType2s(struct soap *soap, enum sai__KerberosSpnProtocolType n) { const char *s = soap_code_str(soap_codes_sai__KerberosSpnProtocolType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__KerberosSpnProtocolType(struct soap *soap, const char *tag, int id, const enum sai__KerberosSpnProtocolType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__KerberosSpnProtocolType), type); soap_send(soap, soap_sai__KerberosSpnProtocolType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__KerberosSpnProtocolType * SOAP_FMAC4 soap_get_sai__KerberosSpnProtocolType(struct soap *soap, enum sai__KerberosSpnProtocolType *p, const char *tag, const char *type) { if ((p = soap_in_sai__KerberosSpnProtocolType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__KerberosSpnProtocolType(struct soap *soap, const char *s, enum sai__KerberosSpnProtocolType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__KerberosSpnProtocolType, s); if (map) *a = (enum sai__KerberosSpnProtocolType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 3))) return soap->error = SOAP_TYPE; *a = (enum sai__KerberosSpnProtocolType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__KerberosSpnProtocolType * SOAP_FMAC4 soap_in_sai__KerberosSpnProtocolType(struct soap *soap, const char *tag, enum sai__KerberosSpnProtocolType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__KerberosSpnProtocolType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__KerberosSpnProtocolType, sizeof(enum sai__KerberosSpnProtocolType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__KerberosSpnProtocolType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__KerberosSpnProtocolType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__KerberosSpnProtocolType, 0, sizeof(enum sai__KerberosSpnProtocolType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__AccessPermissionType(struct soap *soap, enum sai__AccessPermissionType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__AccessPermissionType *a = SOAP_DEFAULT_sai__AccessPermissionType; #else *a = (enum sai__AccessPermissionType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__AccessPermissionType(struct soap *soap, const enum sai__AccessPermissionType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__AccessPermissionType); if (soap_out_sai__AccessPermissionType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__AccessPermissionType[] = { { (long)sai__AccessPermissionType__LocalAccessPermission, "LocalAccessPermission" }, { (long)sai__AccessPermissionType__NetworkAccessPermission, "NetworkAccessPermission" }, { (long)sai__AccessPermissionType__AnyAccessPermission, "AnyAccessPermission" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__AccessPermissionType2s(struct soap *soap, enum sai__AccessPermissionType n) { const char *s = soap_code_str(soap_codes_sai__AccessPermissionType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AccessPermissionType(struct soap *soap, const char *tag, int id, const enum sai__AccessPermissionType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__AccessPermissionType), type); soap_send(soap, soap_sai__AccessPermissionType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__AccessPermissionType * SOAP_FMAC4 soap_get_sai__AccessPermissionType(struct soap *soap, enum sai__AccessPermissionType *p, const char *tag, const char *type) { if ((p = soap_in_sai__AccessPermissionType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__AccessPermissionType(struct soap *soap, const char *s, enum sai__AccessPermissionType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__AccessPermissionType, s); if (map) *a = (enum sai__AccessPermissionType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 2))) return soap->error = SOAP_TYPE; *a = (enum sai__AccessPermissionType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__AccessPermissionType * SOAP_FMAC4 soap_in_sai__AccessPermissionType(struct soap *soap, const char *tag, enum sai__AccessPermissionType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__AccessPermissionType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__AccessPermissionType, sizeof(enum sai__AccessPermissionType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__AccessPermissionType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__AccessPermissionType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__AccessPermissionType, 0, sizeof(enum sai__AccessPermissionType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__ProvisioningModeType(struct soap *soap, enum sai__ProvisioningModeType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__ProvisioningModeType *a = SOAP_DEFAULT_sai__ProvisioningModeType; #else *a = (enum sai__ProvisioningModeType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__ProvisioningModeType(struct soap *soap, const enum sai__ProvisioningModeType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__ProvisioningModeType); if (soap_out_sai__ProvisioningModeType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__ProvisioningModeType[] = { { (long)sai__ProvisioningModeType__0, "0" }, { (long)sai__ProvisioningModeType__1, "1" }, { (long)sai__ProvisioningModeType__2, "2" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__ProvisioningModeType2s(struct soap *soap, enum sai__ProvisioningModeType n) { const char *s = soap_code_str(soap_codes_sai__ProvisioningModeType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__ProvisioningModeType(struct soap *soap, const char *tag, int id, const enum sai__ProvisioningModeType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__ProvisioningModeType), type); soap_send(soap, soap_sai__ProvisioningModeType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__ProvisioningModeType * SOAP_FMAC4 soap_get_sai__ProvisioningModeType(struct soap *soap, enum sai__ProvisioningModeType *p, const char *tag, const char *type) { if ((p = soap_in_sai__ProvisioningModeType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__ProvisioningModeType(struct soap *soap, const char *s, enum sai__ProvisioningModeType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__ProvisioningModeType, s); if (map) *a = (enum sai__ProvisioningModeType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 2))) return soap->error = SOAP_TYPE; *a = (enum sai__ProvisioningModeType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__ProvisioningModeType * SOAP_FMAC4 soap_in_sai__ProvisioningModeType(struct soap *soap, const char *tag, enum sai__ProvisioningModeType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__ProvisioningModeType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__ProvisioningModeType, sizeof(enum sai__ProvisioningModeType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__ProvisioningModeType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__ProvisioningModeType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__ProvisioningModeType, 0, sizeof(enum sai__ProvisioningModeType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__RngKeyEncodingType(struct soap *soap, enum sai__RngKeyEncodingType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__RngKeyEncodingType *a = SOAP_DEFAULT_sai__RngKeyEncodingType; #else *a = (enum sai__RngKeyEncodingType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__RngKeyEncodingType(struct soap *soap, const enum sai__RngKeyEncodingType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__RngKeyEncodingType); if (soap_out_sai__RngKeyEncodingType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__RngKeyEncodingType[] = { { (long)sai__RngKeyEncodingType__20, "20" }, { (long)sai__RngKeyEncodingType__21, "21" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__RngKeyEncodingType2s(struct soap *soap, enum sai__RngKeyEncodingType n) { const char *s = soap_code_str(soap_codes_sai__RngKeyEncodingType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RngKeyEncodingType(struct soap *soap, const char *tag, int id, const enum sai__RngKeyEncodingType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__RngKeyEncodingType), type); soap_send(soap, soap_sai__RngKeyEncodingType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__RngKeyEncodingType * SOAP_FMAC4 soap_get_sai__RngKeyEncodingType(struct soap *soap, enum sai__RngKeyEncodingType *p, const char *tag, const char *type) { if ((p = soap_in_sai__RngKeyEncodingType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__RngKeyEncodingType(struct soap *soap, const char *s, enum sai__RngKeyEncodingType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__RngKeyEncodingType, s); if (map) *a = (enum sai__RngKeyEncodingType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 21))) return soap->error = SOAP_TYPE; *a = (enum sai__RngKeyEncodingType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__RngKeyEncodingType * SOAP_FMAC4 soap_in_sai__RngKeyEncodingType(struct soap *soap, const char *tag, enum sai__RngKeyEncodingType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__RngKeyEncodingType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__RngKeyEncodingType, sizeof(enum sai__RngKeyEncodingType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__RngKeyEncodingType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__RngKeyEncodingType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__RngKeyEncodingType, 0, sizeof(enum sai__RngKeyEncodingType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__RsaCertificateEncodingType(struct soap *soap, enum sai__RsaCertificateEncodingType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__RsaCertificateEncodingType *a = SOAP_DEFAULT_sai__RsaCertificateEncodingType; #else *a = (enum sai__RsaCertificateEncodingType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__RsaCertificateEncodingType(struct soap *soap, const enum sai__RsaCertificateEncodingType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__RsaCertificateEncodingType); if (soap_out_sai__RsaCertificateEncodingType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__RsaCertificateEncodingType[] = { { (long)sai__RsaCertificateEncodingType__10, "10" }, { (long)sai__RsaCertificateEncodingType__11, "11" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__RsaCertificateEncodingType2s(struct soap *soap, enum sai__RsaCertificateEncodingType n) { const char *s = soap_code_str(soap_codes_sai__RsaCertificateEncodingType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RsaCertificateEncodingType(struct soap *soap, const char *tag, int id, const enum sai__RsaCertificateEncodingType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__RsaCertificateEncodingType), type); soap_send(soap, soap_sai__RsaCertificateEncodingType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__RsaCertificateEncodingType * SOAP_FMAC4 soap_get_sai__RsaCertificateEncodingType(struct soap *soap, enum sai__RsaCertificateEncodingType *p, const char *tag, const char *type) { if ((p = soap_in_sai__RsaCertificateEncodingType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__RsaCertificateEncodingType(struct soap *soap, const char *s, enum sai__RsaCertificateEncodingType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__RsaCertificateEncodingType, s); if (map) *a = (enum sai__RsaCertificateEncodingType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 11))) return soap->error = SOAP_TYPE; *a = (enum sai__RsaCertificateEncodingType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__RsaCertificateEncodingType * SOAP_FMAC4 soap_in_sai__RsaCertificateEncodingType(struct soap *soap, const char *tag, enum sai__RsaCertificateEncodingType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__RsaCertificateEncodingType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__RsaCertificateEncodingType, sizeof(enum sai__RsaCertificateEncodingType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__RsaCertificateEncodingType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__RsaCertificateEncodingType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__RsaCertificateEncodingType, 0, sizeof(enum sai__RsaCertificateEncodingType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__RsaKeyEncodingType(struct soap *soap, enum sai__RsaKeyEncodingType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__RsaKeyEncodingType *a = SOAP_DEFAULT_sai__RsaKeyEncodingType; #else *a = (enum sai__RsaKeyEncodingType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__RsaKeyEncodingType(struct soap *soap, const enum sai__RsaKeyEncodingType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__RsaKeyEncodingType); if (soap_out_sai__RsaKeyEncodingType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__RsaKeyEncodingType[] = { { (long)sai__RsaKeyEncodingType__30, "30" }, { (long)sai__RsaKeyEncodingType__31, "31" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__RsaKeyEncodingType2s(struct soap *soap, enum sai__RsaKeyEncodingType n) { const char *s = soap_code_str(soap_codes_sai__RsaKeyEncodingType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RsaKeyEncodingType(struct soap *soap, const char *tag, int id, const enum sai__RsaKeyEncodingType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__RsaKeyEncodingType), type); soap_send(soap, soap_sai__RsaKeyEncodingType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__RsaKeyEncodingType * SOAP_FMAC4 soap_get_sai__RsaKeyEncodingType(struct soap *soap, enum sai__RsaKeyEncodingType *p, const char *tag, const char *type) { if ((p = soap_in_sai__RsaKeyEncodingType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__RsaKeyEncodingType(struct soap *soap, const char *s, enum sai__RsaKeyEncodingType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__RsaKeyEncodingType, s); if (map) *a = (enum sai__RsaKeyEncodingType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 31))) return soap->error = SOAP_TYPE; *a = (enum sai__RsaKeyEncodingType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__RsaKeyEncodingType * SOAP_FMAC4 soap_in_sai__RsaKeyEncodingType(struct soap *soap, const char *tag, enum sai__RsaKeyEncodingType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__RsaKeyEncodingType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__RsaKeyEncodingType, sizeof(enum sai__RsaKeyEncodingType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__RsaKeyEncodingType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__RsaKeyEncodingType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__RsaKeyEncodingType, 0, sizeof(enum sai__RsaKeyEncodingType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__UserAclRealmType(struct soap *soap, enum sai__UserAclRealmType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_sai__UserAclRealmType *a = SOAP_DEFAULT_sai__UserAclRealmType; #else *a = (enum sai__UserAclRealmType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__UserAclRealmType(struct soap *soap, const enum sai__UserAclRealmType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__UserAclRealmType); if (soap_out_sai__UserAclRealmType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_sai__UserAclRealmType[] = { { (long)sai__UserAclRealmType__0, "0" }, { (long)sai__UserAclRealmType__1, "1" }, { (long)sai__UserAclRealmType__2, "2" }, { (long)sai__UserAclRealmType__3, "3" }, { (long)sai__UserAclRealmType__4, "4" }, { (long)sai__UserAclRealmType__5, "5" }, { (long)sai__UserAclRealmType__6, "6" }, { (long)sai__UserAclRealmType__7, "7" }, { (long)sai__UserAclRealmType__8, "8" }, { (long)sai__UserAclRealmType__9, "9" }, { (long)sai__UserAclRealmType__10, "10" }, { (long)sai__UserAclRealmType__11, "11" }, { (long)sai__UserAclRealmType__12, "12" }, { (long)sai__UserAclRealmType__13, "13" }, { (long)sai__UserAclRealmType__14, "14" }, { (long)sai__UserAclRealmType__16, "16" }, { (long)sai__UserAclRealmType__17, "17" }, { (long)sai__UserAclRealmType__18, "18" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__UserAclRealmType2s(struct soap *soap, enum sai__UserAclRealmType n) { const char *s = soap_code_str(soap_codes_sai__UserAclRealmType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclRealmType(struct soap *soap, const char *tag, int id, const enum sai__UserAclRealmType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__UserAclRealmType), type); soap_send(soap, soap_sai__UserAclRealmType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum sai__UserAclRealmType * SOAP_FMAC4 soap_get_sai__UserAclRealmType(struct soap *soap, enum sai__UserAclRealmType *p, const char *tag, const char *type) { if ((p = soap_in_sai__UserAclRealmType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__UserAclRealmType(struct soap *soap, const char *s, enum sai__UserAclRealmType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_sai__UserAclRealmType, s); if (map) *a = (enum sai__UserAclRealmType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 18))) return soap->error = SOAP_TYPE; *a = (enum sai__UserAclRealmType)n; } return SOAP_OK; } SOAP_FMAC3 enum sai__UserAclRealmType * SOAP_FMAC4 soap_in_sai__UserAclRealmType(struct soap *soap, const char *tag, enum sai__UserAclRealmType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum sai__UserAclRealmType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_sai__UserAclRealmType, sizeof(enum sai__UserAclRealmType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2sai__UserAclRealmType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum sai__UserAclRealmType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__UserAclRealmType, 0, sizeof(enum sai__UserAclRealmType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__AlertAuthOptionsType(struct soap *soap, enum emi__AlertAuthOptionsType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_emi__AlertAuthOptionsType *a = SOAP_DEFAULT_emi__AlertAuthOptionsType; #else *a = (enum emi__AlertAuthOptionsType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__AlertAuthOptionsType(struct soap *soap, const enum emi__AlertAuthOptionsType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__AlertAuthOptionsType); if (soap_out_emi__AlertAuthOptionsType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_emi__AlertAuthOptionsType[] = { { (long)emi__AlertAuthOptionsType__Kerberos, "Kerberos" }, { (long)emi__AlertAuthOptionsType__Digest, "Digest" }, { (long)emi__AlertAuthOptionsType__Basic, "Basic" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_emi__AlertAuthOptionsType2s(struct soap *soap, enum emi__AlertAuthOptionsType n) { const char *s = soap_code_str(soap_codes_emi__AlertAuthOptionsType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertAuthOptionsType(struct soap *soap, const char *tag, int id, const enum emi__AlertAuthOptionsType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__AlertAuthOptionsType), type); soap_send(soap, soap_emi__AlertAuthOptionsType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum emi__AlertAuthOptionsType * SOAP_FMAC4 soap_get_emi__AlertAuthOptionsType(struct soap *soap, enum emi__AlertAuthOptionsType *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertAuthOptionsType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2emi__AlertAuthOptionsType(struct soap *soap, const char *s, enum emi__AlertAuthOptionsType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_emi__AlertAuthOptionsType, s); if (map) *a = (enum emi__AlertAuthOptionsType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 2))) return soap->error = SOAP_TYPE; *a = (enum emi__AlertAuthOptionsType)n; } return SOAP_OK; } SOAP_FMAC3 enum emi__AlertAuthOptionsType * SOAP_FMAC4 soap_in_emi__AlertAuthOptionsType(struct soap *soap, const char *tag, enum emi__AlertAuthOptionsType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum emi__AlertAuthOptionsType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_emi__AlertAuthOptionsType, sizeof(enum emi__AlertAuthOptionsType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2emi__AlertAuthOptionsType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum emi__AlertAuthOptionsType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__AlertAuthOptionsType, 0, sizeof(enum emi__AlertAuthOptionsType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__EventSeverityType(struct soap *soap, enum emi__EventSeverityType *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_emi__EventSeverityType *a = SOAP_DEFAULT_emi__EventSeverityType; #else *a = (enum emi__EventSeverityType)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__EventSeverityType(struct soap *soap, const enum emi__EventSeverityType *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__EventSeverityType); if (soap_out_emi__EventSeverityType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } static const struct soap_code_map soap_codes_emi__EventSeverityType[] = { { (long)emi__EventSeverityType__0, "0" }, { (long)emi__EventSeverityType__1, "1" }, { (long)emi__EventSeverityType__2, "2" }, { (long)emi__EventSeverityType__4, "4" }, { (long)emi__EventSeverityType__8, "8" }, { (long)emi__EventSeverityType__16, "16" }, { (long)emi__EventSeverityType__32, "32" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_emi__EventSeverityType2s(struct soap *soap, enum emi__EventSeverityType n) { const char *s = soap_code_str(soap_codes_emi__EventSeverityType, (long)n); if (s) return s; return soap_long2s(soap, (long)n); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventSeverityType(struct soap *soap, const char *tag, int id, const enum emi__EventSeverityType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__EventSeverityType), type); soap_send(soap, soap_emi__EventSeverityType2s(soap, *a)); return soap_element_end_out(soap, tag); } SOAP_FMAC3 enum emi__EventSeverityType * SOAP_FMAC4 soap_get_emi__EventSeverityType(struct soap *soap, enum emi__EventSeverityType *p, const char *tag, const char *type) { if ((p = soap_in_emi__EventSeverityType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3S int SOAP_FMAC4S soap_s2emi__EventSeverityType(struct soap *soap, const char *s, enum emi__EventSeverityType *a) { const struct soap_code_map *map; if (!s) return SOAP_OK; map = soap_code(soap_codes_emi__EventSeverityType, s); if (map) *a = (enum emi__EventSeverityType)map->code; else { long n; if (soap_s2long(soap, s, &n) || ((soap->mode & SOAP_XML_STRICT) && (n < 0 || n > 32))) return soap->error = SOAP_TYPE; *a = (enum emi__EventSeverityType)n; } return SOAP_OK; } SOAP_FMAC3 enum emi__EventSeverityType * SOAP_FMAC4 soap_in_emi__EventSeverityType(struct soap *soap, const char *tag, enum emi__EventSeverityType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (enum emi__EventSeverityType *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_emi__EventSeverityType, sizeof(enum emi__EventSeverityType), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2emi__EventSeverityType(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (enum emi__EventSeverityType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__EventSeverityType, 0, sizeof(enum emi__EventSeverityType), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default__sai__KerberosRealmName(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__sai__KerberosRealmName(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put__sai__KerberosRealmName(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE__sai__KerberosRealmName); if (soap_out__sai__KerberosRealmName(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__sai__KerberosRealmName(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE__sai__KerberosRealmName), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get__sai__KerberosRealmName(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in__sai__KerberosRealmName(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in__sai__KerberosRealmName(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE__sai__KerberosRealmName, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, 1, 63))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE__sai__KerberosRealmName, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE__sai__KerberosRealmName, 0, sizeof(std::string), 0, soap_copy__sai__KerberosRealmName); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new__sai__KerberosRealmName(struct soap *soap, int n) { return soap_instantiate__sai__KerberosRealmName(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__sai__KerberosRealmName(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate__sai__KerberosRealmName(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__sai__KerberosRealmName(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__sai__KerberosRealmName, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__sai__KerberosRealmName(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default__sai__SpnString(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__sai__SpnString(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put__sai__SpnString(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE__sai__SpnString); if (soap_out__sai__SpnString(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__sai__SpnString(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE__sai__SpnString), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get__sai__SpnString(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in__sai__SpnString(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in__sai__SpnString(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE__sai__SpnString, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, 0, 266))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE__sai__SpnString, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE__sai__SpnString, 0, sizeof(std::string), 0, soap_copy__sai__SpnString); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new__sai__SpnString(struct soap *soap, int n) { return soap_instantiate__sai__SpnString(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__sai__SpnString(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate__sai__SpnString(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__sai__SpnString(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__sai__SpnString, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__sai__SpnString(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__FriendlyNameType(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__FriendlyNameType(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__FriendlyNameType(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__FriendlyNameType); if (soap_out_sai__FriendlyNameType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__FriendlyNameType(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_sai__FriendlyNameType), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_sai__FriendlyNameType(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_sai__FriendlyNameType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_sai__FriendlyNameType(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_sai__FriendlyNameType, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, 1, 32))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_sai__FriendlyNameType, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_sai__FriendlyNameType, 0, sizeof(std::string), 0, soap_copy_sai__FriendlyNameType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_sai__FriendlyNameType(struct soap *soap, int n) { return soap_instantiate_sai__FriendlyNameType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__FriendlyNameType(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_sai__FriendlyNameType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__FriendlyNameType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__FriendlyNameType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__FriendlyNameType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__ProvisioningOTPType(struct soap *soap, xsd__base64Binary *a) { a->xsd__base64Binary::soap_default(soap); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__ProvisioningOTPType(struct soap *soap, xsd__base64Binary const*a) { a->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__ProvisioningOTPType(struct soap *soap, const xsd__base64Binary *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, (struct soap_array*)&a->__ptr, 1, tag, SOAP_TYPE_sai__ProvisioningOTPType); if (soap_out_sai__ProvisioningOTPType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__ProvisioningOTPType(struct soap *soap, const char *tag, int id, const xsd__base64Binary *a, const char *type) { #ifndef WITH_LEANER id = soap_attachment(soap, tag, id, a, (struct soap_array*)&a->__ptr, a->id, a->type, a->options, 1, type, SOAP_TYPE_sai__ProvisioningOTPType); #else id = soap_element_id(soap, tag, id, a, (struct soap_array*)&a->__ptr, 1, type, SOAP_TYPE_sai__ProvisioningOTPType); #endif if (id < 0) return soap->error; soap_element_begin_out(soap, tag, id, type); soap_putbase64(soap, a->__ptr, a->__size); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_get_sai__ProvisioningOTPType(struct soap *soap, xsd__base64Binary *p, const char *tag, const char *type) { if ((p = soap_in_sai__ProvisioningOTPType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_in_sai__ProvisioningOTPType(struct soap *soap, const char *tag, xsd__base64Binary *a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type) && soap_match_tag(soap, soap->type, ":base64Binary") && soap_match_tag(soap, soap->type, ":base64")) { soap->error = SOAP_TYPE; return NULL; } a = (xsd__base64Binary *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__ProvisioningOTPType, sizeof(xsd__base64Binary), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) a->soap_default(soap); if (soap->body && !*soap->href) { a->__ptr = soap_getbase64(soap, &a->__size, 0); #ifndef WITH_LEANER if (soap_xop_forward(soap, &a->__ptr, &a->__size, &a->id, &a->type, &a->options)) return NULL; #endif if ((!a->__ptr && soap->error) || soap_element_end_in(soap, tag)) return NULL; } else { #ifndef WITH_LEANER if (*soap->href != '#') { if (soap_dime_forward(soap, &a->__ptr, &a->__size, &a->id, &a->type, &a->options)) return NULL; } else #endif a = (xsd__base64Binary *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__ProvisioningOTPType, 0, sizeof(xsd__base64Binary), 0, soap_copy_sai__ProvisioningOTPType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 xsd__base64Binary * SOAP_FMAC6 soap_new_sai__ProvisioningOTPType(struct soap *soap, int n) { return soap_instantiate_sai__ProvisioningOTPType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__ProvisioningOTPType(struct soap *soap, xsd__base64Binary *p) { soap_delete(soap, p); } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_instantiate_sai__ProvisioningOTPType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__ProvisioningOTPType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__ProvisioningOTPType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new xsd__base64Binary; if (size) *size = sizeof(xsd__base64Binary); ((xsd__base64Binary*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new xsd__base64Binary[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__base64Binary); for (int i = 0; i < n; i++) ((xsd__base64Binary*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__base64Binary*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__ProvisioningOTPType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__base64Binary %p -> %p\n", q, p)); *(xsd__base64Binary*)p = *(xsd__base64Binary*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__MEBxPasswordType(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__MEBxPasswordType(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__MEBxPasswordType(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__MEBxPasswordType); if (soap_out_sai__MEBxPasswordType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__MEBxPasswordType(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_sai__MEBxPasswordType), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_sai__MEBxPasswordType(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_sai__MEBxPasswordType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_sai__MEBxPasswordType(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_sai__MEBxPasswordType, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, 0, 32))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_sai__MEBxPasswordType, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_sai__MEBxPasswordType, 0, sizeof(std::string), 0, soap_copy_sai__MEBxPasswordType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_sai__MEBxPasswordType(struct soap *soap, int n) { return soap_instantiate_sai__MEBxPasswordType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__MEBxPasswordType(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_sai__MEBxPasswordType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__MEBxPasswordType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__MEBxPasswordType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__MEBxPasswordType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__AclPasswordStringType(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__AclPasswordStringType(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__AclPasswordStringType(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__AclPasswordStringType); if (soap_out_sai__AclPasswordStringType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AclPasswordStringType(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_sai__AclPasswordStringType), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_sai__AclPasswordStringType(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_sai__AclPasswordStringType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_sai__AclPasswordStringType(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_sai__AclPasswordStringType, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, -1, 32))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_sai__AclPasswordStringType, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_sai__AclPasswordStringType, 0, sizeof(std::string), 0, soap_copy_sai__AclPasswordStringType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_sai__AclPasswordStringType(struct soap *soap, int n) { return soap_instantiate_sai__AclPasswordStringType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AclPasswordStringType(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_sai__AclPasswordStringType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__AclPasswordStringType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__AclPasswordStringType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AclPasswordStringType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__AclStringType(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__AclStringType(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__AclStringType(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_sai__AclStringType); if (soap_out_sai__AclStringType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AclStringType(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_sai__AclStringType), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_sai__AclStringType(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_sai__AclStringType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_sai__AclStringType(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_sai__AclStringType, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, -1, 16))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_sai__AclStringType, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_sai__AclStringType, 0, sizeof(std::string), 0, soap_copy_sai__AclStringType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_sai__AclStringType(struct soap *soap, int n) { return soap_instantiate_sai__AclStringType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AclStringType(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_sai__AclStringType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__AclStringType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__AclStringType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AclStringType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__CommunityStringType(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_emi__CommunityStringType(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__CommunityStringType(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_emi__CommunityStringType); if (soap_out_emi__CommunityStringType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__CommunityStringType(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_emi__CommunityStringType), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_emi__CommunityStringType(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_emi__CommunityStringType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_emi__CommunityStringType(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_emi__CommunityStringType, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, 1, 16))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_emi__CommunityStringType, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_emi__CommunityStringType, 0, sizeof(std::string), 0, soap_copy_emi__CommunityStringType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_emi__CommunityStringType(struct soap *soap, int n) { return soap_instantiate_emi__CommunityStringType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__CommunityStringType(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_emi__CommunityStringType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__CommunityStringType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__CommunityStringType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__CommunityStringType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__GuidBuf(struct soap *soap, xsd__base64Binary *a) { a->xsd__base64Binary::soap_default(soap); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_cmn__GuidBuf(struct soap *soap, xsd__base64Binary const*a) { a->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__GuidBuf(struct soap *soap, const xsd__base64Binary *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, (struct soap_array*)&a->__ptr, 1, tag, SOAP_TYPE_cmn__GuidBuf); if (soap_out_cmn__GuidBuf(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__GuidBuf(struct soap *soap, const char *tag, int id, const xsd__base64Binary *a, const char *type) { #ifndef WITH_LEANER id = soap_attachment(soap, tag, id, a, (struct soap_array*)&a->__ptr, a->id, a->type, a->options, 1, type, SOAP_TYPE_cmn__GuidBuf); #else id = soap_element_id(soap, tag, id, a, (struct soap_array*)&a->__ptr, 1, type, SOAP_TYPE_cmn__GuidBuf); #endif if (id < 0) return soap->error; soap_element_begin_out(soap, tag, id, type); soap_putbase64(soap, a->__ptr, a->__size); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_get_cmn__GuidBuf(struct soap *soap, xsd__base64Binary *p, const char *tag, const char *type) { if ((p = soap_in_cmn__GuidBuf(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_in_cmn__GuidBuf(struct soap *soap, const char *tag, xsd__base64Binary *a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type) && soap_match_tag(soap, soap->type, ":base64Binary") && soap_match_tag(soap, soap->type, ":base64")) { soap->error = SOAP_TYPE; return NULL; } a = (xsd__base64Binary *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_cmn__GuidBuf, sizeof(xsd__base64Binary), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) a->soap_default(soap); if (soap->body && !*soap->href) { a->__ptr = soap_getbase64(soap, &a->__size, 0); #ifndef WITH_LEANER if (soap_xop_forward(soap, &a->__ptr, &a->__size, &a->id, &a->type, &a->options)) return NULL; #endif if ((!a->__ptr && soap->error) || soap_element_end_in(soap, tag)) return NULL; } else { #ifndef WITH_LEANER if (*soap->href != '#') { if (soap_dime_forward(soap, &a->__ptr, &a->__size, &a->id, &a->type, &a->options)) return NULL; } else #endif a = (xsd__base64Binary *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_cmn__GuidBuf, 0, sizeof(xsd__base64Binary), 0, soap_copy_cmn__GuidBuf); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 xsd__base64Binary * SOAP_FMAC6 soap_new_cmn__GuidBuf(struct soap *soap, int n) { return soap_instantiate_cmn__GuidBuf(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__GuidBuf(struct soap *soap, xsd__base64Binary *p) { soap_delete(soap, p); } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_instantiate_cmn__GuidBuf(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_cmn__GuidBuf(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_cmn__GuidBuf, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new xsd__base64Binary; if (size) *size = sizeof(xsd__base64Binary); ((xsd__base64Binary*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new xsd__base64Binary[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__base64Binary); for (int i = 0; i < n; i++) ((xsd__base64Binary*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__base64Binary*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__GuidBuf(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__base64Binary %p -> %p\n", q, p)); *(xsd__base64Binary*)p = *(xsd__base64Binary*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__IPv6AddressStringType(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_cmn__IPv6AddressStringType(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__IPv6AddressStringType(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_cmn__IPv6AddressStringType); if (soap_out_cmn__IPv6AddressStringType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__IPv6AddressStringType(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_cmn__IPv6AddressStringType), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_cmn__IPv6AddressStringType(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_cmn__IPv6AddressStringType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_cmn__IPv6AddressStringType(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_cmn__IPv6AddressStringType, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, -1, -1))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_cmn__IPv6AddressStringType, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_cmn__IPv6AddressStringType, 0, sizeof(std::string), 0, soap_copy_cmn__IPv6AddressStringType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_cmn__IPv6AddressStringType(struct soap *soap, int n) { return soap_instantiate_cmn__IPv6AddressStringType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__IPv6AddressStringType(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_cmn__IPv6AddressStringType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_cmn__IPv6AddressStringType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_cmn__IPv6AddressStringType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__IPv6AddressStringType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__IPv4AddressStringType(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_cmn__IPv4AddressStringType(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__IPv4AddressStringType(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_cmn__IPv4AddressStringType); if (soap_out_cmn__IPv4AddressStringType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__IPv4AddressStringType(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_cmn__IPv4AddressStringType), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_cmn__IPv4AddressStringType(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_cmn__IPv4AddressStringType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_cmn__IPv4AddressStringType(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_cmn__IPv4AddressStringType, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, -1, -1))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_cmn__IPv4AddressStringType, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_cmn__IPv4AddressStringType, 0, sizeof(std::string), 0, soap_copy_cmn__IPv4AddressStringType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_cmn__IPv4AddressStringType(struct soap *soap, int n) { return soap_instantiate_cmn__IPv4AddressStringType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__IPv4AddressStringType(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_cmn__IPv4AddressStringType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_cmn__IPv4AddressStringType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_cmn__IPv4AddressStringType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__IPv4AddressStringType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__HostNameType(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_cmn__HostNameType(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__HostNameType(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_cmn__HostNameType); if (soap_out_cmn__HostNameType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__HostNameType(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_cmn__HostNameType), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_cmn__HostNameType(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_cmn__HostNameType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_cmn__HostNameType(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_cmn__HostNameType, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, 0, 64))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_cmn__HostNameType, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_cmn__HostNameType, 0, sizeof(std::string), 0, soap_copy_cmn__HostNameType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_cmn__HostNameType(struct soap *soap, int n) { return soap_instantiate_cmn__HostNameType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__HostNameType(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_cmn__HostNameType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_cmn__HostNameType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_cmn__HostNameType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__HostNameType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } void sai__GlobalPowerPolicyType::soap_default(struct soap *soap) { this->soap = soap; soap_default_unsignedInt(soap, &this->sai__GlobalPowerPolicyType::IdleWakeTimeout); /* transient soap skipped */ } void sai__GlobalPowerPolicyType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__GlobalPowerPolicyType::IdleWakeTimeout, SOAP_TYPE_unsignedInt); /* transient soap skipped */ } int sai__GlobalPowerPolicyType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__GlobalPowerPolicyType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__GlobalPowerPolicyType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__GlobalPowerPolicyType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__GlobalPowerPolicyType(struct soap *soap, const char *tag, int id, const sai__GlobalPowerPolicyType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__GlobalPowerPolicyType), type); soap_out_unsignedInt(soap, "sai:IdleWakeTimeout", -1, &(a->sai__GlobalPowerPolicyType::IdleWakeTimeout), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__GlobalPowerPolicyType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__GlobalPowerPolicyType(soap, this, tag, type); } SOAP_FMAC3 sai__GlobalPowerPolicyType * SOAP_FMAC4 soap_get_sai__GlobalPowerPolicyType(struct soap *soap, sai__GlobalPowerPolicyType *p, const char *tag, const char *type) { if ((p = soap_in_sai__GlobalPowerPolicyType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__GlobalPowerPolicyType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__GlobalPowerPolicyType(soap, tag, this, type); } SOAP_FMAC3 sai__GlobalPowerPolicyType * SOAP_FMAC4 soap_in_sai__GlobalPowerPolicyType(struct soap *soap, const char *tag, sai__GlobalPowerPolicyType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__GlobalPowerPolicyType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__GlobalPowerPolicyType, sizeof(sai__GlobalPowerPolicyType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__GlobalPowerPolicyType) { soap_revert(soap); *soap->id = '\0'; return (sai__GlobalPowerPolicyType *)a->soap_in(soap, tag, type); } } short soap_flag_IdleWakeTimeout1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_IdleWakeTimeout1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:IdleWakeTimeout", &(a->sai__GlobalPowerPolicyType::IdleWakeTimeout), "xsd:unsignedInt")) { soap_flag_IdleWakeTimeout1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__GlobalPowerPolicyType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__GlobalPowerPolicyType, 0, sizeof(sai__GlobalPowerPolicyType), 0, soap_copy_sai__GlobalPowerPolicyType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_IdleWakeTimeout1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__GlobalPowerPolicyType * SOAP_FMAC6 soap_new_sai__GlobalPowerPolicyType(struct soap *soap, int n) { return soap_instantiate_sai__GlobalPowerPolicyType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__GlobalPowerPolicyType(struct soap *soap, sai__GlobalPowerPolicyType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__GlobalPowerPolicyType * SOAP_FMAC4 soap_instantiate_sai__GlobalPowerPolicyType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__GlobalPowerPolicyType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__GlobalPowerPolicyType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__GlobalPowerPolicyType; if (size) *size = sizeof(sai__GlobalPowerPolicyType); ((sai__GlobalPowerPolicyType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__GlobalPowerPolicyType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__GlobalPowerPolicyType); for (int i = 0; i < n; i++) ((sai__GlobalPowerPolicyType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__GlobalPowerPolicyType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__GlobalPowerPolicyType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__GlobalPowerPolicyType %p -> %p\n", q, p)); *(sai__GlobalPowerPolicyType*)p = *(sai__GlobalPowerPolicyType*)q; } void sai__EnvironmentDetectionType::soap_default(struct soap *soap) { this->soap = soap; this->sai__EnvironmentDetectionType::__union_EnvironmentDetectionType = 0; this->sai__EnvironmentDetectionType::ExternalCircuitBreakerPolicy = NULL; /* transient soap skipped */ } void sai__EnvironmentDetectionType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize__sai__union_EnvironmentDetectionType(soap, this->sai__EnvironmentDetectionType::__union_EnvironmentDetectionType, &this->sai__EnvironmentDetectionType::union_EnvironmentDetectionType); soap_serialize_PointerTounsignedInt(soap, &this->sai__EnvironmentDetectionType::ExternalCircuitBreakerPolicy); /* transient soap skipped */ } int sai__EnvironmentDetectionType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__EnvironmentDetectionType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__EnvironmentDetectionType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__EnvironmentDetectionType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__EnvironmentDetectionType(struct soap *soap, const char *tag, int id, const sai__EnvironmentDetectionType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__EnvironmentDetectionType), type); soap_out__sai__union_EnvironmentDetectionType(soap, a->sai__EnvironmentDetectionType::__union_EnvironmentDetectionType, &a->sai__EnvironmentDetectionType::union_EnvironmentDetectionType); soap_out_PointerTounsignedInt(soap, "sai:ExternalCircuitBreakerPolicy", -1, &(a->sai__EnvironmentDetectionType::ExternalCircuitBreakerPolicy), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__EnvironmentDetectionType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__EnvironmentDetectionType(soap, this, tag, type); } SOAP_FMAC3 sai__EnvironmentDetectionType * SOAP_FMAC4 soap_get_sai__EnvironmentDetectionType(struct soap *soap, sai__EnvironmentDetectionType *p, const char *tag, const char *type) { if ((p = soap_in_sai__EnvironmentDetectionType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__EnvironmentDetectionType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__EnvironmentDetectionType(soap, tag, this, type); } SOAP_FMAC3 sai__EnvironmentDetectionType * SOAP_FMAC4 soap_in_sai__EnvironmentDetectionType(struct soap *soap, const char *tag, sai__EnvironmentDetectionType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__EnvironmentDetectionType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__EnvironmentDetectionType, sizeof(sai__EnvironmentDetectionType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__EnvironmentDetectionType) { soap_revert(soap); *soap->id = '\0'; return (sai__EnvironmentDetectionType *)a->soap_in(soap, tag, type); } } short soap_flag_union_EnvironmentDetectionType1 = 1, soap_flag_ExternalCircuitBreakerPolicy1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_union_EnvironmentDetectionType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in__sai__union_EnvironmentDetectionType(soap, &a->sai__EnvironmentDetectionType::__union_EnvironmentDetectionType, &a->sai__EnvironmentDetectionType::union_EnvironmentDetectionType)) { soap_flag_union_EnvironmentDetectionType1 = 0; continue; } if (soap_flag_ExternalCircuitBreakerPolicy1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTounsignedInt(soap, "sai:ExternalCircuitBreakerPolicy", &(a->sai__EnvironmentDetectionType::ExternalCircuitBreakerPolicy), "xsd:unsignedInt")) { soap_flag_ExternalCircuitBreakerPolicy1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__EnvironmentDetectionType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__EnvironmentDetectionType, 0, sizeof(sai__EnvironmentDetectionType), 0, soap_copy_sai__EnvironmentDetectionType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_union_EnvironmentDetectionType1)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__EnvironmentDetectionType * SOAP_FMAC6 soap_new_sai__EnvironmentDetectionType(struct soap *soap, int n) { return soap_instantiate_sai__EnvironmentDetectionType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__EnvironmentDetectionType(struct soap *soap, sai__EnvironmentDetectionType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__EnvironmentDetectionType * SOAP_FMAC4 soap_instantiate_sai__EnvironmentDetectionType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__EnvironmentDetectionType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__EnvironmentDetectionType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__EnvironmentDetectionType; if (size) *size = sizeof(sai__EnvironmentDetectionType); ((sai__EnvironmentDetectionType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__EnvironmentDetectionType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__EnvironmentDetectionType); for (int i = 0; i < n; i++) ((sai__EnvironmentDetectionType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__EnvironmentDetectionType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__EnvironmentDetectionType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__EnvironmentDetectionType %p -> %p\n", q, p)); *(sai__EnvironmentDetectionType*)p = *(sai__EnvironmentDetectionType*)q; } void sai__EnvironmentDetectionDomainType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfstd__string(soap, &this->sai__EnvironmentDetectionDomainType::values); /* transient soap skipped */ } void sai__EnvironmentDetectionDomainType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfstd__string(soap, &this->sai__EnvironmentDetectionDomainType::values); /* transient soap skipped */ } int sai__EnvironmentDetectionDomainType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__EnvironmentDetectionDomainType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__EnvironmentDetectionDomainType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__EnvironmentDetectionDomainType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__EnvironmentDetectionDomainType(struct soap *soap, const char *tag, int id, const sai__EnvironmentDetectionDomainType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__EnvironmentDetectionDomainType), type); soap_out_std__vectorTemplateOfstd__string(soap, "sai:values", -1, &(a->sai__EnvironmentDetectionDomainType::values), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__EnvironmentDetectionDomainType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__EnvironmentDetectionDomainType(soap, this, tag, type); } SOAP_FMAC3 sai__EnvironmentDetectionDomainType * SOAP_FMAC4 soap_get_sai__EnvironmentDetectionDomainType(struct soap *soap, sai__EnvironmentDetectionDomainType *p, const char *tag, const char *type) { if ((p = soap_in_sai__EnvironmentDetectionDomainType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__EnvironmentDetectionDomainType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__EnvironmentDetectionDomainType(soap, tag, this, type); } SOAP_FMAC3 sai__EnvironmentDetectionDomainType * SOAP_FMAC4 soap_in_sai__EnvironmentDetectionDomainType(struct soap *soap, const char *tag, sai__EnvironmentDetectionDomainType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__EnvironmentDetectionDomainType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__EnvironmentDetectionDomainType, sizeof(sai__EnvironmentDetectionDomainType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__EnvironmentDetectionDomainType) { soap_revert(soap); *soap->id = '\0'; return (sai__EnvironmentDetectionDomainType *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfstd__string(soap, "sai:values", &(a->sai__EnvironmentDetectionDomainType::values), "xsd:string")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__EnvironmentDetectionDomainType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__EnvironmentDetectionDomainType, 0, sizeof(sai__EnvironmentDetectionDomainType), 0, soap_copy_sai__EnvironmentDetectionDomainType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (a->sai__EnvironmentDetectionDomainType::values.size() > 5)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__EnvironmentDetectionDomainType * SOAP_FMAC6 soap_new_sai__EnvironmentDetectionDomainType(struct soap *soap, int n) { return soap_instantiate_sai__EnvironmentDetectionDomainType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__EnvironmentDetectionDomainType(struct soap *soap, sai__EnvironmentDetectionDomainType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__EnvironmentDetectionDomainType * SOAP_FMAC4 soap_instantiate_sai__EnvironmentDetectionDomainType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__EnvironmentDetectionDomainType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__EnvironmentDetectionDomainType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__EnvironmentDetectionDomainType; if (size) *size = sizeof(sai__EnvironmentDetectionDomainType); ((sai__EnvironmentDetectionDomainType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__EnvironmentDetectionDomainType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__EnvironmentDetectionDomainType); for (int i = 0; i < n; i++) ((sai__EnvironmentDetectionDomainType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__EnvironmentDetectionDomainType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__EnvironmentDetectionDomainType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__EnvironmentDetectionDomainType %p -> %p\n", q, p)); *(sai__EnvironmentDetectionDomainType*)p = *(sai__EnvironmentDetectionDomainType*)q; } void sai__EnvironmentDetectionHTTPSType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfxsd__anyURI(soap, &this->sai__EnvironmentDetectionHTTPSType::values); /* transient soap skipped */ } void sai__EnvironmentDetectionHTTPSType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfxsd__anyURI(soap, &this->sai__EnvironmentDetectionHTTPSType::values); /* transient soap skipped */ } int sai__EnvironmentDetectionHTTPSType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__EnvironmentDetectionHTTPSType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__EnvironmentDetectionHTTPSType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__EnvironmentDetectionHTTPSType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__EnvironmentDetectionHTTPSType(struct soap *soap, const char *tag, int id, const sai__EnvironmentDetectionHTTPSType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__EnvironmentDetectionHTTPSType), type); soap_out_std__vectorTemplateOfxsd__anyURI(soap, "sai:values", -1, &(a->sai__EnvironmentDetectionHTTPSType::values), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__EnvironmentDetectionHTTPSType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__EnvironmentDetectionHTTPSType(soap, this, tag, type); } SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType * SOAP_FMAC4 soap_get_sai__EnvironmentDetectionHTTPSType(struct soap *soap, sai__EnvironmentDetectionHTTPSType *p, const char *tag, const char *type) { if ((p = soap_in_sai__EnvironmentDetectionHTTPSType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__EnvironmentDetectionHTTPSType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__EnvironmentDetectionHTTPSType(soap, tag, this, type); } SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType * SOAP_FMAC4 soap_in_sai__EnvironmentDetectionHTTPSType(struct soap *soap, const char *tag, sai__EnvironmentDetectionHTTPSType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__EnvironmentDetectionHTTPSType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__EnvironmentDetectionHTTPSType, sizeof(sai__EnvironmentDetectionHTTPSType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__EnvironmentDetectionHTTPSType) { soap_revert(soap); *soap->id = '\0'; return (sai__EnvironmentDetectionHTTPSType *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfxsd__anyURI(soap, "sai:values", &(a->sai__EnvironmentDetectionHTTPSType::values), "xsd:anyURI")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__EnvironmentDetectionHTTPSType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__EnvironmentDetectionHTTPSType, 0, sizeof(sai__EnvironmentDetectionHTTPSType), 0, soap_copy_sai__EnvironmentDetectionHTTPSType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (a->sai__EnvironmentDetectionHTTPSType::values.size() > 5)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__EnvironmentDetectionHTTPSType * SOAP_FMAC6 soap_new_sai__EnvironmentDetectionHTTPSType(struct soap *soap, int n) { return soap_instantiate_sai__EnvironmentDetectionHTTPSType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__EnvironmentDetectionHTTPSType(struct soap *soap, sai__EnvironmentDetectionHTTPSType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType * SOAP_FMAC4 soap_instantiate_sai__EnvironmentDetectionHTTPSType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__EnvironmentDetectionHTTPSType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__EnvironmentDetectionHTTPSType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__EnvironmentDetectionHTTPSType; if (size) *size = sizeof(sai__EnvironmentDetectionHTTPSType); ((sai__EnvironmentDetectionHTTPSType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__EnvironmentDetectionHTTPSType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__EnvironmentDetectionHTTPSType); for (int i = 0; i < n; i++) ((sai__EnvironmentDetectionHTTPSType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__EnvironmentDetectionHTTPSType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__EnvironmentDetectionHTTPSType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__EnvironmentDetectionHTTPSType %p -> %p\n", q, p)); *(sai__EnvironmentDetectionHTTPSType*)p = *(sai__EnvironmentDetectionHTTPSType*)q; } void sai__ProvisioningAuditRecordType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__ProvisioningTLSModeType(soap, &this->sai__ProvisioningAuditRecordType::ProvisioningTLSMode); soap_default_bool(soap, &this->sai__ProvisioningAuditRecordType::SecureDNS); soap_default_bool(soap, &this->sai__ProvisioningAuditRecordType::HostInitiated); this->sai__ProvisioningAuditRecordType::ProvServerFQDN = NULL; soap_default_sai__HashTypeType(soap, &this->sai__ProvisioningAuditRecordType::SelectedHashType); this->sai__ProvisioningAuditRecordType::SelectedHashData.xsd__base64Binary::soap_default(soap); this->sai__ProvisioningAuditRecordType::CaCertSerials = NULL; this->sai__ProvisioningAuditRecordType::AdditionalCaSerialNums = NULL; soap_default_bool(soap, &this->sai__ProvisioningAuditRecordType::IsOemDefault); soap_default_bool(soap, &this->sai__ProvisioningAuditRecordType::IsTimeValid); soap_default_sai__IPv4AddressType(soap, &this->sai__ProvisioningAuditRecordType::ProvServerIP); soap_default_unsignedInt(soap, &this->sai__ProvisioningAuditRecordType::TlsStartTime); /* transient soap skipped */ } void sai__ProvisioningAuditRecordType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__ProvisioningAuditRecordType::SecureDNS, SOAP_TYPE_bool); soap_embedded(soap, &this->sai__ProvisioningAuditRecordType::HostInitiated, SOAP_TYPE_bool); soap_serialize_PointerTostd__string(soap, &this->sai__ProvisioningAuditRecordType::ProvServerFQDN); soap_embedded(soap, &this->sai__ProvisioningAuditRecordType::SelectedHashData, SOAP_TYPE_xsd__base64Binary); this->sai__ProvisioningAuditRecordType::SelectedHashData.soap_serialize(soap); soap_serialize_PointerToxsd__base64Binary(soap, &this->sai__ProvisioningAuditRecordType::CaCertSerials); soap_serialize_PointerTobool(soap, &this->sai__ProvisioningAuditRecordType::AdditionalCaSerialNums); soap_embedded(soap, &this->sai__ProvisioningAuditRecordType::IsOemDefault, SOAP_TYPE_bool); soap_embedded(soap, &this->sai__ProvisioningAuditRecordType::IsTimeValid, SOAP_TYPE_bool); soap_embedded(soap, &this->sai__ProvisioningAuditRecordType::TlsStartTime, SOAP_TYPE_unsignedInt); /* transient soap skipped */ } int sai__ProvisioningAuditRecordType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__ProvisioningAuditRecordType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__ProvisioningAuditRecordType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__ProvisioningAuditRecordType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__ProvisioningAuditRecordType(struct soap *soap, const char *tag, int id, const sai__ProvisioningAuditRecordType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__ProvisioningAuditRecordType), type); soap_out_sai__ProvisioningTLSModeType(soap, "sai:ProvisioningTLSMode", -1, &(a->sai__ProvisioningAuditRecordType::ProvisioningTLSMode), ""); soap_out_bool(soap, "sai:SecureDNS", -1, &(a->sai__ProvisioningAuditRecordType::SecureDNS), ""); soap_out_bool(soap, "sai:HostInitiated", -1, &(a->sai__ProvisioningAuditRecordType::HostInitiated), ""); soap_out_PointerTostd__string(soap, "sai:ProvServerFQDN", -1, &(a->sai__ProvisioningAuditRecordType::ProvServerFQDN), ""); soap_out_sai__HashTypeType(soap, "sai:SelectedHashType", -1, &(a->sai__ProvisioningAuditRecordType::SelectedHashType), ""); (a->sai__ProvisioningAuditRecordType::SelectedHashData).soap_out(soap, "sai:SelectedHashData", -1, ""); soap_out_PointerToxsd__base64Binary(soap, "sai:CaCertSerials", -1, &(a->sai__ProvisioningAuditRecordType::CaCertSerials), ""); soap_out_PointerTobool(soap, "sai:AdditionalCaSerialNums", -1, &(a->sai__ProvisioningAuditRecordType::AdditionalCaSerialNums), ""); soap_out_bool(soap, "sai:IsOemDefault", -1, &(a->sai__ProvisioningAuditRecordType::IsOemDefault), ""); soap_out_bool(soap, "sai:IsTimeValid", -1, &(a->sai__ProvisioningAuditRecordType::IsTimeValid), ""); soap_out_sai__IPv4AddressType(soap, "sai:ProvServerIP", -1, &(a->sai__ProvisioningAuditRecordType::ProvServerIP), ""); soap_out_unsignedInt(soap, "sai:TlsStartTime", -1, &(a->sai__ProvisioningAuditRecordType::TlsStartTime), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__ProvisioningAuditRecordType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__ProvisioningAuditRecordType(soap, this, tag, type); } SOAP_FMAC3 sai__ProvisioningAuditRecordType * SOAP_FMAC4 soap_get_sai__ProvisioningAuditRecordType(struct soap *soap, sai__ProvisioningAuditRecordType *p, const char *tag, const char *type) { if ((p = soap_in_sai__ProvisioningAuditRecordType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__ProvisioningAuditRecordType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__ProvisioningAuditRecordType(soap, tag, this, type); } SOAP_FMAC3 sai__ProvisioningAuditRecordType * SOAP_FMAC4 soap_in_sai__ProvisioningAuditRecordType(struct soap *soap, const char *tag, sai__ProvisioningAuditRecordType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__ProvisioningAuditRecordType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__ProvisioningAuditRecordType, sizeof(sai__ProvisioningAuditRecordType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__ProvisioningAuditRecordType) { soap_revert(soap); *soap->id = '\0'; return (sai__ProvisioningAuditRecordType *)a->soap_in(soap, tag, type); } } short soap_flag_ProvisioningTLSMode1 = 1, soap_flag_SecureDNS1 = 1, soap_flag_HostInitiated1 = 1, soap_flag_ProvServerFQDN1 = 1, soap_flag_SelectedHashType1 = 1, soap_flag_SelectedHashData1 = 1, soap_flag_CaCertSerials1 = 1, soap_flag_AdditionalCaSerialNums1 = 1, soap_flag_IsOemDefault1 = 1, soap_flag_IsTimeValid1 = 1, soap_flag_ProvServerIP1 = 1, soap_flag_TlsStartTime1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ProvisioningTLSMode1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__ProvisioningTLSModeType(soap, "sai:ProvisioningTLSMode", &(a->sai__ProvisioningAuditRecordType::ProvisioningTLSMode), "sai:ProvisioningTLSModeType")) { soap_flag_ProvisioningTLSMode1--; continue; } if (soap_flag_SecureDNS1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_bool(soap, "sai:SecureDNS", &(a->sai__ProvisioningAuditRecordType::SecureDNS), "xsd:boolean")) { soap_flag_SecureDNS1--; continue; } if (soap_flag_HostInitiated1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_bool(soap, "sai:HostInitiated", &(a->sai__ProvisioningAuditRecordType::HostInitiated), "xsd:boolean")) { soap_flag_HostInitiated1--; continue; } if (soap_flag_ProvServerFQDN1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "sai:ProvServerFQDN", &(a->sai__ProvisioningAuditRecordType::ProvServerFQDN), "xsd:string")) { soap_flag_ProvServerFQDN1--; continue; } if (soap_flag_SelectedHashType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__HashTypeType(soap, "sai:SelectedHashType", &(a->sai__ProvisioningAuditRecordType::SelectedHashType), "sai:HashTypeType")) { soap_flag_SelectedHashType1--; continue; } if (soap_flag_SelectedHashData1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__ProvisioningAuditRecordType::SelectedHashData).soap_in(soap, "sai:SelectedHashData", "xsd:base64Binary")) { soap_flag_SelectedHashData1--; continue; } if (soap_flag_CaCertSerials1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToxsd__base64Binary(soap, "sai:CaCertSerials", &(a->sai__ProvisioningAuditRecordType::CaCertSerials), "xsd:base64Binary")) { soap_flag_CaCertSerials1--; continue; } if (soap_flag_AdditionalCaSerialNums1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTobool(soap, "sai:AdditionalCaSerialNums", &(a->sai__ProvisioningAuditRecordType::AdditionalCaSerialNums), "xsd:boolean")) { soap_flag_AdditionalCaSerialNums1--; continue; } if (soap_flag_IsOemDefault1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_bool(soap, "sai:IsOemDefault", &(a->sai__ProvisioningAuditRecordType::IsOemDefault), "xsd:boolean")) { soap_flag_IsOemDefault1--; continue; } if (soap_flag_IsTimeValid1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_bool(soap, "sai:IsTimeValid", &(a->sai__ProvisioningAuditRecordType::IsTimeValid), "xsd:boolean")) { soap_flag_IsTimeValid1--; continue; } if (soap_flag_ProvServerIP1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__IPv4AddressType(soap, "sai:ProvServerIP", &(a->sai__ProvisioningAuditRecordType::ProvServerIP), "sai:IPv4AddressType")) { soap_flag_ProvServerIP1--; continue; } if (soap_flag_TlsStartTime1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:TlsStartTime", &(a->sai__ProvisioningAuditRecordType::TlsStartTime), "xsd:unsignedInt")) { soap_flag_TlsStartTime1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__ProvisioningAuditRecordType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__ProvisioningAuditRecordType, 0, sizeof(sai__ProvisioningAuditRecordType), 0, soap_copy_sai__ProvisioningAuditRecordType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_ProvisioningTLSMode1 > 0 || soap_flag_SecureDNS1 > 0 || soap_flag_HostInitiated1 > 0 || soap_flag_SelectedHashType1 > 0 || soap_flag_SelectedHashData1 > 0 || soap_flag_IsOemDefault1 > 0 || soap_flag_IsTimeValid1 > 0 || soap_flag_ProvServerIP1 > 0 || soap_flag_TlsStartTime1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__ProvisioningAuditRecordType * SOAP_FMAC6 soap_new_sai__ProvisioningAuditRecordType(struct soap *soap, int n) { return soap_instantiate_sai__ProvisioningAuditRecordType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__ProvisioningAuditRecordType(struct soap *soap, sai__ProvisioningAuditRecordType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__ProvisioningAuditRecordType * SOAP_FMAC4 soap_instantiate_sai__ProvisioningAuditRecordType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__ProvisioningAuditRecordType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__ProvisioningAuditRecordType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__ProvisioningAuditRecordType; if (size) *size = sizeof(sai__ProvisioningAuditRecordType); ((sai__ProvisioningAuditRecordType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__ProvisioningAuditRecordType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__ProvisioningAuditRecordType); for (int i = 0; i < n; i++) ((sai__ProvisioningAuditRecordType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__ProvisioningAuditRecordType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__ProvisioningAuditRecordType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__ProvisioningAuditRecordType %p -> %p\n", q, p)); *(sai__ProvisioningAuditRecordType*)p = *(sai__ProvisioningAuditRecordType*)q; } void sai__CertHashEntryType::soap_default(struct soap *soap) { this->soap = soap; soap_default_bool(soap, &this->sai__CertHashEntryType::Default); soap_default_bool(soap, &this->sai__CertHashEntryType::Active); soap_default_sai__HashTypeType(soap, &this->sai__CertHashEntryType::HashType); this->sai__CertHashEntryType::Hash.xsd__base64Binary::soap_default(soap); soap_default_sai__FriendlyNameType(soap, &this->sai__CertHashEntryType::FriendlyName); /* transient soap skipped */ } void sai__CertHashEntryType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__CertHashEntryType::Default, SOAP_TYPE_bool); soap_embedded(soap, &this->sai__CertHashEntryType::Active, SOAP_TYPE_bool); soap_embedded(soap, &this->sai__CertHashEntryType::Hash, SOAP_TYPE_xsd__base64Binary); this->sai__CertHashEntryType::Hash.soap_serialize(soap); soap_serialize_sai__FriendlyNameType(soap, &this->sai__CertHashEntryType::FriendlyName); /* transient soap skipped */ } int sai__CertHashEntryType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__CertHashEntryType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__CertHashEntryType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__CertHashEntryType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CertHashEntryType(struct soap *soap, const char *tag, int id, const sai__CertHashEntryType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__CertHashEntryType), type); soap_out_bool(soap, "sai:Default", -1, &(a->sai__CertHashEntryType::Default), ""); soap_out_bool(soap, "sai:Active", -1, &(a->sai__CertHashEntryType::Active), ""); soap_out_sai__HashTypeType(soap, "sai:HashType", -1, &(a->sai__CertHashEntryType::HashType), ""); (a->sai__CertHashEntryType::Hash).soap_out(soap, "sai:Hash", -1, ""); soap_out_sai__FriendlyNameType(soap, "sai:FriendlyName", -1, &(a->sai__CertHashEntryType::FriendlyName), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__CertHashEntryType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__CertHashEntryType(soap, this, tag, type); } SOAP_FMAC3 sai__CertHashEntryType * SOAP_FMAC4 soap_get_sai__CertHashEntryType(struct soap *soap, sai__CertHashEntryType *p, const char *tag, const char *type) { if ((p = soap_in_sai__CertHashEntryType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__CertHashEntryType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__CertHashEntryType(soap, tag, this, type); } SOAP_FMAC3 sai__CertHashEntryType * SOAP_FMAC4 soap_in_sai__CertHashEntryType(struct soap *soap, const char *tag, sai__CertHashEntryType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__CertHashEntryType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__CertHashEntryType, sizeof(sai__CertHashEntryType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__CertHashEntryType) { soap_revert(soap); *soap->id = '\0'; return (sai__CertHashEntryType *)a->soap_in(soap, tag, type); } } short soap_flag_Default1 = 1, soap_flag_Active1 = 1, soap_flag_HashType1 = 1, soap_flag_Hash1 = 1, soap_flag_FriendlyName1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Default1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_bool(soap, "sai:Default", &(a->sai__CertHashEntryType::Default), "xsd:boolean")) { soap_flag_Default1--; continue; } if (soap_flag_Active1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_bool(soap, "sai:Active", &(a->sai__CertHashEntryType::Active), "xsd:boolean")) { soap_flag_Active1--; continue; } if (soap_flag_HashType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__HashTypeType(soap, "sai:HashType", &(a->sai__CertHashEntryType::HashType), "sai:HashTypeType")) { soap_flag_HashType1--; continue; } if (soap_flag_Hash1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__CertHashEntryType::Hash).soap_in(soap, "sai:Hash", "xsd:base64Binary")) { soap_flag_Hash1--; continue; } if (soap_flag_FriendlyName1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_sai__FriendlyNameType(soap, "sai:FriendlyName", &(a->sai__CertHashEntryType::FriendlyName), "sai:FriendlyNameType")) { soap_flag_FriendlyName1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__CertHashEntryType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__CertHashEntryType, 0, sizeof(sai__CertHashEntryType), 0, soap_copy_sai__CertHashEntryType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Default1 > 0 || soap_flag_Active1 > 0 || soap_flag_HashType1 > 0 || soap_flag_Hash1 > 0 || soap_flag_FriendlyName1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__CertHashEntryType * SOAP_FMAC6 soap_new_sai__CertHashEntryType(struct soap *soap, int n) { return soap_instantiate_sai__CertHashEntryType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__CertHashEntryType(struct soap *soap, sai__CertHashEntryType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__CertHashEntryType * SOAP_FMAC4 soap_instantiate_sai__CertHashEntryType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__CertHashEntryType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__CertHashEntryType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__CertHashEntryType; if (size) *size = sizeof(sai__CertHashEntryType); ((sai__CertHashEntryType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__CertHashEntryType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__CertHashEntryType); for (int i = 0; i < n; i++) ((sai__CertHashEntryType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__CertHashEntryType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__CertHashEntryType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__CertHashEntryType %p -> %p\n", q, p)); *(sai__CertHashEntryType*)p = *(sai__CertHashEntryType*)q; } void sai__PkiCapsType::soap_default(struct soap *soap) { this->soap = soap; soap_default_unsignedInt(soap, &this->sai__PkiCapsType::CrlStoreSize); soap_default_unsignedInt(soap, &this->sai__PkiCapsType::RootCertMaxSize); soap_default_unsignedInt(soap, &this->sai__PkiCapsType::RootCertMaxInstances); soap_default_unsignedInt(soap, &this->sai__PkiCapsType::FqdnSuffixMaxEntries); soap_default_unsignedInt(soap, &this->sai__PkiCapsType::FqdnSuffixMaxEntryLength); soap_default_unsignedInt(soap, &this->sai__PkiCapsType::CertChainMaxSize); soap_default_std__vectorTemplateOfunsignedInt(soap, &this->sai__PkiCapsType::SupportedKeyLengths); /* transient soap skipped */ } void sai__PkiCapsType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__PkiCapsType::CrlStoreSize, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__PkiCapsType::RootCertMaxSize, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__PkiCapsType::RootCertMaxInstances, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__PkiCapsType::FqdnSuffixMaxEntries, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__PkiCapsType::FqdnSuffixMaxEntryLength, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__PkiCapsType::CertChainMaxSize, SOAP_TYPE_unsignedInt); soap_serialize_std__vectorTemplateOfunsignedInt(soap, &this->sai__PkiCapsType::SupportedKeyLengths); /* transient soap skipped */ } int sai__PkiCapsType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__PkiCapsType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__PkiCapsType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__PkiCapsType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__PkiCapsType(struct soap *soap, const char *tag, int id, const sai__PkiCapsType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__PkiCapsType), type); soap_out_unsignedInt(soap, "sai:CrlStoreSize", -1, &(a->sai__PkiCapsType::CrlStoreSize), ""); soap_out_unsignedInt(soap, "sai:RootCertMaxSize", -1, &(a->sai__PkiCapsType::RootCertMaxSize), ""); soap_out_unsignedInt(soap, "sai:RootCertMaxInstances", -1, &(a->sai__PkiCapsType::RootCertMaxInstances), ""); soap_out_unsignedInt(soap, "sai:FqdnSuffixMaxEntries", -1, &(a->sai__PkiCapsType::FqdnSuffixMaxEntries), ""); soap_out_unsignedInt(soap, "sai:FqdnSuffixMaxEntryLength", -1, &(a->sai__PkiCapsType::FqdnSuffixMaxEntryLength), ""); soap_out_unsignedInt(soap, "sai:CertChainMaxSize", -1, &(a->sai__PkiCapsType::CertChainMaxSize), ""); soap_out_std__vectorTemplateOfunsignedInt(soap, "sai:SupportedKeyLengths", -1, &(a->sai__PkiCapsType::SupportedKeyLengths), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__PkiCapsType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__PkiCapsType(soap, this, tag, type); } SOAP_FMAC3 sai__PkiCapsType * SOAP_FMAC4 soap_get_sai__PkiCapsType(struct soap *soap, sai__PkiCapsType *p, const char *tag, const char *type) { if ((p = soap_in_sai__PkiCapsType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__PkiCapsType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__PkiCapsType(soap, tag, this, type); } SOAP_FMAC3 sai__PkiCapsType * SOAP_FMAC4 soap_in_sai__PkiCapsType(struct soap *soap, const char *tag, sai__PkiCapsType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__PkiCapsType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__PkiCapsType, sizeof(sai__PkiCapsType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__PkiCapsType) { soap_revert(soap); *soap->id = '\0'; return (sai__PkiCapsType *)a->soap_in(soap, tag, type); } } short soap_flag_CrlStoreSize1 = 1, soap_flag_RootCertMaxSize1 = 1, soap_flag_RootCertMaxInstances1 = 1, soap_flag_FqdnSuffixMaxEntries1 = 1, soap_flag_FqdnSuffixMaxEntryLength1 = 1, soap_flag_CertChainMaxSize1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_CrlStoreSize1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:CrlStoreSize", &(a->sai__PkiCapsType::CrlStoreSize), "xsd:unsignedInt")) { soap_flag_CrlStoreSize1--; continue; } if (soap_flag_RootCertMaxSize1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:RootCertMaxSize", &(a->sai__PkiCapsType::RootCertMaxSize), "xsd:unsignedInt")) { soap_flag_RootCertMaxSize1--; continue; } if (soap_flag_RootCertMaxInstances1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:RootCertMaxInstances", &(a->sai__PkiCapsType::RootCertMaxInstances), "xsd:unsignedInt")) { soap_flag_RootCertMaxInstances1--; continue; } if (soap_flag_FqdnSuffixMaxEntries1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:FqdnSuffixMaxEntries", &(a->sai__PkiCapsType::FqdnSuffixMaxEntries), "xsd:unsignedInt")) { soap_flag_FqdnSuffixMaxEntries1--; continue; } if (soap_flag_FqdnSuffixMaxEntryLength1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:FqdnSuffixMaxEntryLength", &(a->sai__PkiCapsType::FqdnSuffixMaxEntryLength), "xsd:unsignedInt")) { soap_flag_FqdnSuffixMaxEntryLength1--; continue; } if (soap_flag_CertChainMaxSize1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:CertChainMaxSize", &(a->sai__PkiCapsType::CertChainMaxSize), "xsd:unsignedInt")) { soap_flag_CertChainMaxSize1--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfunsignedInt(soap, "sai:SupportedKeyLengths", &(a->sai__PkiCapsType::SupportedKeyLengths), "xsd:unsignedInt")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__PkiCapsType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__PkiCapsType, 0, sizeof(sai__PkiCapsType), 0, soap_copy_sai__PkiCapsType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_CrlStoreSize1 > 0 || soap_flag_RootCertMaxSize1 > 0 || soap_flag_RootCertMaxInstances1 > 0 || soap_flag_FqdnSuffixMaxEntries1 > 0 || soap_flag_FqdnSuffixMaxEntryLength1 > 0 || soap_flag_CertChainMaxSize1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__PkiCapsType * SOAP_FMAC6 soap_new_sai__PkiCapsType(struct soap *soap, int n) { return soap_instantiate_sai__PkiCapsType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__PkiCapsType(struct soap *soap, sai__PkiCapsType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__PkiCapsType * SOAP_FMAC4 soap_instantiate_sai__PkiCapsType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__PkiCapsType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__PkiCapsType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__PkiCapsType; if (size) *size = sizeof(sai__PkiCapsType); ((sai__PkiCapsType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__PkiCapsType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__PkiCapsType); for (int i = 0; i < n; i++) ((sai__PkiCapsType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__PkiCapsType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__PkiCapsType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__PkiCapsType %p -> %p\n", q, p)); *(sai__PkiCapsType*)p = *(sai__PkiCapsType*)q; } void sai__CrlType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__string(soap, &this->sai__CrlType::CrlUrl); soap_default_std__vectorTemplateOfxsd__base64Binary(soap, &this->sai__CrlType::SerialNumber); /* transient soap skipped */ } void sai__CrlType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__CrlType::CrlUrl, SOAP_TYPE_std__string); soap_serialize_std__string(soap, &this->sai__CrlType::CrlUrl); soap_serialize_std__vectorTemplateOfxsd__base64Binary(soap, &this->sai__CrlType::SerialNumber); /* transient soap skipped */ } int sai__CrlType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__CrlType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__CrlType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__CrlType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CrlType(struct soap *soap, const char *tag, int id, const sai__CrlType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__CrlType), type); soap_out_std__string(soap, "sai:CrlUrl", -1, &(a->sai__CrlType::CrlUrl), ""); soap_out_std__vectorTemplateOfxsd__base64Binary(soap, "sai:SerialNumber", -1, &(a->sai__CrlType::SerialNumber), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__CrlType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__CrlType(soap, this, tag, type); } SOAP_FMAC3 sai__CrlType * SOAP_FMAC4 soap_get_sai__CrlType(struct soap *soap, sai__CrlType *p, const char *tag, const char *type) { if ((p = soap_in_sai__CrlType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__CrlType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__CrlType(soap, tag, this, type); } SOAP_FMAC3 sai__CrlType * SOAP_FMAC4 soap_in_sai__CrlType(struct soap *soap, const char *tag, sai__CrlType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__CrlType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__CrlType, sizeof(sai__CrlType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__CrlType) { soap_revert(soap); *soap->id = '\0'; return (sai__CrlType *)a->soap_in(soap, tag, type); } } short soap_flag_CrlUrl1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_CrlUrl1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_std__string(soap, "sai:CrlUrl", &(a->sai__CrlType::CrlUrl), "xsd:string")) { soap_flag_CrlUrl1--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfxsd__base64Binary(soap, "sai:SerialNumber", &(a->sai__CrlType::SerialNumber), "xsd:base64Binary")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__CrlType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__CrlType, 0, sizeof(sai__CrlType), 0, soap_copy_sai__CrlType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_CrlUrl1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__CrlType * SOAP_FMAC6 soap_new_sai__CrlType(struct soap *soap, int n) { return soap_instantiate_sai__CrlType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__CrlType(struct soap *soap, sai__CrlType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__CrlType * SOAP_FMAC4 soap_instantiate_sai__CrlType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__CrlType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__CrlType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__CrlType; if (size) *size = sizeof(sai__CrlType); ((sai__CrlType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__CrlType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__CrlType); for (int i = 0; i < n; i++) ((sai__CrlType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__CrlType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__CrlType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__CrlType %p -> %p\n", q, p)); *(sai__CrlType*)p = *(sai__CrlType*)q; } void sai__CertificateType::soap_default(struct soap *soap) { this->soap = soap; this->sai__CertificateType::X509cert.xsd__base64Binary::soap_default(soap); /* transient soap skipped */ } void sai__CertificateType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__CertificateType::X509cert, SOAP_TYPE_xsd__base64Binary); this->sai__CertificateType::X509cert.soap_serialize(soap); /* transient soap skipped */ } int sai__CertificateType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__CertificateType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__CertificateType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__CertificateType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CertificateType(struct soap *soap, const char *tag, int id, const sai__CertificateType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__CertificateType), type); (a->sai__CertificateType::X509cert).soap_out(soap, "sai:X509cert", -1, ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__CertificateType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__CertificateType(soap, this, tag, type); } SOAP_FMAC3 sai__CertificateType * SOAP_FMAC4 soap_get_sai__CertificateType(struct soap *soap, sai__CertificateType *p, const char *tag, const char *type) { if ((p = soap_in_sai__CertificateType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__CertificateType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__CertificateType(soap, tag, this, type); } SOAP_FMAC3 sai__CertificateType * SOAP_FMAC4 soap_in_sai__CertificateType(struct soap *soap, const char *tag, sai__CertificateType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__CertificateType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__CertificateType, sizeof(sai__CertificateType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__CertificateType) { soap_revert(soap); *soap->id = '\0'; return (sai__CertificateType *)a->soap_in(soap, tag, type); } } short soap_flag_X509cert1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_X509cert1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__CertificateType::X509cert).soap_in(soap, "sai:X509cert", "xsd:base64Binary")) { soap_flag_X509cert1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__CertificateType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__CertificateType, 0, sizeof(sai__CertificateType), 0, soap_copy_sai__CertificateType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_X509cert1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__CertificateType * SOAP_FMAC6 soap_new_sai__CertificateType(struct soap *soap, int n) { return soap_instantiate_sai__CertificateType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__CertificateType(struct soap *soap, sai__CertificateType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__CertificateType * SOAP_FMAC4 soap_instantiate_sai__CertificateType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__CertificateType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__CertificateType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__CertificateType; if (size) *size = sizeof(sai__CertificateType); ((sai__CertificateType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__CertificateType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__CertificateType); for (int i = 0; i < n; i++) ((sai__CertificateType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__CertificateType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__CertificateType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__CertificateType %p -> %p\n", q, p)); *(sai__CertificateType*)p = *(sai__CertificateType*)q; } void sai__TlsOptionsType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__InterfaceType(soap, &this->sai__TlsOptionsType::Interface); soap_default_sai__TlsAthenticationType(soap, &this->sai__TlsOptionsType::TlsAuthentication); /* transient soap skipped */ } void sai__TlsOptionsType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int sai__TlsOptionsType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__TlsOptionsType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__TlsOptionsType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__TlsOptionsType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__TlsOptionsType(struct soap *soap, const char *tag, int id, const sai__TlsOptionsType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__TlsOptionsType), type); soap_out_sai__InterfaceType(soap, "sai:Interface", -1, &(a->sai__TlsOptionsType::Interface), ""); soap_out_sai__TlsAthenticationType(soap, "sai:TlsAuthentication", -1, &(a->sai__TlsOptionsType::TlsAuthentication), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__TlsOptionsType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__TlsOptionsType(soap, this, tag, type); } SOAP_FMAC3 sai__TlsOptionsType * SOAP_FMAC4 soap_get_sai__TlsOptionsType(struct soap *soap, sai__TlsOptionsType *p, const char *tag, const char *type) { if ((p = soap_in_sai__TlsOptionsType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__TlsOptionsType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__TlsOptionsType(soap, tag, this, type); } SOAP_FMAC3 sai__TlsOptionsType * SOAP_FMAC4 soap_in_sai__TlsOptionsType(struct soap *soap, const char *tag, sai__TlsOptionsType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__TlsOptionsType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__TlsOptionsType, sizeof(sai__TlsOptionsType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__TlsOptionsType) { soap_revert(soap); *soap->id = '\0'; return (sai__TlsOptionsType *)a->soap_in(soap, tag, type); } } short soap_flag_Interface1 = 1, soap_flag_TlsAuthentication1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Interface1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__InterfaceType(soap, "sai:Interface", &(a->sai__TlsOptionsType::Interface), "sai:InterfaceType")) { soap_flag_Interface1--; continue; } if (soap_flag_TlsAuthentication1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__TlsAthenticationType(soap, "sai:TlsAuthentication", &(a->sai__TlsOptionsType::TlsAuthentication), "sai:TlsAthenticationType")) { soap_flag_TlsAuthentication1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__TlsOptionsType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__TlsOptionsType, 0, sizeof(sai__TlsOptionsType), 0, soap_copy_sai__TlsOptionsType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Interface1 > 0 || soap_flag_TlsAuthentication1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__TlsOptionsType * SOAP_FMAC6 soap_new_sai__TlsOptionsType(struct soap *soap, int n) { return soap_instantiate_sai__TlsOptionsType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__TlsOptionsType(struct soap *soap, sai__TlsOptionsType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__TlsOptionsType * SOAP_FMAC4 soap_instantiate_sai__TlsOptionsType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__TlsOptionsType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__TlsOptionsType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__TlsOptionsType; if (size) *size = sizeof(sai__TlsOptionsType); ((sai__TlsOptionsType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__TlsOptionsType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__TlsOptionsType); for (int i = 0; i < n; i++) ((sai__TlsOptionsType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__TlsOptionsType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__TlsOptionsType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__TlsOptionsType %p -> %p\n", q, p)); *(sai__TlsOptionsType*)p = *(sai__TlsOptionsType*)q; } void sai__KerberosOptionsType::soap_default(struct soap *soap) { this->soap = soap; soap_default__sai__KerberosRealmName(soap, &this->sai__KerberosOptionsType::KerberosRealmName); soap_default_std__vectorTemplateOfPointerTosai__KerberosSpnType(soap, &this->sai__KerberosOptionsType::KerberosSpn); soap_default_unsignedInt(soap, &this->sai__KerberosOptionsType::KerberosKeyVersion); soap_default_sai__KerberosEncryptionType(soap, &this->sai__KerberosOptionsType::KerberosEncryption); this->sai__KerberosOptionsType::KerberosMasterKey.xsd__base64Binary::soap_default(soap); soap_default_unsignedInt(soap, &this->sai__KerberosOptionsType::KerberosMaximumClockTolerance); /* transient soap skipped */ } void sai__KerberosOptionsType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize__sai__KerberosRealmName(soap, &this->sai__KerberosOptionsType::KerberosRealmName); soap_serialize_std__vectorTemplateOfPointerTosai__KerberosSpnType(soap, &this->sai__KerberosOptionsType::KerberosSpn); soap_embedded(soap, &this->sai__KerberosOptionsType::KerberosKeyVersion, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__KerberosOptionsType::KerberosMasterKey, SOAP_TYPE_xsd__base64Binary); this->sai__KerberosOptionsType::KerberosMasterKey.soap_serialize(soap); soap_embedded(soap, &this->sai__KerberosOptionsType::KerberosMaximumClockTolerance, SOAP_TYPE_unsignedInt); /* transient soap skipped */ } int sai__KerberosOptionsType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__KerberosOptionsType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__KerberosOptionsType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__KerberosOptionsType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__KerberosOptionsType(struct soap *soap, const char *tag, int id, const sai__KerberosOptionsType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__KerberosOptionsType), type); soap_out__sai__KerberosRealmName(soap, "sai:KerberosRealmName", -1, &(a->sai__KerberosOptionsType::KerberosRealmName), ""); soap_out_std__vectorTemplateOfPointerTosai__KerberosSpnType(soap, "sai:KerberosSpn", -1, &(a->sai__KerberosOptionsType::KerberosSpn), ""); soap_out_unsignedInt(soap, "sai:KerberosKeyVersion", -1, &(a->sai__KerberosOptionsType::KerberosKeyVersion), ""); soap_out_sai__KerberosEncryptionType(soap, "sai:KerberosEncryption", -1, &(a->sai__KerberosOptionsType::KerberosEncryption), ""); (a->sai__KerberosOptionsType::KerberosMasterKey).soap_out(soap, "sai:KerberosMasterKey", -1, ""); soap_out_unsignedInt(soap, "sai:KerberosMaximumClockTolerance", -1, &(a->sai__KerberosOptionsType::KerberosMaximumClockTolerance), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__KerberosOptionsType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__KerberosOptionsType(soap, this, tag, type); } SOAP_FMAC3 sai__KerberosOptionsType * SOAP_FMAC4 soap_get_sai__KerberosOptionsType(struct soap *soap, sai__KerberosOptionsType *p, const char *tag, const char *type) { if ((p = soap_in_sai__KerberosOptionsType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__KerberosOptionsType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__KerberosOptionsType(soap, tag, this, type); } SOAP_FMAC3 sai__KerberosOptionsType * SOAP_FMAC4 soap_in_sai__KerberosOptionsType(struct soap *soap, const char *tag, sai__KerberosOptionsType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__KerberosOptionsType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__KerberosOptionsType, sizeof(sai__KerberosOptionsType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__KerberosOptionsType) { soap_revert(soap); *soap->id = '\0'; return (sai__KerberosOptionsType *)a->soap_in(soap, tag, type); } } short soap_flag_KerberosRealmName1 = 1, soap_flag_KerberosKeyVersion1 = 1, soap_flag_KerberosEncryption1 = 1, soap_flag_KerberosMasterKey1 = 1, soap_flag_KerberosMaximumClockTolerance1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_KerberosRealmName1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in__sai__KerberosRealmName(soap, "sai:KerberosRealmName", &(a->sai__KerberosOptionsType::KerberosRealmName), "")) { soap_flag_KerberosRealmName1--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfPointerTosai__KerberosSpnType(soap, "sai:KerberosSpn", &(a->sai__KerberosOptionsType::KerberosSpn), "sai:KerberosSpnType")) continue; if (soap_flag_KerberosKeyVersion1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:KerberosKeyVersion", &(a->sai__KerberosOptionsType::KerberosKeyVersion), "xsd:unsignedInt")) { soap_flag_KerberosKeyVersion1--; continue; } if (soap_flag_KerberosEncryption1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__KerberosEncryptionType(soap, "sai:KerberosEncryption", &(a->sai__KerberosOptionsType::KerberosEncryption), "sai:KerberosEncryptionType")) { soap_flag_KerberosEncryption1--; continue; } if (soap_flag_KerberosMasterKey1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__KerberosOptionsType::KerberosMasterKey).soap_in(soap, "sai:KerberosMasterKey", "xsd:base64Binary")) { soap_flag_KerberosMasterKey1--; continue; } if (soap_flag_KerberosMaximumClockTolerance1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:KerberosMaximumClockTolerance", &(a->sai__KerberosOptionsType::KerberosMaximumClockTolerance), "xsd:unsignedInt")) { soap_flag_KerberosMaximumClockTolerance1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__KerberosOptionsType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__KerberosOptionsType, 0, sizeof(sai__KerberosOptionsType), 0, soap_copy_sai__KerberosOptionsType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_KerberosRealmName1 > 0 || a->sai__KerberosOptionsType::KerberosSpn.size() > 4 || soap_flag_KerberosKeyVersion1 > 0 || soap_flag_KerberosEncryption1 > 0 || soap_flag_KerberosMasterKey1 > 0 || soap_flag_KerberosMaximumClockTolerance1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__KerberosOptionsType * SOAP_FMAC6 soap_new_sai__KerberosOptionsType(struct soap *soap, int n) { return soap_instantiate_sai__KerberosOptionsType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__KerberosOptionsType(struct soap *soap, sai__KerberosOptionsType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__KerberosOptionsType * SOAP_FMAC4 soap_instantiate_sai__KerberosOptionsType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__KerberosOptionsType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__KerberosOptionsType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__KerberosOptionsType; if (size) *size = sizeof(sai__KerberosOptionsType); ((sai__KerberosOptionsType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__KerberosOptionsType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__KerberosOptionsType); for (int i = 0; i < n; i++) ((sai__KerberosOptionsType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__KerberosOptionsType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__KerberosOptionsType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__KerberosOptionsType %p -> %p\n", q, p)); *(sai__KerberosOptionsType*)p = *(sai__KerberosOptionsType*)q; } void sai__KerberosSpnType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__KerberosSpnProtocolType(soap, &this->sai__KerberosSpnType::SpnProtocolIndex); soap_default__sai__SpnString(soap, &this->sai__KerberosSpnType::SpnString); /* transient soap skipped */ } void sai__KerberosSpnType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize__sai__SpnString(soap, &this->sai__KerberosSpnType::SpnString); /* transient soap skipped */ } int sai__KerberosSpnType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__KerberosSpnType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__KerberosSpnType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__KerberosSpnType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__KerberosSpnType(struct soap *soap, const char *tag, int id, const sai__KerberosSpnType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__KerberosSpnType), type); soap_out_sai__KerberosSpnProtocolType(soap, "sai:SpnProtocolIndex", -1, &(a->sai__KerberosSpnType::SpnProtocolIndex), ""); soap_out__sai__SpnString(soap, "sai:SpnString", -1, &(a->sai__KerberosSpnType::SpnString), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__KerberosSpnType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__KerberosSpnType(soap, this, tag, type); } SOAP_FMAC3 sai__KerberosSpnType * SOAP_FMAC4 soap_get_sai__KerberosSpnType(struct soap *soap, sai__KerberosSpnType *p, const char *tag, const char *type) { if ((p = soap_in_sai__KerberosSpnType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__KerberosSpnType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__KerberosSpnType(soap, tag, this, type); } SOAP_FMAC3 sai__KerberosSpnType * SOAP_FMAC4 soap_in_sai__KerberosSpnType(struct soap *soap, const char *tag, sai__KerberosSpnType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__KerberosSpnType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__KerberosSpnType, sizeof(sai__KerberosSpnType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__KerberosSpnType) { soap_revert(soap); *soap->id = '\0'; return (sai__KerberosSpnType *)a->soap_in(soap, tag, type); } } short soap_flag_SpnProtocolIndex1 = 1, soap_flag_SpnString1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_SpnProtocolIndex1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__KerberosSpnProtocolType(soap, "sai:SpnProtocolIndex", &(a->sai__KerberosSpnType::SpnProtocolIndex), "sai:KerberosSpnProtocolType")) { soap_flag_SpnProtocolIndex1--; continue; } if (soap_flag_SpnString1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in__sai__SpnString(soap, "sai:SpnString", &(a->sai__KerberosSpnType::SpnString), "")) { soap_flag_SpnString1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__KerberosSpnType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__KerberosSpnType, 0, sizeof(sai__KerberosSpnType), 0, soap_copy_sai__KerberosSpnType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_SpnProtocolIndex1 > 0 || soap_flag_SpnString1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__KerberosSpnType * SOAP_FMAC6 soap_new_sai__KerberosSpnType(struct soap *soap, int n) { return soap_instantiate_sai__KerberosSpnType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__KerberosSpnType(struct soap *soap, sai__KerberosSpnType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__KerberosSpnType * SOAP_FMAC4 soap_instantiate_sai__KerberosSpnType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__KerberosSpnType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__KerberosSpnType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__KerberosSpnType; if (size) *size = sizeof(sai__KerberosSpnType); ((sai__KerberosSpnType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__KerberosSpnType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__KerberosSpnType); for (int i = 0; i < n; i++) ((sai__KerberosSpnType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__KerberosSpnType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__KerberosSpnType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__KerberosSpnType %p -> %p\n", q, p)); *(sai__KerberosSpnType*)p = *(sai__KerberosSpnType*)q; } void sai__AdminAclEntryExType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__AclStringType(soap, &this->sai__AdminAclEntryExType::Username); this->sai__AdminAclEntryExType::DigestPassword.xsd__base64Binary::soap_default(soap); /* transient soap skipped */ } void sai__AdminAclEntryExType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_sai__AclStringType(soap, &this->sai__AdminAclEntryExType::Username); soap_embedded(soap, &this->sai__AdminAclEntryExType::DigestPassword, SOAP_TYPE_xsd__base64Binary); this->sai__AdminAclEntryExType::DigestPassword.soap_serialize(soap); /* transient soap skipped */ } int sai__AdminAclEntryExType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__AdminAclEntryExType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__AdminAclEntryExType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__AdminAclEntryExType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AdminAclEntryExType(struct soap *soap, const char *tag, int id, const sai__AdminAclEntryExType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__AdminAclEntryExType), type); soap_out_sai__AclStringType(soap, "sai:Username", -1, &(a->sai__AdminAclEntryExType::Username), ""); (a->sai__AdminAclEntryExType::DigestPassword).soap_out(soap, "sai:DigestPassword", -1, ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__AdminAclEntryExType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__AdminAclEntryExType(soap, this, tag, type); } SOAP_FMAC3 sai__AdminAclEntryExType * SOAP_FMAC4 soap_get_sai__AdminAclEntryExType(struct soap *soap, sai__AdminAclEntryExType *p, const char *tag, const char *type) { if ((p = soap_in_sai__AdminAclEntryExType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__AdminAclEntryExType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__AdminAclEntryExType(soap, tag, this, type); } SOAP_FMAC3 sai__AdminAclEntryExType * SOAP_FMAC4 soap_in_sai__AdminAclEntryExType(struct soap *soap, const char *tag, sai__AdminAclEntryExType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__AdminAclEntryExType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__AdminAclEntryExType, sizeof(sai__AdminAclEntryExType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__AdminAclEntryExType) { soap_revert(soap); *soap->id = '\0'; return (sai__AdminAclEntryExType *)a->soap_in(soap, tag, type); } } short soap_flag_Username1 = 1, soap_flag_DigestPassword1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Username1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_sai__AclStringType(soap, "sai:Username", &(a->sai__AdminAclEntryExType::Username), "sai:AclStringType")) { soap_flag_Username1--; continue; } if (soap_flag_DigestPassword1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__AdminAclEntryExType::DigestPassword).soap_in(soap, "sai:DigestPassword", "xsd:base64Binary")) { soap_flag_DigestPassword1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__AdminAclEntryExType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__AdminAclEntryExType, 0, sizeof(sai__AdminAclEntryExType), 0, soap_copy_sai__AdminAclEntryExType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Username1 > 0 || soap_flag_DigestPassword1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__AdminAclEntryExType * SOAP_FMAC6 soap_new_sai__AdminAclEntryExType(struct soap *soap, int n) { return soap_instantiate_sai__AdminAclEntryExType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AdminAclEntryExType(struct soap *soap, sai__AdminAclEntryExType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__AdminAclEntryExType * SOAP_FMAC4 soap_instantiate_sai__AdminAclEntryExType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__AdminAclEntryExType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__AdminAclEntryExType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__AdminAclEntryExType; if (size) *size = sizeof(sai__AdminAclEntryExType); ((sai__AdminAclEntryExType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__AdminAclEntryExType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__AdminAclEntryExType); for (int i = 0; i < n; i++) ((sai__AdminAclEntryExType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__AdminAclEntryExType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AdminAclEntryExType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__AdminAclEntryExType %p -> %p\n", q, p)); *(sai__AdminAclEntryExType*)p = *(sai__AdminAclEntryExType*)q; } void sai__UserAclEntryExType::soap_default(struct soap *soap) { this->soap = soap; this->sai__UserAclEntryExType::__union_UserAclEntryExType = 0; soap_default_sai__AccessPermissionType(soap, &this->sai__UserAclEntryExType::AccessPermission); this->sai__UserAclEntryExType::Realms = NULL; /* transient soap skipped */ } void sai__UserAclEntryExType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize__sai__union_UserAclEntryExType(soap, this->sai__UserAclEntryExType::__union_UserAclEntryExType, &this->sai__UserAclEntryExType::union_UserAclEntryExType); soap_serialize_PointerTosai__UserAclRealmListType(soap, &this->sai__UserAclEntryExType::Realms); /* transient soap skipped */ } int sai__UserAclEntryExType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__UserAclEntryExType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__UserAclEntryExType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__UserAclEntryExType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclEntryExType(struct soap *soap, const char *tag, int id, const sai__UserAclEntryExType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__UserAclEntryExType), type); soap_out__sai__union_UserAclEntryExType(soap, a->sai__UserAclEntryExType::__union_UserAclEntryExType, &a->sai__UserAclEntryExType::union_UserAclEntryExType); soap_out_sai__AccessPermissionType(soap, "sai:AccessPermission", -1, &(a->sai__UserAclEntryExType::AccessPermission), ""); soap_out_PointerTosai__UserAclRealmListType(soap, "sai:Realms", -1, &(a->sai__UserAclEntryExType::Realms), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__UserAclEntryExType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__UserAclEntryExType(soap, this, tag, type); } SOAP_FMAC3 sai__UserAclEntryExType * SOAP_FMAC4 soap_get_sai__UserAclEntryExType(struct soap *soap, sai__UserAclEntryExType *p, const char *tag, const char *type) { if ((p = soap_in_sai__UserAclEntryExType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__UserAclEntryExType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__UserAclEntryExType(soap, tag, this, type); } SOAP_FMAC3 sai__UserAclEntryExType * SOAP_FMAC4 soap_in_sai__UserAclEntryExType(struct soap *soap, const char *tag, sai__UserAclEntryExType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__UserAclEntryExType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__UserAclEntryExType, sizeof(sai__UserAclEntryExType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__UserAclEntryExType) { soap_revert(soap); *soap->id = '\0'; return (sai__UserAclEntryExType *)a->soap_in(soap, tag, type); } } short soap_flag_union_UserAclEntryExType1 = 1, soap_flag_AccessPermission1 = 1, soap_flag_Realms1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_union_UserAclEntryExType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in__sai__union_UserAclEntryExType(soap, &a->sai__UserAclEntryExType::__union_UserAclEntryExType, &a->sai__UserAclEntryExType::union_UserAclEntryExType)) { soap_flag_union_UserAclEntryExType1 = 0; continue; } if (soap_flag_AccessPermission1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__AccessPermissionType(soap, "sai:AccessPermission", &(a->sai__UserAclEntryExType::AccessPermission), "sai:AccessPermissionType")) { soap_flag_AccessPermission1--; continue; } if (soap_flag_Realms1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTosai__UserAclRealmListType(soap, "sai:Realms", &(a->sai__UserAclEntryExType::Realms), "sai:UserAclRealmListType")) { soap_flag_Realms1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__UserAclEntryExType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__UserAclEntryExType, 0, sizeof(sai__UserAclEntryExType), 0, soap_copy_sai__UserAclEntryExType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_union_UserAclEntryExType1 || soap_flag_AccessPermission1 > 0 || soap_flag_Realms1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__UserAclEntryExType * SOAP_FMAC6 soap_new_sai__UserAclEntryExType(struct soap *soap, int n) { return soap_instantiate_sai__UserAclEntryExType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserAclEntryExType(struct soap *soap, sai__UserAclEntryExType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__UserAclEntryExType * SOAP_FMAC4 soap_instantiate_sai__UserAclEntryExType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__UserAclEntryExType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__UserAclEntryExType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__UserAclEntryExType; if (size) *size = sizeof(sai__UserAclEntryExType); ((sai__UserAclEntryExType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__UserAclEntryExType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__UserAclEntryExType); for (int i = 0; i < n; i++) ((sai__UserAclEntryExType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__UserAclEntryExType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserAclEntryExType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__UserAclEntryExType %p -> %p\n", q, p)); *(sai__UserAclEntryExType*)p = *(sai__UserAclEntryExType*)q; } void sai__UserEntryKerberosType::soap_default(struct soap *soap) { this->soap = soap; this->sai__UserEntryKerberosType::Sid.xsd__base64Binary::soap_default(soap); /* transient soap skipped */ } void sai__UserEntryKerberosType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__UserEntryKerberosType::Sid, SOAP_TYPE_xsd__base64Binary); this->sai__UserEntryKerberosType::Sid.soap_serialize(soap); /* transient soap skipped */ } int sai__UserEntryKerberosType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__UserEntryKerberosType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__UserEntryKerberosType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__UserEntryKerberosType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserEntryKerberosType(struct soap *soap, const char *tag, int id, const sai__UserEntryKerberosType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__UserEntryKerberosType), type); (a->sai__UserEntryKerberosType::Sid).soap_out(soap, "sai:Sid", -1, ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__UserEntryKerberosType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__UserEntryKerberosType(soap, this, tag, type); } SOAP_FMAC3 sai__UserEntryKerberosType * SOAP_FMAC4 soap_get_sai__UserEntryKerberosType(struct soap *soap, sai__UserEntryKerberosType *p, const char *tag, const char *type) { if ((p = soap_in_sai__UserEntryKerberosType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__UserEntryKerberosType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__UserEntryKerberosType(soap, tag, this, type); } SOAP_FMAC3 sai__UserEntryKerberosType * SOAP_FMAC4 soap_in_sai__UserEntryKerberosType(struct soap *soap, const char *tag, sai__UserEntryKerberosType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__UserEntryKerberosType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__UserEntryKerberosType, sizeof(sai__UserEntryKerberosType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__UserEntryKerberosType) { soap_revert(soap); *soap->id = '\0'; return (sai__UserEntryKerberosType *)a->soap_in(soap, tag, type); } } short soap_flag_Sid1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Sid1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__UserEntryKerberosType::Sid).soap_in(soap, "sai:Sid", "xsd:base64Binary")) { soap_flag_Sid1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__UserEntryKerberosType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__UserEntryKerberosType, 0, sizeof(sai__UserEntryKerberosType), 0, soap_copy_sai__UserEntryKerberosType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Sid1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__UserEntryKerberosType * SOAP_FMAC6 soap_new_sai__UserEntryKerberosType(struct soap *soap, int n) { return soap_instantiate_sai__UserEntryKerberosType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserEntryKerberosType(struct soap *soap, sai__UserEntryKerberosType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__UserEntryKerberosType * SOAP_FMAC4 soap_instantiate_sai__UserEntryKerberosType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__UserEntryKerberosType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__UserEntryKerberosType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__UserEntryKerberosType; if (size) *size = sizeof(sai__UserEntryKerberosType); ((sai__UserEntryKerberosType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__UserEntryKerberosType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__UserEntryKerberosType); for (int i = 0; i < n; i++) ((sai__UserEntryKerberosType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__UserEntryKerberosType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserEntryKerberosType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__UserEntryKerberosType %p -> %p\n", q, p)); *(sai__UserEntryKerberosType*)p = *(sai__UserEntryKerberosType*)q; } void sai__UserEntryDigestType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__AclStringType(soap, &this->sai__UserEntryDigestType::Username); this->sai__UserEntryDigestType::DigestPassword.xsd__base64Binary::soap_default(soap); /* transient soap skipped */ } void sai__UserEntryDigestType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_sai__AclStringType(soap, &this->sai__UserEntryDigestType::Username); soap_embedded(soap, &this->sai__UserEntryDigestType::DigestPassword, SOAP_TYPE_xsd__base64Binary); this->sai__UserEntryDigestType::DigestPassword.soap_serialize(soap); /* transient soap skipped */ } int sai__UserEntryDigestType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__UserEntryDigestType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__UserEntryDigestType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__UserEntryDigestType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserEntryDigestType(struct soap *soap, const char *tag, int id, const sai__UserEntryDigestType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__UserEntryDigestType), type); soap_out_sai__AclStringType(soap, "sai:Username", -1, &(a->sai__UserEntryDigestType::Username), ""); (a->sai__UserEntryDigestType::DigestPassword).soap_out(soap, "sai:DigestPassword", -1, ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__UserEntryDigestType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__UserEntryDigestType(soap, this, tag, type); } SOAP_FMAC3 sai__UserEntryDigestType * SOAP_FMAC4 soap_get_sai__UserEntryDigestType(struct soap *soap, sai__UserEntryDigestType *p, const char *tag, const char *type) { if ((p = soap_in_sai__UserEntryDigestType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__UserEntryDigestType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__UserEntryDigestType(soap, tag, this, type); } SOAP_FMAC3 sai__UserEntryDigestType * SOAP_FMAC4 soap_in_sai__UserEntryDigestType(struct soap *soap, const char *tag, sai__UserEntryDigestType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__UserEntryDigestType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__UserEntryDigestType, sizeof(sai__UserEntryDigestType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__UserEntryDigestType) { soap_revert(soap); *soap->id = '\0'; return (sai__UserEntryDigestType *)a->soap_in(soap, tag, type); } } short soap_flag_Username1 = 1, soap_flag_DigestPassword1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Username1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_sai__AclStringType(soap, "sai:Username", &(a->sai__UserEntryDigestType::Username), "sai:AclStringType")) { soap_flag_Username1--; continue; } if (soap_flag_DigestPassword1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__UserEntryDigestType::DigestPassword).soap_in(soap, "sai:DigestPassword", "xsd:base64Binary")) { soap_flag_DigestPassword1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__UserEntryDigestType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__UserEntryDigestType, 0, sizeof(sai__UserEntryDigestType), 0, soap_copy_sai__UserEntryDigestType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Username1 > 0 || soap_flag_DigestPassword1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__UserEntryDigestType * SOAP_FMAC6 soap_new_sai__UserEntryDigestType(struct soap *soap, int n) { return soap_instantiate_sai__UserEntryDigestType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserEntryDigestType(struct soap *soap, sai__UserEntryDigestType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__UserEntryDigestType * SOAP_FMAC4 soap_instantiate_sai__UserEntryDigestType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__UserEntryDigestType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__UserEntryDigestType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__UserEntryDigestType; if (size) *size = sizeof(sai__UserEntryDigestType); ((sai__UserEntryDigestType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__UserEntryDigestType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__UserEntryDigestType); for (int i = 0; i < n; i++) ((sai__UserEntryDigestType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__UserEntryDigestType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserEntryDigestType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__UserEntryDigestType %p -> %p\n", q, p)); *(sai__UserEntryDigestType*)p = *(sai__UserEntryDigestType*)q; } void sai__AmtVersion::soap_default(struct soap *soap) { this->soap = soap; soap_default_unsignedByte(soap, &this->sai__AmtVersion::major); soap_default_unsignedByte(soap, &this->sai__AmtVersion::minor); soap_default_unsignedShort(soap, &this->sai__AmtVersion::micro); /* transient soap skipped */ } void sai__AmtVersion::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__AmtVersion::major, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->sai__AmtVersion::minor, SOAP_TYPE_unsignedByte); /* transient soap skipped */ } int sai__AmtVersion::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__AmtVersion); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__AmtVersion::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__AmtVersion(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AmtVersion(struct soap *soap, const char *tag, int id, const sai__AmtVersion *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__AmtVersion), type); soap_out_unsignedByte(soap, "sai:major", -1, &(a->sai__AmtVersion::major), ""); soap_out_unsignedByte(soap, "sai:minor", -1, &(a->sai__AmtVersion::minor), ""); soap_out_unsignedShort(soap, "sai:micro", -1, &(a->sai__AmtVersion::micro), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__AmtVersion::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__AmtVersion(soap, this, tag, type); } SOAP_FMAC3 sai__AmtVersion * SOAP_FMAC4 soap_get_sai__AmtVersion(struct soap *soap, sai__AmtVersion *p, const char *tag, const char *type) { if ((p = soap_in_sai__AmtVersion(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__AmtVersion::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__AmtVersion(soap, tag, this, type); } SOAP_FMAC3 sai__AmtVersion * SOAP_FMAC4 soap_in_sai__AmtVersion(struct soap *soap, const char *tag, sai__AmtVersion *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__AmtVersion *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__AmtVersion, sizeof(sai__AmtVersion), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__AmtVersion) { soap_revert(soap); *soap->id = '\0'; return (sai__AmtVersion *)a->soap_in(soap, tag, type); } } short soap_flag_major1 = 1, soap_flag_minor1 = 1, soap_flag_micro1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_major1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "sai:major", &(a->sai__AmtVersion::major), "xsd:unsignedByte")) { soap_flag_major1--; continue; } if (soap_flag_minor1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "sai:minor", &(a->sai__AmtVersion::minor), "xsd:unsignedByte")) { soap_flag_minor1--; continue; } if (soap_flag_micro1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedShort(soap, "sai:micro", &(a->sai__AmtVersion::micro), "xsd:unsignedShort")) { soap_flag_micro1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__AmtVersion *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__AmtVersion, 0, sizeof(sai__AmtVersion), 0, soap_copy_sai__AmtVersion); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_major1 > 0 || soap_flag_minor1 > 0 || soap_flag_micro1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__AmtVersion * SOAP_FMAC6 soap_new_sai__AmtVersion(struct soap *soap, int n) { return soap_instantiate_sai__AmtVersion(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AmtVersion(struct soap *soap, sai__AmtVersion *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__AmtVersion * SOAP_FMAC4 soap_instantiate_sai__AmtVersion(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__AmtVersion(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__AmtVersion, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__AmtVersion; if (size) *size = sizeof(sai__AmtVersion); ((sai__AmtVersion*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__AmtVersion[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__AmtVersion); for (int i = 0; i < n; i++) ((sai__AmtVersion*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__AmtVersion*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AmtVersion(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__AmtVersion %p -> %p\n", q, p)); *(sai__AmtVersion*)p = *(sai__AmtVersion*)q; } void sai__UpdateCoreUrlKeyType::soap_default(struct soap *soap) { this->soap = soap; soap_default_unsignedInt(soap, &this->sai__UpdateCoreUrlKeyType::KeyLength); soap_default_unsignedInt(soap, &this->sai__UpdateCoreUrlKeyType::KeyAlgorithm); this->sai__UpdateCoreUrlKeyType::KeyData.xsd__base64Binary::soap_default(soap); /* transient soap skipped */ } void sai__UpdateCoreUrlKeyType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__UpdateCoreUrlKeyType::KeyLength, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__UpdateCoreUrlKeyType::KeyAlgorithm, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__UpdateCoreUrlKeyType::KeyData, SOAP_TYPE_xsd__base64Binary); this->sai__UpdateCoreUrlKeyType::KeyData.soap_serialize(soap); /* transient soap skipped */ } int sai__UpdateCoreUrlKeyType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__UpdateCoreUrlKeyType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__UpdateCoreUrlKeyType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__UpdateCoreUrlKeyType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UpdateCoreUrlKeyType(struct soap *soap, const char *tag, int id, const sai__UpdateCoreUrlKeyType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__UpdateCoreUrlKeyType), type); soap_out_unsignedInt(soap, "sai:KeyLength", -1, &(a->sai__UpdateCoreUrlKeyType::KeyLength), ""); soap_out_unsignedInt(soap, "sai:KeyAlgorithm", -1, &(a->sai__UpdateCoreUrlKeyType::KeyAlgorithm), ""); (a->sai__UpdateCoreUrlKeyType::KeyData).soap_out(soap, "sai:KeyData", -1, ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__UpdateCoreUrlKeyType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__UpdateCoreUrlKeyType(soap, this, tag, type); } SOAP_FMAC3 sai__UpdateCoreUrlKeyType * SOAP_FMAC4 soap_get_sai__UpdateCoreUrlKeyType(struct soap *soap, sai__UpdateCoreUrlKeyType *p, const char *tag, const char *type) { if ((p = soap_in_sai__UpdateCoreUrlKeyType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__UpdateCoreUrlKeyType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__UpdateCoreUrlKeyType(soap, tag, this, type); } SOAP_FMAC3 sai__UpdateCoreUrlKeyType * SOAP_FMAC4 soap_in_sai__UpdateCoreUrlKeyType(struct soap *soap, const char *tag, sai__UpdateCoreUrlKeyType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__UpdateCoreUrlKeyType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__UpdateCoreUrlKeyType, sizeof(sai__UpdateCoreUrlKeyType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__UpdateCoreUrlKeyType) { soap_revert(soap); *soap->id = '\0'; return (sai__UpdateCoreUrlKeyType *)a->soap_in(soap, tag, type); } } short soap_flag_KeyLength1 = 1, soap_flag_KeyAlgorithm1 = 1, soap_flag_KeyData1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_KeyLength1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:KeyLength", &(a->sai__UpdateCoreUrlKeyType::KeyLength), "xsd:unsignedInt")) { soap_flag_KeyLength1--; continue; } if (soap_flag_KeyAlgorithm1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:KeyAlgorithm", &(a->sai__UpdateCoreUrlKeyType::KeyAlgorithm), "xsd:unsignedInt")) { soap_flag_KeyAlgorithm1--; continue; } if (soap_flag_KeyData1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__UpdateCoreUrlKeyType::KeyData).soap_in(soap, "sai:KeyData", "xsd:base64Binary")) { soap_flag_KeyData1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__UpdateCoreUrlKeyType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__UpdateCoreUrlKeyType, 0, sizeof(sai__UpdateCoreUrlKeyType), 0, soap_copy_sai__UpdateCoreUrlKeyType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_KeyLength1 > 0 || soap_flag_KeyAlgorithm1 > 0 || soap_flag_KeyData1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__UpdateCoreUrlKeyType * SOAP_FMAC6 soap_new_sai__UpdateCoreUrlKeyType(struct soap *soap, int n) { return soap_instantiate_sai__UpdateCoreUrlKeyType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UpdateCoreUrlKeyType(struct soap *soap, sai__UpdateCoreUrlKeyType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__UpdateCoreUrlKeyType * SOAP_FMAC4 soap_instantiate_sai__UpdateCoreUrlKeyType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__UpdateCoreUrlKeyType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__UpdateCoreUrlKeyType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__UpdateCoreUrlKeyType; if (size) *size = sizeof(sai__UpdateCoreUrlKeyType); ((sai__UpdateCoreUrlKeyType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__UpdateCoreUrlKeyType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__UpdateCoreUrlKeyType); for (int i = 0; i < n; i++) ((sai__UpdateCoreUrlKeyType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__UpdateCoreUrlKeyType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UpdateCoreUrlKeyType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__UpdateCoreUrlKeyType %p -> %p\n", q, p)); *(sai__UpdateCoreUrlKeyType*)p = *(sai__UpdateCoreUrlKeyType*)q; } void sai__CertificateChainType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__RsaCertificateEncodingType(soap, &this->sai__CertificateChainType::Encoding); soap_default_unsignedInt(soap, &this->sai__CertificateChainType::Length); this->sai__CertificateChainType::Value.xsd__base64Binary::soap_default(soap); /* transient soap skipped */ } void sai__CertificateChainType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__CertificateChainType::Length, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__CertificateChainType::Value, SOAP_TYPE_xsd__base64Binary); this->sai__CertificateChainType::Value.soap_serialize(soap); /* transient soap skipped */ } int sai__CertificateChainType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__CertificateChainType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__CertificateChainType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__CertificateChainType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CertificateChainType(struct soap *soap, const char *tag, int id, const sai__CertificateChainType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__CertificateChainType), type); soap_out_sai__RsaCertificateEncodingType(soap, "sai:Encoding", -1, &(a->sai__CertificateChainType::Encoding), ""); soap_out_unsignedInt(soap, "sai:Length", -1, &(a->sai__CertificateChainType::Length), ""); (a->sai__CertificateChainType::Value).soap_out(soap, "sai:Value", -1, ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__CertificateChainType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__CertificateChainType(soap, this, tag, type); } SOAP_FMAC3 sai__CertificateChainType * SOAP_FMAC4 soap_get_sai__CertificateChainType(struct soap *soap, sai__CertificateChainType *p, const char *tag, const char *type) { if ((p = soap_in_sai__CertificateChainType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__CertificateChainType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__CertificateChainType(soap, tag, this, type); } SOAP_FMAC3 sai__CertificateChainType * SOAP_FMAC4 soap_in_sai__CertificateChainType(struct soap *soap, const char *tag, sai__CertificateChainType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__CertificateChainType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__CertificateChainType, sizeof(sai__CertificateChainType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__CertificateChainType) { soap_revert(soap); *soap->id = '\0'; return (sai__CertificateChainType *)a->soap_in(soap, tag, type); } } short soap_flag_Encoding1 = 1, soap_flag_Length1 = 1, soap_flag_Value1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Encoding1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__RsaCertificateEncodingType(soap, "sai:Encoding", &(a->sai__CertificateChainType::Encoding), "sai:RsaCertificateEncodingType")) { soap_flag_Encoding1--; continue; } if (soap_flag_Length1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:Length", &(a->sai__CertificateChainType::Length), "xsd:unsignedInt")) { soap_flag_Length1--; continue; } if (soap_flag_Value1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__CertificateChainType::Value).soap_in(soap, "sai:Value", "xsd:base64Binary")) { soap_flag_Value1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__CertificateChainType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__CertificateChainType, 0, sizeof(sai__CertificateChainType), 0, soap_copy_sai__CertificateChainType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Encoding1 > 0 || soap_flag_Length1 > 0 || soap_flag_Value1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__CertificateChainType * SOAP_FMAC6 soap_new_sai__CertificateChainType(struct soap *soap, int n) { return soap_instantiate_sai__CertificateChainType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__CertificateChainType(struct soap *soap, sai__CertificateChainType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__CertificateChainType * SOAP_FMAC4 soap_instantiate_sai__CertificateChainType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__CertificateChainType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__CertificateChainType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__CertificateChainType; if (size) *size = sizeof(sai__CertificateChainType); ((sai__CertificateChainType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__CertificateChainType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__CertificateChainType); for (int i = 0; i < n; i++) ((sai__CertificateChainType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__CertificateChainType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__CertificateChainType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__CertificateChainType %p -> %p\n", q, p)); *(sai__CertificateChainType*)p = *(sai__CertificateChainType*)q; } void sai__RngKeyType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__RngKeyEncodingType(soap, &this->sai__RngKeyType::Type); soap_default_unsignedInt(soap, &this->sai__RngKeyType::Length); this->sai__RngKeyType::Data.xsd__base64Binary::soap_default(soap); /* transient soap skipped */ } void sai__RngKeyType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__RngKeyType::Length, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__RngKeyType::Data, SOAP_TYPE_xsd__base64Binary); this->sai__RngKeyType::Data.soap_serialize(soap); /* transient soap skipped */ } int sai__RngKeyType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__RngKeyType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__RngKeyType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__RngKeyType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RngKeyType(struct soap *soap, const char *tag, int id, const sai__RngKeyType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__RngKeyType), type); soap_out_sai__RngKeyEncodingType(soap, "sai:Type", -1, &(a->sai__RngKeyType::Type), ""); soap_out_unsignedInt(soap, "sai:Length", -1, &(a->sai__RngKeyType::Length), ""); (a->sai__RngKeyType::Data).soap_out(soap, "sai:Data", -1, ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__RngKeyType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__RngKeyType(soap, this, tag, type); } SOAP_FMAC3 sai__RngKeyType * SOAP_FMAC4 soap_get_sai__RngKeyType(struct soap *soap, sai__RngKeyType *p, const char *tag, const char *type) { if ((p = soap_in_sai__RngKeyType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__RngKeyType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__RngKeyType(soap, tag, this, type); } SOAP_FMAC3 sai__RngKeyType * SOAP_FMAC4 soap_in_sai__RngKeyType(struct soap *soap, const char *tag, sai__RngKeyType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__RngKeyType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__RngKeyType, sizeof(sai__RngKeyType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__RngKeyType) { soap_revert(soap); *soap->id = '\0'; return (sai__RngKeyType *)a->soap_in(soap, tag, type); } } short soap_flag_Type1 = 1, soap_flag_Length1 = 1, soap_flag_Data1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Type1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__RngKeyEncodingType(soap, "sai:Type", &(a->sai__RngKeyType::Type), "sai:RngKeyEncodingType")) { soap_flag_Type1--; continue; } if (soap_flag_Length1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:Length", &(a->sai__RngKeyType::Length), "xsd:unsignedInt")) { soap_flag_Length1--; continue; } if (soap_flag_Data1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__RngKeyType::Data).soap_in(soap, "sai:Data", "xsd:base64Binary")) { soap_flag_Data1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__RngKeyType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__RngKeyType, 0, sizeof(sai__RngKeyType), 0, soap_copy_sai__RngKeyType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Type1 > 0 || soap_flag_Length1 > 0 || soap_flag_Data1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__RngKeyType * SOAP_FMAC6 soap_new_sai__RngKeyType(struct soap *soap, int n) { return soap_instantiate_sai__RngKeyType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__RngKeyType(struct soap *soap, sai__RngKeyType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__RngKeyType * SOAP_FMAC4 soap_instantiate_sai__RngKeyType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__RngKeyType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__RngKeyType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__RngKeyType; if (size) *size = sizeof(sai__RngKeyType); ((sai__RngKeyType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__RngKeyType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__RngKeyType); for (int i = 0; i < n; i++) ((sai__RngKeyType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__RngKeyType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__RngKeyType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__RngKeyType %p -> %p\n", q, p)); *(sai__RngKeyType*)p = *(sai__RngKeyType*)q; } void sai__RsaKeyType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__RsaKeyEncodingType(soap, &this->sai__RsaKeyType::Encoding); soap_default_unsignedInt(soap, &this->sai__RsaKeyType::Length); this->sai__RsaKeyType::Value.xsd__base64Binary::soap_default(soap); /* transient soap skipped */ } void sai__RsaKeyType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->sai__RsaKeyType::Length, SOAP_TYPE_unsignedInt); soap_embedded(soap, &this->sai__RsaKeyType::Value, SOAP_TYPE_xsd__base64Binary); this->sai__RsaKeyType::Value.soap_serialize(soap); /* transient soap skipped */ } int sai__RsaKeyType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__RsaKeyType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__RsaKeyType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__RsaKeyType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RsaKeyType(struct soap *soap, const char *tag, int id, const sai__RsaKeyType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__RsaKeyType), type); soap_out_sai__RsaKeyEncodingType(soap, "sai:Encoding", -1, &(a->sai__RsaKeyType::Encoding), ""); soap_out_unsignedInt(soap, "sai:Length", -1, &(a->sai__RsaKeyType::Length), ""); (a->sai__RsaKeyType::Value).soap_out(soap, "sai:Value", -1, ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__RsaKeyType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__RsaKeyType(soap, this, tag, type); } SOAP_FMAC3 sai__RsaKeyType * SOAP_FMAC4 soap_get_sai__RsaKeyType(struct soap *soap, sai__RsaKeyType *p, const char *tag, const char *type) { if ((p = soap_in_sai__RsaKeyType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__RsaKeyType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__RsaKeyType(soap, tag, this, type); } SOAP_FMAC3 sai__RsaKeyType * SOAP_FMAC4 soap_in_sai__RsaKeyType(struct soap *soap, const char *tag, sai__RsaKeyType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__RsaKeyType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__RsaKeyType, sizeof(sai__RsaKeyType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__RsaKeyType) { soap_revert(soap); *soap->id = '\0'; return (sai__RsaKeyType *)a->soap_in(soap, tag, type); } } short soap_flag_Encoding1 = 1, soap_flag_Length1 = 1, soap_flag_Value1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Encoding1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_sai__RsaKeyEncodingType(soap, "sai:Encoding", &(a->sai__RsaKeyType::Encoding), "sai:RsaKeyEncodingType")) { soap_flag_Encoding1--; continue; } if (soap_flag_Length1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedInt(soap, "sai:Length", &(a->sai__RsaKeyType::Length), "xsd:unsignedInt")) { soap_flag_Length1--; continue; } if (soap_flag_Value1 && soap->error == SOAP_TAG_MISMATCH) if ((a->sai__RsaKeyType::Value).soap_in(soap, "sai:Value", "xsd:base64Binary")) { soap_flag_Value1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__RsaKeyType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__RsaKeyType, 0, sizeof(sai__RsaKeyType), 0, soap_copy_sai__RsaKeyType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Encoding1 > 0 || soap_flag_Length1 > 0 || soap_flag_Value1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__RsaKeyType * SOAP_FMAC6 soap_new_sai__RsaKeyType(struct soap *soap, int n) { return soap_instantiate_sai__RsaKeyType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__RsaKeyType(struct soap *soap, sai__RsaKeyType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__RsaKeyType * SOAP_FMAC4 soap_instantiate_sai__RsaKeyType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__RsaKeyType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__RsaKeyType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__RsaKeyType; if (size) *size = sizeof(sai__RsaKeyType); ((sai__RsaKeyType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__RsaKeyType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__RsaKeyType); for (int i = 0; i < n; i++) ((sai__RsaKeyType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__RsaKeyType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__RsaKeyType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__RsaKeyType %p -> %p\n", q, p)); *(sai__RsaKeyType*)p = *(sai__RsaKeyType*)q; } void sai__UserAclRealmListType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfsai__UserAclRealmType(soap, &this->sai__UserAclRealmListType::Realm); /* transient soap skipped */ } void sai__UserAclRealmListType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfsai__UserAclRealmType(soap, &this->sai__UserAclRealmListType::Realm); /* transient soap skipped */ } int sai__UserAclRealmListType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__UserAclRealmListType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__UserAclRealmListType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__UserAclRealmListType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclRealmListType(struct soap *soap, const char *tag, int id, const sai__UserAclRealmListType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__UserAclRealmListType), type); soap_out_std__vectorTemplateOfsai__UserAclRealmType(soap, "sai:Realm", -1, &(a->sai__UserAclRealmListType::Realm), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__UserAclRealmListType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__UserAclRealmListType(soap, this, tag, type); } SOAP_FMAC3 sai__UserAclRealmListType * SOAP_FMAC4 soap_get_sai__UserAclRealmListType(struct soap *soap, sai__UserAclRealmListType *p, const char *tag, const char *type) { if ((p = soap_in_sai__UserAclRealmListType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__UserAclRealmListType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__UserAclRealmListType(soap, tag, this, type); } SOAP_FMAC3 sai__UserAclRealmListType * SOAP_FMAC4 soap_in_sai__UserAclRealmListType(struct soap *soap, const char *tag, sai__UserAclRealmListType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__UserAclRealmListType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__UserAclRealmListType, sizeof(sai__UserAclRealmListType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__UserAclRealmListType) { soap_revert(soap); *soap->id = '\0'; return (sai__UserAclRealmListType *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfsai__UserAclRealmType(soap, "sai:Realm", &(a->sai__UserAclRealmListType::Realm), "sai:UserAclRealmType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__UserAclRealmListType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__UserAclRealmListType, 0, sizeof(sai__UserAclRealmListType), 0, soap_copy_sai__UserAclRealmListType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (a->sai__UserAclRealmListType::Realm.size() > 14)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__UserAclRealmListType * SOAP_FMAC6 soap_new_sai__UserAclRealmListType(struct soap *soap, int n) { return soap_instantiate_sai__UserAclRealmListType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserAclRealmListType(struct soap *soap, sai__UserAclRealmListType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__UserAclRealmListType * SOAP_FMAC4 soap_instantiate_sai__UserAclRealmListType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__UserAclRealmListType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__UserAclRealmListType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__UserAclRealmListType; if (size) *size = sizeof(sai__UserAclRealmListType); ((sai__UserAclRealmListType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__UserAclRealmListType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__UserAclRealmListType); for (int i = 0; i < n; i++) ((sai__UserAclRealmListType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__UserAclRealmListType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserAclRealmListType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__UserAclRealmListType %p -> %p\n", q, p)); *(sai__UserAclRealmListType*)p = *(sai__UserAclRealmListType*)q; } void sai__UserAclEntryHandleListType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfsai__UserAclEntryHandleType(soap, &this->sai__UserAclEntryHandleListType::Handle); /* transient soap skipped */ } void sai__UserAclEntryHandleListType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfsai__UserAclEntryHandleType(soap, &this->sai__UserAclEntryHandleListType::Handle); /* transient soap skipped */ } int sai__UserAclEntryHandleListType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__UserAclEntryHandleListType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__UserAclEntryHandleListType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__UserAclEntryHandleListType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclEntryHandleListType(struct soap *soap, const char *tag, int id, const sai__UserAclEntryHandleListType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__UserAclEntryHandleListType), type); soap_out_std__vectorTemplateOfsai__UserAclEntryHandleType(soap, "sai:Handle", -1, &(a->sai__UserAclEntryHandleListType::Handle), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__UserAclEntryHandleListType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__UserAclEntryHandleListType(soap, this, tag, type); } SOAP_FMAC3 sai__UserAclEntryHandleListType * SOAP_FMAC4 soap_get_sai__UserAclEntryHandleListType(struct soap *soap, sai__UserAclEntryHandleListType *p, const char *tag, const char *type) { if ((p = soap_in_sai__UserAclEntryHandleListType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__UserAclEntryHandleListType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__UserAclEntryHandleListType(soap, tag, this, type); } SOAP_FMAC3 sai__UserAclEntryHandleListType * SOAP_FMAC4 soap_in_sai__UserAclEntryHandleListType(struct soap *soap, const char *tag, sai__UserAclEntryHandleListType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__UserAclEntryHandleListType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__UserAclEntryHandleListType, sizeof(sai__UserAclEntryHandleListType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__UserAclEntryHandleListType) { soap_revert(soap); *soap->id = '\0'; return (sai__UserAclEntryHandleListType *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfsai__UserAclEntryHandleType(soap, "sai:Handle", &(a->sai__UserAclEntryHandleListType::Handle), "sai:UserAclEntryHandleType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__UserAclEntryHandleListType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__UserAclEntryHandleListType, 0, sizeof(sai__UserAclEntryHandleListType), 0, soap_copy_sai__UserAclEntryHandleListType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (a->sai__UserAclEntryHandleListType::Handle.size() > 7)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__UserAclEntryHandleListType * SOAP_FMAC6 soap_new_sai__UserAclEntryHandleListType(struct soap *soap, int n) { return soap_instantiate_sai__UserAclEntryHandleListType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserAclEntryHandleListType(struct soap *soap, sai__UserAclEntryHandleListType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__UserAclEntryHandleListType * SOAP_FMAC4 soap_instantiate_sai__UserAclEntryHandleListType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__UserAclEntryHandleListType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__UserAclEntryHandleListType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__UserAclEntryHandleListType; if (size) *size = sizeof(sai__UserAclEntryHandleListType); ((sai__UserAclEntryHandleListType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__UserAclEntryHandleListType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__UserAclEntryHandleListType); for (int i = 0; i < n; i++) ((sai__UserAclEntryHandleListType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__UserAclEntryHandleListType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserAclEntryHandleListType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__UserAclEntryHandleListType %p -> %p\n", q, p)); *(sai__UserAclEntryHandleListType*)p = *(sai__UserAclEntryHandleListType*)q; } void sai__AdminAclEntryType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__AclStringType(soap, &this->sai__AdminAclEntryType::Username); soap_default_sai__AclPasswordStringType(soap, &this->sai__AdminAclEntryType::Password); /* transient soap skipped */ } void sai__AdminAclEntryType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_sai__AclStringType(soap, &this->sai__AdminAclEntryType::Username); soap_serialize_sai__AclPasswordStringType(soap, &this->sai__AdminAclEntryType::Password); /* transient soap skipped */ } int sai__AdminAclEntryType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__AdminAclEntryType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__AdminAclEntryType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__AdminAclEntryType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AdminAclEntryType(struct soap *soap, const char *tag, int id, const sai__AdminAclEntryType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__AdminAclEntryType), type); soap_out_sai__AclStringType(soap, "sai:Username", -1, &(a->sai__AdminAclEntryType::Username), ""); soap_out_sai__AclPasswordStringType(soap, "sai:Password", -1, &(a->sai__AdminAclEntryType::Password), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__AdminAclEntryType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__AdminAclEntryType(soap, this, tag, type); } SOAP_FMAC3 sai__AdminAclEntryType * SOAP_FMAC4 soap_get_sai__AdminAclEntryType(struct soap *soap, sai__AdminAclEntryType *p, const char *tag, const char *type) { if ((p = soap_in_sai__AdminAclEntryType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__AdminAclEntryType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__AdminAclEntryType(soap, tag, this, type); } SOAP_FMAC3 sai__AdminAclEntryType * SOAP_FMAC4 soap_in_sai__AdminAclEntryType(struct soap *soap, const char *tag, sai__AdminAclEntryType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__AdminAclEntryType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__AdminAclEntryType, sizeof(sai__AdminAclEntryType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__AdminAclEntryType) { soap_revert(soap); *soap->id = '\0'; return (sai__AdminAclEntryType *)a->soap_in(soap, tag, type); } } short soap_flag_Username1 = 1, soap_flag_Password1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Username1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_sai__AclStringType(soap, "sai:Username", &(a->sai__AdminAclEntryType::Username), "sai:AclStringType")) { soap_flag_Username1--; continue; } if (soap_flag_Password1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_sai__AclPasswordStringType(soap, "sai:Password", &(a->sai__AdminAclEntryType::Password), "sai:AclPasswordStringType")) { soap_flag_Password1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__AdminAclEntryType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__AdminAclEntryType, 0, sizeof(sai__AdminAclEntryType), 0, soap_copy_sai__AdminAclEntryType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Username1 > 0 || soap_flag_Password1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__AdminAclEntryType * SOAP_FMAC6 soap_new_sai__AdminAclEntryType(struct soap *soap, int n) { return soap_instantiate_sai__AdminAclEntryType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AdminAclEntryType(struct soap *soap, sai__AdminAclEntryType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__AdminAclEntryType * SOAP_FMAC4 soap_instantiate_sai__AdminAclEntryType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__AdminAclEntryType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__AdminAclEntryType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__AdminAclEntryType; if (size) *size = sizeof(sai__AdminAclEntryType); ((sai__AdminAclEntryType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__AdminAclEntryType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__AdminAclEntryType); for (int i = 0; i < n; i++) ((sai__AdminAclEntryType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__AdminAclEntryType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AdminAclEntryType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__AdminAclEntryType %p -> %p\n", q, p)); *(sai__AdminAclEntryType*)p = *(sai__AdminAclEntryType*)q; } void sai__UserAclEntryType::soap_default(struct soap *soap) { this->soap = soap; soap_default_sai__AclStringType(soap, &this->sai__UserAclEntryType::Username); soap_default_sai__AclPasswordStringType(soap, &this->sai__UserAclEntryType::Password); this->sai__UserAclEntryType::Realms = NULL; /* transient soap skipped */ } void sai__UserAclEntryType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_sai__AclStringType(soap, &this->sai__UserAclEntryType::Username); soap_serialize_sai__AclPasswordStringType(soap, &this->sai__UserAclEntryType::Password); soap_serialize_PointerTosai__UserAclRealmListType(soap, &this->sai__UserAclEntryType::Realms); /* transient soap skipped */ } int sai__UserAclEntryType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_sai__UserAclEntryType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int sai__UserAclEntryType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_sai__UserAclEntryType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclEntryType(struct soap *soap, const char *tag, int id, const sai__UserAclEntryType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_sai__UserAclEntryType), type); soap_out_sai__AclStringType(soap, "sai:Username", -1, &(a->sai__UserAclEntryType::Username), ""); soap_out_sai__AclPasswordStringType(soap, "sai:Password", -1, &(a->sai__UserAclEntryType::Password), ""); soap_out_PointerTosai__UserAclRealmListType(soap, "sai:Realms", -1, &(a->sai__UserAclEntryType::Realms), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *sai__UserAclEntryType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_sai__UserAclEntryType(soap, this, tag, type); } SOAP_FMAC3 sai__UserAclEntryType * SOAP_FMAC4 soap_get_sai__UserAclEntryType(struct soap *soap, sai__UserAclEntryType *p, const char *tag, const char *type) { if ((p = soap_in_sai__UserAclEntryType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *sai__UserAclEntryType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_sai__UserAclEntryType(soap, tag, this, type); } SOAP_FMAC3 sai__UserAclEntryType * SOAP_FMAC4 soap_in_sai__UserAclEntryType(struct soap *soap, const char *tag, sai__UserAclEntryType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (sai__UserAclEntryType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_sai__UserAclEntryType, sizeof(sai__UserAclEntryType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_sai__UserAclEntryType) { soap_revert(soap); *soap->id = '\0'; return (sai__UserAclEntryType *)a->soap_in(soap, tag, type); } } short soap_flag_Username1 = 1, soap_flag_Password1 = 1, soap_flag_Realms1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Username1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_sai__AclStringType(soap, "sai:Username", &(a->sai__UserAclEntryType::Username), "sai:AclStringType")) { soap_flag_Username1--; continue; } if (soap_flag_Password1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_sai__AclPasswordStringType(soap, "sai:Password", &(a->sai__UserAclEntryType::Password), "sai:AclPasswordStringType")) { soap_flag_Password1--; continue; } if (soap_flag_Realms1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTosai__UserAclRealmListType(soap, "sai:Realms", &(a->sai__UserAclEntryType::Realms), "sai:UserAclRealmListType")) { soap_flag_Realms1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (sai__UserAclEntryType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_sai__UserAclEntryType, 0, sizeof(sai__UserAclEntryType), 0, soap_copy_sai__UserAclEntryType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Username1 > 0 || soap_flag_Password1 > 0 || soap_flag_Realms1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 sai__UserAclEntryType * SOAP_FMAC6 soap_new_sai__UserAclEntryType(struct soap *soap, int n) { return soap_instantiate_sai__UserAclEntryType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserAclEntryType(struct soap *soap, sai__UserAclEntryType *p) { soap_delete(soap, p); } SOAP_FMAC3 sai__UserAclEntryType * SOAP_FMAC4 soap_instantiate_sai__UserAclEntryType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_sai__UserAclEntryType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_sai__UserAclEntryType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new sai__UserAclEntryType; if (size) *size = sizeof(sai__UserAclEntryType); ((sai__UserAclEntryType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new sai__UserAclEntryType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(sai__UserAclEntryType); for (int i = 0; i < n; i++) ((sai__UserAclEntryType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (sai__UserAclEntryType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserAclEntryType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying sai__UserAclEntryType %p -> %p\n", q, p)); *(sai__UserAclEntryType*)p = *(sai__UserAclEntryType*)q; } void _emc__SoapAlertResponse::soap_default(struct soap *soap) { this->soap = soap; soap_default_cmn__PT_USCORESTATUS(soap, &this->_emc__SoapAlertResponse::Status); /* transient soap skipped */ } void _emc__SoapAlertResponse::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int _emc__SoapAlertResponse::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emc__SoapAlertResponse); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emc__SoapAlertResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emc__SoapAlertResponse(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emc__SoapAlertResponse(struct soap *soap, const char *tag, int id, const _emc__SoapAlertResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emc__SoapAlertResponse), type); soap_element_result(soap, "emc:Status"); soap_out_cmn__PT_USCORESTATUS(soap, "emc:Status", -1, &(a->_emc__SoapAlertResponse::Status), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emc__SoapAlertResponse::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emc__SoapAlertResponse(soap, this, tag, type); } SOAP_FMAC3 _emc__SoapAlertResponse * SOAP_FMAC4 soap_get__emc__SoapAlertResponse(struct soap *soap, _emc__SoapAlertResponse *p, const char *tag, const char *type) { if ((p = soap_in__emc__SoapAlertResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emc__SoapAlertResponse::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emc__SoapAlertResponse(soap, tag, this, type); } SOAP_FMAC3 _emc__SoapAlertResponse * SOAP_FMAC4 soap_in__emc__SoapAlertResponse(struct soap *soap, const char *tag, _emc__SoapAlertResponse *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emc__SoapAlertResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emc__SoapAlertResponse, sizeof(_emc__SoapAlertResponse), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emc__SoapAlertResponse) { soap_revert(soap); *soap->id = '\0'; return (_emc__SoapAlertResponse *)a->soap_in(soap, tag, type); } } short soap_flag_Status1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Status1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_cmn__PT_USCORESTATUS(soap, "emc:Status", &(a->_emc__SoapAlertResponse::Status), "cmn:PT_STATUS")) { soap_flag_Status1--; continue; } /* transient soap skipped */ soap_check_result(soap, "emc:Status"); if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emc__SoapAlertResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emc__SoapAlertResponse, 0, sizeof(_emc__SoapAlertResponse), 0, soap_copy__emc__SoapAlertResponse); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Status1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 _emc__SoapAlertResponse * SOAP_FMAC6 soap_new__emc__SoapAlertResponse(struct soap *soap, int n) { return soap_instantiate__emc__SoapAlertResponse(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emc__SoapAlertResponse(struct soap *soap, _emc__SoapAlertResponse *p) { soap_delete(soap, p); } SOAP_FMAC3 _emc__SoapAlertResponse * SOAP_FMAC4 soap_instantiate__emc__SoapAlertResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emc__SoapAlertResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emc__SoapAlertResponse, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emc__SoapAlertResponse; if (size) *size = sizeof(_emc__SoapAlertResponse); ((_emc__SoapAlertResponse*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emc__SoapAlertResponse[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emc__SoapAlertResponse); for (int i = 0; i < n; i++) ((_emc__SoapAlertResponse*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emc__SoapAlertResponse*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emc__SoapAlertResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emc__SoapAlertResponse %p -> %p\n", q, p)); *(_emc__SoapAlertResponse*)p = *(_emc__SoapAlertResponse*)q; } void _emc__SoapAlertRequest::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, &this->_emc__SoapAlertRequest::SoapAlertRecords); /* transient soap skipped */ } void _emc__SoapAlertRequest::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, &this->_emc__SoapAlertRequest::SoapAlertRecords); /* transient soap skipped */ } int _emc__SoapAlertRequest::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emc__SoapAlertRequest); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emc__SoapAlertRequest::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emc__SoapAlertRequest(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emc__SoapAlertRequest(struct soap *soap, const char *tag, int id, const _emc__SoapAlertRequest *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emc__SoapAlertRequest), type); soap_out_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, "emc:SoapAlertRecords", -1, &(a->_emc__SoapAlertRequest::SoapAlertRecords), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emc__SoapAlertRequest::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emc__SoapAlertRequest(soap, this, tag, type); } SOAP_FMAC3 _emc__SoapAlertRequest * SOAP_FMAC4 soap_get__emc__SoapAlertRequest(struct soap *soap, _emc__SoapAlertRequest *p, const char *tag, const char *type) { if ((p = soap_in__emc__SoapAlertRequest(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emc__SoapAlertRequest::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emc__SoapAlertRequest(soap, tag, this, type); } SOAP_FMAC3 _emc__SoapAlertRequest * SOAP_FMAC4 soap_in__emc__SoapAlertRequest(struct soap *soap, const char *tag, _emc__SoapAlertRequest *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emc__SoapAlertRequest *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emc__SoapAlertRequest, sizeof(_emc__SoapAlertRequest), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emc__SoapAlertRequest) { soap_revert(soap); *soap->id = '\0'; return (_emc__SoapAlertRequest *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, "emc:SoapAlertRecords", &(a->_emc__SoapAlertRequest::SoapAlertRecords), "emi:EventLogRecordType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emc__SoapAlertRequest *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emc__SoapAlertRequest, 0, sizeof(_emc__SoapAlertRequest), 0, soap_copy__emc__SoapAlertRequest); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (a->_emc__SoapAlertRequest::SoapAlertRecords.size() > 64)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 _emc__SoapAlertRequest * SOAP_FMAC6 soap_new__emc__SoapAlertRequest(struct soap *soap, int n) { return soap_instantiate__emc__SoapAlertRequest(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emc__SoapAlertRequest(struct soap *soap, _emc__SoapAlertRequest *p) { soap_delete(soap, p); } SOAP_FMAC3 _emc__SoapAlertRequest * SOAP_FMAC4 soap_instantiate__emc__SoapAlertRequest(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emc__SoapAlertRequest(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emc__SoapAlertRequest, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emc__SoapAlertRequest; if (size) *size = sizeof(_emc__SoapAlertRequest); ((_emc__SoapAlertRequest*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emc__SoapAlertRequest[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emc__SoapAlertRequest); for (int i = 0; i < n; i++) ((_emc__SoapAlertRequest*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emc__SoapAlertRequest*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emc__SoapAlertRequest(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emc__SoapAlertRequest %p -> %p\n", q, p)); *(_emc__SoapAlertRequest*)p = *(_emc__SoapAlertRequest*)q; } void _emi__GetGeneralAlertSubscriptionResponse::soap_default(struct soap *soap) { this->soap = soap; soap_default_emi__PT_USCORESTATUS(soap, &this->_emi__GetGeneralAlertSubscriptionResponse::Status); this->_emi__GetGeneralAlertSubscriptionResponse::SubscriptionInfo = NULL; /* transient soap skipped */ } void _emi__GetGeneralAlertSubscriptionResponse::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerToemi__AlertSubscriptionGeneralType(soap, &this->_emi__GetGeneralAlertSubscriptionResponse::SubscriptionInfo); /* transient soap skipped */ } int _emi__GetGeneralAlertSubscriptionResponse::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emi__GetGeneralAlertSubscriptionResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emi__GetGeneralAlertSubscriptionResponse(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__GetGeneralAlertSubscriptionResponse(struct soap *soap, const char *tag, int id, const _emi__GetGeneralAlertSubscriptionResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse), type); soap_out_emi__PT_USCORESTATUS(soap, "emi:Status", -1, &(a->_emi__GetGeneralAlertSubscriptionResponse::Status), ""); soap_out_PointerToemi__AlertSubscriptionGeneralType(soap, "emi:SubscriptionInfo", -1, &(a->_emi__GetGeneralAlertSubscriptionResponse::SubscriptionInfo), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emi__GetGeneralAlertSubscriptionResponse::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emi__GetGeneralAlertSubscriptionResponse(soap, this, tag, type); } SOAP_FMAC3 _emi__GetGeneralAlertSubscriptionResponse * SOAP_FMAC4 soap_get__emi__GetGeneralAlertSubscriptionResponse(struct soap *soap, _emi__GetGeneralAlertSubscriptionResponse *p, const char *tag, const char *type) { if ((p = soap_in__emi__GetGeneralAlertSubscriptionResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emi__GetGeneralAlertSubscriptionResponse::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emi__GetGeneralAlertSubscriptionResponse(soap, tag, this, type); } SOAP_FMAC3 _emi__GetGeneralAlertSubscriptionResponse * SOAP_FMAC4 soap_in__emi__GetGeneralAlertSubscriptionResponse(struct soap *soap, const char *tag, _emi__GetGeneralAlertSubscriptionResponse *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emi__GetGeneralAlertSubscriptionResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse, sizeof(_emi__GetGeneralAlertSubscriptionResponse), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse) { soap_revert(soap); *soap->id = '\0'; return (_emi__GetGeneralAlertSubscriptionResponse *)a->soap_in(soap, tag, type); } } short soap_flag_Status1 = 1, soap_flag_SubscriptionInfo1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Status1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__PT_USCORESTATUS(soap, "emi:Status", &(a->_emi__GetGeneralAlertSubscriptionResponse::Status), "emi:PT_STATUS")) { soap_flag_Status1--; continue; } if (soap_flag_SubscriptionInfo1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToemi__AlertSubscriptionGeneralType(soap, "emi:SubscriptionInfo", &(a->_emi__GetGeneralAlertSubscriptionResponse::SubscriptionInfo), "emi:AlertSubscriptionGeneralType")) { soap_flag_SubscriptionInfo1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emi__GetGeneralAlertSubscriptionResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse, 0, sizeof(_emi__GetGeneralAlertSubscriptionResponse), 0, soap_copy__emi__GetGeneralAlertSubscriptionResponse); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Status1 > 0 || soap_flag_SubscriptionInfo1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 _emi__GetGeneralAlertSubscriptionResponse * SOAP_FMAC6 soap_new__emi__GetGeneralAlertSubscriptionResponse(struct soap *soap, int n) { return soap_instantiate__emi__GetGeneralAlertSubscriptionResponse(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__GetGeneralAlertSubscriptionResponse(struct soap *soap, _emi__GetGeneralAlertSubscriptionResponse *p) { soap_delete(soap, p); } SOAP_FMAC3 _emi__GetGeneralAlertSubscriptionResponse * SOAP_FMAC4 soap_instantiate__emi__GetGeneralAlertSubscriptionResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emi__GetGeneralAlertSubscriptionResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emi__GetGeneralAlertSubscriptionResponse; if (size) *size = sizeof(_emi__GetGeneralAlertSubscriptionResponse); ((_emi__GetGeneralAlertSubscriptionResponse*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emi__GetGeneralAlertSubscriptionResponse[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emi__GetGeneralAlertSubscriptionResponse); for (int i = 0; i < n; i++) ((_emi__GetGeneralAlertSubscriptionResponse*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emi__GetGeneralAlertSubscriptionResponse*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__GetGeneralAlertSubscriptionResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emi__GetGeneralAlertSubscriptionResponse %p -> %p\n", q, p)); *(_emi__GetGeneralAlertSubscriptionResponse*)p = *(_emi__GetGeneralAlertSubscriptionResponse*)q; } void _emi__GetGeneralAlertSubscription::soap_default(struct soap *soap) { this->soap = soap; soap_default_emi__AlertSubscriptionHandleType(soap, &this->_emi__GetGeneralAlertSubscription::SubscriptionHandle); /* transient soap skipped */ } void _emi__GetGeneralAlertSubscription::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int _emi__GetGeneralAlertSubscription::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emi__GetGeneralAlertSubscription); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emi__GetGeneralAlertSubscription::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emi__GetGeneralAlertSubscription(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__GetGeneralAlertSubscription(struct soap *soap, const char *tag, int id, const _emi__GetGeneralAlertSubscription *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emi__GetGeneralAlertSubscription), type); soap_out_emi__AlertSubscriptionHandleType(soap, "emi:SubscriptionHandle", -1, &(a->_emi__GetGeneralAlertSubscription::SubscriptionHandle), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emi__GetGeneralAlertSubscription::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emi__GetGeneralAlertSubscription(soap, this, tag, type); } SOAP_FMAC3 _emi__GetGeneralAlertSubscription * SOAP_FMAC4 soap_get__emi__GetGeneralAlertSubscription(struct soap *soap, _emi__GetGeneralAlertSubscription *p, const char *tag, const char *type) { if ((p = soap_in__emi__GetGeneralAlertSubscription(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emi__GetGeneralAlertSubscription::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emi__GetGeneralAlertSubscription(soap, tag, this, type); } SOAP_FMAC3 _emi__GetGeneralAlertSubscription * SOAP_FMAC4 soap_in__emi__GetGeneralAlertSubscription(struct soap *soap, const char *tag, _emi__GetGeneralAlertSubscription *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emi__GetGeneralAlertSubscription *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emi__GetGeneralAlertSubscription, sizeof(_emi__GetGeneralAlertSubscription), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emi__GetGeneralAlertSubscription) { soap_revert(soap); *soap->id = '\0'; return (_emi__GetGeneralAlertSubscription *)a->soap_in(soap, tag, type); } } short soap_flag_SubscriptionHandle1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_SubscriptionHandle1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__AlertSubscriptionHandleType(soap, "emi:SubscriptionHandle", &(a->_emi__GetGeneralAlertSubscription::SubscriptionHandle), "emi:AlertSubscriptionHandleType")) { soap_flag_SubscriptionHandle1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emi__GetGeneralAlertSubscription *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emi__GetGeneralAlertSubscription, 0, sizeof(_emi__GetGeneralAlertSubscription), 0, soap_copy__emi__GetGeneralAlertSubscription); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_SubscriptionHandle1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 _emi__GetGeneralAlertSubscription * SOAP_FMAC6 soap_new__emi__GetGeneralAlertSubscription(struct soap *soap, int n) { return soap_instantiate__emi__GetGeneralAlertSubscription(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__GetGeneralAlertSubscription(struct soap *soap, _emi__GetGeneralAlertSubscription *p) { soap_delete(soap, p); } SOAP_FMAC3 _emi__GetGeneralAlertSubscription * SOAP_FMAC4 soap_instantiate__emi__GetGeneralAlertSubscription(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emi__GetGeneralAlertSubscription(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emi__GetGeneralAlertSubscription, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emi__GetGeneralAlertSubscription; if (size) *size = sizeof(_emi__GetGeneralAlertSubscription); ((_emi__GetGeneralAlertSubscription*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emi__GetGeneralAlertSubscription[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emi__GetGeneralAlertSubscription); for (int i = 0; i < n; i++) ((_emi__GetGeneralAlertSubscription*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emi__GetGeneralAlertSubscription*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__GetGeneralAlertSubscription(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emi__GetGeneralAlertSubscription %p -> %p\n", q, p)); *(_emi__GetGeneralAlertSubscription*)p = *(_emi__GetGeneralAlertSubscription*)q; } void _emi__EnumerateGeneralAlertSubscriptionsResponse::soap_default(struct soap *soap) { this->soap = soap; soap_default_emi__PT_USCORESTATUS(soap, &this->_emi__EnumerateGeneralAlertSubscriptionsResponse::Status); soap_default_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, &this->_emi__EnumerateGeneralAlertSubscriptionsResponse::SubscriptionHandle); /* transient soap skipped */ } void _emi__EnumerateGeneralAlertSubscriptionsResponse::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, &this->_emi__EnumerateGeneralAlertSubscriptionsResponse::SubscriptionHandle); /* transient soap skipped */ } int _emi__EnumerateGeneralAlertSubscriptionsResponse::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emi__EnumerateGeneralAlertSubscriptionsResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emi__EnumerateGeneralAlertSubscriptionsResponse(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap *soap, const char *tag, int id, const _emi__EnumerateGeneralAlertSubscriptionsResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse), type); soap_out_emi__PT_USCORESTATUS(soap, "emi:Status", -1, &(a->_emi__EnumerateGeneralAlertSubscriptionsResponse::Status), ""); soap_out_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, "emi:SubscriptionHandle", -1, &(a->_emi__EnumerateGeneralAlertSubscriptionsResponse::SubscriptionHandle), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emi__EnumerateGeneralAlertSubscriptionsResponse::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emi__EnumerateGeneralAlertSubscriptionsResponse(soap, this, tag, type); } SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptionsResponse * SOAP_FMAC4 soap_get__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap *soap, _emi__EnumerateGeneralAlertSubscriptionsResponse *p, const char *tag, const char *type) { if ((p = soap_in__emi__EnumerateGeneralAlertSubscriptionsResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emi__EnumerateGeneralAlertSubscriptionsResponse::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emi__EnumerateGeneralAlertSubscriptionsResponse(soap, tag, this, type); } SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptionsResponse * SOAP_FMAC4 soap_in__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap *soap, const char *tag, _emi__EnumerateGeneralAlertSubscriptionsResponse *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emi__EnumerateGeneralAlertSubscriptionsResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse, sizeof(_emi__EnumerateGeneralAlertSubscriptionsResponse), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse) { soap_revert(soap); *soap->id = '\0'; return (_emi__EnumerateGeneralAlertSubscriptionsResponse *)a->soap_in(soap, tag, type); } } short soap_flag_Status1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Status1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__PT_USCORESTATUS(soap, "emi:Status", &(a->_emi__EnumerateGeneralAlertSubscriptionsResponse::Status), "emi:PT_STATUS")) { soap_flag_Status1--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, "emi:SubscriptionHandle", &(a->_emi__EnumerateGeneralAlertSubscriptionsResponse::SubscriptionHandle), "emi:AlertSubscriptionHandleType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emi__EnumerateGeneralAlertSubscriptionsResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse, 0, sizeof(_emi__EnumerateGeneralAlertSubscriptionsResponse), 0, soap_copy__emi__EnumerateGeneralAlertSubscriptionsResponse); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Status1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 _emi__EnumerateGeneralAlertSubscriptionsResponse * SOAP_FMAC6 soap_new__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap *soap, int n) { return soap_instantiate__emi__EnumerateGeneralAlertSubscriptionsResponse(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap *soap, _emi__EnumerateGeneralAlertSubscriptionsResponse *p) { soap_delete(soap, p); } SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptionsResponse * SOAP_FMAC4 soap_instantiate__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emi__EnumerateGeneralAlertSubscriptionsResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emi__EnumerateGeneralAlertSubscriptionsResponse; if (size) *size = sizeof(_emi__EnumerateGeneralAlertSubscriptionsResponse); ((_emi__EnumerateGeneralAlertSubscriptionsResponse*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emi__EnumerateGeneralAlertSubscriptionsResponse[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emi__EnumerateGeneralAlertSubscriptionsResponse); for (int i = 0; i < n; i++) ((_emi__EnumerateGeneralAlertSubscriptionsResponse*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emi__EnumerateGeneralAlertSubscriptionsResponse*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emi__EnumerateGeneralAlertSubscriptionsResponse %p -> %p\n", q, p)); *(_emi__EnumerateGeneralAlertSubscriptionsResponse*)p = *(_emi__EnumerateGeneralAlertSubscriptionsResponse*)q; } void _emi__EnumerateGeneralAlertSubscriptions::soap_default(struct soap *soap) { this->soap = soap; this->_emi__EnumerateGeneralAlertSubscriptions::PolicyID = NULL; /* transient soap skipped */ } void _emi__EnumerateGeneralAlertSubscriptions::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerToemi__AlertSubscriptionPolicyIDType(soap, &this->_emi__EnumerateGeneralAlertSubscriptions::PolicyID); /* transient soap skipped */ } int _emi__EnumerateGeneralAlertSubscriptions::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emi__EnumerateGeneralAlertSubscriptions::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emi__EnumerateGeneralAlertSubscriptions(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__EnumerateGeneralAlertSubscriptions(struct soap *soap, const char *tag, int id, const _emi__EnumerateGeneralAlertSubscriptions *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions), type); soap_out_PointerToemi__AlertSubscriptionPolicyIDType(soap, "emi:PolicyID", -1, &(a->_emi__EnumerateGeneralAlertSubscriptions::PolicyID), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emi__EnumerateGeneralAlertSubscriptions::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emi__EnumerateGeneralAlertSubscriptions(soap, this, tag, type); } SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptions * SOAP_FMAC4 soap_get__emi__EnumerateGeneralAlertSubscriptions(struct soap *soap, _emi__EnumerateGeneralAlertSubscriptions *p, const char *tag, const char *type) { if ((p = soap_in__emi__EnumerateGeneralAlertSubscriptions(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emi__EnumerateGeneralAlertSubscriptions::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emi__EnumerateGeneralAlertSubscriptions(soap, tag, this, type); } SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptions * SOAP_FMAC4 soap_in__emi__EnumerateGeneralAlertSubscriptions(struct soap *soap, const char *tag, _emi__EnumerateGeneralAlertSubscriptions *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emi__EnumerateGeneralAlertSubscriptions *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions, sizeof(_emi__EnumerateGeneralAlertSubscriptions), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions) { soap_revert(soap); *soap->id = '\0'; return (_emi__EnumerateGeneralAlertSubscriptions *)a->soap_in(soap, tag, type); } } short soap_flag_PolicyID1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_PolicyID1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToemi__AlertSubscriptionPolicyIDType(soap, "emi:PolicyID", &(a->_emi__EnumerateGeneralAlertSubscriptions::PolicyID), "emi:AlertSubscriptionPolicyIDType")) { soap_flag_PolicyID1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emi__EnumerateGeneralAlertSubscriptions *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions, 0, sizeof(_emi__EnumerateGeneralAlertSubscriptions), 0, soap_copy__emi__EnumerateGeneralAlertSubscriptions); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 _emi__EnumerateGeneralAlertSubscriptions * SOAP_FMAC6 soap_new__emi__EnumerateGeneralAlertSubscriptions(struct soap *soap, int n) { return soap_instantiate__emi__EnumerateGeneralAlertSubscriptions(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__EnumerateGeneralAlertSubscriptions(struct soap *soap, _emi__EnumerateGeneralAlertSubscriptions *p) { soap_delete(soap, p); } SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptions * SOAP_FMAC4 soap_instantiate__emi__EnumerateGeneralAlertSubscriptions(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emi__EnumerateGeneralAlertSubscriptions(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emi__EnumerateGeneralAlertSubscriptions; if (size) *size = sizeof(_emi__EnumerateGeneralAlertSubscriptions); ((_emi__EnumerateGeneralAlertSubscriptions*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emi__EnumerateGeneralAlertSubscriptions[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emi__EnumerateGeneralAlertSubscriptions); for (int i = 0; i < n; i++) ((_emi__EnumerateGeneralAlertSubscriptions*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emi__EnumerateGeneralAlertSubscriptions*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__EnumerateGeneralAlertSubscriptions(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emi__EnumerateGeneralAlertSubscriptions %p -> %p\n", q, p)); *(_emi__EnumerateGeneralAlertSubscriptions*)p = *(_emi__EnumerateGeneralAlertSubscriptions*)q; } void _emi__SubscribeForGeneralAlertResponse::soap_default(struct soap *soap) { this->soap = soap; soap_default_emi__PT_USCORESTATUS(soap, &this->_emi__SubscribeForGeneralAlertResponse::Status); soap_default_emi__AlertSubscriptionHandleType(soap, &this->_emi__SubscribeForGeneralAlertResponse::SubscriptionHandle); /* transient soap skipped */ } void _emi__SubscribeForGeneralAlertResponse::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int _emi__SubscribeForGeneralAlertResponse::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emi__SubscribeForGeneralAlertResponse); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emi__SubscribeForGeneralAlertResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emi__SubscribeForGeneralAlertResponse(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__SubscribeForGeneralAlertResponse(struct soap *soap, const char *tag, int id, const _emi__SubscribeForGeneralAlertResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emi__SubscribeForGeneralAlertResponse), type); soap_out_emi__PT_USCORESTATUS(soap, "emi:Status", -1, &(a->_emi__SubscribeForGeneralAlertResponse::Status), ""); soap_out_emi__AlertSubscriptionHandleType(soap, "emi:SubscriptionHandle", -1, &(a->_emi__SubscribeForGeneralAlertResponse::SubscriptionHandle), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emi__SubscribeForGeneralAlertResponse::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emi__SubscribeForGeneralAlertResponse(soap, this, tag, type); } SOAP_FMAC3 _emi__SubscribeForGeneralAlertResponse * SOAP_FMAC4 soap_get__emi__SubscribeForGeneralAlertResponse(struct soap *soap, _emi__SubscribeForGeneralAlertResponse *p, const char *tag, const char *type) { if ((p = soap_in__emi__SubscribeForGeneralAlertResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emi__SubscribeForGeneralAlertResponse::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emi__SubscribeForGeneralAlertResponse(soap, tag, this, type); } SOAP_FMAC3 _emi__SubscribeForGeneralAlertResponse * SOAP_FMAC4 soap_in__emi__SubscribeForGeneralAlertResponse(struct soap *soap, const char *tag, _emi__SubscribeForGeneralAlertResponse *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emi__SubscribeForGeneralAlertResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emi__SubscribeForGeneralAlertResponse, sizeof(_emi__SubscribeForGeneralAlertResponse), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emi__SubscribeForGeneralAlertResponse) { soap_revert(soap); *soap->id = '\0'; return (_emi__SubscribeForGeneralAlertResponse *)a->soap_in(soap, tag, type); } } short soap_flag_Status1 = 1, soap_flag_SubscriptionHandle1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Status1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__PT_USCORESTATUS(soap, "emi:Status", &(a->_emi__SubscribeForGeneralAlertResponse::Status), "emi:PT_STATUS")) { soap_flag_Status1--; continue; } if (soap_flag_SubscriptionHandle1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__AlertSubscriptionHandleType(soap, "emi:SubscriptionHandle", &(a->_emi__SubscribeForGeneralAlertResponse::SubscriptionHandle), "emi:AlertSubscriptionHandleType")) { soap_flag_SubscriptionHandle1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emi__SubscribeForGeneralAlertResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emi__SubscribeForGeneralAlertResponse, 0, sizeof(_emi__SubscribeForGeneralAlertResponse), 0, soap_copy__emi__SubscribeForGeneralAlertResponse); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Status1 > 0 || soap_flag_SubscriptionHandle1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 _emi__SubscribeForGeneralAlertResponse * SOAP_FMAC6 soap_new__emi__SubscribeForGeneralAlertResponse(struct soap *soap, int n) { return soap_instantiate__emi__SubscribeForGeneralAlertResponse(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__SubscribeForGeneralAlertResponse(struct soap *soap, _emi__SubscribeForGeneralAlertResponse *p) { soap_delete(soap, p); } SOAP_FMAC3 _emi__SubscribeForGeneralAlertResponse * SOAP_FMAC4 soap_instantiate__emi__SubscribeForGeneralAlertResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emi__SubscribeForGeneralAlertResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emi__SubscribeForGeneralAlertResponse, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emi__SubscribeForGeneralAlertResponse; if (size) *size = sizeof(_emi__SubscribeForGeneralAlertResponse); ((_emi__SubscribeForGeneralAlertResponse*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emi__SubscribeForGeneralAlertResponse[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emi__SubscribeForGeneralAlertResponse); for (int i = 0; i < n; i++) ((_emi__SubscribeForGeneralAlertResponse*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emi__SubscribeForGeneralAlertResponse*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__SubscribeForGeneralAlertResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emi__SubscribeForGeneralAlertResponse %p -> %p\n", q, p)); *(_emi__SubscribeForGeneralAlertResponse*)p = *(_emi__SubscribeForGeneralAlertResponse*)q; } void _emi__SubscribeForGeneralAlert::soap_default(struct soap *soap) { this->soap = soap; this->_emi__SubscribeForGeneralAlert::SubscriptionInfo = NULL; /* transient soap skipped */ } void _emi__SubscribeForGeneralAlert::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerToemi__AlertSubscriptionGeneralType(soap, &this->_emi__SubscribeForGeneralAlert::SubscriptionInfo); /* transient soap skipped */ } int _emi__SubscribeForGeneralAlert::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emi__SubscribeForGeneralAlert); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emi__SubscribeForGeneralAlert::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emi__SubscribeForGeneralAlert(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__SubscribeForGeneralAlert(struct soap *soap, const char *tag, int id, const _emi__SubscribeForGeneralAlert *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emi__SubscribeForGeneralAlert), type); soap_out_PointerToemi__AlertSubscriptionGeneralType(soap, "emi:SubscriptionInfo", -1, &(a->_emi__SubscribeForGeneralAlert::SubscriptionInfo), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emi__SubscribeForGeneralAlert::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emi__SubscribeForGeneralAlert(soap, this, tag, type); } SOAP_FMAC3 _emi__SubscribeForGeneralAlert * SOAP_FMAC4 soap_get__emi__SubscribeForGeneralAlert(struct soap *soap, _emi__SubscribeForGeneralAlert *p, const char *tag, const char *type) { if ((p = soap_in__emi__SubscribeForGeneralAlert(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emi__SubscribeForGeneralAlert::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emi__SubscribeForGeneralAlert(soap, tag, this, type); } SOAP_FMAC3 _emi__SubscribeForGeneralAlert * SOAP_FMAC4 soap_in__emi__SubscribeForGeneralAlert(struct soap *soap, const char *tag, _emi__SubscribeForGeneralAlert *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emi__SubscribeForGeneralAlert *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emi__SubscribeForGeneralAlert, sizeof(_emi__SubscribeForGeneralAlert), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emi__SubscribeForGeneralAlert) { soap_revert(soap); *soap->id = '\0'; return (_emi__SubscribeForGeneralAlert *)a->soap_in(soap, tag, type); } } short soap_flag_SubscriptionInfo1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_SubscriptionInfo1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToemi__AlertSubscriptionGeneralType(soap, "emi:SubscriptionInfo", &(a->_emi__SubscribeForGeneralAlert::SubscriptionInfo), "emi:AlertSubscriptionGeneralType")) { soap_flag_SubscriptionInfo1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emi__SubscribeForGeneralAlert *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emi__SubscribeForGeneralAlert, 0, sizeof(_emi__SubscribeForGeneralAlert), 0, soap_copy__emi__SubscribeForGeneralAlert); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_SubscriptionInfo1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 _emi__SubscribeForGeneralAlert * SOAP_FMAC6 soap_new__emi__SubscribeForGeneralAlert(struct soap *soap, int n) { return soap_instantiate__emi__SubscribeForGeneralAlert(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__SubscribeForGeneralAlert(struct soap *soap, _emi__SubscribeForGeneralAlert *p) { soap_delete(soap, p); } SOAP_FMAC3 _emi__SubscribeForGeneralAlert * SOAP_FMAC4 soap_instantiate__emi__SubscribeForGeneralAlert(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emi__SubscribeForGeneralAlert(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emi__SubscribeForGeneralAlert, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emi__SubscribeForGeneralAlert; if (size) *size = sizeof(_emi__SubscribeForGeneralAlert); ((_emi__SubscribeForGeneralAlert*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emi__SubscribeForGeneralAlert[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emi__SubscribeForGeneralAlert); for (int i = 0; i < n; i++) ((_emi__SubscribeForGeneralAlert*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emi__SubscribeForGeneralAlert*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__SubscribeForGeneralAlert(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emi__SubscribeForGeneralAlert %p -> %p\n", q, p)); *(_emi__SubscribeForGeneralAlert*)p = *(_emi__SubscribeForGeneralAlert*)q; } void _emi__CancelAlertSubscriptionResponse::soap_default(struct soap *soap) { this->soap = soap; soap_default_emi__PT_USCORESTATUS(soap, &this->_emi__CancelAlertSubscriptionResponse::Status); /* transient soap skipped */ } void _emi__CancelAlertSubscriptionResponse::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int _emi__CancelAlertSubscriptionResponse::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emi__CancelAlertSubscriptionResponse); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emi__CancelAlertSubscriptionResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emi__CancelAlertSubscriptionResponse(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__CancelAlertSubscriptionResponse(struct soap *soap, const char *tag, int id, const _emi__CancelAlertSubscriptionResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emi__CancelAlertSubscriptionResponse), type); soap_out_emi__PT_USCORESTATUS(soap, "emi:Status", -1, &(a->_emi__CancelAlertSubscriptionResponse::Status), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emi__CancelAlertSubscriptionResponse::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emi__CancelAlertSubscriptionResponse(soap, this, tag, type); } SOAP_FMAC3 _emi__CancelAlertSubscriptionResponse * SOAP_FMAC4 soap_get__emi__CancelAlertSubscriptionResponse(struct soap *soap, _emi__CancelAlertSubscriptionResponse *p, const char *tag, const char *type) { if ((p = soap_in__emi__CancelAlertSubscriptionResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emi__CancelAlertSubscriptionResponse::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emi__CancelAlertSubscriptionResponse(soap, tag, this, type); } SOAP_FMAC3 _emi__CancelAlertSubscriptionResponse * SOAP_FMAC4 soap_in__emi__CancelAlertSubscriptionResponse(struct soap *soap, const char *tag, _emi__CancelAlertSubscriptionResponse *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emi__CancelAlertSubscriptionResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emi__CancelAlertSubscriptionResponse, sizeof(_emi__CancelAlertSubscriptionResponse), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emi__CancelAlertSubscriptionResponse) { soap_revert(soap); *soap->id = '\0'; return (_emi__CancelAlertSubscriptionResponse *)a->soap_in(soap, tag, type); } } short soap_flag_Status1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Status1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__PT_USCORESTATUS(soap, "emi:Status", &(a->_emi__CancelAlertSubscriptionResponse::Status), "emi:PT_STATUS")) { soap_flag_Status1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emi__CancelAlertSubscriptionResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emi__CancelAlertSubscriptionResponse, 0, sizeof(_emi__CancelAlertSubscriptionResponse), 0, soap_copy__emi__CancelAlertSubscriptionResponse); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Status1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 _emi__CancelAlertSubscriptionResponse * SOAP_FMAC6 soap_new__emi__CancelAlertSubscriptionResponse(struct soap *soap, int n) { return soap_instantiate__emi__CancelAlertSubscriptionResponse(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__CancelAlertSubscriptionResponse(struct soap *soap, _emi__CancelAlertSubscriptionResponse *p) { soap_delete(soap, p); } SOAP_FMAC3 _emi__CancelAlertSubscriptionResponse * SOAP_FMAC4 soap_instantiate__emi__CancelAlertSubscriptionResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emi__CancelAlertSubscriptionResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emi__CancelAlertSubscriptionResponse, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emi__CancelAlertSubscriptionResponse; if (size) *size = sizeof(_emi__CancelAlertSubscriptionResponse); ((_emi__CancelAlertSubscriptionResponse*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emi__CancelAlertSubscriptionResponse[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emi__CancelAlertSubscriptionResponse); for (int i = 0; i < n; i++) ((_emi__CancelAlertSubscriptionResponse*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emi__CancelAlertSubscriptionResponse*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__CancelAlertSubscriptionResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emi__CancelAlertSubscriptionResponse %p -> %p\n", q, p)); *(_emi__CancelAlertSubscriptionResponse*)p = *(_emi__CancelAlertSubscriptionResponse*)q; } void _emi__CancelAlertSubscription::soap_default(struct soap *soap) { this->soap = soap; soap_default_emi__AlertSubscriptionHandleType(soap, &this->_emi__CancelAlertSubscription::SubscriptionHandle); /* transient soap skipped */ } void _emi__CancelAlertSubscription::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int _emi__CancelAlertSubscription::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__emi__CancelAlertSubscription); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int _emi__CancelAlertSubscription::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__emi__CancelAlertSubscription(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__CancelAlertSubscription(struct soap *soap, const char *tag, int id, const _emi__CancelAlertSubscription *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__emi__CancelAlertSubscription), type); soap_out_emi__AlertSubscriptionHandleType(soap, "emi:SubscriptionHandle", -1, &(a->_emi__CancelAlertSubscription::SubscriptionHandle), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *_emi__CancelAlertSubscription::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__emi__CancelAlertSubscription(soap, this, tag, type); } SOAP_FMAC3 _emi__CancelAlertSubscription * SOAP_FMAC4 soap_get__emi__CancelAlertSubscription(struct soap *soap, _emi__CancelAlertSubscription *p, const char *tag, const char *type) { if ((p = soap_in__emi__CancelAlertSubscription(soap, tag, p, type))) soap_getindependent(soap); return p; } void *_emi__CancelAlertSubscription::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__emi__CancelAlertSubscription(soap, tag, this, type); } SOAP_FMAC3 _emi__CancelAlertSubscription * SOAP_FMAC4 soap_in__emi__CancelAlertSubscription(struct soap *soap, const char *tag, _emi__CancelAlertSubscription *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_emi__CancelAlertSubscription *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__emi__CancelAlertSubscription, sizeof(_emi__CancelAlertSubscription), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__emi__CancelAlertSubscription) { soap_revert(soap); *soap->id = '\0'; return (_emi__CancelAlertSubscription *)a->soap_in(soap, tag, type); } } short soap_flag_SubscriptionHandle1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_SubscriptionHandle1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__AlertSubscriptionHandleType(soap, "emi:SubscriptionHandle", &(a->_emi__CancelAlertSubscription::SubscriptionHandle), "emi:AlertSubscriptionHandleType")) { soap_flag_SubscriptionHandle1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_emi__CancelAlertSubscription *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__emi__CancelAlertSubscription, 0, sizeof(_emi__CancelAlertSubscription), 0, soap_copy__emi__CancelAlertSubscription); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_SubscriptionHandle1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 _emi__CancelAlertSubscription * SOAP_FMAC6 soap_new__emi__CancelAlertSubscription(struct soap *soap, int n) { return soap_instantiate__emi__CancelAlertSubscription(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__CancelAlertSubscription(struct soap *soap, _emi__CancelAlertSubscription *p) { soap_delete(soap, p); } SOAP_FMAC3 _emi__CancelAlertSubscription * SOAP_FMAC4 soap_instantiate__emi__CancelAlertSubscription(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__emi__CancelAlertSubscription(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__emi__CancelAlertSubscription, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new _emi__CancelAlertSubscription; if (size) *size = sizeof(_emi__CancelAlertSubscription); ((_emi__CancelAlertSubscription*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new _emi__CancelAlertSubscription[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_emi__CancelAlertSubscription); for (int i = 0; i < n; i++) ((_emi__CancelAlertSubscription*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_emi__CancelAlertSubscription*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__CancelAlertSubscription(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _emi__CancelAlertSubscription %p -> %p\n", q, p)); *(_emi__CancelAlertSubscription*)p = *(_emi__CancelAlertSubscription*)q; } void emi__AlertSubscriptionGeneralType::soap_default(struct soap *soap) { this->soap = soap; this->emi__AlertSubscriptionGeneralType::__union_AlertSubscriptionGeneralType = 0; soap_default_emi__AlertSubscriptionPolicyIDType(soap, &this->emi__AlertSubscriptionGeneralType::PolicyID); /* transient soap skipped */ } void emi__AlertSubscriptionGeneralType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize__emi__union_AlertSubscriptionGeneralType(soap, this->emi__AlertSubscriptionGeneralType::__union_AlertSubscriptionGeneralType, &this->emi__AlertSubscriptionGeneralType::union_AlertSubscriptionGeneralType); soap_embedded(soap, &this->emi__AlertSubscriptionGeneralType::PolicyID, SOAP_TYPE_emi__AlertSubscriptionPolicyIDType); /* transient soap skipped */ } int emi__AlertSubscriptionGeneralType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__AlertSubscriptionGeneralType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__AlertSubscriptionGeneralType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__AlertSubscriptionGeneralType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionGeneralType(struct soap *soap, const char *tag, int id, const emi__AlertSubscriptionGeneralType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__AlertSubscriptionGeneralType), type); soap_out__emi__union_AlertSubscriptionGeneralType(soap, a->emi__AlertSubscriptionGeneralType::__union_AlertSubscriptionGeneralType, &a->emi__AlertSubscriptionGeneralType::union_AlertSubscriptionGeneralType); soap_out_emi__AlertSubscriptionPolicyIDType(soap, "emi:PolicyID", -1, &(a->emi__AlertSubscriptionGeneralType::PolicyID), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__AlertSubscriptionGeneralType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__AlertSubscriptionGeneralType(soap, this, tag, type); } SOAP_FMAC3 emi__AlertSubscriptionGeneralType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionGeneralType(struct soap *soap, emi__AlertSubscriptionGeneralType *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertSubscriptionGeneralType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__AlertSubscriptionGeneralType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__AlertSubscriptionGeneralType(soap, tag, this, type); } SOAP_FMAC3 emi__AlertSubscriptionGeneralType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionGeneralType(struct soap *soap, const char *tag, emi__AlertSubscriptionGeneralType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__AlertSubscriptionGeneralType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__AlertSubscriptionGeneralType, sizeof(emi__AlertSubscriptionGeneralType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__AlertSubscriptionGeneralType) { soap_revert(soap); *soap->id = '\0'; return (emi__AlertSubscriptionGeneralType *)a->soap_in(soap, tag, type); } } short soap_flag_union_AlertSubscriptionGeneralType1 = 1, soap_flag_PolicyID1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_union_AlertSubscriptionGeneralType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in__emi__union_AlertSubscriptionGeneralType(soap, &a->emi__AlertSubscriptionGeneralType::__union_AlertSubscriptionGeneralType, &a->emi__AlertSubscriptionGeneralType::union_AlertSubscriptionGeneralType)) { soap_flag_union_AlertSubscriptionGeneralType1 = 0; continue; } if (soap_flag_PolicyID1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__AlertSubscriptionPolicyIDType(soap, "emi:PolicyID", &(a->emi__AlertSubscriptionGeneralType::PolicyID), "emi:AlertSubscriptionPolicyIDType")) { soap_flag_PolicyID1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__AlertSubscriptionGeneralType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__AlertSubscriptionGeneralType, 0, sizeof(emi__AlertSubscriptionGeneralType), 0, soap_copy_emi__AlertSubscriptionGeneralType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_union_AlertSubscriptionGeneralType1 || soap_flag_PolicyID1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__AlertSubscriptionGeneralType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionGeneralType(struct soap *soap, int n) { return soap_instantiate_emi__AlertSubscriptionGeneralType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionGeneralType(struct soap *soap, emi__AlertSubscriptionGeneralType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__AlertSubscriptionGeneralType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionGeneralType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__AlertSubscriptionGeneralType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__AlertSubscriptionGeneralType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__AlertSubscriptionGeneralType; if (size) *size = sizeof(emi__AlertSubscriptionGeneralType); ((emi__AlertSubscriptionGeneralType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__AlertSubscriptionGeneralType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__AlertSubscriptionGeneralType); for (int i = 0; i < n; i++) ((emi__AlertSubscriptionGeneralType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__AlertSubscriptionGeneralType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionGeneralType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__AlertSubscriptionGeneralType %p -> %p\n", q, p)); *(emi__AlertSubscriptionGeneralType*)p = *(emi__AlertSubscriptionGeneralType*)q; } void emi__AlertSubscriptionSoapType::soap_default(struct soap *soap) { this->soap = soap; this->emi__AlertSubscriptionSoapType::Address = NULL; this->emi__AlertSubscriptionSoapType::ClientCredentials = NULL; this->emi__AlertSubscriptionSoapType::UserCredentials = NULL; soap_default_std__vectorTemplateOfemi__AlertAuthOptionsType(soap, &this->emi__AlertSubscriptionSoapType::AlertAuthOptions); /* transient soap skipped */ } void emi__AlertSubscriptionSoapType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerTocmn__URLType(soap, &this->emi__AlertSubscriptionSoapType::Address); soap_serialize_PointerTosai__CertificateHandleType(soap, &this->emi__AlertSubscriptionSoapType::ClientCredentials); soap_serialize_PointerToemi__AlertCredentialsType(soap, &this->emi__AlertSubscriptionSoapType::UserCredentials); soap_serialize_std__vectorTemplateOfemi__AlertAuthOptionsType(soap, &this->emi__AlertSubscriptionSoapType::AlertAuthOptions); /* transient soap skipped */ } int emi__AlertSubscriptionSoapType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__AlertSubscriptionSoapType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__AlertSubscriptionSoapType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__AlertSubscriptionSoapType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionSoapType(struct soap *soap, const char *tag, int id, const emi__AlertSubscriptionSoapType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__AlertSubscriptionSoapType), type); soap_out_PointerTocmn__URLType(soap, "emi:Address", -1, &(a->emi__AlertSubscriptionSoapType::Address), ""); soap_out_PointerTosai__CertificateHandleType(soap, "emi:ClientCredentials", -1, &(a->emi__AlertSubscriptionSoapType::ClientCredentials), ""); soap_out_PointerToemi__AlertCredentialsType(soap, "emi:UserCredentials", -1, &(a->emi__AlertSubscriptionSoapType::UserCredentials), ""); soap_out_std__vectorTemplateOfemi__AlertAuthOptionsType(soap, "emi:AlertAuthOptions", -1, &(a->emi__AlertSubscriptionSoapType::AlertAuthOptions), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__AlertSubscriptionSoapType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__AlertSubscriptionSoapType(soap, this, tag, type); } SOAP_FMAC3 emi__AlertSubscriptionSoapType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionSoapType(struct soap *soap, emi__AlertSubscriptionSoapType *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertSubscriptionSoapType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__AlertSubscriptionSoapType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__AlertSubscriptionSoapType(soap, tag, this, type); } SOAP_FMAC3 emi__AlertSubscriptionSoapType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionSoapType(struct soap *soap, const char *tag, emi__AlertSubscriptionSoapType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__AlertSubscriptionSoapType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__AlertSubscriptionSoapType, sizeof(emi__AlertSubscriptionSoapType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__AlertSubscriptionSoapType) { soap_revert(soap); *soap->id = '\0'; return (emi__AlertSubscriptionSoapType *)a->soap_in(soap, tag, type); } } short soap_flag_Address1 = 1, soap_flag_ClientCredentials1 = 1, soap_flag_UserCredentials1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Address1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTocmn__URLType(soap, "emi:Address", &(a->emi__AlertSubscriptionSoapType::Address), "cmn:URLType")) { soap_flag_Address1--; continue; } if (soap_flag_ClientCredentials1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTosai__CertificateHandleType(soap, "emi:ClientCredentials", &(a->emi__AlertSubscriptionSoapType::ClientCredentials), "sai:CertificateHandleType")) { soap_flag_ClientCredentials1--; continue; } if (soap_flag_UserCredentials1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToemi__AlertCredentialsType(soap, "emi:UserCredentials", &(a->emi__AlertSubscriptionSoapType::UserCredentials), "emi:AlertCredentialsType")) { soap_flag_UserCredentials1--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfemi__AlertAuthOptionsType(soap, "emi:AlertAuthOptions", &(a->emi__AlertSubscriptionSoapType::AlertAuthOptions), "emi:AlertAuthOptionsType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__AlertSubscriptionSoapType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__AlertSubscriptionSoapType, 0, sizeof(emi__AlertSubscriptionSoapType), 0, soap_copy_emi__AlertSubscriptionSoapType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Address1 > 0 || a->emi__AlertSubscriptionSoapType::AlertAuthOptions.size() > 3)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__AlertSubscriptionSoapType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionSoapType(struct soap *soap, int n) { return soap_instantiate_emi__AlertSubscriptionSoapType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionSoapType(struct soap *soap, emi__AlertSubscriptionSoapType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__AlertSubscriptionSoapType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionSoapType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__AlertSubscriptionSoapType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__AlertSubscriptionSoapType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__AlertSubscriptionSoapType; if (size) *size = sizeof(emi__AlertSubscriptionSoapType); ((emi__AlertSubscriptionSoapType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__AlertSubscriptionSoapType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__AlertSubscriptionSoapType); for (int i = 0; i < n; i++) ((emi__AlertSubscriptionSoapType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__AlertSubscriptionSoapType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionSoapType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__AlertSubscriptionSoapType %p -> %p\n", q, p)); *(emi__AlertSubscriptionSoapType*)p = *(emi__AlertSubscriptionSoapType*)q; } void emi__AlertSubscriptionSNMPType::soap_default(struct soap *soap) { this->soap = soap; this->emi__AlertSubscriptionSNMPType::Address = NULL; this->emi__AlertSubscriptionSNMPType::CommunityString = NULL; /* transient soap skipped */ } void emi__AlertSubscriptionSNMPType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerTocmn__NodeAddressType(soap, &this->emi__AlertSubscriptionSNMPType::Address); soap_serialize_PointerToemi__CommunityStringType(soap, &this->emi__AlertSubscriptionSNMPType::CommunityString); /* transient soap skipped */ } int emi__AlertSubscriptionSNMPType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__AlertSubscriptionSNMPType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__AlertSubscriptionSNMPType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__AlertSubscriptionSNMPType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionSNMPType(struct soap *soap, const char *tag, int id, const emi__AlertSubscriptionSNMPType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__AlertSubscriptionSNMPType), type); soap_out_PointerTocmn__NodeAddressType(soap, "emi:Address", -1, &(a->emi__AlertSubscriptionSNMPType::Address), ""); soap_out_PointerToemi__CommunityStringType(soap, "emi:CommunityString", -1, &(a->emi__AlertSubscriptionSNMPType::CommunityString), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__AlertSubscriptionSNMPType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__AlertSubscriptionSNMPType(soap, this, tag, type); } SOAP_FMAC3 emi__AlertSubscriptionSNMPType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionSNMPType(struct soap *soap, emi__AlertSubscriptionSNMPType *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertSubscriptionSNMPType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__AlertSubscriptionSNMPType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__AlertSubscriptionSNMPType(soap, tag, this, type); } SOAP_FMAC3 emi__AlertSubscriptionSNMPType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionSNMPType(struct soap *soap, const char *tag, emi__AlertSubscriptionSNMPType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__AlertSubscriptionSNMPType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__AlertSubscriptionSNMPType, sizeof(emi__AlertSubscriptionSNMPType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__AlertSubscriptionSNMPType) { soap_revert(soap); *soap->id = '\0'; return (emi__AlertSubscriptionSNMPType *)a->soap_in(soap, tag, type); } } short soap_flag_Address1 = 1, soap_flag_CommunityString1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Address1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTocmn__NodeAddressType(soap, "emi:Address", &(a->emi__AlertSubscriptionSNMPType::Address), "cmn:NodeAddressType")) { soap_flag_Address1--; continue; } if (soap_flag_CommunityString1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerToemi__CommunityStringType(soap, "emi:CommunityString", &(a->emi__AlertSubscriptionSNMPType::CommunityString), "emi:CommunityStringType")) { soap_flag_CommunityString1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__AlertSubscriptionSNMPType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__AlertSubscriptionSNMPType, 0, sizeof(emi__AlertSubscriptionSNMPType), 0, soap_copy_emi__AlertSubscriptionSNMPType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Address1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__AlertSubscriptionSNMPType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionSNMPType(struct soap *soap, int n) { return soap_instantiate_emi__AlertSubscriptionSNMPType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionSNMPType(struct soap *soap, emi__AlertSubscriptionSNMPType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__AlertSubscriptionSNMPType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionSNMPType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__AlertSubscriptionSNMPType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__AlertSubscriptionSNMPType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__AlertSubscriptionSNMPType; if (size) *size = sizeof(emi__AlertSubscriptionSNMPType); ((emi__AlertSubscriptionSNMPType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__AlertSubscriptionSNMPType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__AlertSubscriptionSNMPType); for (int i = 0; i < n; i++) ((emi__AlertSubscriptionSNMPType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__AlertSubscriptionSNMPType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionSNMPType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__AlertSubscriptionSNMPType %p -> %p\n", q, p)); *(emi__AlertSubscriptionSNMPType*)p = *(emi__AlertSubscriptionSNMPType*)q; } void emi__AlertCredentialsType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__string(soap, &this->emi__AlertCredentialsType::Username); soap_default_std__string(soap, &this->emi__AlertCredentialsType::Password); /* transient soap skipped */ } void emi__AlertCredentialsType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->emi__AlertCredentialsType::Username, SOAP_TYPE_std__string); soap_serialize_std__string(soap, &this->emi__AlertCredentialsType::Username); soap_embedded(soap, &this->emi__AlertCredentialsType::Password, SOAP_TYPE_std__string); soap_serialize_std__string(soap, &this->emi__AlertCredentialsType::Password); /* transient soap skipped */ } int emi__AlertCredentialsType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__AlertCredentialsType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__AlertCredentialsType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__AlertCredentialsType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertCredentialsType(struct soap *soap, const char *tag, int id, const emi__AlertCredentialsType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__AlertCredentialsType), type); soap_out_std__string(soap, "emi:Username", -1, &(a->emi__AlertCredentialsType::Username), ""); soap_out_std__string(soap, "emi:Password", -1, &(a->emi__AlertCredentialsType::Password), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__AlertCredentialsType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__AlertCredentialsType(soap, this, tag, type); } SOAP_FMAC3 emi__AlertCredentialsType * SOAP_FMAC4 soap_get_emi__AlertCredentialsType(struct soap *soap, emi__AlertCredentialsType *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertCredentialsType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__AlertCredentialsType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__AlertCredentialsType(soap, tag, this, type); } SOAP_FMAC3 emi__AlertCredentialsType * SOAP_FMAC4 soap_in_emi__AlertCredentialsType(struct soap *soap, const char *tag, emi__AlertCredentialsType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__AlertCredentialsType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__AlertCredentialsType, sizeof(emi__AlertCredentialsType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__AlertCredentialsType) { soap_revert(soap); *soap->id = '\0'; return (emi__AlertCredentialsType *)a->soap_in(soap, tag, type); } } short soap_flag_Username1 = 1, soap_flag_Password1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Username1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_std__string(soap, "emi:Username", &(a->emi__AlertCredentialsType::Username), "xsd:string")) { soap_flag_Username1--; continue; } if (soap_flag_Password1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_std__string(soap, "emi:Password", &(a->emi__AlertCredentialsType::Password), "xsd:string")) { soap_flag_Password1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__AlertCredentialsType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__AlertCredentialsType, 0, sizeof(emi__AlertCredentialsType), 0, soap_copy_emi__AlertCredentialsType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_Username1 > 0 || soap_flag_Password1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__AlertCredentialsType * SOAP_FMAC6 soap_new_emi__AlertCredentialsType(struct soap *soap, int n) { return soap_instantiate_emi__AlertCredentialsType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertCredentialsType(struct soap *soap, emi__AlertCredentialsType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__AlertCredentialsType * SOAP_FMAC4 soap_instantiate_emi__AlertCredentialsType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__AlertCredentialsType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__AlertCredentialsType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__AlertCredentialsType; if (size) *size = sizeof(emi__AlertCredentialsType); ((emi__AlertCredentialsType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__AlertCredentialsType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__AlertCredentialsType); for (int i = 0; i < n; i++) ((emi__AlertCredentialsType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__AlertCredentialsType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertCredentialsType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__AlertCredentialsType %p -> %p\n", q, p)); *(emi__AlertCredentialsType*)p = *(emi__AlertCredentialsType*)q; } void emi__ByteStr::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfunsignedByte(soap, &this->emi__ByteStr::Byte); /* transient soap skipped */ } void emi__ByteStr::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfunsignedByte(soap, &this->emi__ByteStr::Byte); /* transient soap skipped */ } int emi__ByteStr::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__ByteStr); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__ByteStr::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__ByteStr(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__ByteStr(struct soap *soap, const char *tag, int id, const emi__ByteStr *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__ByteStr), type); soap_out_std__vectorTemplateOfunsignedByte(soap, "emi:Byte", -1, &(a->emi__ByteStr::Byte), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__ByteStr::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__ByteStr(soap, this, tag, type); } SOAP_FMAC3 emi__ByteStr * SOAP_FMAC4 soap_get_emi__ByteStr(struct soap *soap, emi__ByteStr *p, const char *tag, const char *type) { if ((p = soap_in_emi__ByteStr(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__ByteStr::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__ByteStr(soap, tag, this, type); } SOAP_FMAC3 emi__ByteStr * SOAP_FMAC4 soap_in_emi__ByteStr(struct soap *soap, const char *tag, emi__ByteStr *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__ByteStr *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__ByteStr, sizeof(emi__ByteStr), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__ByteStr) { soap_revert(soap); *soap->id = '\0'; return (emi__ByteStr *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfunsignedByte(soap, "emi:Byte", &(a->emi__ByteStr::Byte), "xsd:unsignedByte")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__ByteStr *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__ByteStr, 0, sizeof(emi__ByteStr), 0, soap_copy_emi__ByteStr); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (a->emi__ByteStr::Byte.size() > 16)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__ByteStr * SOAP_FMAC6 soap_new_emi__ByteStr(struct soap *soap, int n) { return soap_instantiate_emi__ByteStr(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__ByteStr(struct soap *soap, emi__ByteStr *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__ByteStr * SOAP_FMAC4 soap_instantiate_emi__ByteStr(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__ByteStr(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__ByteStr, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__ByteStr; if (size) *size = sizeof(emi__ByteStr); ((emi__ByteStr*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__ByteStr[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__ByteStr); for (int i = 0; i < n; i++) ((emi__ByteStr*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__ByteStr*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__ByteStr(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__ByteStr %p -> %p\n", q, p)); *(emi__ByteStr*)p = *(emi__ByteStr*)q; } void emi__SensorAttributesType::soap_default(struct soap *soap) { this->soap = soap; soap_default_bool(soap, &this->emi__SensorAttributesType::IsLegacySensor); soap_default_bool(soap, &this->emi__SensorAttributesType::AssertionEvent); soap_default_bool(soap, &this->emi__SensorAttributesType::DeassertionEvent); soap_default_unsignedByte(soap, &this->emi__SensorAttributesType::Index); soap_default_unsignedByte(soap, &this->emi__SensorAttributesType::DeviceAddress); soap_default_unsignedByte(soap, &this->emi__SensorAttributesType::EventSensorType); soap_default_unsignedByte(soap, &this->emi__SensorAttributesType::EventType); soap_default_unsignedByte(soap, &this->emi__SensorAttributesType::EventOffset); soap_default_unsignedByte(soap, &this->emi__SensorAttributesType::EventSourceType); soap_default_emi__EventSeverityType(soap, &this->emi__SensorAttributesType::EventSeverity); soap_default_unsignedByte(soap, &this->emi__SensorAttributesType::SensorNumber); soap_default_unsignedByte(soap, &this->emi__SensorAttributesType::Entity); soap_default_unsignedByte(soap, &this->emi__SensorAttributesType::EntityInstance); /* transient soap skipped */ } void emi__SensorAttributesType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->emi__SensorAttributesType::IsLegacySensor, SOAP_TYPE_bool); soap_embedded(soap, &this->emi__SensorAttributesType::AssertionEvent, SOAP_TYPE_bool); soap_embedded(soap, &this->emi__SensorAttributesType::DeassertionEvent, SOAP_TYPE_bool); soap_embedded(soap, &this->emi__SensorAttributesType::Index, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__SensorAttributesType::DeviceAddress, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__SensorAttributesType::EventSensorType, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__SensorAttributesType::EventType, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__SensorAttributesType::EventOffset, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__SensorAttributesType::EventSourceType, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__SensorAttributesType::SensorNumber, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__SensorAttributesType::Entity, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__SensorAttributesType::EntityInstance, SOAP_TYPE_unsignedByte); /* transient soap skipped */ } int emi__SensorAttributesType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__SensorAttributesType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__SensorAttributesType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__SensorAttributesType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__SensorAttributesType(struct soap *soap, const char *tag, int id, const emi__SensorAttributesType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__SensorAttributesType), type); soap_out_bool(soap, "emi:IsLegacySensor", -1, &(a->emi__SensorAttributesType::IsLegacySensor), ""); soap_out_bool(soap, "emi:AssertionEvent", -1, &(a->emi__SensorAttributesType::AssertionEvent), ""); soap_out_bool(soap, "emi:DeassertionEvent", -1, &(a->emi__SensorAttributesType::DeassertionEvent), ""); soap_out_unsignedByte(soap, "emi:Index", -1, &(a->emi__SensorAttributesType::Index), ""); soap_out_unsignedByte(soap, "emi:DeviceAddress", -1, &(a->emi__SensorAttributesType::DeviceAddress), ""); soap_out_unsignedByte(soap, "emi:EventSensorType", -1, &(a->emi__SensorAttributesType::EventSensorType), ""); soap_out_unsignedByte(soap, "emi:EventType", -1, &(a->emi__SensorAttributesType::EventType), ""); soap_out_unsignedByte(soap, "emi:EventOffset", -1, &(a->emi__SensorAttributesType::EventOffset), ""); soap_out_unsignedByte(soap, "emi:EventSourceType", -1, &(a->emi__SensorAttributesType::EventSourceType), ""); soap_out_emi__EventSeverityType(soap, "emi:EventSeverity", -1, &(a->emi__SensorAttributesType::EventSeverity), ""); soap_out_unsignedByte(soap, "emi:SensorNumber", -1, &(a->emi__SensorAttributesType::SensorNumber), ""); soap_out_unsignedByte(soap, "emi:Entity", -1, &(a->emi__SensorAttributesType::Entity), ""); soap_out_unsignedByte(soap, "emi:EntityInstance", -1, &(a->emi__SensorAttributesType::EntityInstance), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__SensorAttributesType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__SensorAttributesType(soap, this, tag, type); } SOAP_FMAC3 emi__SensorAttributesType * SOAP_FMAC4 soap_get_emi__SensorAttributesType(struct soap *soap, emi__SensorAttributesType *p, const char *tag, const char *type) { if ((p = soap_in_emi__SensorAttributesType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__SensorAttributesType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__SensorAttributesType(soap, tag, this, type); } SOAP_FMAC3 emi__SensorAttributesType * SOAP_FMAC4 soap_in_emi__SensorAttributesType(struct soap *soap, const char *tag, emi__SensorAttributesType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__SensorAttributesType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__SensorAttributesType, sizeof(emi__SensorAttributesType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__SensorAttributesType) { soap_revert(soap); *soap->id = '\0'; return (emi__SensorAttributesType *)a->soap_in(soap, tag, type); } } short soap_flag_IsLegacySensor1 = 1, soap_flag_AssertionEvent1 = 1, soap_flag_DeassertionEvent1 = 1, soap_flag_Index1 = 1, soap_flag_DeviceAddress1 = 1, soap_flag_EventSensorType1 = 1, soap_flag_EventType1 = 1, soap_flag_EventOffset1 = 1, soap_flag_EventSourceType1 = 1, soap_flag_EventSeverity1 = 1, soap_flag_SensorNumber1 = 1, soap_flag_Entity1 = 1, soap_flag_EntityInstance1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_IsLegacySensor1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_bool(soap, "emi:IsLegacySensor", &(a->emi__SensorAttributesType::IsLegacySensor), "xsd:boolean")) { soap_flag_IsLegacySensor1--; continue; } if (soap_flag_AssertionEvent1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_bool(soap, "emi:AssertionEvent", &(a->emi__SensorAttributesType::AssertionEvent), "xsd:boolean")) { soap_flag_AssertionEvent1--; continue; } if (soap_flag_DeassertionEvent1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_bool(soap, "emi:DeassertionEvent", &(a->emi__SensorAttributesType::DeassertionEvent), "xsd:boolean")) { soap_flag_DeassertionEvent1--; continue; } if (soap_flag_Index1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:Index", &(a->emi__SensorAttributesType::Index), "xsd:unsignedByte")) { soap_flag_Index1--; continue; } if (soap_flag_DeviceAddress1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:DeviceAddress", &(a->emi__SensorAttributesType::DeviceAddress), "xsd:unsignedByte")) { soap_flag_DeviceAddress1--; continue; } if (soap_flag_EventSensorType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventSensorType", &(a->emi__SensorAttributesType::EventSensorType), "xsd:unsignedByte")) { soap_flag_EventSensorType1--; continue; } if (soap_flag_EventType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventType", &(a->emi__SensorAttributesType::EventType), "xsd:unsignedByte")) { soap_flag_EventType1--; continue; } if (soap_flag_EventOffset1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventOffset", &(a->emi__SensorAttributesType::EventOffset), "xsd:unsignedByte")) { soap_flag_EventOffset1--; continue; } if (soap_flag_EventSourceType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventSourceType", &(a->emi__SensorAttributesType::EventSourceType), "xsd:unsignedByte")) { soap_flag_EventSourceType1--; continue; } if (soap_flag_EventSeverity1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__EventSeverityType(soap, "emi:EventSeverity", &(a->emi__SensorAttributesType::EventSeverity), "emi:EventSeverityType")) { soap_flag_EventSeverity1--; continue; } if (soap_flag_SensorNumber1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:SensorNumber", &(a->emi__SensorAttributesType::SensorNumber), "xsd:unsignedByte")) { soap_flag_SensorNumber1--; continue; } if (soap_flag_Entity1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:Entity", &(a->emi__SensorAttributesType::Entity), "xsd:unsignedByte")) { soap_flag_Entity1--; continue; } if (soap_flag_EntityInstance1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EntityInstance", &(a->emi__SensorAttributesType::EntityInstance), "xsd:unsignedByte")) { soap_flag_EntityInstance1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__SensorAttributesType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__SensorAttributesType, 0, sizeof(emi__SensorAttributesType), 0, soap_copy_emi__SensorAttributesType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_IsLegacySensor1 > 0 || soap_flag_AssertionEvent1 > 0 || soap_flag_DeassertionEvent1 > 0 || soap_flag_Index1 > 0 || soap_flag_DeviceAddress1 > 0 || soap_flag_EventSensorType1 > 0 || soap_flag_EventType1 > 0 || soap_flag_EventOffset1 > 0 || soap_flag_EventSourceType1 > 0 || soap_flag_EventSeverity1 > 0 || soap_flag_SensorNumber1 > 0 || soap_flag_Entity1 > 0 || soap_flag_EntityInstance1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__SensorAttributesType * SOAP_FMAC6 soap_new_emi__SensorAttributesType(struct soap *soap, int n) { return soap_instantiate_emi__SensorAttributesType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__SensorAttributesType(struct soap *soap, emi__SensorAttributesType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__SensorAttributesType * SOAP_FMAC4 soap_instantiate_emi__SensorAttributesType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__SensorAttributesType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__SensorAttributesType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__SensorAttributesType; if (size) *size = sizeof(emi__SensorAttributesType); ((emi__SensorAttributesType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__SensorAttributesType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__SensorAttributesType); for (int i = 0; i < n; i++) ((emi__SensorAttributesType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__SensorAttributesType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__SensorAttributesType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__SensorAttributesType %p -> %p\n", q, p)); *(emi__SensorAttributesType*)p = *(emi__SensorAttributesType*)q; } void emi__SensorHandleArrayType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfemi__SensorHandleType(soap, &this->emi__SensorHandleArrayType::SensorHandle); /* transient soap skipped */ } void emi__SensorHandleArrayType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfemi__SensorHandleType(soap, &this->emi__SensorHandleArrayType::SensorHandle); /* transient soap skipped */ } int emi__SensorHandleArrayType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__SensorHandleArrayType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__SensorHandleArrayType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__SensorHandleArrayType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__SensorHandleArrayType(struct soap *soap, const char *tag, int id, const emi__SensorHandleArrayType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__SensorHandleArrayType), type); soap_out_std__vectorTemplateOfemi__SensorHandleType(soap, "emi:SensorHandle", -1, &(a->emi__SensorHandleArrayType::SensorHandle), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__SensorHandleArrayType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__SensorHandleArrayType(soap, this, tag, type); } SOAP_FMAC3 emi__SensorHandleArrayType * SOAP_FMAC4 soap_get_emi__SensorHandleArrayType(struct soap *soap, emi__SensorHandleArrayType *p, const char *tag, const char *type) { if ((p = soap_in_emi__SensorHandleArrayType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__SensorHandleArrayType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__SensorHandleArrayType(soap, tag, this, type); } SOAP_FMAC3 emi__SensorHandleArrayType * SOAP_FMAC4 soap_in_emi__SensorHandleArrayType(struct soap *soap, const char *tag, emi__SensorHandleArrayType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__SensorHandleArrayType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__SensorHandleArrayType, sizeof(emi__SensorHandleArrayType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__SensorHandleArrayType) { soap_revert(soap); *soap->id = '\0'; return (emi__SensorHandleArrayType *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfemi__SensorHandleType(soap, "emi:SensorHandle", &(a->emi__SensorHandleArrayType::SensorHandle), "emi:SensorHandleType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__SensorHandleArrayType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__SensorHandleArrayType, 0, sizeof(emi__SensorHandleArrayType), 0, soap_copy_emi__SensorHandleArrayType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 emi__SensorHandleArrayType * SOAP_FMAC6 soap_new_emi__SensorHandleArrayType(struct soap *soap, int n) { return soap_instantiate_emi__SensorHandleArrayType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__SensorHandleArrayType(struct soap *soap, emi__SensorHandleArrayType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__SensorHandleArrayType * SOAP_FMAC4 soap_instantiate_emi__SensorHandleArrayType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__SensorHandleArrayType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__SensorHandleArrayType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__SensorHandleArrayType; if (size) *size = sizeof(emi__SensorHandleArrayType); ((emi__SensorHandleArrayType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__SensorHandleArrayType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__SensorHandleArrayType); for (int i = 0; i < n; i++) ((emi__SensorHandleArrayType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__SensorHandleArrayType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__SensorHandleArrayType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__SensorHandleArrayType %p -> %p\n", q, p)); *(emi__SensorHandleArrayType*)p = *(emi__SensorHandleArrayType*)q; } void emi__EventLogRecordArrayType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, &this->emi__EventLogRecordArrayType::EventLogRecord); /* transient soap skipped */ } void emi__EventLogRecordArrayType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, &this->emi__EventLogRecordArrayType::EventLogRecord); /* transient soap skipped */ } int emi__EventLogRecordArrayType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__EventLogRecordArrayType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__EventLogRecordArrayType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__EventLogRecordArrayType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventLogRecordArrayType(struct soap *soap, const char *tag, int id, const emi__EventLogRecordArrayType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__EventLogRecordArrayType), type); soap_out_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, "emi:EventLogRecord", -1, &(a->emi__EventLogRecordArrayType::EventLogRecord), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__EventLogRecordArrayType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__EventLogRecordArrayType(soap, this, tag, type); } SOAP_FMAC3 emi__EventLogRecordArrayType * SOAP_FMAC4 soap_get_emi__EventLogRecordArrayType(struct soap *soap, emi__EventLogRecordArrayType *p, const char *tag, const char *type) { if ((p = soap_in_emi__EventLogRecordArrayType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__EventLogRecordArrayType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__EventLogRecordArrayType(soap, tag, this, type); } SOAP_FMAC3 emi__EventLogRecordArrayType * SOAP_FMAC4 soap_in_emi__EventLogRecordArrayType(struct soap *soap, const char *tag, emi__EventLogRecordArrayType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__EventLogRecordArrayType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__EventLogRecordArrayType, sizeof(emi__EventLogRecordArrayType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__EventLogRecordArrayType) { soap_revert(soap); *soap->id = '\0'; return (emi__EventLogRecordArrayType *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, "emi:EventLogRecord", &(a->emi__EventLogRecordArrayType::EventLogRecord), "emi:EventLogRecordType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__EventLogRecordArrayType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__EventLogRecordArrayType, 0, sizeof(emi__EventLogRecordArrayType), 0, soap_copy_emi__EventLogRecordArrayType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 emi__EventLogRecordArrayType * SOAP_FMAC6 soap_new_emi__EventLogRecordArrayType(struct soap *soap, int n) { return soap_instantiate_emi__EventLogRecordArrayType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__EventLogRecordArrayType(struct soap *soap, emi__EventLogRecordArrayType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__EventLogRecordArrayType * SOAP_FMAC4 soap_instantiate_emi__EventLogRecordArrayType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__EventLogRecordArrayType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__EventLogRecordArrayType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__EventLogRecordArrayType; if (size) *size = sizeof(emi__EventLogRecordArrayType); ((emi__EventLogRecordArrayType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__EventLogRecordArrayType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__EventLogRecordArrayType); for (int i = 0; i < n; i++) ((emi__EventLogRecordArrayType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__EventLogRecordArrayType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__EventLogRecordArrayType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__EventLogRecordArrayType %p -> %p\n", q, p)); *(emi__EventLogRecordArrayType*)p = *(emi__EventLogRecordArrayType*)q; } void emi__EventFilterHandleArrayType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfemi__EventFilterHandleType(soap, &this->emi__EventFilterHandleArrayType::EventFilterHandle); /* transient soap skipped */ } void emi__EventFilterHandleArrayType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfemi__EventFilterHandleType(soap, &this->emi__EventFilterHandleArrayType::EventFilterHandle); /* transient soap skipped */ } int emi__EventFilterHandleArrayType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__EventFilterHandleArrayType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__EventFilterHandleArrayType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__EventFilterHandleArrayType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventFilterHandleArrayType(struct soap *soap, const char *tag, int id, const emi__EventFilterHandleArrayType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__EventFilterHandleArrayType), type); soap_out_std__vectorTemplateOfemi__EventFilterHandleType(soap, "emi:EventFilterHandle", -1, &(a->emi__EventFilterHandleArrayType::EventFilterHandle), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__EventFilterHandleArrayType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__EventFilterHandleArrayType(soap, this, tag, type); } SOAP_FMAC3 emi__EventFilterHandleArrayType * SOAP_FMAC4 soap_get_emi__EventFilterHandleArrayType(struct soap *soap, emi__EventFilterHandleArrayType *p, const char *tag, const char *type) { if ((p = soap_in_emi__EventFilterHandleArrayType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__EventFilterHandleArrayType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__EventFilterHandleArrayType(soap, tag, this, type); } SOAP_FMAC3 emi__EventFilterHandleArrayType * SOAP_FMAC4 soap_in_emi__EventFilterHandleArrayType(struct soap *soap, const char *tag, emi__EventFilterHandleArrayType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__EventFilterHandleArrayType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__EventFilterHandleArrayType, sizeof(emi__EventFilterHandleArrayType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__EventFilterHandleArrayType) { soap_revert(soap); *soap->id = '\0'; return (emi__EventFilterHandleArrayType *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfemi__EventFilterHandleType(soap, "emi:EventFilterHandle", &(a->emi__EventFilterHandleArrayType::EventFilterHandle), "emi:EventFilterHandleType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__EventFilterHandleArrayType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__EventFilterHandleArrayType, 0, sizeof(emi__EventFilterHandleArrayType), 0, soap_copy_emi__EventFilterHandleArrayType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 emi__EventFilterHandleArrayType * SOAP_FMAC6 soap_new_emi__EventFilterHandleArrayType(struct soap *soap, int n) { return soap_instantiate_emi__EventFilterHandleArrayType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__EventFilterHandleArrayType(struct soap *soap, emi__EventFilterHandleArrayType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__EventFilterHandleArrayType * SOAP_FMAC4 soap_instantiate_emi__EventFilterHandleArrayType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__EventFilterHandleArrayType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__EventFilterHandleArrayType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__EventFilterHandleArrayType; if (size) *size = sizeof(emi__EventFilterHandleArrayType); ((emi__EventFilterHandleArrayType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__EventFilterHandleArrayType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__EventFilterHandleArrayType); for (int i = 0; i < n; i++) ((emi__EventFilterHandleArrayType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__EventFilterHandleArrayType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__EventFilterHandleArrayType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__EventFilterHandleArrayType %p -> %p\n", q, p)); *(emi__EventFilterHandleArrayType*)p = *(emi__EventFilterHandleArrayType*)q; } void emi__AlertSubscriptionHandleArrayType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, &this->emi__AlertSubscriptionHandleArrayType::AlertSubscriptionHandle); /* transient soap skipped */ } void emi__AlertSubscriptionHandleArrayType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, &this->emi__AlertSubscriptionHandleArrayType::AlertSubscriptionHandle); /* transient soap skipped */ } int emi__AlertSubscriptionHandleArrayType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__AlertSubscriptionHandleArrayType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__AlertSubscriptionHandleArrayType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__AlertSubscriptionHandleArrayType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionHandleArrayType(struct soap *soap, const char *tag, int id, const emi__AlertSubscriptionHandleArrayType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__AlertSubscriptionHandleArrayType), type); soap_out_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, "emi:AlertSubscriptionHandle", -1, &(a->emi__AlertSubscriptionHandleArrayType::AlertSubscriptionHandle), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__AlertSubscriptionHandleArrayType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__AlertSubscriptionHandleArrayType(soap, this, tag, type); } SOAP_FMAC3 emi__AlertSubscriptionHandleArrayType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionHandleArrayType(struct soap *soap, emi__AlertSubscriptionHandleArrayType *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertSubscriptionHandleArrayType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__AlertSubscriptionHandleArrayType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__AlertSubscriptionHandleArrayType(soap, tag, this, type); } SOAP_FMAC3 emi__AlertSubscriptionHandleArrayType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionHandleArrayType(struct soap *soap, const char *tag, emi__AlertSubscriptionHandleArrayType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__AlertSubscriptionHandleArrayType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__AlertSubscriptionHandleArrayType, sizeof(emi__AlertSubscriptionHandleArrayType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__AlertSubscriptionHandleArrayType) { soap_revert(soap); *soap->id = '\0'; return (emi__AlertSubscriptionHandleArrayType *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, "emi:AlertSubscriptionHandle", &(a->emi__AlertSubscriptionHandleArrayType::AlertSubscriptionHandle), "emi:AlertSubscriptionHandleType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__AlertSubscriptionHandleArrayType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__AlertSubscriptionHandleArrayType, 0, sizeof(emi__AlertSubscriptionHandleArrayType), 0, soap_copy_emi__AlertSubscriptionHandleArrayType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 emi__AlertSubscriptionHandleArrayType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionHandleArrayType(struct soap *soap, int n) { return soap_instantiate_emi__AlertSubscriptionHandleArrayType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionHandleArrayType(struct soap *soap, emi__AlertSubscriptionHandleArrayType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__AlertSubscriptionHandleArrayType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionHandleArrayType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__AlertSubscriptionHandleArrayType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__AlertSubscriptionHandleArrayType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__AlertSubscriptionHandleArrayType; if (size) *size = sizeof(emi__AlertSubscriptionHandleArrayType); ((emi__AlertSubscriptionHandleArrayType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__AlertSubscriptionHandleArrayType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__AlertSubscriptionHandleArrayType); for (int i = 0; i < n; i++) ((emi__AlertSubscriptionHandleArrayType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__AlertSubscriptionHandleArrayType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionHandleArrayType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__AlertSubscriptionHandleArrayType %p -> %p\n", q, p)); *(emi__AlertSubscriptionHandleArrayType*)p = *(emi__AlertSubscriptionHandleArrayType*)q; } void emi__AlertSubscriptionType::soap_default(struct soap *soap) { this->soap = soap; soap_default_emi__AlertSubscriptionPolicyIDType(soap, &this->emi__AlertSubscriptionType::AlertSubscriptionPolicyID); soap_default_emi__IPv4AddressType(soap, &this->emi__AlertSubscriptionType::DestinationAddress); /* transient soap skipped */ } void emi__AlertSubscriptionType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->emi__AlertSubscriptionType::AlertSubscriptionPolicyID, SOAP_TYPE_emi__AlertSubscriptionPolicyIDType); /* transient soap skipped */ } int emi__AlertSubscriptionType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__AlertSubscriptionType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__AlertSubscriptionType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__AlertSubscriptionType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionType(struct soap *soap, const char *tag, int id, const emi__AlertSubscriptionType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__AlertSubscriptionType), type); soap_out_emi__AlertSubscriptionPolicyIDType(soap, "emi:AlertSubscriptionPolicyID", -1, &(a->emi__AlertSubscriptionType::AlertSubscriptionPolicyID), ""); soap_out_emi__IPv4AddressType(soap, "emi:DestinationAddress", -1, &(a->emi__AlertSubscriptionType::DestinationAddress), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__AlertSubscriptionType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__AlertSubscriptionType(soap, this, tag, type); } SOAP_FMAC3 emi__AlertSubscriptionType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionType(struct soap *soap, emi__AlertSubscriptionType *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertSubscriptionType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__AlertSubscriptionType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__AlertSubscriptionType(soap, tag, this, type); } SOAP_FMAC3 emi__AlertSubscriptionType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionType(struct soap *soap, const char *tag, emi__AlertSubscriptionType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__AlertSubscriptionType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__AlertSubscriptionType, sizeof(emi__AlertSubscriptionType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__AlertSubscriptionType) { soap_revert(soap); *soap->id = '\0'; return (emi__AlertSubscriptionType *)a->soap_in(soap, tag, type); } } short soap_flag_AlertSubscriptionPolicyID1 = 1, soap_flag_DestinationAddress1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_AlertSubscriptionPolicyID1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__AlertSubscriptionPolicyIDType(soap, "emi:AlertSubscriptionPolicyID", &(a->emi__AlertSubscriptionType::AlertSubscriptionPolicyID), "emi:AlertSubscriptionPolicyIDType")) { soap_flag_AlertSubscriptionPolicyID1--; continue; } if (soap_flag_DestinationAddress1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__IPv4AddressType(soap, "emi:DestinationAddress", &(a->emi__AlertSubscriptionType::DestinationAddress), "emi:IPv4AddressType")) { soap_flag_DestinationAddress1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__AlertSubscriptionType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__AlertSubscriptionType, 0, sizeof(emi__AlertSubscriptionType), 0, soap_copy_emi__AlertSubscriptionType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_AlertSubscriptionPolicyID1 > 0 || soap_flag_DestinationAddress1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__AlertSubscriptionType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionType(struct soap *soap, int n) { return soap_instantiate_emi__AlertSubscriptionType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionType(struct soap *soap, emi__AlertSubscriptionType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__AlertSubscriptionType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__AlertSubscriptionType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__AlertSubscriptionType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__AlertSubscriptionType; if (size) *size = sizeof(emi__AlertSubscriptionType); ((emi__AlertSubscriptionType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__AlertSubscriptionType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__AlertSubscriptionType); for (int i = 0; i < n; i++) ((emi__AlertSubscriptionType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__AlertSubscriptionType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__AlertSubscriptionType %p -> %p\n", q, p)); *(emi__AlertSubscriptionType*)p = *(emi__AlertSubscriptionType*)q; } void emi__EventFilterType::soap_default(struct soap *soap) { this->soap = soap; soap_default_unsignedByte(soap, &this->emi__EventFilterType::FilterConfiguration); soap_default_unsignedByte(soap, &this->emi__EventFilterType::FilterAction); soap_default_emi__AlertSubscriptionPolicyIDType(soap, &this->emi__EventFilterType::AlertSubscriptionPolicyID); soap_default_unsignedByte(soap, &this->emi__EventFilterType::DeviceAddress); soap_default_unsignedByte(soap, &this->emi__EventFilterType::EventSensorType); soap_default_unsignedByte(soap, &this->emi__EventFilterType::EventType); soap_default_unsignedByte(soap, &this->emi__EventFilterType::EventOffset); soap_default_unsignedByte(soap, &this->emi__EventFilterType::EventSourceType); soap_default_emi__EventSeverityType(soap, &this->emi__EventFilterType::EventSeverity); soap_default_unsignedByte(soap, &this->emi__EventFilterType::SensorNumber); soap_default_unsignedByte(soap, &this->emi__EventFilterType::Entity); soap_default_unsignedByte(soap, &this->emi__EventFilterType::EntityInstance); /* transient soap skipped */ } void emi__EventFilterType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->emi__EventFilterType::FilterConfiguration, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventFilterType::FilterAction, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventFilterType::AlertSubscriptionPolicyID, SOAP_TYPE_emi__AlertSubscriptionPolicyIDType); soap_embedded(soap, &this->emi__EventFilterType::DeviceAddress, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventFilterType::EventSensorType, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventFilterType::EventType, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventFilterType::EventOffset, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventFilterType::EventSourceType, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventFilterType::SensorNumber, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventFilterType::Entity, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventFilterType::EntityInstance, SOAP_TYPE_unsignedByte); /* transient soap skipped */ } int emi__EventFilterType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__EventFilterType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__EventFilterType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__EventFilterType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventFilterType(struct soap *soap, const char *tag, int id, const emi__EventFilterType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__EventFilterType), type); soap_out_unsignedByte(soap, "emi:FilterConfiguration", -1, &(a->emi__EventFilterType::FilterConfiguration), ""); soap_out_unsignedByte(soap, "emi:FilterAction", -1, &(a->emi__EventFilterType::FilterAction), ""); soap_out_emi__AlertSubscriptionPolicyIDType(soap, "emi:AlertSubscriptionPolicyID", -1, &(a->emi__EventFilterType::AlertSubscriptionPolicyID), ""); soap_out_unsignedByte(soap, "emi:DeviceAddress", -1, &(a->emi__EventFilterType::DeviceAddress), ""); soap_out_unsignedByte(soap, "emi:EventSensorType", -1, &(a->emi__EventFilterType::EventSensorType), ""); soap_out_unsignedByte(soap, "emi:EventType", -1, &(a->emi__EventFilterType::EventType), ""); soap_out_unsignedByte(soap, "emi:EventOffset", -1, &(a->emi__EventFilterType::EventOffset), ""); soap_out_unsignedByte(soap, "emi:EventSourceType", -1, &(a->emi__EventFilterType::EventSourceType), ""); soap_out_emi__EventSeverityType(soap, "emi:EventSeverity", -1, &(a->emi__EventFilterType::EventSeverity), ""); soap_out_unsignedByte(soap, "emi:SensorNumber", -1, &(a->emi__EventFilterType::SensorNumber), ""); soap_out_unsignedByte(soap, "emi:Entity", -1, &(a->emi__EventFilterType::Entity), ""); soap_out_unsignedByte(soap, "emi:EntityInstance", -1, &(a->emi__EventFilterType::EntityInstance), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__EventFilterType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__EventFilterType(soap, this, tag, type); } SOAP_FMAC3 emi__EventFilterType * SOAP_FMAC4 soap_get_emi__EventFilterType(struct soap *soap, emi__EventFilterType *p, const char *tag, const char *type) { if ((p = soap_in_emi__EventFilterType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__EventFilterType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__EventFilterType(soap, tag, this, type); } SOAP_FMAC3 emi__EventFilterType * SOAP_FMAC4 soap_in_emi__EventFilterType(struct soap *soap, const char *tag, emi__EventFilterType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__EventFilterType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__EventFilterType, sizeof(emi__EventFilterType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__EventFilterType) { soap_revert(soap); *soap->id = '\0'; return (emi__EventFilterType *)a->soap_in(soap, tag, type); } } short soap_flag_FilterConfiguration1 = 1, soap_flag_FilterAction1 = 1, soap_flag_AlertSubscriptionPolicyID1 = 1, soap_flag_DeviceAddress1 = 1, soap_flag_EventSensorType1 = 1, soap_flag_EventType1 = 1, soap_flag_EventOffset1 = 1, soap_flag_EventSourceType1 = 1, soap_flag_EventSeverity1 = 1, soap_flag_SensorNumber1 = 1, soap_flag_Entity1 = 1, soap_flag_EntityInstance1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_FilterConfiguration1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:FilterConfiguration", &(a->emi__EventFilterType::FilterConfiguration), "xsd:unsignedByte")) { soap_flag_FilterConfiguration1--; continue; } if (soap_flag_FilterAction1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:FilterAction", &(a->emi__EventFilterType::FilterAction), "xsd:unsignedByte")) { soap_flag_FilterAction1--; continue; } if (soap_flag_AlertSubscriptionPolicyID1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__AlertSubscriptionPolicyIDType(soap, "emi:AlertSubscriptionPolicyID", &(a->emi__EventFilterType::AlertSubscriptionPolicyID), "emi:AlertSubscriptionPolicyIDType")) { soap_flag_AlertSubscriptionPolicyID1--; continue; } if (soap_flag_DeviceAddress1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:DeviceAddress", &(a->emi__EventFilterType::DeviceAddress), "xsd:unsignedByte")) { soap_flag_DeviceAddress1--; continue; } if (soap_flag_EventSensorType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventSensorType", &(a->emi__EventFilterType::EventSensorType), "xsd:unsignedByte")) { soap_flag_EventSensorType1--; continue; } if (soap_flag_EventType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventType", &(a->emi__EventFilterType::EventType), "xsd:unsignedByte")) { soap_flag_EventType1--; continue; } if (soap_flag_EventOffset1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventOffset", &(a->emi__EventFilterType::EventOffset), "xsd:unsignedByte")) { soap_flag_EventOffset1--; continue; } if (soap_flag_EventSourceType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventSourceType", &(a->emi__EventFilterType::EventSourceType), "xsd:unsignedByte")) { soap_flag_EventSourceType1--; continue; } if (soap_flag_EventSeverity1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__EventSeverityType(soap, "emi:EventSeverity", &(a->emi__EventFilterType::EventSeverity), "emi:EventSeverityType")) { soap_flag_EventSeverity1--; continue; } if (soap_flag_SensorNumber1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:SensorNumber", &(a->emi__EventFilterType::SensorNumber), "xsd:unsignedByte")) { soap_flag_SensorNumber1--; continue; } if (soap_flag_Entity1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:Entity", &(a->emi__EventFilterType::Entity), "xsd:unsignedByte")) { soap_flag_Entity1--; continue; } if (soap_flag_EntityInstance1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EntityInstance", &(a->emi__EventFilterType::EntityInstance), "xsd:unsignedByte")) { soap_flag_EntityInstance1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__EventFilterType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__EventFilterType, 0, sizeof(emi__EventFilterType), 0, soap_copy_emi__EventFilterType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_FilterConfiguration1 > 0 || soap_flag_FilterAction1 > 0 || soap_flag_AlertSubscriptionPolicyID1 > 0 || soap_flag_DeviceAddress1 > 0 || soap_flag_EventSensorType1 > 0 || soap_flag_EventType1 > 0 || soap_flag_EventOffset1 > 0 || soap_flag_EventSourceType1 > 0 || soap_flag_EventSeverity1 > 0 || soap_flag_SensorNumber1 > 0 || soap_flag_Entity1 > 0 || soap_flag_EntityInstance1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__EventFilterType * SOAP_FMAC6 soap_new_emi__EventFilterType(struct soap *soap, int n) { return soap_instantiate_emi__EventFilterType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__EventFilterType(struct soap *soap, emi__EventFilterType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__EventFilterType * SOAP_FMAC4 soap_instantiate_emi__EventFilterType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__EventFilterType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__EventFilterType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__EventFilterType; if (size) *size = sizeof(emi__EventFilterType); ((emi__EventFilterType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__EventFilterType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__EventFilterType); for (int i = 0; i < n; i++) ((emi__EventFilterType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__EventFilterType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__EventFilterType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__EventFilterType %p -> %p\n", q, p)); *(emi__EventFilterType*)p = *(emi__EventFilterType*)q; } void emi__EventLogRecordType::soap_default(struct soap *soap) { this->soap = soap; soap_default_emi__TimeType(soap, &this->emi__EventLogRecordType::TimeStamp); soap_default_unsignedByte(soap, &this->emi__EventLogRecordType::DeviceAddress); soap_default_unsignedByte(soap, &this->emi__EventLogRecordType::EventSensorType); soap_default_unsignedByte(soap, &this->emi__EventLogRecordType::EventType); soap_default_unsignedByte(soap, &this->emi__EventLogRecordType::EventOffset); soap_default_unsignedByte(soap, &this->emi__EventLogRecordType::EventSourceType); soap_default_emi__EventSeverityType(soap, &this->emi__EventLogRecordType::EventSeverity); soap_default_unsignedByte(soap, &this->emi__EventLogRecordType::SensorNumber); soap_default_unsignedByte(soap, &this->emi__EventLogRecordType::Entity); soap_default_unsignedByte(soap, &this->emi__EventLogRecordType::EntityInstance); this->emi__EventLogRecordType::EventData = NULL; /* transient soap skipped */ } void emi__EventLogRecordType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->emi__EventLogRecordType::DeviceAddress, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventLogRecordType::EventSensorType, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventLogRecordType::EventType, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventLogRecordType::EventOffset, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventLogRecordType::EventSourceType, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventLogRecordType::SensorNumber, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventLogRecordType::Entity, SOAP_TYPE_unsignedByte); soap_embedded(soap, &this->emi__EventLogRecordType::EntityInstance, SOAP_TYPE_unsignedByte); soap_serialize_PointerToemi__ByteData(soap, &this->emi__EventLogRecordType::EventData); /* transient soap skipped */ } int emi__EventLogRecordType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__EventLogRecordType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__EventLogRecordType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__EventLogRecordType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventLogRecordType(struct soap *soap, const char *tag, int id, const emi__EventLogRecordType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__EventLogRecordType), type); soap_out_emi__TimeType(soap, "emi:TimeStamp", -1, &(a->emi__EventLogRecordType::TimeStamp), ""); soap_out_unsignedByte(soap, "emi:DeviceAddress", -1, &(a->emi__EventLogRecordType::DeviceAddress), ""); soap_out_unsignedByte(soap, "emi:EventSensorType", -1, &(a->emi__EventLogRecordType::EventSensorType), ""); soap_out_unsignedByte(soap, "emi:EventType", -1, &(a->emi__EventLogRecordType::EventType), ""); soap_out_unsignedByte(soap, "emi:EventOffset", -1, &(a->emi__EventLogRecordType::EventOffset), ""); soap_out_unsignedByte(soap, "emi:EventSourceType", -1, &(a->emi__EventLogRecordType::EventSourceType), ""); soap_out_emi__EventSeverityType(soap, "emi:EventSeverity", -1, &(a->emi__EventLogRecordType::EventSeverity), ""); soap_out_unsignedByte(soap, "emi:SensorNumber", -1, &(a->emi__EventLogRecordType::SensorNumber), ""); soap_out_unsignedByte(soap, "emi:Entity", -1, &(a->emi__EventLogRecordType::Entity), ""); soap_out_unsignedByte(soap, "emi:EntityInstance", -1, &(a->emi__EventLogRecordType::EntityInstance), ""); soap_out_PointerToemi__ByteData(soap, "emi:EventData", -1, &(a->emi__EventLogRecordType::EventData), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__EventLogRecordType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__EventLogRecordType(soap, this, tag, type); } SOAP_FMAC3 emi__EventLogRecordType * SOAP_FMAC4 soap_get_emi__EventLogRecordType(struct soap *soap, emi__EventLogRecordType *p, const char *tag, const char *type) { if ((p = soap_in_emi__EventLogRecordType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__EventLogRecordType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__EventLogRecordType(soap, tag, this, type); } SOAP_FMAC3 emi__EventLogRecordType * SOAP_FMAC4 soap_in_emi__EventLogRecordType(struct soap *soap, const char *tag, emi__EventLogRecordType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__EventLogRecordType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__EventLogRecordType, sizeof(emi__EventLogRecordType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__EventLogRecordType) { soap_revert(soap); *soap->id = '\0'; return (emi__EventLogRecordType *)a->soap_in(soap, tag, type); } } short soap_flag_TimeStamp1 = 1, soap_flag_DeviceAddress1 = 1, soap_flag_EventSensorType1 = 1, soap_flag_EventType1 = 1, soap_flag_EventOffset1 = 1, soap_flag_EventSourceType1 = 1, soap_flag_EventSeverity1 = 1, soap_flag_SensorNumber1 = 1, soap_flag_Entity1 = 1, soap_flag_EntityInstance1 = 1, soap_flag_EventData1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_TimeStamp1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__TimeType(soap, "emi:TimeStamp", &(a->emi__EventLogRecordType::TimeStamp), "emi:TimeType")) { soap_flag_TimeStamp1--; continue; } if (soap_flag_DeviceAddress1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:DeviceAddress", &(a->emi__EventLogRecordType::DeviceAddress), "xsd:unsignedByte")) { soap_flag_DeviceAddress1--; continue; } if (soap_flag_EventSensorType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventSensorType", &(a->emi__EventLogRecordType::EventSensorType), "xsd:unsignedByte")) { soap_flag_EventSensorType1--; continue; } if (soap_flag_EventType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventType", &(a->emi__EventLogRecordType::EventType), "xsd:unsignedByte")) { soap_flag_EventType1--; continue; } if (soap_flag_EventOffset1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventOffset", &(a->emi__EventLogRecordType::EventOffset), "xsd:unsignedByte")) { soap_flag_EventOffset1--; continue; } if (soap_flag_EventSourceType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EventSourceType", &(a->emi__EventLogRecordType::EventSourceType), "xsd:unsignedByte")) { soap_flag_EventSourceType1--; continue; } if (soap_flag_EventSeverity1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_emi__EventSeverityType(soap, "emi:EventSeverity", &(a->emi__EventLogRecordType::EventSeverity), "emi:EventSeverityType")) { soap_flag_EventSeverity1--; continue; } if (soap_flag_SensorNumber1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:SensorNumber", &(a->emi__EventLogRecordType::SensorNumber), "xsd:unsignedByte")) { soap_flag_SensorNumber1--; continue; } if (soap_flag_Entity1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:Entity", &(a->emi__EventLogRecordType::Entity), "xsd:unsignedByte")) { soap_flag_Entity1--; continue; } if (soap_flag_EntityInstance1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_unsignedByte(soap, "emi:EntityInstance", &(a->emi__EventLogRecordType::EntityInstance), "xsd:unsignedByte")) { soap_flag_EntityInstance1--; continue; } if (soap_flag_EventData1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToemi__ByteData(soap, "emi:EventData", &(a->emi__EventLogRecordType::EventData), "emi:ByteData")) { soap_flag_EventData1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__EventLogRecordType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__EventLogRecordType, 0, sizeof(emi__EventLogRecordType), 0, soap_copy_emi__EventLogRecordType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_TimeStamp1 > 0 || soap_flag_DeviceAddress1 > 0 || soap_flag_EventSensorType1 > 0 || soap_flag_EventType1 > 0 || soap_flag_EventOffset1 > 0 || soap_flag_EventSourceType1 > 0 || soap_flag_EventSeverity1 > 0 || soap_flag_SensorNumber1 > 0 || soap_flag_Entity1 > 0 || soap_flag_EntityInstance1 > 0 || soap_flag_EventData1 > 0)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__EventLogRecordType * SOAP_FMAC6 soap_new_emi__EventLogRecordType(struct soap *soap, int n) { return soap_instantiate_emi__EventLogRecordType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__EventLogRecordType(struct soap *soap, emi__EventLogRecordType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__EventLogRecordType * SOAP_FMAC4 soap_instantiate_emi__EventLogRecordType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__EventLogRecordType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__EventLogRecordType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__EventLogRecordType; if (size) *size = sizeof(emi__EventLogRecordType); ((emi__EventLogRecordType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__EventLogRecordType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__EventLogRecordType); for (int i = 0; i < n; i++) ((emi__EventLogRecordType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__EventLogRecordType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__EventLogRecordType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__EventLogRecordType %p -> %p\n", q, p)); *(emi__EventLogRecordType*)p = *(emi__EventLogRecordType*)q; } void emi__ByteData::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfunsignedByte(soap, &this->emi__ByteData::Byte); /* transient soap skipped */ } void emi__ByteData::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfunsignedByte(soap, &this->emi__ByteData::Byte); /* transient soap skipped */ } int emi__ByteData::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__ByteData); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__ByteData::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__ByteData(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__ByteData(struct soap *soap, const char *tag, int id, const emi__ByteData *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__ByteData), type); soap_out_std__vectorTemplateOfunsignedByte(soap, "emi:Byte", -1, &(a->emi__ByteData::Byte), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__ByteData::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__ByteData(soap, this, tag, type); } SOAP_FMAC3 emi__ByteData * SOAP_FMAC4 soap_get_emi__ByteData(struct soap *soap, emi__ByteData *p, const char *tag, const char *type) { if ((p = soap_in_emi__ByteData(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__ByteData::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__ByteData(soap, tag, this, type); } SOAP_FMAC3 emi__ByteData * SOAP_FMAC4 soap_in_emi__ByteData(struct soap *soap, const char *tag, emi__ByteData *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__ByteData *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__ByteData, sizeof(emi__ByteData), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__ByteData) { soap_revert(soap); *soap->id = '\0'; return (emi__ByteData *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfunsignedByte(soap, "emi:Byte", &(a->emi__ByteData::Byte), "xsd:unsignedByte")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__ByteData *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__ByteData, 0, sizeof(emi__ByteData), 0, soap_copy_emi__ByteData); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (a->emi__ByteData::Byte.size() < 8 || a->emi__ByteData::Byte.size() > 8)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 emi__ByteData * SOAP_FMAC6 soap_new_emi__ByteData(struct soap *soap, int n) { return soap_instantiate_emi__ByteData(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__ByteData(struct soap *soap, emi__ByteData *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__ByteData * SOAP_FMAC4 soap_instantiate_emi__ByteData(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__ByteData(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__ByteData, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__ByteData; if (size) *size = sizeof(emi__ByteData); ((emi__ByteData*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__ByteData[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__ByteData); for (int i = 0; i < n; i++) ((emi__ByteData*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__ByteData*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__ByteData(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__ByteData %p -> %p\n", q, p)); *(emi__ByteData*)p = *(emi__ByteData*)q; } void emi__AlertSubscriptionPolicyIDArrayType::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(soap, &this->emi__AlertSubscriptionPolicyIDArrayType::AlertSubscriptionPolicyID); /* transient soap skipped */ } void emi__AlertSubscriptionPolicyIDArrayType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(soap, &this->emi__AlertSubscriptionPolicyIDArrayType::AlertSubscriptionPolicyID); /* transient soap skipped */ } int emi__AlertSubscriptionPolicyIDArrayType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int emi__AlertSubscriptionPolicyIDArrayType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_emi__AlertSubscriptionPolicyIDArrayType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionPolicyIDArrayType(struct soap *soap, const char *tag, int id, const emi__AlertSubscriptionPolicyIDArrayType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType), type); soap_out_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(soap, "emi:AlertSubscriptionPolicyID", -1, &(a->emi__AlertSubscriptionPolicyIDArrayType::AlertSubscriptionPolicyID), ""); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *emi__AlertSubscriptionPolicyIDArrayType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_emi__AlertSubscriptionPolicyIDArrayType(soap, this, tag, type); } SOAP_FMAC3 emi__AlertSubscriptionPolicyIDArrayType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionPolicyIDArrayType(struct soap *soap, emi__AlertSubscriptionPolicyIDArrayType *p, const char *tag, const char *type) { if ((p = soap_in_emi__AlertSubscriptionPolicyIDArrayType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *emi__AlertSubscriptionPolicyIDArrayType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_emi__AlertSubscriptionPolicyIDArrayType(soap, tag, this, type); } SOAP_FMAC3 emi__AlertSubscriptionPolicyIDArrayType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionPolicyIDArrayType(struct soap *soap, const char *tag, emi__AlertSubscriptionPolicyIDArrayType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (emi__AlertSubscriptionPolicyIDArrayType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType, sizeof(emi__AlertSubscriptionPolicyIDArrayType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType) { soap_revert(soap); *soap->id = '\0'; return (emi__AlertSubscriptionPolicyIDArrayType *)a->soap_in(soap, tag, type); } }; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) if (soap_in_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(soap, "emi:AlertSubscriptionPolicyID", &(a->emi__AlertSubscriptionPolicyIDArrayType::AlertSubscriptionPolicyID), "emi:AlertSubscriptionPolicyIDType")) continue; /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (emi__AlertSubscriptionPolicyIDArrayType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType, 0, sizeof(emi__AlertSubscriptionPolicyIDArrayType), 0, soap_copy_emi__AlertSubscriptionPolicyIDArrayType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 emi__AlertSubscriptionPolicyIDArrayType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionPolicyIDArrayType(struct soap *soap, int n) { return soap_instantiate_emi__AlertSubscriptionPolicyIDArrayType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionPolicyIDArrayType(struct soap *soap, emi__AlertSubscriptionPolicyIDArrayType *p) { soap_delete(soap, p); } SOAP_FMAC3 emi__AlertSubscriptionPolicyIDArrayType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionPolicyIDArrayType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_emi__AlertSubscriptionPolicyIDArrayType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new emi__AlertSubscriptionPolicyIDArrayType; if (size) *size = sizeof(emi__AlertSubscriptionPolicyIDArrayType); ((emi__AlertSubscriptionPolicyIDArrayType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new emi__AlertSubscriptionPolicyIDArrayType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(emi__AlertSubscriptionPolicyIDArrayType); for (int i = 0; i < n; i++) ((emi__AlertSubscriptionPolicyIDArrayType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (emi__AlertSubscriptionPolicyIDArrayType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionPolicyIDArrayType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying emi__AlertSubscriptionPolicyIDArrayType %p -> %p\n", q, p)); *(emi__AlertSubscriptionPolicyIDArrayType*)p = *(emi__AlertSubscriptionPolicyIDArrayType*)q; } void cmn__NodeAddressType::soap_default(struct soap *soap) { this->soap = soap; this->cmn__NodeAddressType::__union_NodeAddressType = 0; /* transient soap skipped */ } void cmn__NodeAddressType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize__cmn__union_NodeAddressType(soap, this->cmn__NodeAddressType::__union_NodeAddressType, &this->cmn__NodeAddressType::union_NodeAddressType); /* transient soap skipped */ } int cmn__NodeAddressType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_cmn__NodeAddressType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int cmn__NodeAddressType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_cmn__NodeAddressType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__NodeAddressType(struct soap *soap, const char *tag, int id, const cmn__NodeAddressType *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_cmn__NodeAddressType), type); soap_out__cmn__union_NodeAddressType(soap, a->cmn__NodeAddressType::__union_NodeAddressType, &a->cmn__NodeAddressType::union_NodeAddressType); /* transient soap skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } void *cmn__NodeAddressType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_cmn__NodeAddressType(soap, this, tag, type); } SOAP_FMAC3 cmn__NodeAddressType * SOAP_FMAC4 soap_get_cmn__NodeAddressType(struct soap *soap, cmn__NodeAddressType *p, const char *tag, const char *type) { if ((p = soap_in_cmn__NodeAddressType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *cmn__NodeAddressType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_cmn__NodeAddressType(soap, tag, this, type); } SOAP_FMAC3 cmn__NodeAddressType * SOAP_FMAC4 soap_in_cmn__NodeAddressType(struct soap *soap, const char *tag, cmn__NodeAddressType *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (cmn__NodeAddressType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_cmn__NodeAddressType, sizeof(cmn__NodeAddressType), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_cmn__NodeAddressType) { soap_revert(soap); *soap->id = '\0'; return (cmn__NodeAddressType *)a->soap_in(soap, tag, type); } } short soap_flag_union_NodeAddressType1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_union_NodeAddressType1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in__cmn__union_NodeAddressType(soap, &a->cmn__NodeAddressType::__union_NodeAddressType, &a->cmn__NodeAddressType::union_NodeAddressType)) { soap_flag_union_NodeAddressType1 = 0; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (cmn__NodeAddressType *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_cmn__NodeAddressType, 0, sizeof(cmn__NodeAddressType), 0, soap_copy_cmn__NodeAddressType); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_union_NodeAddressType1)) { soap->error = SOAP_OCCURS; return NULL; } return a; } SOAP_FMAC5 cmn__NodeAddressType * SOAP_FMAC6 soap_new_cmn__NodeAddressType(struct soap *soap, int n) { return soap_instantiate_cmn__NodeAddressType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__NodeAddressType(struct soap *soap, cmn__NodeAddressType *p) { soap_delete(soap, p); } SOAP_FMAC3 cmn__NodeAddressType * SOAP_FMAC4 soap_instantiate_cmn__NodeAddressType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_cmn__NodeAddressType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_cmn__NodeAddressType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new cmn__NodeAddressType; if (size) *size = sizeof(cmn__NodeAddressType); ((cmn__NodeAddressType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new cmn__NodeAddressType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(cmn__NodeAddressType); for (int i = 0; i < n; i++) ((cmn__NodeAddressType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (cmn__NodeAddressType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__NodeAddressType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying cmn__NodeAddressType %p -> %p\n", q, p)); *(cmn__NodeAddressType*)p = *(cmn__NodeAddressType*)q; } void cmn__URLType::soap_default(struct soap *soap) { this->soap = soap; soap_default_xsd__anyURI(soap, &this->cmn__URLType::__item); this->cmn__URLType::__anyAttribute = NULL; /* transient soap skipped */ } void cmn__URLType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_xsd__anyURI(soap, &this->cmn__URLType::__item); /* transient soap skipped */ } int cmn__URLType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_cmn__URLType); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int cmn__URLType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_cmn__URLType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__URLType(struct soap *soap, const char *tag, int id, const cmn__URLType *a, const char *type) { if (((cmn__URLType *)a)->__anyAttribute) soap_set_attr(soap, "-anyAttribute", ((cmn__URLType *)a)->__anyAttribute); return soap_out_xsd__anyURI(soap, tag, id, &a->cmn__URLType::__item, ""); } void *cmn__URLType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_cmn__URLType(soap, this, tag, type); } SOAP_FMAC3 cmn__URLType * SOAP_FMAC4 soap_get_cmn__URLType(struct soap *soap, cmn__URLType *p, const char *tag, const char *type) { if ((p = soap_in_cmn__URLType(soap, tag, p, type))) soap_getindependent(soap); return p; } void *cmn__URLType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_cmn__URLType(soap, tag, this, type); } SOAP_FMAC3 cmn__URLType * SOAP_FMAC4 soap_in_cmn__URLType(struct soap *soap, const char *tag, cmn__URLType *a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (cmn__URLType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_cmn__URLType, sizeof(cmn__URLType), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_cmn__URLType) return (cmn__URLType *)a->soap_in(soap, tag, type); } if (soap_s2string(soap, soap_attr_value(soap, "-anyAttribute", 0), &((cmn__URLType *)a)->__anyAttribute)) return NULL; if (!soap_in_xsd__anyURI(soap, tag, &(a->cmn__URLType::__item), "cmn:URLType")) return NULL; return a; } SOAP_FMAC5 cmn__URLType * SOAP_FMAC6 soap_new_cmn__URLType(struct soap *soap, int n) { return soap_instantiate_cmn__URLType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__URLType(struct soap *soap, cmn__URLType *p) { soap_delete(soap, p); } SOAP_FMAC3 cmn__URLType * SOAP_FMAC4 soap_instantiate_cmn__URLType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_cmn__URLType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_cmn__URLType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new cmn__URLType; if (size) *size = sizeof(cmn__URLType); ((cmn__URLType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new cmn__URLType[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(cmn__URLType); for (int i = 0; i < n; i++) ((cmn__URLType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (cmn__URLType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__URLType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying cmn__URLType %p -> %p\n", q, p)); *(cmn__URLType*)p = *(cmn__URLType*)q; } void xsd__base64Binary::soap_default(struct soap *soap) { this->soap = soap; this->__size = 0; this->__ptr = NULL; this->id = NULL; this->type = NULL; this->options = NULL; } void xsd__base64Binary::soap_serialize(struct soap *soap) const { if (this->__ptr && !soap_array_reference(soap, this, (struct soap_array*)&this->__ptr, 1, SOAP_TYPE_xsd__base64Binary)) if (this->id || this->type) soap->mode |= SOAP_ENC_DIME; } int xsd__base64Binary::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, (struct soap_array*)&this->__ptr, 1, tag, SOAP_TYPE_xsd__base64Binary); if (this->soap_out(soap, tag, id, type)) return soap->error; return soap_putindependent(soap); } int xsd__base64Binary::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__base64Binary(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__base64Binary(struct soap *soap, const char *tag, int id, const xsd__base64Binary *a, const char *type) { #ifndef WITH_LEANER id = soap_attachment(soap, tag, id, a, (struct soap_array*)&a->__ptr, a->id, a->type, a->options, 1, type, SOAP_TYPE_xsd__base64Binary); #else id = soap_element_id(soap, tag, id, a, (struct soap_array*)&a->__ptr, 1, type, SOAP_TYPE_xsd__base64Binary); #endif if (id < 0) return soap->error; soap_element_begin_out(soap, tag, id, type); soap_putbase64(soap, a->__ptr, a->__size); soap_element_end_out(soap, tag); return SOAP_OK; } void *xsd__base64Binary::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__base64Binary(soap, this, tag, type); } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_get_xsd__base64Binary(struct soap *soap, xsd__base64Binary *p, const char *tag, const char *type) { if ((p = soap_in_xsd__base64Binary(soap, tag, p, type))) soap_getindependent(soap); return p; } void *xsd__base64Binary::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__base64Binary(soap, tag, this, type); } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_in_xsd__base64Binary(struct soap *soap, const char *tag, xsd__base64Binary *a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type) && soap_match_tag(soap, soap->type, ":base64Binary") && soap_match_tag(soap, soap->type, ":base64")) { soap->error = SOAP_TYPE; return NULL; } a = (xsd__base64Binary *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__base64Binary, sizeof(xsd__base64Binary), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) a->soap_default(soap); if (soap->body && !*soap->href) { a->__ptr = soap_getbase64(soap, &a->__size, 0); #ifndef WITH_LEANER if (soap_xop_forward(soap, &a->__ptr, &a->__size, &a->id, &a->type, &a->options)) return NULL; #endif if ((!a->__ptr && soap->error) || soap_element_end_in(soap, tag)) return NULL; } else { #ifndef WITH_LEANER if (*soap->href != '#') { if (soap_dime_forward(soap, &a->__ptr, &a->__size, &a->id, &a->type, &a->options)) return NULL; } else #endif a = (xsd__base64Binary *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_xsd__base64Binary, 0, sizeof(xsd__base64Binary), 0, soap_copy_xsd__base64Binary); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 xsd__base64Binary * SOAP_FMAC6 soap_new_xsd__base64Binary(struct soap *soap, int n) { return soap_instantiate_xsd__base64Binary(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_xsd__base64Binary(struct soap *soap, xsd__base64Binary *p) { soap_delete(soap, p); } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_instantiate_xsd__base64Binary(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__base64Binary(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__base64Binary, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new xsd__base64Binary; if (size) *size = sizeof(xsd__base64Binary); ((xsd__base64Binary*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)new xsd__base64Binary[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__base64Binary); for (int i = 0; i < n; i++) ((xsd__base64Binary*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__base64Binary*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__base64Binary(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__base64Binary %p -> %p\n", q, p)); *(xsd__base64Binary*)p = *(xsd__base64Binary*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_xsd__anyURI(struct soap *soap, std::string *a) { soap_default_std__string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_xsd__anyURI(struct soap *soap, std::string const*a) { soap_serialize_std__string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__anyURI(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_xsd__anyURI); if (soap_out_xsd__anyURI(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__anyURI(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_xsd__anyURI), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_xsd__anyURI(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_xsd__anyURI(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_xsd__anyURI(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__anyURI, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, -1, -1))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__anyURI, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_xsd__anyURI, 0, sizeof(std::string), 0, soap_copy_xsd__anyURI); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_xsd__anyURI(struct soap *soap, int n) { return soap_instantiate_xsd__anyURI(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_xsd__anyURI(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_xsd__anyURI(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__anyURI(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__anyURI, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__anyURI(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__string(struct soap *soap, std::string *p) { (void)soap; /* appease -Wall -Werror */ p->erase(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__string(struct soap *soap, const std::string *p) { (void)soap; (void)p; /* appease -Wall -Werror */ } SOAP_FMAC3 int SOAP_FMAC4 soap_put_std__string(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_std__string); if (soap_out_std__string(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__string(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_std__string), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_std__string(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_std__string(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_std__string(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_std__string, sizeof(std::string), soap->type, soap->arrayType); if (s) if ((t = soap_string_in(soap, 1, -1, -1))) s->assign(t); else return NULL; } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_std__string, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_std__string, 0, sizeof(std::string), 0, soap_copy_std__string); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_std__string(struct soap *soap, int n) { return soap_instantiate_std__string(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__string(struct soap *soap, std::string *p) { soap_delete(soap, p); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_std__string(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__string(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__string, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::string; if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)new std::string[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__string(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default__QName(soap, &a->faultcode); soap_default_string(soap, &a->faultstring); soap_default_string(soap, &a->faultactor); a->detail = NULL; a->SOAP_ENV__Code = NULL; a->SOAP_ENV__Reason = NULL; soap_default_string(soap, &a->SOAP_ENV__Node); soap_default_string(soap, &a->SOAP_ENV__Role); a->SOAP_ENV__Detail = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize__QName(soap, &a->faultcode); soap_serialize_string(soap, &a->faultstring); soap_serialize_string(soap, &a->faultactor); soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->detail); soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Code); soap_serialize_PointerToSOAP_ENV__Reason(soap, &a->SOAP_ENV__Reason); soap_serialize_string(soap, &a->SOAP_ENV__Node); soap_serialize_string(soap, &a->SOAP_ENV__Role); soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->SOAP_ENV__Detail); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Fault); if (soap_out_SOAP_ENV__Fault(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Fault(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Fault *a, const char *type) { const char *soap_tmp_faultcode = soap_QName2s(soap, a->faultcode); soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Fault), type); soap_out__QName(soap, "faultcode", -1, (char*const*)&soap_tmp_faultcode, ""); soap_out_string(soap, "faultstring", -1, &a->faultstring, ""); soap_out_string(soap, "faultactor", -1, &a->faultactor, ""); soap_out_PointerToSOAP_ENV__Detail(soap, "detail", -1, &a->detail, ""); soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", -1, &a->SOAP_ENV__Code, ""); soap_out_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", -1, &a->SOAP_ENV__Reason, ""); soap_out_string(soap, "SOAP-ENV:Node", -1, &a->SOAP_ENV__Node, ""); soap_out_string(soap, "SOAP-ENV:Role", -1, &a->SOAP_ENV__Role, ""); soap_out_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", -1, &a->SOAP_ENV__Detail, ""); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_get_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Fault(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_in_SOAP_ENV__Fault(struct soap *soap, const char *tag, struct SOAP_ENV__Fault *a, const char *type) { short soap_flag_faultcode = 1, soap_flag_faultstring = 1, soap_flag_faultactor = 1, soap_flag_detail = 1, soap_flag_SOAP_ENV__Code = 1, soap_flag_SOAP_ENV__Reason = 1, soap_flag_SOAP_ENV__Node = 1, soap_flag_SOAP_ENV__Role = 1, soap_flag_SOAP_ENV__Detail = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Fault *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Fault, sizeof(struct SOAP_ENV__Fault), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Fault(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_faultcode && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in__QName(soap, "faultcode", &a->faultcode, "")) { soap_flag_faultcode--; continue; } if (soap_flag_faultstring && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "faultstring", &a->faultstring, "xsd:string")) { soap_flag_faultstring--; continue; } if (soap_flag_faultactor && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "faultactor", &a->faultactor, "xsd:string")) { soap_flag_faultactor--; continue; } if (soap_flag_detail && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Detail(soap, "detail", &a->detail, "")) { soap_flag_detail--; continue; } if (soap_flag_SOAP_ENV__Code && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", &a->SOAP_ENV__Code, "")) { soap_flag_SOAP_ENV__Code--; continue; } if (soap_flag_SOAP_ENV__Reason && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", &a->SOAP_ENV__Reason, "")) { soap_flag_SOAP_ENV__Reason--; continue; } if (soap_flag_SOAP_ENV__Node && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "SOAP-ENV:Node", &a->SOAP_ENV__Node, "xsd:string")) { soap_flag_SOAP_ENV__Node--; continue; } if (soap_flag_SOAP_ENV__Role && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "SOAP-ENV:Role", &a->SOAP_ENV__Role, "xsd:string")) { soap_flag_SOAP_ENV__Role--; continue; } if (soap_flag_SOAP_ENV__Detail && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", &a->SOAP_ENV__Detail, "")) { soap_flag_SOAP_ENV__Detail--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Fault *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Fault, 0, sizeof(struct SOAP_ENV__Fault), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 struct SOAP_ENV__Fault * SOAP_FMAC6 soap_new_SOAP_ENV__Fault(struct soap *soap, int n) { return soap_instantiate_SOAP_ENV__Fault(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *p) { soap_delete(soap, p); } SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Fault(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Fault(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Fault, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new struct SOAP_ENV__Fault; if (size) *size = sizeof(struct SOAP_ENV__Fault); } else { cp->ptr = (void*)new struct SOAP_ENV__Fault[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Fault); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Fault*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Fault(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Fault %p -> %p\n", q, p)); *(struct SOAP_ENV__Fault*)p = *(struct SOAP_ENV__Fault*)q; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_string(soap, &a->SOAP_ENV__Text); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_string(soap, &a->SOAP_ENV__Text); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Reason); if (soap_out_SOAP_ENV__Reason(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Reason(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Reason *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Reason), type); soap_out_string(soap, "SOAP-ENV:Text", -1, &a->SOAP_ENV__Text, ""); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_get_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Reason(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_in_SOAP_ENV__Reason(struct soap *soap, const char *tag, struct SOAP_ENV__Reason *a, const char *type) { short soap_flag_SOAP_ENV__Text = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Reason *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Reason(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_SOAP_ENV__Text && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "SOAP-ENV:Text", &a->SOAP_ENV__Text, "xsd:string")) { soap_flag_SOAP_ENV__Text--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Reason *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Reason, 0, sizeof(struct SOAP_ENV__Reason), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 struct SOAP_ENV__Reason * SOAP_FMAC6 soap_new_SOAP_ENV__Reason(struct soap *soap, int n) { return soap_instantiate_SOAP_ENV__Reason(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *p) { soap_delete(soap, p); } SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Reason(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Reason(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Reason, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new struct SOAP_ENV__Reason; if (size) *size = sizeof(struct SOAP_ENV__Reason); } else { cp->ptr = (void*)new struct SOAP_ENV__Reason[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Reason); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Reason*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Reason(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Reason %p -> %p\n", q, p)); *(struct SOAP_ENV__Reason*)p = *(struct SOAP_ENV__Reason*)q; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->__type = 0; a->fault = NULL; a->__any = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_markelement(soap, a->fault, a->__type); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Detail); if (soap_out_SOAP_ENV__Detail(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Detail(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Detail *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Detail), type); soap_putelement(soap, a->fault, "fault", -1, a->__type); soap_outliteral(soap, "-any", &a->__any, NULL); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_get_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Detail(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_in_SOAP_ENV__Detail(struct soap *soap, const char *tag, struct SOAP_ENV__Detail *a, const char *type) { short soap_flag_fault = 1, soap_flag___any = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Detail *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Detail(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_fault && soap->error == SOAP_TAG_MISMATCH) if ((a->fault = soap_getelement(soap, &a->__type))) { soap_flag_fault = 0; continue; } if (soap_flag___any && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_inliteral(soap, "-any", &a->__any)) { soap_flag___any--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Detail *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Detail, 0, sizeof(struct SOAP_ENV__Detail), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 struct SOAP_ENV__Detail * SOAP_FMAC6 soap_new_SOAP_ENV__Detail(struct soap *soap, int n) { return soap_instantiate_SOAP_ENV__Detail(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *p) { soap_delete(soap, p); } SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Detail(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Detail(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Detail, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new struct SOAP_ENV__Detail; if (size) *size = sizeof(struct SOAP_ENV__Detail); } else { cp->ptr = (void*)new struct SOAP_ENV__Detail[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Detail); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Detail*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Detail(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Detail %p -> %p\n", q, p)); *(struct SOAP_ENV__Detail*)p = *(struct SOAP_ENV__Detail*)q; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default__QName(soap, &a->SOAP_ENV__Value); a->SOAP_ENV__Subcode = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize__QName(soap, &a->SOAP_ENV__Value); soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Subcode); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Code); if (soap_out_SOAP_ENV__Code(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Code(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Code *a, const char *type) { const char *soap_tmp_SOAP_ENV__Value = soap_QName2s(soap, a->SOAP_ENV__Value); soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Code), type); soap_out__QName(soap, "SOAP-ENV:Value", -1, (char*const*)&soap_tmp_SOAP_ENV__Value, ""); soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", -1, &a->SOAP_ENV__Subcode, ""); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_get_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Code(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_in_SOAP_ENV__Code(struct soap *soap, const char *tag, struct SOAP_ENV__Code *a, const char *type) { short soap_flag_SOAP_ENV__Value = 1, soap_flag_SOAP_ENV__Subcode = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Code *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Code(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_SOAP_ENV__Value && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in__QName(soap, "SOAP-ENV:Value", &a->SOAP_ENV__Value, "")) { soap_flag_SOAP_ENV__Value--; continue; } if (soap_flag_SOAP_ENV__Subcode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", &a->SOAP_ENV__Subcode, "")) { soap_flag_SOAP_ENV__Subcode--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Code *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Code, 0, sizeof(struct SOAP_ENV__Code), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 struct SOAP_ENV__Code * SOAP_FMAC6 soap_new_SOAP_ENV__Code(struct soap *soap, int n) { return soap_instantiate_SOAP_ENV__Code(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *p) { soap_delete(soap, p); } SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Code(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Code(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Code, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new struct SOAP_ENV__Code; if (size) *size = sizeof(struct SOAP_ENV__Code); } else { cp->ptr = (void*)new struct SOAP_ENV__Code[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Code); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Code*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Code(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Code %p -> %p\n", q, p)); *(struct SOAP_ENV__Code*)p = *(struct SOAP_ENV__Code*)q; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *a) { (void)soap; (void)a; /* appease -Wall -Werror */ /* transient dummy skipped */ } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a) { (void)soap; (void)a; /* appease -Wall -Werror */ /* transient dummy skipped */ } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Header); if (soap_out_SOAP_ENV__Header(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Header *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Header), type); /* transient dummy skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_get_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Header(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_in_SOAP_ENV__Header(struct soap *soap, const char *tag, struct SOAP_ENV__Header *a, const char *type) {; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Header *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Header, sizeof(struct SOAP_ENV__Header), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Header(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; /* transient dummy skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Header *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Header, 0, sizeof(struct SOAP_ENV__Header), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC5 struct SOAP_ENV__Header * SOAP_FMAC6 soap_new_SOAP_ENV__Header(struct soap *soap, int n) { return soap_instantiate_SOAP_ENV__Header(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *p) { soap_delete(soap, p); } SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Header(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Header(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Header, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new struct SOAP_ENV__Header; if (size) *size = sizeof(struct SOAP_ENV__Header); } else { cp->ptr = (void*)new struct SOAP_ENV__Header[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Header); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Header*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Header %p -> %p\n", q, p)); *(struct SOAP_ENV__Header*)p = *(struct SOAP_ENV__Header*)q; } #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default___emc__SoapAlert(struct soap *soap, struct __emc__SoapAlert *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->emc__SoapAlertRequest = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___emc__SoapAlert(struct soap *soap, const struct __emc__SoapAlert *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerTo_emc__SoapAlertRequest(soap, &a->emc__SoapAlertRequest); } SOAP_FMAC3 int SOAP_FMAC4 soap_put___emc__SoapAlert(struct soap *soap, const struct __emc__SoapAlert *a, const char *tag, const char *type) { register int id = 0; if (soap_out___emc__SoapAlert(soap, tag, id, a, type)) return soap->error; return SOAP_OK; } SOAP_FMAC3 int SOAP_FMAC4 soap_out___emc__SoapAlert(struct soap *soap, const char *tag, int id, const struct __emc__SoapAlert *a, const char *type) { soap_out_PointerTo_emc__SoapAlertRequest(soap, "emc:SoapAlertRequest", -1, &a->emc__SoapAlertRequest, ""); return SOAP_OK; } SOAP_FMAC3 struct __emc__SoapAlert * SOAP_FMAC4 soap_get___emc__SoapAlert(struct soap *soap, struct __emc__SoapAlert *p, const char *tag, const char *type) { if ((p = soap_in___emc__SoapAlert(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct __emc__SoapAlert * SOAP_FMAC4 soap_in___emc__SoapAlert(struct soap *soap, const char *tag, struct __emc__SoapAlert *a, const char *type) { short soap_flag_emc__SoapAlertRequest = 1; short soap_flag; a = (struct __emc__SoapAlert *)soap_id_enter(soap, soap->id, a, SOAP_TYPE___emc__SoapAlert, sizeof(struct __emc__SoapAlert), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default___emc__SoapAlert(soap, a); for (soap_flag = 0;; soap_flag = 1) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_emc__SoapAlertRequest && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTo_emc__SoapAlertRequest(soap, "emc:SoapAlertRequest", &a->emc__SoapAlertRequest, "")) { soap_flag_emc__SoapAlertRequest--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_flag) { soap->error = SOAP_OK; break; } if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } return a; } SOAP_FMAC5 struct __emc__SoapAlert * SOAP_FMAC6 soap_new___emc__SoapAlert(struct soap *soap, int n) { return soap_instantiate___emc__SoapAlert(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete___emc__SoapAlert(struct soap *soap, struct __emc__SoapAlert *p) { soap_delete(soap, p); } SOAP_FMAC3 struct __emc__SoapAlert * SOAP_FMAC4 soap_instantiate___emc__SoapAlert(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate___emc__SoapAlert(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE___emc__SoapAlert, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new struct __emc__SoapAlert; if (size) *size = sizeof(struct __emc__SoapAlert); } else { cp->ptr = (void*)new struct __emc__SoapAlert[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct __emc__SoapAlert); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct __emc__SoapAlert*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy___emc__SoapAlert(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct __emc__SoapAlert %p -> %p\n", q, p)); *(struct __emc__SoapAlert*)p = *(struct __emc__SoapAlert*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__sai__union_EnvironmentDetectionType(struct soap *soap, int choice, const union _sai__union_EnvironmentDetectionType *a) { (void)soap; (void)a; /* appease -Wall -Werror */ switch (choice) { case SOAP_UNION__sai__union_EnvironmentDetectionType_LocalDomains: soap_serialize_PointerTosai__EnvironmentDetectionDomainType(soap, &a->LocalDomains); break; case SOAP_UNION__sai__union_EnvironmentDetectionType_RemoteAddressHTTPS: soap_serialize_PointerTosai__EnvironmentDetectionHTTPSType(soap, &a->RemoteAddressHTTPS); break; } } SOAP_FMAC3 int SOAP_FMAC4 soap_out__sai__union_EnvironmentDetectionType(struct soap *soap, int choice, const union _sai__union_EnvironmentDetectionType *a) { switch (choice) { case SOAP_UNION__sai__union_EnvironmentDetectionType_LocalDomains: return soap_out_PointerTosai__EnvironmentDetectionDomainType(soap, "sai:LocalDomains", -1, &a->LocalDomains, ""); case SOAP_UNION__sai__union_EnvironmentDetectionType_RemoteAddressHTTPS: return soap_out_PointerTosai__EnvironmentDetectionHTTPSType(soap, "sai:RemoteAddressHTTPS", -1, &a->RemoteAddressHTTPS, ""); } return SOAP_OK; } SOAP_FMAC3 union _sai__union_EnvironmentDetectionType * SOAP_FMAC4 soap_in__sai__union_EnvironmentDetectionType(struct soap *soap, int *choice, union _sai__union_EnvironmentDetectionType *a) { soap->error = SOAP_TAG_MISMATCH; a->LocalDomains = NULL; if (soap->error == SOAP_TAG_MISMATCH && soap_in_PointerTosai__EnvironmentDetectionDomainType(soap, "sai:LocalDomains", &a->LocalDomains, "sai:EnvironmentDetectionDomainType")) { *choice = SOAP_UNION__sai__union_EnvironmentDetectionType_LocalDomains; return a; } a->RemoteAddressHTTPS = NULL; if (soap->error == SOAP_TAG_MISMATCH && soap_in_PointerTosai__EnvironmentDetectionHTTPSType(soap, "sai:RemoteAddressHTTPS", &a->RemoteAddressHTTPS, "sai:EnvironmentDetectionHTTPSType")) { *choice = SOAP_UNION__sai__union_EnvironmentDetectionType_RemoteAddressHTTPS; return a; } *choice = 0; if (!soap->error) soap->error = SOAP_TAG_MISMATCH; return NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__sai__union_UserAclEntryExType(struct soap *soap, int choice, const union _sai__union_UserAclEntryExType *a) { (void)soap; (void)a; /* appease -Wall -Werror */ switch (choice) { case SOAP_UNION__sai__union_UserAclEntryExType_DigestUser: soap_serialize_PointerTosai__UserEntryDigestType(soap, &a->DigestUser); break; case SOAP_UNION__sai__union_UserAclEntryExType_KerberosUser: soap_serialize_PointerTosai__UserEntryKerberosType(soap, &a->KerberosUser); break; } } SOAP_FMAC3 int SOAP_FMAC4 soap_out__sai__union_UserAclEntryExType(struct soap *soap, int choice, const union _sai__union_UserAclEntryExType *a) { switch (choice) { case SOAP_UNION__sai__union_UserAclEntryExType_DigestUser: return soap_out_PointerTosai__UserEntryDigestType(soap, "sai:DigestUser", -1, &a->DigestUser, ""); case SOAP_UNION__sai__union_UserAclEntryExType_KerberosUser: return soap_out_PointerTosai__UserEntryKerberosType(soap, "sai:KerberosUser", -1, &a->KerberosUser, ""); } return SOAP_OK; } SOAP_FMAC3 union _sai__union_UserAclEntryExType * SOAP_FMAC4 soap_in__sai__union_UserAclEntryExType(struct soap *soap, int *choice, union _sai__union_UserAclEntryExType *a) { soap->error = SOAP_TAG_MISMATCH; a->DigestUser = NULL; if (soap->error == SOAP_TAG_MISMATCH && soap_in_PointerTosai__UserEntryDigestType(soap, "sai:DigestUser", &a->DigestUser, "sai:UserEntryDigestType")) { *choice = SOAP_UNION__sai__union_UserAclEntryExType_DigestUser; return a; } a->KerberosUser = NULL; if (soap->error == SOAP_TAG_MISMATCH && soap_in_PointerTosai__UserEntryKerberosType(soap, "sai:KerberosUser", &a->KerberosUser, "sai:UserEntryKerberosType")) { *choice = SOAP_UNION__sai__union_UserAclEntryExType_KerberosUser; return a; } *choice = 0; if (!soap->error) soap->error = SOAP_TAG_MISMATCH; return NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__emi__union_AlertSubscriptionGeneralType(struct soap *soap, int choice, const union _emi__union_AlertSubscriptionGeneralType *a) { (void)soap; (void)a; /* appease -Wall -Werror */ switch (choice) { case SOAP_UNION__emi__union_AlertSubscriptionGeneralType_AlertSubscriptionSNMP: soap_serialize_PointerToemi__AlertSubscriptionSNMPType(soap, &a->AlertSubscriptionSNMP); break; case SOAP_UNION__emi__union_AlertSubscriptionGeneralType_AlertSubscriptionSoap: soap_serialize_PointerToemi__AlertSubscriptionSoapType(soap, &a->AlertSubscriptionSoap); break; } } SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__union_AlertSubscriptionGeneralType(struct soap *soap, int choice, const union _emi__union_AlertSubscriptionGeneralType *a) { switch (choice) { case SOAP_UNION__emi__union_AlertSubscriptionGeneralType_AlertSubscriptionSNMP: return soap_out_PointerToemi__AlertSubscriptionSNMPType(soap, "emi:AlertSubscriptionSNMP", -1, &a->AlertSubscriptionSNMP, ""); case SOAP_UNION__emi__union_AlertSubscriptionGeneralType_AlertSubscriptionSoap: return soap_out_PointerToemi__AlertSubscriptionSoapType(soap, "emi:AlertSubscriptionSoap", -1, &a->AlertSubscriptionSoap, ""); } return SOAP_OK; } SOAP_FMAC3 union _emi__union_AlertSubscriptionGeneralType * SOAP_FMAC4 soap_in__emi__union_AlertSubscriptionGeneralType(struct soap *soap, int *choice, union _emi__union_AlertSubscriptionGeneralType *a) { soap->error = SOAP_TAG_MISMATCH; a->AlertSubscriptionSNMP = NULL; if (soap->error == SOAP_TAG_MISMATCH && soap_in_PointerToemi__AlertSubscriptionSNMPType(soap, "emi:AlertSubscriptionSNMP", &a->AlertSubscriptionSNMP, "emi:AlertSubscriptionSNMPType")) { *choice = SOAP_UNION__emi__union_AlertSubscriptionGeneralType_AlertSubscriptionSNMP; return a; } a->AlertSubscriptionSoap = NULL; if (soap->error == SOAP_TAG_MISMATCH && soap_in_PointerToemi__AlertSubscriptionSoapType(soap, "emi:AlertSubscriptionSoap", &a->AlertSubscriptionSoap, "emi:AlertSubscriptionSoapType")) { *choice = SOAP_UNION__emi__union_AlertSubscriptionGeneralType_AlertSubscriptionSoap; return a; } *choice = 0; if (!soap->error) soap->error = SOAP_TAG_MISMATCH; return NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__cmn__union_NodeAddressType(struct soap *soap, int choice, const union _cmn__union_NodeAddressType *a) { (void)soap; (void)a; /* appease -Wall -Werror */ switch (choice) { case SOAP_UNION__cmn__union_NodeAddressType_HostName: soap_serialize_PointerTocmn__HostNameType(soap, &a->HostName); break; case SOAP_UNION__cmn__union_NodeAddressType_IPv4Address: soap_serialize_PointerTocmn__IPv4AddressStringType(soap, &a->IPv4Address); break; case SOAP_UNION__cmn__union_NodeAddressType_IPv6Address: soap_serialize_PointerTocmn__IPv6AddressStringType(soap, &a->IPv6Address); break; } } SOAP_FMAC3 int SOAP_FMAC4 soap_out__cmn__union_NodeAddressType(struct soap *soap, int choice, const union _cmn__union_NodeAddressType *a) { switch (choice) { case SOAP_UNION__cmn__union_NodeAddressType_HostName: return soap_out_PointerTocmn__HostNameType(soap, "cmn:HostName", -1, &a->HostName, ""); case SOAP_UNION__cmn__union_NodeAddressType_IPv4Address: return soap_out_PointerTocmn__IPv4AddressStringType(soap, "cmn:IPv4Address", -1, &a->IPv4Address, ""); case SOAP_UNION__cmn__union_NodeAddressType_IPv6Address: return soap_out_PointerTocmn__IPv6AddressStringType(soap, "cmn:IPv6Address", -1, &a->IPv6Address, ""); } return SOAP_OK; } SOAP_FMAC3 union _cmn__union_NodeAddressType * SOAP_FMAC4 soap_in__cmn__union_NodeAddressType(struct soap *soap, int *choice, union _cmn__union_NodeAddressType *a) { soap->error = SOAP_TAG_MISMATCH; a->HostName = NULL; if (soap->error == SOAP_TAG_MISMATCH && soap_in_PointerTocmn__HostNameType(soap, "cmn:HostName", &a->HostName, "cmn:HostNameType")) { *choice = SOAP_UNION__cmn__union_NodeAddressType_HostName; return a; } a->IPv4Address = NULL; if (soap->error == SOAP_TAG_MISMATCH && soap_in_PointerTocmn__IPv4AddressStringType(soap, "cmn:IPv4Address", &a->IPv4Address, "cmn:IPv4AddressStringType")) { *choice = SOAP_UNION__cmn__union_NodeAddressType_IPv4Address; return a; } a->IPv6Address = NULL; if (soap->error == SOAP_TAG_MISMATCH && soap_in_PointerTocmn__IPv6AddressStringType(soap, "cmn:IPv6Address", &a->IPv6Address, "cmn:IPv6AddressStringType")) { *choice = SOAP_UNION__cmn__union_NodeAddressType_IPv6Address; return a; } *choice = 0; if (!soap->error) soap->error = SOAP_TAG_MISMATCH; return NULL; } #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Reason)) soap_serialize_SOAP_ENV__Reason(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Reason); if (soap_out_PointerToSOAP_ENV__Reason(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Reason *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Reason); if (id < 0) return soap->error; return soap_out_SOAP_ENV__Reason(soap, tag, id, *a, type); } SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason **p, const char *tag, const char *type) { if ((p = soap_in_PointerToSOAP_ENV__Reason(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, struct SOAP_ENV__Reason **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (struct SOAP_ENV__Reason **)soap_malloc(soap, sizeof(struct SOAP_ENV__Reason *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_SOAP_ENV__Reason(soap, tag, *a, type))) return NULL; } else { a = (struct SOAP_ENV__Reason **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Detail)) soap_serialize_SOAP_ENV__Detail(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Detail); if (soap_out_PointerToSOAP_ENV__Detail(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Detail *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Detail); if (id < 0) return soap->error; return soap_out_SOAP_ENV__Detail(soap, tag, id, *a, type); } SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail **p, const char *tag, const char *type) { if ((p = soap_in_PointerToSOAP_ENV__Detail(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, struct SOAP_ENV__Detail **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (struct SOAP_ENV__Detail **)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_SOAP_ENV__Detail(soap, tag, *a, type))) return NULL; } else { a = (struct SOAP_ENV__Detail **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Code)) soap_serialize_SOAP_ENV__Code(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Code); if (soap_out_PointerToSOAP_ENV__Code(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Code *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Code); if (id < 0) return soap->error; return soap_out_SOAP_ENV__Code(soap, tag, id, *a, type); } SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code **p, const char *tag, const char *type) { if ((p = soap_in_PointerToSOAP_ENV__Code(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, struct SOAP_ENV__Code **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (struct SOAP_ENV__Code **)soap_malloc(soap, sizeof(struct SOAP_ENV__Code *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_SOAP_ENV__Code(soap, tag, *a, type))) return NULL; } else { a = (struct SOAP_ENV__Code **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_emc__SoapAlertResponse(struct soap *soap, _emc__SoapAlertResponse *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE__emc__SoapAlertResponse)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_emc__SoapAlertResponse(struct soap *soap, _emc__SoapAlertResponse *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTo_emc__SoapAlertResponse); if (soap_out_PointerTo_emc__SoapAlertResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_emc__SoapAlertResponse(struct soap *soap, const char *tag, int id, _emc__SoapAlertResponse *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE__emc__SoapAlertResponse); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 _emc__SoapAlertResponse ** SOAP_FMAC4 soap_get_PointerTo_emc__SoapAlertResponse(struct soap *soap, _emc__SoapAlertResponse **p, const char *tag, const char *type) { if ((p = soap_in_PointerTo_emc__SoapAlertResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 _emc__SoapAlertResponse ** SOAP_FMAC4 soap_in_PointerTo_emc__SoapAlertResponse(struct soap *soap, const char *tag, _emc__SoapAlertResponse **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (_emc__SoapAlertResponse **)soap_malloc(soap, sizeof(_emc__SoapAlertResponse *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (_emc__SoapAlertResponse *)soap_instantiate__emc__SoapAlertResponse(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (_emc__SoapAlertResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE__emc__SoapAlertResponse, sizeof(_emc__SoapAlertResponse), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_emc__SoapAlertRequest(struct soap *soap, _emc__SoapAlertRequest *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE__emc__SoapAlertRequest)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_emc__SoapAlertRequest(struct soap *soap, _emc__SoapAlertRequest *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTo_emc__SoapAlertRequest); if (soap_out_PointerTo_emc__SoapAlertRequest(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_emc__SoapAlertRequest(struct soap *soap, const char *tag, int id, _emc__SoapAlertRequest *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE__emc__SoapAlertRequest); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 _emc__SoapAlertRequest ** SOAP_FMAC4 soap_get_PointerTo_emc__SoapAlertRequest(struct soap *soap, _emc__SoapAlertRequest **p, const char *tag, const char *type) { if ((p = soap_in_PointerTo_emc__SoapAlertRequest(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 _emc__SoapAlertRequest ** SOAP_FMAC4 soap_in_PointerTo_emc__SoapAlertRequest(struct soap *soap, const char *tag, _emc__SoapAlertRequest **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (_emc__SoapAlertRequest **)soap_malloc(soap, sizeof(_emc__SoapAlertRequest *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (_emc__SoapAlertRequest *)soap_instantiate__emc__SoapAlertRequest(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (_emc__SoapAlertRequest **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE__emc__SoapAlertRequest, sizeof(_emc__SoapAlertRequest), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTounsignedInt(struct soap *soap, unsigned int *const*a) { soap_reference(soap, *a, SOAP_TYPE_unsignedInt); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTounsignedInt(struct soap *soap, unsigned int *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTounsignedInt); if (soap_out_PointerTounsignedInt(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTounsignedInt(struct soap *soap, const char *tag, int id, unsigned int *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_unsignedInt); if (id < 0) return soap->error; return soap_out_unsignedInt(soap, tag, id, *a, type); } SOAP_FMAC3 unsigned int ** SOAP_FMAC4 soap_get_PointerTounsignedInt(struct soap *soap, unsigned int **p, const char *tag, const char *type) { if ((p = soap_in_PointerTounsignedInt(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int ** SOAP_FMAC4 soap_in_PointerTounsignedInt(struct soap *soap, const char *tag, unsigned int **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (unsigned int **)soap_malloc(soap, sizeof(unsigned int *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_unsignedInt(soap, tag, *a, type))) return NULL; } else { a = (unsigned int **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_unsignedInt, sizeof(unsigned int), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__EnvironmentDetectionHTTPSType(struct soap *soap, sai__EnvironmentDetectionHTTPSType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_sai__EnvironmentDetectionHTTPSType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__EnvironmentDetectionHTTPSType(struct soap *soap, sai__EnvironmentDetectionHTTPSType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTosai__EnvironmentDetectionHTTPSType); if (soap_out_PointerTosai__EnvironmentDetectionHTTPSType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__EnvironmentDetectionHTTPSType(struct soap *soap, const char *tag, int id, sai__EnvironmentDetectionHTTPSType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_sai__EnvironmentDetectionHTTPSType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType ** SOAP_FMAC4 soap_get_PointerTosai__EnvironmentDetectionHTTPSType(struct soap *soap, sai__EnvironmentDetectionHTTPSType **p, const char *tag, const char *type) { if ((p = soap_in_PointerTosai__EnvironmentDetectionHTTPSType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType ** SOAP_FMAC4 soap_in_PointerTosai__EnvironmentDetectionHTTPSType(struct soap *soap, const char *tag, sai__EnvironmentDetectionHTTPSType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (sai__EnvironmentDetectionHTTPSType **)soap_malloc(soap, sizeof(sai__EnvironmentDetectionHTTPSType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (sai__EnvironmentDetectionHTTPSType *)soap_instantiate_sai__EnvironmentDetectionHTTPSType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (sai__EnvironmentDetectionHTTPSType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_sai__EnvironmentDetectionHTTPSType, sizeof(sai__EnvironmentDetectionHTTPSType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__EnvironmentDetectionDomainType(struct soap *soap, sai__EnvironmentDetectionDomainType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_sai__EnvironmentDetectionDomainType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__EnvironmentDetectionDomainType(struct soap *soap, sai__EnvironmentDetectionDomainType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTosai__EnvironmentDetectionDomainType); if (soap_out_PointerTosai__EnvironmentDetectionDomainType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__EnvironmentDetectionDomainType(struct soap *soap, const char *tag, int id, sai__EnvironmentDetectionDomainType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_sai__EnvironmentDetectionDomainType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 sai__EnvironmentDetectionDomainType ** SOAP_FMAC4 soap_get_PointerTosai__EnvironmentDetectionDomainType(struct soap *soap, sai__EnvironmentDetectionDomainType **p, const char *tag, const char *type) { if ((p = soap_in_PointerTosai__EnvironmentDetectionDomainType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 sai__EnvironmentDetectionDomainType ** SOAP_FMAC4 soap_in_PointerTosai__EnvironmentDetectionDomainType(struct soap *soap, const char *tag, sai__EnvironmentDetectionDomainType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (sai__EnvironmentDetectionDomainType **)soap_malloc(soap, sizeof(sai__EnvironmentDetectionDomainType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (sai__EnvironmentDetectionDomainType *)soap_instantiate_sai__EnvironmentDetectionDomainType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (sai__EnvironmentDetectionDomainType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_sai__EnvironmentDetectionDomainType, sizeof(sai__EnvironmentDetectionDomainType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTobool(struct soap *soap, bool *const*a) { soap_reference(soap, *a, SOAP_TYPE_bool); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTobool(struct soap *soap, bool *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTobool); if (soap_out_PointerTobool(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTobool(struct soap *soap, const char *tag, int id, bool *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_bool); if (id < 0) return soap->error; return soap_out_bool(soap, tag, id, *a, type); } SOAP_FMAC3 bool ** SOAP_FMAC4 soap_get_PointerTobool(struct soap *soap, bool **p, const char *tag, const char *type) { if ((p = soap_in_PointerTobool(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 bool ** SOAP_FMAC4 soap_in_PointerTobool(struct soap *soap, const char *tag, bool **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (bool **)soap_malloc(soap, sizeof(bool *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_bool(soap, tag, *a, type))) return NULL; } else { a = (bool **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_bool, sizeof(bool), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToxsd__base64Binary(struct soap *soap, xsd__base64Binary *const*a) { if (*a) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToxsd__base64Binary(struct soap *soap, xsd__base64Binary *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToxsd__base64Binary); if (soap_out_PointerToxsd__base64Binary(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToxsd__base64Binary(struct soap *soap, const char *tag, int id, xsd__base64Binary *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, (struct soap_array*)&(*a)->__ptr, 1, type, SOAP_TYPE_xsd__base64Binary); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 xsd__base64Binary ** SOAP_FMAC4 soap_get_PointerToxsd__base64Binary(struct soap *soap, xsd__base64Binary **p, const char *tag, const char *type) { if ((p = soap_in_PointerToxsd__base64Binary(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 xsd__base64Binary ** SOAP_FMAC4 soap_in_PointerToxsd__base64Binary(struct soap *soap, const char *tag, xsd__base64Binary **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (xsd__base64Binary **)soap_malloc(soap, sizeof(xsd__base64Binary *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (xsd__base64Binary *)soap_instantiate_xsd__base64Binary(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (xsd__base64Binary **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_xsd__base64Binary, sizeof(xsd__base64Binary), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTostd__string(struct soap *soap, std::string *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_std__string)) soap_serialize_std__string(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTostd__string(struct soap *soap, std::string *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTostd__string); if (soap_out_PointerTostd__string(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTostd__string(struct soap *soap, const char *tag, int id, std::string *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_std__string); if (id < 0) return soap->error; return soap_out_std__string(soap, tag, id, *a, type); } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTostd__string(struct soap *soap, std::string **p, const char *tag, const char *type) { if ((p = soap_in_PointerTostd__string(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTostd__string(struct soap *soap, const char *tag, std::string **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (std::string **)soap_malloc(soap, sizeof(std::string *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_std__string(soap, tag, *a, type))) return NULL; } else { a = (std::string **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_std__string, sizeof(std::string), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__KerberosSpnType(struct soap *soap, sai__KerberosSpnType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_sai__KerberosSpnType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__KerberosSpnType(struct soap *soap, sai__KerberosSpnType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTosai__KerberosSpnType); if (soap_out_PointerTosai__KerberosSpnType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__KerberosSpnType(struct soap *soap, const char *tag, int id, sai__KerberosSpnType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_sai__KerberosSpnType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 sai__KerberosSpnType ** SOAP_FMAC4 soap_get_PointerTosai__KerberosSpnType(struct soap *soap, sai__KerberosSpnType **p, const char *tag, const char *type) { if ((p = soap_in_PointerTosai__KerberosSpnType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 sai__KerberosSpnType ** SOAP_FMAC4 soap_in_PointerTosai__KerberosSpnType(struct soap *soap, const char *tag, sai__KerberosSpnType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (sai__KerberosSpnType **)soap_malloc(soap, sizeof(sai__KerberosSpnType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (sai__KerberosSpnType *)soap_instantiate_sai__KerberosSpnType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (sai__KerberosSpnType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_sai__KerberosSpnType, sizeof(sai__KerberosSpnType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__UserEntryKerberosType(struct soap *soap, sai__UserEntryKerberosType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_sai__UserEntryKerberosType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__UserEntryKerberosType(struct soap *soap, sai__UserEntryKerberosType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTosai__UserEntryKerberosType); if (soap_out_PointerTosai__UserEntryKerberosType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__UserEntryKerberosType(struct soap *soap, const char *tag, int id, sai__UserEntryKerberosType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_sai__UserEntryKerberosType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 sai__UserEntryKerberosType ** SOAP_FMAC4 soap_get_PointerTosai__UserEntryKerberosType(struct soap *soap, sai__UserEntryKerberosType **p, const char *tag, const char *type) { if ((p = soap_in_PointerTosai__UserEntryKerberosType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 sai__UserEntryKerberosType ** SOAP_FMAC4 soap_in_PointerTosai__UserEntryKerberosType(struct soap *soap, const char *tag, sai__UserEntryKerberosType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (sai__UserEntryKerberosType **)soap_malloc(soap, sizeof(sai__UserEntryKerberosType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (sai__UserEntryKerberosType *)soap_instantiate_sai__UserEntryKerberosType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (sai__UserEntryKerberosType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_sai__UserEntryKerberosType, sizeof(sai__UserEntryKerberosType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__UserEntryDigestType(struct soap *soap, sai__UserEntryDigestType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_sai__UserEntryDigestType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__UserEntryDigestType(struct soap *soap, sai__UserEntryDigestType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTosai__UserEntryDigestType); if (soap_out_PointerTosai__UserEntryDigestType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__UserEntryDigestType(struct soap *soap, const char *tag, int id, sai__UserEntryDigestType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_sai__UserEntryDigestType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 sai__UserEntryDigestType ** SOAP_FMAC4 soap_get_PointerTosai__UserEntryDigestType(struct soap *soap, sai__UserEntryDigestType **p, const char *tag, const char *type) { if ((p = soap_in_PointerTosai__UserEntryDigestType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 sai__UserEntryDigestType ** SOAP_FMAC4 soap_in_PointerTosai__UserEntryDigestType(struct soap *soap, const char *tag, sai__UserEntryDigestType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (sai__UserEntryDigestType **)soap_malloc(soap, sizeof(sai__UserEntryDigestType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (sai__UserEntryDigestType *)soap_instantiate_sai__UserEntryDigestType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (sai__UserEntryDigestType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_sai__UserEntryDigestType, sizeof(sai__UserEntryDigestType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__UserAclRealmListType(struct soap *soap, sai__UserAclRealmListType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_sai__UserAclRealmListType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__UserAclRealmListType(struct soap *soap, sai__UserAclRealmListType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTosai__UserAclRealmListType); if (soap_out_PointerTosai__UserAclRealmListType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__UserAclRealmListType(struct soap *soap, const char *tag, int id, sai__UserAclRealmListType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_sai__UserAclRealmListType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 sai__UserAclRealmListType ** SOAP_FMAC4 soap_get_PointerTosai__UserAclRealmListType(struct soap *soap, sai__UserAclRealmListType **p, const char *tag, const char *type) { if ((p = soap_in_PointerTosai__UserAclRealmListType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 sai__UserAclRealmListType ** SOAP_FMAC4 soap_in_PointerTosai__UserAclRealmListType(struct soap *soap, const char *tag, sai__UserAclRealmListType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (sai__UserAclRealmListType **)soap_malloc(soap, sizeof(sai__UserAclRealmListType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (sai__UserAclRealmListType *)soap_instantiate_sai__UserAclRealmListType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (sai__UserAclRealmListType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_sai__UserAclRealmListType, sizeof(sai__UserAclRealmListType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertSubscriptionPolicyIDType(struct soap *soap, unsigned char *const*a) { soap_reference(soap, *a, SOAP_TYPE_emi__AlertSubscriptionPolicyIDType); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertSubscriptionPolicyIDType(struct soap *soap, unsigned char *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToemi__AlertSubscriptionPolicyIDType); if (soap_out_PointerToemi__AlertSubscriptionPolicyIDType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertSubscriptionPolicyIDType(struct soap *soap, const char *tag, int id, unsigned char *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_emi__AlertSubscriptionPolicyIDType); if (id < 0) return soap->error; return soap_out_emi__AlertSubscriptionPolicyIDType(soap, tag, id, *a, type); } SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_get_PointerToemi__AlertSubscriptionPolicyIDType(struct soap *soap, unsigned char **p, const char *tag, const char *type) { if ((p = soap_in_PointerToemi__AlertSubscriptionPolicyIDType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_in_PointerToemi__AlertSubscriptionPolicyIDType(struct soap *soap, const char *tag, unsigned char **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (unsigned char **)soap_malloc(soap, sizeof(unsigned char *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_emi__AlertSubscriptionPolicyIDType(soap, tag, *a, type))) return NULL; } else { a = (unsigned char **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_emi__AlertSubscriptionPolicyIDType, sizeof(unsigned char), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertSubscriptionGeneralType(struct soap *soap, emi__AlertSubscriptionGeneralType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_emi__AlertSubscriptionGeneralType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertSubscriptionGeneralType(struct soap *soap, emi__AlertSubscriptionGeneralType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToemi__AlertSubscriptionGeneralType); if (soap_out_PointerToemi__AlertSubscriptionGeneralType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertSubscriptionGeneralType(struct soap *soap, const char *tag, int id, emi__AlertSubscriptionGeneralType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_emi__AlertSubscriptionGeneralType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 emi__AlertSubscriptionGeneralType ** SOAP_FMAC4 soap_get_PointerToemi__AlertSubscriptionGeneralType(struct soap *soap, emi__AlertSubscriptionGeneralType **p, const char *tag, const char *type) { if ((p = soap_in_PointerToemi__AlertSubscriptionGeneralType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 emi__AlertSubscriptionGeneralType ** SOAP_FMAC4 soap_in_PointerToemi__AlertSubscriptionGeneralType(struct soap *soap, const char *tag, emi__AlertSubscriptionGeneralType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (emi__AlertSubscriptionGeneralType **)soap_malloc(soap, sizeof(emi__AlertSubscriptionGeneralType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (emi__AlertSubscriptionGeneralType *)soap_instantiate_emi__AlertSubscriptionGeneralType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (emi__AlertSubscriptionGeneralType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_emi__AlertSubscriptionGeneralType, sizeof(emi__AlertSubscriptionGeneralType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertSubscriptionSoapType(struct soap *soap, emi__AlertSubscriptionSoapType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_emi__AlertSubscriptionSoapType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertSubscriptionSoapType(struct soap *soap, emi__AlertSubscriptionSoapType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToemi__AlertSubscriptionSoapType); if (soap_out_PointerToemi__AlertSubscriptionSoapType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertSubscriptionSoapType(struct soap *soap, const char *tag, int id, emi__AlertSubscriptionSoapType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_emi__AlertSubscriptionSoapType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 emi__AlertSubscriptionSoapType ** SOAP_FMAC4 soap_get_PointerToemi__AlertSubscriptionSoapType(struct soap *soap, emi__AlertSubscriptionSoapType **p, const char *tag, const char *type) { if ((p = soap_in_PointerToemi__AlertSubscriptionSoapType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 emi__AlertSubscriptionSoapType ** SOAP_FMAC4 soap_in_PointerToemi__AlertSubscriptionSoapType(struct soap *soap, const char *tag, emi__AlertSubscriptionSoapType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (emi__AlertSubscriptionSoapType **)soap_malloc(soap, sizeof(emi__AlertSubscriptionSoapType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (emi__AlertSubscriptionSoapType *)soap_instantiate_emi__AlertSubscriptionSoapType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (emi__AlertSubscriptionSoapType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_emi__AlertSubscriptionSoapType, sizeof(emi__AlertSubscriptionSoapType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertSubscriptionSNMPType(struct soap *soap, emi__AlertSubscriptionSNMPType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_emi__AlertSubscriptionSNMPType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertSubscriptionSNMPType(struct soap *soap, emi__AlertSubscriptionSNMPType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToemi__AlertSubscriptionSNMPType); if (soap_out_PointerToemi__AlertSubscriptionSNMPType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertSubscriptionSNMPType(struct soap *soap, const char *tag, int id, emi__AlertSubscriptionSNMPType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_emi__AlertSubscriptionSNMPType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 emi__AlertSubscriptionSNMPType ** SOAP_FMAC4 soap_get_PointerToemi__AlertSubscriptionSNMPType(struct soap *soap, emi__AlertSubscriptionSNMPType **p, const char *tag, const char *type) { if ((p = soap_in_PointerToemi__AlertSubscriptionSNMPType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 emi__AlertSubscriptionSNMPType ** SOAP_FMAC4 soap_in_PointerToemi__AlertSubscriptionSNMPType(struct soap *soap, const char *tag, emi__AlertSubscriptionSNMPType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (emi__AlertSubscriptionSNMPType **)soap_malloc(soap, sizeof(emi__AlertSubscriptionSNMPType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (emi__AlertSubscriptionSNMPType *)soap_instantiate_emi__AlertSubscriptionSNMPType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (emi__AlertSubscriptionSNMPType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_emi__AlertSubscriptionSNMPType, sizeof(emi__AlertSubscriptionSNMPType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertCredentialsType(struct soap *soap, emi__AlertCredentialsType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_emi__AlertCredentialsType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertCredentialsType(struct soap *soap, emi__AlertCredentialsType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToemi__AlertCredentialsType); if (soap_out_PointerToemi__AlertCredentialsType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertCredentialsType(struct soap *soap, const char *tag, int id, emi__AlertCredentialsType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_emi__AlertCredentialsType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 emi__AlertCredentialsType ** SOAP_FMAC4 soap_get_PointerToemi__AlertCredentialsType(struct soap *soap, emi__AlertCredentialsType **p, const char *tag, const char *type) { if ((p = soap_in_PointerToemi__AlertCredentialsType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 emi__AlertCredentialsType ** SOAP_FMAC4 soap_in_PointerToemi__AlertCredentialsType(struct soap *soap, const char *tag, emi__AlertCredentialsType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (emi__AlertCredentialsType **)soap_malloc(soap, sizeof(emi__AlertCredentialsType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (emi__AlertCredentialsType *)soap_instantiate_emi__AlertCredentialsType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (emi__AlertCredentialsType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_emi__AlertCredentialsType, sizeof(emi__AlertCredentialsType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__CertificateHandleType(struct soap *soap, unsigned int *const*a) { soap_reference(soap, *a, SOAP_TYPE_sai__CertificateHandleType); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__CertificateHandleType(struct soap *soap, unsigned int *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTosai__CertificateHandleType); if (soap_out_PointerTosai__CertificateHandleType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__CertificateHandleType(struct soap *soap, const char *tag, int id, unsigned int *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_sai__CertificateHandleType); if (id < 0) return soap->error; return soap_out_sai__CertificateHandleType(soap, tag, id, *a, type); } SOAP_FMAC3 unsigned int ** SOAP_FMAC4 soap_get_PointerTosai__CertificateHandleType(struct soap *soap, unsigned int **p, const char *tag, const char *type) { if ((p = soap_in_PointerTosai__CertificateHandleType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned int ** SOAP_FMAC4 soap_in_PointerTosai__CertificateHandleType(struct soap *soap, const char *tag, unsigned int **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (unsigned int **)soap_malloc(soap, sizeof(unsigned int *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_sai__CertificateHandleType(soap, tag, *a, type))) return NULL; } else { a = (unsigned int **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_sai__CertificateHandleType, sizeof(unsigned int), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__URLType(struct soap *soap, cmn__URLType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_cmn__URLType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__URLType(struct soap *soap, cmn__URLType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTocmn__URLType); if (soap_out_PointerTocmn__URLType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__URLType(struct soap *soap, const char *tag, int id, cmn__URLType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_cmn__URLType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 cmn__URLType ** SOAP_FMAC4 soap_get_PointerTocmn__URLType(struct soap *soap, cmn__URLType **p, const char *tag, const char *type) { if ((p = soap_in_PointerTocmn__URLType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 cmn__URLType ** SOAP_FMAC4 soap_in_PointerTocmn__URLType(struct soap *soap, const char *tag, cmn__URLType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (cmn__URLType **)soap_malloc(soap, sizeof(cmn__URLType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (cmn__URLType *)soap_instantiate_cmn__URLType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (cmn__URLType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_cmn__URLType, sizeof(cmn__URLType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__CommunityStringType(struct soap *soap, std::string *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_emi__CommunityStringType)) soap_serialize_emi__CommunityStringType(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__CommunityStringType(struct soap *soap, std::string *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToemi__CommunityStringType); if (soap_out_PointerToemi__CommunityStringType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__CommunityStringType(struct soap *soap, const char *tag, int id, std::string *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_emi__CommunityStringType); if (id < 0) return soap->error; return soap_out_emi__CommunityStringType(soap, tag, id, *a, type); } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerToemi__CommunityStringType(struct soap *soap, std::string **p, const char *tag, const char *type) { if ((p = soap_in_PointerToemi__CommunityStringType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerToemi__CommunityStringType(struct soap *soap, const char *tag, std::string **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (std::string **)soap_malloc(soap, sizeof(std::string *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_emi__CommunityStringType(soap, tag, *a, type))) return NULL; } else { a = (std::string **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_emi__CommunityStringType, sizeof(std::string), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__NodeAddressType(struct soap *soap, cmn__NodeAddressType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_cmn__NodeAddressType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__NodeAddressType(struct soap *soap, cmn__NodeAddressType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTocmn__NodeAddressType); if (soap_out_PointerTocmn__NodeAddressType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__NodeAddressType(struct soap *soap, const char *tag, int id, cmn__NodeAddressType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_cmn__NodeAddressType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 cmn__NodeAddressType ** SOAP_FMAC4 soap_get_PointerTocmn__NodeAddressType(struct soap *soap, cmn__NodeAddressType **p, const char *tag, const char *type) { if ((p = soap_in_PointerTocmn__NodeAddressType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 cmn__NodeAddressType ** SOAP_FMAC4 soap_in_PointerTocmn__NodeAddressType(struct soap *soap, const char *tag, cmn__NodeAddressType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (cmn__NodeAddressType **)soap_malloc(soap, sizeof(cmn__NodeAddressType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (cmn__NodeAddressType *)soap_instantiate_cmn__NodeAddressType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (cmn__NodeAddressType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_cmn__NodeAddressType, sizeof(cmn__NodeAddressType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__EventLogRecordType(struct soap *soap, emi__EventLogRecordType *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_emi__EventLogRecordType)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__EventLogRecordType(struct soap *soap, emi__EventLogRecordType *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToemi__EventLogRecordType); if (soap_out_PointerToemi__EventLogRecordType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__EventLogRecordType(struct soap *soap, const char *tag, int id, emi__EventLogRecordType *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_emi__EventLogRecordType); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 emi__EventLogRecordType ** SOAP_FMAC4 soap_get_PointerToemi__EventLogRecordType(struct soap *soap, emi__EventLogRecordType **p, const char *tag, const char *type) { if ((p = soap_in_PointerToemi__EventLogRecordType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 emi__EventLogRecordType ** SOAP_FMAC4 soap_in_PointerToemi__EventLogRecordType(struct soap *soap, const char *tag, emi__EventLogRecordType **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (emi__EventLogRecordType **)soap_malloc(soap, sizeof(emi__EventLogRecordType *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (emi__EventLogRecordType *)soap_instantiate_emi__EventLogRecordType(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (emi__EventLogRecordType **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_emi__EventLogRecordType, sizeof(emi__EventLogRecordType), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__ByteData(struct soap *soap, emi__ByteData *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_emi__ByteData)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__ByteData(struct soap *soap, emi__ByteData *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToemi__ByteData); if (soap_out_PointerToemi__ByteData(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__ByteData(struct soap *soap, const char *tag, int id, emi__ByteData *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_emi__ByteData); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 emi__ByteData ** SOAP_FMAC4 soap_get_PointerToemi__ByteData(struct soap *soap, emi__ByteData **p, const char *tag, const char *type) { if ((p = soap_in_PointerToemi__ByteData(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 emi__ByteData ** SOAP_FMAC4 soap_in_PointerToemi__ByteData(struct soap *soap, const char *tag, emi__ByteData **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (emi__ByteData **)soap_malloc(soap, sizeof(emi__ByteData *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (emi__ByteData *)soap_instantiate_emi__ByteData(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { a = (emi__ByteData **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_emi__ByteData, sizeof(emi__ByteData), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__IPv6AddressStringType(struct soap *soap, std::string *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_cmn__IPv6AddressStringType)) soap_serialize_cmn__IPv6AddressStringType(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__IPv6AddressStringType(struct soap *soap, std::string *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTocmn__IPv6AddressStringType); if (soap_out_PointerTocmn__IPv6AddressStringType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__IPv6AddressStringType(struct soap *soap, const char *tag, int id, std::string *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_cmn__IPv6AddressStringType); if (id < 0) return soap->error; return soap_out_cmn__IPv6AddressStringType(soap, tag, id, *a, type); } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTocmn__IPv6AddressStringType(struct soap *soap, std::string **p, const char *tag, const char *type) { if ((p = soap_in_PointerTocmn__IPv6AddressStringType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTocmn__IPv6AddressStringType(struct soap *soap, const char *tag, std::string **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (std::string **)soap_malloc(soap, sizeof(std::string *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_cmn__IPv6AddressStringType(soap, tag, *a, type))) return NULL; } else { a = (std::string **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_cmn__IPv6AddressStringType, sizeof(std::string), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__IPv4AddressStringType(struct soap *soap, std::string *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_cmn__IPv4AddressStringType)) soap_serialize_cmn__IPv4AddressStringType(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__IPv4AddressStringType(struct soap *soap, std::string *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTocmn__IPv4AddressStringType); if (soap_out_PointerTocmn__IPv4AddressStringType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__IPv4AddressStringType(struct soap *soap, const char *tag, int id, std::string *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_cmn__IPv4AddressStringType); if (id < 0) return soap->error; return soap_out_cmn__IPv4AddressStringType(soap, tag, id, *a, type); } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTocmn__IPv4AddressStringType(struct soap *soap, std::string **p, const char *tag, const char *type) { if ((p = soap_in_PointerTocmn__IPv4AddressStringType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTocmn__IPv4AddressStringType(struct soap *soap, const char *tag, std::string **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (std::string **)soap_malloc(soap, sizeof(std::string *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_cmn__IPv4AddressStringType(soap, tag, *a, type))) return NULL; } else { a = (std::string **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_cmn__IPv4AddressStringType, sizeof(std::string), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__HostNameType(struct soap *soap, std::string *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_cmn__HostNameType)) soap_serialize_cmn__HostNameType(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__HostNameType(struct soap *soap, std::string *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTocmn__HostNameType); if (soap_out_PointerTocmn__HostNameType(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__HostNameType(struct soap *soap, const char *tag, int id, std::string *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_cmn__HostNameType); if (id < 0) return soap->error; return soap_out_cmn__HostNameType(soap, tag, id, *a, type); } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTocmn__HostNameType(struct soap *soap, std::string **p, const char *tag, const char *type) { if ((p = soap_in_PointerTocmn__HostNameType(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTocmn__HostNameType(struct soap *soap, const char *tag, std::string **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (std::string **)soap_malloc(soap, sizeof(std::string *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_cmn__HostNameType(soap, tag, *a, type))) return NULL; } else { a = (std::string **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_cmn__HostNameType, sizeof(std::string), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTounsignedByte(struct soap *soap, unsigned char *const*a) { soap_reference(soap, *a, SOAP_TYPE_unsignedByte); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTounsignedByte(struct soap *soap, unsigned char *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTounsignedByte); if (soap_out_PointerTounsignedByte(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTounsignedByte(struct soap *soap, const char *tag, int id, unsigned char *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_unsignedByte); if (id < 0) return soap->error; return soap_out_unsignedByte(soap, tag, id, *a, type); } SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_get_PointerTounsignedByte(struct soap *soap, unsigned char **p, const char *tag, const char *type) { if ((p = soap_in_PointerTounsignedByte(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_in_PointerTounsignedByte(struct soap *soap, const char *tag, unsigned char **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (unsigned char **)soap_malloc(soap, sizeof(unsigned char *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_unsignedByte(soap, tag, *a, type))) return NULL; } else { a = (unsigned char **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_unsignedByte, sizeof(unsigned char), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default__QName(struct soap *soap, char **a) { soap_default_string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__QName(struct soap *soap, char *const*a) { soap_serialize_string(soap, a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap *soap, char *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE__QName); if (soap_out__QName(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap *soap, const char *tag, int id, char *const*a, const char *type) { return soap_outstring(soap, tag, id, a, type, SOAP_TYPE__QName); } SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap *soap, char **p, const char *tag, const char *type) { if ((p = soap_in__QName(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap *soap, const char *tag, char **a, const char *type) { return soap_instring(soap, tag, a, type, SOAP_TYPE__QName, 2, -1, -1); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap *soap, char **a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_string *a = SOAP_DEFAULT_string; #else *a = (char *)0; #endif } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap *soap, char *const*a) { soap_reference(soap, *a, SOAP_TYPE_string); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap *soap, char *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_string); if (soap_out_string(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap *soap, const char *tag, int id, char *const*a, const char *type) { return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_string); } SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap *soap, char **p, const char *tag, const char *type) { if ((p = soap_in_string(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap *soap, const char *tag, char **a, const char *type) { return soap_instring(soap, tag, a, type, SOAP_TYPE_string, 1, -1, -1); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfstd__string(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfstd__string(struct soap *soap, const std::vector*a) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) soap_serialize_std__string(soap, &(*i)); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfstd__string(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_std__string(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfstd__string(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfstd__string(soap, -1))) return NULL; std::string n; std::string *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_std__string, SOAP_TYPE_std__vectorTemplateOfstd__string, sizeof(std::string), 0)) break; if (!(p = soap_in_std__string(soap, tag, NULL, "xsd:string"))) break; } else { soap_default_std__string(soap, &n); if (!soap_in_std__string(soap, tag, &n, "xsd:string")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfstd__string(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfstd__string(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfstd__string(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfstd__string(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfstd__string(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfstd__string, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfstd__string(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfxsd__anyURI(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfxsd__anyURI(struct soap *soap, const std::vector*a) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) soap_serialize_xsd__anyURI(soap, &(*i)); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfxsd__anyURI(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_xsd__anyURI(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfxsd__anyURI(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfxsd__anyURI(soap, -1))) return NULL; std::string n; std::string *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_xsd__anyURI, SOAP_TYPE_std__vectorTemplateOfxsd__anyURI, sizeof(std::string), 0)) break; if (!(p = soap_in_xsd__anyURI(soap, tag, NULL, "xsd:anyURI"))) break; } else { soap_default_xsd__anyURI(soap, &n); if (!soap_in_xsd__anyURI(soap, tag, &n, "xsd:anyURI")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfxsd__anyURI(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfxsd__anyURI(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfxsd__anyURI(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfxsd__anyURI(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfxsd__anyURI(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfxsd__anyURI, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfxsd__anyURI(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfunsignedInt(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfunsignedInt(struct soap *soap, const std::vector*a) { } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfunsignedInt(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_unsignedInt(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfunsignedInt(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfunsignedInt(soap, -1))) return NULL; unsigned int n; unsigned int *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_unsignedInt, SOAP_TYPE_std__vectorTemplateOfunsignedInt, sizeof(unsigned int), 0)) break; if (!(p = soap_in_unsignedInt(soap, tag, NULL, "xsd:unsignedInt"))) break; } else { soap_default_unsignedInt(soap, &n); if (!soap_in_unsignedInt(soap, tag, &n, "xsd:unsignedInt")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfunsignedInt(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfunsignedInt(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfunsignedInt(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfunsignedInt(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfunsignedInt(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfunsignedInt, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfunsignedInt(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfxsd__base64Binary(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfxsd__base64Binary(struct soap *soap, const std::vector*a) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) (*i).soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfxsd__base64Binary(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if ((*i).soap_out(soap, tag, id, "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfxsd__base64Binary(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfxsd__base64Binary(soap, -1))) return NULL; xsd__base64Binary n; xsd__base64Binary *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_xsd__base64Binary, SOAP_TYPE_std__vectorTemplateOfxsd__base64Binary, sizeof(xsd__base64Binary), 0)) break; if (!(p = soap_in_xsd__base64Binary(soap, tag, NULL, "xsd:base64Binary"))) break; } else { n.soap_default(soap); if (!soap_in_xsd__base64Binary(soap, tag, &n, "xsd:base64Binary")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfxsd__base64Binary(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfxsd__base64Binary(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfxsd__base64Binary(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfxsd__base64Binary(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfxsd__base64Binary(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfxsd__base64Binary, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfxsd__base64Binary(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap *soap, const std::vector*a) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) soap_serialize_PointerTosai__KerberosSpnType(soap, &(*i)); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_PointerTosai__KerberosSpnType(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfPointerTosai__KerberosSpnType(soap, -1))) return NULL; sai__KerberosSpnType *n; sai__KerberosSpnType **p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_sai__KerberosSpnType, SOAP_TYPE_std__vectorTemplateOfPointerTosai__KerberosSpnType, sizeof(sai__KerberosSpnType), 1)) break; if (!(p = soap_in_PointerTosai__KerberosSpnType(soap, tag, NULL, "sai:KerberosSpnType"))) break; } else { n = NULL; if (!soap_in_PointerTosai__KerberosSpnType(soap, tag, &n, "sai:KerberosSpnType")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfPointerTosai__KerberosSpnType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfPointerTosai__KerberosSpnType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfPointerTosai__KerberosSpnType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfsai__UserAclRealmType(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfsai__UserAclRealmType(struct soap *soap, const std::vector*a) { } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfsai__UserAclRealmType(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_sai__UserAclRealmType(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfsai__UserAclRealmType(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfsai__UserAclRealmType(soap, -1))) return NULL; enum sai__UserAclRealmType n; enum sai__UserAclRealmType *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_sai__UserAclRealmType, SOAP_TYPE_std__vectorTemplateOfsai__UserAclRealmType, sizeof(enum sai__UserAclRealmType), 0)) break; if (!(p = soap_in_sai__UserAclRealmType(soap, tag, NULL, "sai:UserAclRealmType"))) break; } else { soap_default_sai__UserAclRealmType(soap, &n); if (!soap_in_sai__UserAclRealmType(soap, tag, &n, "sai:UserAclRealmType")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfsai__UserAclRealmType(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfsai__UserAclRealmType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfsai__UserAclRealmType(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfsai__UserAclRealmType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfsai__UserAclRealmType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfsai__UserAclRealmType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfsai__UserAclRealmType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap *soap, const std::vector*a) { } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_sai__UserAclEntryHandleType(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfsai__UserAclEntryHandleType(soap, -1))) return NULL; unsigned int n; unsigned int *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_sai__UserAclEntryHandleType, SOAP_TYPE_std__vectorTemplateOfsai__UserAclEntryHandleType, sizeof(unsigned int), 0)) break; if (!(p = soap_in_sai__UserAclEntryHandleType(soap, tag, NULL, "sai:UserAclEntryHandleType"))) break; } else { soap_default_sai__UserAclEntryHandleType(soap, &n); if (!soap_in_sai__UserAclEntryHandleType(soap, tag, &n, "sai:UserAclEntryHandleType")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfsai__UserAclEntryHandleType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfsai__UserAclEntryHandleType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfsai__UserAclEntryHandleType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap *soap, const std::vector*a) { } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_emi__AlertAuthOptionsType(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfemi__AlertAuthOptionsType(soap, -1))) return NULL; enum emi__AlertAuthOptionsType n; enum emi__AlertAuthOptionsType *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_emi__AlertAuthOptionsType, SOAP_TYPE_std__vectorTemplateOfemi__AlertAuthOptionsType, sizeof(enum emi__AlertAuthOptionsType), 0)) break; if (!(p = soap_in_emi__AlertAuthOptionsType(soap, tag, NULL, "emi:AlertAuthOptionsType"))) break; } else { soap_default_emi__AlertAuthOptionsType(soap, &n); if (!soap_in_emi__AlertAuthOptionsType(soap, tag, &n, "emi:AlertAuthOptionsType")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfemi__AlertAuthOptionsType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfemi__AlertAuthOptionsType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfemi__AlertAuthOptionsType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__SensorHandleType(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__SensorHandleType(struct soap *soap, const std::vector*a) { } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__SensorHandleType(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_emi__SensorHandleType(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__SensorHandleType(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfemi__SensorHandleType(soap, -1))) return NULL; unsigned int n; unsigned int *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_emi__SensorHandleType, SOAP_TYPE_std__vectorTemplateOfemi__SensorHandleType, sizeof(unsigned int), 0)) break; if (!(p = soap_in_emi__SensorHandleType(soap, tag, NULL, "emi:SensorHandleType"))) break; } else { soap_default_emi__SensorHandleType(soap, &n); if (!soap_in_emi__SensorHandleType(soap, tag, &n, "emi:SensorHandleType")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__SensorHandleType(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfemi__SensorHandleType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__SensorHandleType(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__SensorHandleType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfemi__SensorHandleType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfemi__SensorHandleType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__SensorHandleType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap *soap, const std::vector*a) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) soap_serialize_PointerToemi__EventLogRecordType(soap, &(*i)); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_PointerToemi__EventLogRecordType(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, -1))) return NULL; emi__EventLogRecordType *n; emi__EventLogRecordType **p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_emi__EventLogRecordType, SOAP_TYPE_std__vectorTemplateOfPointerToemi__EventLogRecordType, sizeof(emi__EventLogRecordType), 1)) break; if (!(p = soap_in_PointerToemi__EventLogRecordType(soap, tag, NULL, "emi:EventLogRecordType"))) break; } else { n = NULL; if (!soap_in_PointerToemi__EventLogRecordType(soap, tag, &n, "emi:EventLogRecordType")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfPointerToemi__EventLogRecordType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfPointerToemi__EventLogRecordType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfPointerToemi__EventLogRecordType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__EventFilterHandleType(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__EventFilterHandleType(struct soap *soap, const std::vector*a) { } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__EventFilterHandleType(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_emi__EventFilterHandleType(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__EventFilterHandleType(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfemi__EventFilterHandleType(soap, -1))) return NULL; unsigned int n; unsigned int *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_emi__EventFilterHandleType, SOAP_TYPE_std__vectorTemplateOfemi__EventFilterHandleType, sizeof(unsigned int), 0)) break; if (!(p = soap_in_emi__EventFilterHandleType(soap, tag, NULL, "emi:EventFilterHandleType"))) break; } else { soap_default_emi__EventFilterHandleType(soap, &n); if (!soap_in_emi__EventFilterHandleType(soap, tag, &n, "emi:EventFilterHandleType")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__EventFilterHandleType(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfemi__EventFilterHandleType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__EventFilterHandleType(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__EventFilterHandleType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfemi__EventFilterHandleType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfemi__EventFilterHandleType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__EventFilterHandleType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap *soap, const std::vector*a) { } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_emi__AlertSubscriptionHandleType(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, -1))) return NULL; unsigned int n; unsigned int *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_emi__AlertSubscriptionHandleType, SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionHandleType, sizeof(unsigned int), 0)) break; if (!(p = soap_in_emi__AlertSubscriptionHandleType(soap, tag, NULL, "emi:AlertSubscriptionHandleType"))) break; } else { soap_default_emi__AlertSubscriptionHandleType(soap, &n); if (!soap_in_emi__AlertSubscriptionHandleType(soap, tag, &n, "emi:AlertSubscriptionHandleType")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionHandleType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionHandleType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionHandleType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfunsignedByte(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfunsignedByte(struct soap *soap, const std::vector*a) { } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfunsignedByte(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_unsignedByte(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfunsignedByte(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfunsignedByte(soap, -1))) return NULL; unsigned char n; unsigned char *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_unsignedByte, SOAP_TYPE_std__vectorTemplateOfunsignedByte, sizeof(unsigned char), 0)) break; if (!(p = soap_in_unsignedByte(soap, tag, NULL, "xsd:unsignedByte"))) break; } else { soap_default_unsignedByte(soap, &n); if (!soap_in_unsignedByte(soap, tag, &n, "xsd:unsignedByte")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfunsignedByte(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfunsignedByte(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfunsignedByte(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfunsignedByte(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfunsignedByte(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfunsignedByte, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfunsignedByte(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap *soap, std::vector*p) { p->clear(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap *soap, const std::vector*a) { } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap *soap, const char *tag, int id, const std::vector*a, const char *type) { for (std::vector::const_iterator i = a->begin(); i != a->end(); ++i) { if (soap_out_emi__AlertSubscriptionPolicyIDType(soap, tag, id, &(*i), "")) return soap->error; } return SOAP_OK; } SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap *soap, const char *tag, std::vector*a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a && !(a = soap_new_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(soap, -1))) return NULL; unsigned char n; unsigned char *p; short soap_flag = 0; do { soap_revert(soap); if (*soap->id || *soap->href) { if (!soap_container_id_forward(soap, *soap->id?soap->id:soap->href, a, (size_t)a->size(), SOAP_TYPE_emi__AlertSubscriptionPolicyIDType, SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType, sizeof(unsigned char), 0)) break; if (!(p = soap_in_emi__AlertSubscriptionPolicyIDType(soap, tag, NULL, "emi:AlertSubscriptionPolicyIDType"))) break; } else { soap_default_emi__AlertSubscriptionPolicyIDType(soap, &n); if (!soap_in_emi__AlertSubscriptionPolicyIDType(soap, tag, &n, "emi:AlertSubscriptionPolicyIDType")) break; } a->push_back(n); soap_flag = 1; } while (!soap_element_begin_in(soap, tag, 1, NULL)); if (soap_flag && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) { soap->error = SOAP_OK; return a; } return NULL; } SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap *soap, int n) { return soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(soap, n, NULL, NULL, NULL); } SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap *soap, std::vector*p) { soap_delete(soap, p); } SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)new std::vector; if (size) *size = sizeof(std::vector); } else { cp->ptr = (void*)new std::vector[n]; if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::vector); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::vector*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::vector %p -> %p\n", q, p)); *(std::vector*)p = *(std::vector*)q; } /* End of soapC.cpp */ UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/soapH.h0000644012402100775320000047022410746077317022527 0ustar00gkbld_amtccigk00000000000000/* soapH.h Generated by gSOAP 2.7.9e from /root/Projects/UNS/SoapServer/gSoapGeneratedCode/SoapInterfaceTmp.h Copyright(C) 2000-2006, Robert van Engelen, Genivia Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. */ #ifndef soapH_H #define soapH_H #include "soapStub.h" #ifndef WITH_NOIDREF #ifdef __cplusplus extern "C" { #endif SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap*, const void*, int); SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap*, const void*, const char*, int, int); SOAP_FMAC3 void *SOAP_FMAC4 soap_getelement(struct soap*, int*); #ifdef __cplusplus } #endif SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap*); SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap*); #endif SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap*); SOAP_FMAC3 void * SOAP_FMAC4 soap_instantiate(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete(struct soap_clist*); SOAP_FMAC3 void* SOAP_FMAC4 soap_class_id_enter(struct soap*, const char*, void*, int, size_t, const char*, const char*); SOAP_FMAC3 void* SOAP_FMAC4 soap_container_id_forward(struct soap*, const char*, void*, size_t, int, int, size_t, unsigned int); SOAP_FMAC3 void SOAP_FMAC4 soap_container_insert(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_byte #define SOAP_TYPE_byte (2) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap*, char *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap*, const char *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap*, const char*, int, const char *, const char*); SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap*, char *, const char*, const char*); SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap*, const char*, char *, const char*); #ifndef SOAP_TYPE_short #define SOAP_TYPE_short (137) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_short(struct soap*, short *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_short(struct soap*, const short *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_short(struct soap*, const char*, int, const short *, const char*); SOAP_FMAC3 short * SOAP_FMAC4 soap_get_short(struct soap*, short *, const char*, const char*); SOAP_FMAC3 short * SOAP_FMAC4 soap_in_short(struct soap*, const char*, short *, const char*); #ifndef SOAP_TYPE_int #define SOAP_TYPE_int (1) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap*, int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap*, const int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap*, const char*, int, const int *, const char*); SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap*, int *, const char*, const char*); SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap*, const char*, int *, const char*); #ifndef SOAP_TYPE_emi__AlertSubscriptionPolicyIDType #define SOAP_TYPE_emi__AlertSubscriptionPolicyIDType (75) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__AlertSubscriptionPolicyIDType(struct soap*, unsigned char *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__AlertSubscriptionPolicyIDType(struct soap*, const unsigned char *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionPolicyIDType(struct soap*, const char*, int, const unsigned char *, const char*); SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_get_emi__AlertSubscriptionPolicyIDType(struct soap*, unsigned char *, const char*, const char*); SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_in_emi__AlertSubscriptionPolicyIDType(struct soap*, const char*, unsigned char *, const char*); #ifndef SOAP_TYPE_unsignedByte #define SOAP_TYPE_unsignedByte (11) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedByte(struct soap*, unsigned char *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedByte(struct soap*, const unsigned char *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedByte(struct soap*, const char*, int, const unsigned char *, const char*); SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_get_unsignedByte(struct soap*, unsigned char *, const char*, const char*); SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_in_unsignedByte(struct soap*, const char*, unsigned char *, const char*); #ifndef SOAP_TYPE_unsignedShort #define SOAP_TYPE_unsignedShort (138) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedShort(struct soap*, unsigned short *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedShort(struct soap*, const unsigned short *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedShort(struct soap*, const char*, int, const unsigned short *, const char*); SOAP_FMAC3 unsigned short * SOAP_FMAC4 soap_get_unsignedShort(struct soap*, unsigned short *, const char*, const char*); SOAP_FMAC3 unsigned short * SOAP_FMAC4 soap_in_unsignedShort(struct soap*, const char*, unsigned short *, const char*); #ifndef SOAP_TYPE_sai__CertificateHandleType #define SOAP_TYPE_sai__CertificateHandleType (101) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__CertificateHandleType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__CertificateHandleType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CertificateHandleType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_sai__CertificateHandleType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_sai__CertificateHandleType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_sai__IPv4AddressType #define SOAP_TYPE_sai__IPv4AddressType (89) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__IPv4AddressType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__IPv4AddressType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__IPv4AddressType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_sai__IPv4AddressType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_sai__IPv4AddressType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_sai__UserAclEntryHandleType #define SOAP_TYPE_sai__UserAclEntryHandleType (86) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__UserAclEntryHandleType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__UserAclEntryHandleType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclEntryHandleType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_sai__UserAclEntryHandleType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_sai__UserAclEntryHandleType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_sai__PT_USCORESTATUS #define SOAP_TYPE_sai__PT_USCORESTATUS (84) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__PT_USCORESTATUS(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__PT_USCORESTATUS(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__PT_USCORESTATUS(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_sai__PT_USCORESTATUS(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_sai__PT_USCORESTATUS(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_emi__SensorHandleType #define SOAP_TYPE_emi__SensorHandleType (81) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__SensorHandleType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__SensorHandleType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__SensorHandleType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__SensorHandleType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__SensorHandleType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_emi__IPv4AddressType #define SOAP_TYPE_emi__IPv4AddressType (80) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__IPv4AddressType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__IPv4AddressType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__IPv4AddressType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__IPv4AddressType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__IPv4AddressType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_emi__PT_USCORESTATUS #define SOAP_TYPE_emi__PT_USCORESTATUS (79) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__PT_USCORESTATUS(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__PT_USCORESTATUS(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__PT_USCORESTATUS(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__PT_USCORESTATUS(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__PT_USCORESTATUS(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_emi__EventFilterHandleType #define SOAP_TYPE_emi__EventFilterHandleType (77) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__EventFilterHandleType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__EventFilterHandleType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventFilterHandleType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__EventFilterHandleType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__EventFilterHandleType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_emi__AlertSubscriptionHandleType #define SOAP_TYPE_emi__AlertSubscriptionHandleType (76) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__AlertSubscriptionHandleType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__AlertSubscriptionHandleType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionHandleType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__AlertSubscriptionHandleType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__AlertSubscriptionHandleType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_emi__TimeType #define SOAP_TYPE_emi__TimeType (74) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__TimeType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__TimeType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__TimeType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_emi__TimeType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_emi__TimeType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_cmn__InterfaceHandleType #define SOAP_TYPE_cmn__InterfaceHandleType (72) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__InterfaceHandleType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__InterfaceHandleType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__InterfaceHandleType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_cmn__InterfaceHandleType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_cmn__InterfaceHandleType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_cmn__IPv4AddressType #define SOAP_TYPE_cmn__IPv4AddressType (69) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__IPv4AddressType(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__IPv4AddressType(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__IPv4AddressType(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_cmn__IPv4AddressType(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_cmn__IPv4AddressType(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_cmn__PT_USCORESTATUS #define SOAP_TYPE_cmn__PT_USCORESTATUS (67) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__PT_USCORESTATUS(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__PT_USCORESTATUS(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__PT_USCORESTATUS(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_cmn__PT_USCORESTATUS(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_cmn__PT_USCORESTATUS(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_unsignedInt #define SOAP_TYPE_unsignedInt (10) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedInt(struct soap*, unsigned int *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedInt(struct soap*, const unsigned int *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedInt(struct soap*, const char*, int, const unsigned int *, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_unsignedInt(struct soap*, unsigned int *, const char*, const char*); SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_unsignedInt(struct soap*, const char*, unsigned int *, const char*); #ifndef SOAP_TYPE_bool #define SOAP_TYPE_bool (122) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_bool(struct soap*, bool *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_bool(struct soap*, const bool *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_bool(struct soap*, const char*, int, const bool *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_bool2s(struct soap*, bool); SOAP_FMAC3 bool * SOAP_FMAC4 soap_get_bool(struct soap*, bool *, const char*, const char*); SOAP_FMAC3 bool * SOAP_FMAC4 soap_in_bool(struct soap*, const char*, bool *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2bool(struct soap*, const char*, bool *); #ifndef SOAP_TYPE_sai__UNOptionsType #define SOAP_TYPE_sai__UNOptionsType (107) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__UNOptionsType(struct soap*, enum sai__UNOptionsType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__UNOptionsType(struct soap*, const enum sai__UNOptionsType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UNOptionsType(struct soap*, const char*, int, const enum sai__UNOptionsType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__UNOptionsType2s(struct soap*, enum sai__UNOptionsType); SOAP_FMAC3 enum sai__UNOptionsType * SOAP_FMAC4 soap_get_sai__UNOptionsType(struct soap*, enum sai__UNOptionsType *, const char*, const char*); SOAP_FMAC3 enum sai__UNOptionsType * SOAP_FMAC4 soap_in_sai__UNOptionsType(struct soap*, const char*, enum sai__UNOptionsType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__UNOptionsType(struct soap*, const char*, enum sai__UNOptionsType *); #ifndef SOAP_TYPE_sai__HashTypeType #define SOAP_TYPE_sai__HashTypeType (106) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__HashTypeType(struct soap*, enum sai__HashTypeType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__HashTypeType(struct soap*, const enum sai__HashTypeType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__HashTypeType(struct soap*, const char*, int, const enum sai__HashTypeType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__HashTypeType2s(struct soap*, enum sai__HashTypeType); SOAP_FMAC3 enum sai__HashTypeType * SOAP_FMAC4 soap_get_sai__HashTypeType(struct soap*, enum sai__HashTypeType *, const char*, const char*); SOAP_FMAC3 enum sai__HashTypeType * SOAP_FMAC4 soap_in_sai__HashTypeType(struct soap*, const char*, enum sai__HashTypeType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__HashTypeType(struct soap*, const char*, enum sai__HashTypeType *); #ifndef SOAP_TYPE_sai__ProvisioningTLSModeType #define SOAP_TYPE_sai__ProvisioningTLSModeType (102) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__ProvisioningTLSModeType(struct soap*, enum sai__ProvisioningTLSModeType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__ProvisioningTLSModeType(struct soap*, const enum sai__ProvisioningTLSModeType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__ProvisioningTLSModeType(struct soap*, const char*, int, const enum sai__ProvisioningTLSModeType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__ProvisioningTLSModeType2s(struct soap*, enum sai__ProvisioningTLSModeType); SOAP_FMAC3 enum sai__ProvisioningTLSModeType * SOAP_FMAC4 soap_get_sai__ProvisioningTLSModeType(struct soap*, enum sai__ProvisioningTLSModeType *, const char*, const char*); SOAP_FMAC3 enum sai__ProvisioningTLSModeType * SOAP_FMAC4 soap_in_sai__ProvisioningTLSModeType(struct soap*, const char*, enum sai__ProvisioningTLSModeType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__ProvisioningTLSModeType(struct soap*, const char*, enum sai__ProvisioningTLSModeType *); #ifndef SOAP_TYPE_sai__TlsAthenticationType #define SOAP_TYPE_sai__TlsAthenticationType (100) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__TlsAthenticationType(struct soap*, enum sai__TlsAthenticationType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__TlsAthenticationType(struct soap*, const enum sai__TlsAthenticationType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__TlsAthenticationType(struct soap*, const char*, int, const enum sai__TlsAthenticationType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__TlsAthenticationType2s(struct soap*, enum sai__TlsAthenticationType); SOAP_FMAC3 enum sai__TlsAthenticationType * SOAP_FMAC4 soap_get_sai__TlsAthenticationType(struct soap*, enum sai__TlsAthenticationType *, const char*, const char*); SOAP_FMAC3 enum sai__TlsAthenticationType * SOAP_FMAC4 soap_in_sai__TlsAthenticationType(struct soap*, const char*, enum sai__TlsAthenticationType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__TlsAthenticationType(struct soap*, const char*, enum sai__TlsAthenticationType *); #ifndef SOAP_TYPE_sai__InterfaceType #define SOAP_TYPE_sai__InterfaceType (99) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__InterfaceType(struct soap*, enum sai__InterfaceType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__InterfaceType(struct soap*, const enum sai__InterfaceType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__InterfaceType(struct soap*, const char*, int, const enum sai__InterfaceType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__InterfaceType2s(struct soap*, enum sai__InterfaceType); SOAP_FMAC3 enum sai__InterfaceType * SOAP_FMAC4 soap_get_sai__InterfaceType(struct soap*, enum sai__InterfaceType *, const char*, const char*); SOAP_FMAC3 enum sai__InterfaceType * SOAP_FMAC4 soap_in_sai__InterfaceType(struct soap*, const char*, enum sai__InterfaceType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__InterfaceType(struct soap*, const char*, enum sai__InterfaceType *); #ifndef SOAP_TYPE_sai__EnabledInterfacesType #define SOAP_TYPE_sai__EnabledInterfacesType (98) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__EnabledInterfacesType(struct soap*, enum sai__EnabledInterfacesType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__EnabledInterfacesType(struct soap*, const enum sai__EnabledInterfacesType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__EnabledInterfacesType(struct soap*, const char*, int, const enum sai__EnabledInterfacesType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__EnabledInterfacesType2s(struct soap*, enum sai__EnabledInterfacesType); SOAP_FMAC3 enum sai__EnabledInterfacesType * SOAP_FMAC4 soap_get_sai__EnabledInterfacesType(struct soap*, enum sai__EnabledInterfacesType *, const char*, const char*); SOAP_FMAC3 enum sai__EnabledInterfacesType * SOAP_FMAC4 soap_in_sai__EnabledInterfacesType(struct soap*, const char*, enum sai__EnabledInterfacesType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__EnabledInterfacesType(struct soap*, const char*, enum sai__EnabledInterfacesType *); #ifndef SOAP_TYPE_sai__PowerStateType #define SOAP_TYPE_sai__PowerStateType (97) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__PowerStateType(struct soap*, enum sai__PowerStateType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__PowerStateType(struct soap*, const enum sai__PowerStateType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__PowerStateType(struct soap*, const char*, int, const enum sai__PowerStateType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__PowerStateType2s(struct soap*, enum sai__PowerStateType); SOAP_FMAC3 enum sai__PowerStateType * SOAP_FMAC4 soap_get_sai__PowerStateType(struct soap*, enum sai__PowerStateType *, const char*, const char*); SOAP_FMAC3 enum sai__PowerStateType * SOAP_FMAC4 soap_in_sai__PowerStateType(struct soap*, const char*, enum sai__PowerStateType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__PowerStateType(struct soap*, const char*, enum sai__PowerStateType *); #ifndef SOAP_TYPE_sai__KerberosEncryptionType #define SOAP_TYPE_sai__KerberosEncryptionType (96) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__KerberosEncryptionType(struct soap*, enum sai__KerberosEncryptionType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__KerberosEncryptionType(struct soap*, const enum sai__KerberosEncryptionType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__KerberosEncryptionType(struct soap*, const char*, int, const enum sai__KerberosEncryptionType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__KerberosEncryptionType2s(struct soap*, enum sai__KerberosEncryptionType); SOAP_FMAC3 enum sai__KerberosEncryptionType * SOAP_FMAC4 soap_get_sai__KerberosEncryptionType(struct soap*, enum sai__KerberosEncryptionType *, const char*, const char*); SOAP_FMAC3 enum sai__KerberosEncryptionType * SOAP_FMAC4 soap_in_sai__KerberosEncryptionType(struct soap*, const char*, enum sai__KerberosEncryptionType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__KerberosEncryptionType(struct soap*, const char*, enum sai__KerberosEncryptionType *); #ifndef SOAP_TYPE_sai__KerberosSpnProtocolType #define SOAP_TYPE_sai__KerberosSpnProtocolType (95) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__KerberosSpnProtocolType(struct soap*, enum sai__KerberosSpnProtocolType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__KerberosSpnProtocolType(struct soap*, const enum sai__KerberosSpnProtocolType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__KerberosSpnProtocolType(struct soap*, const char*, int, const enum sai__KerberosSpnProtocolType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__KerberosSpnProtocolType2s(struct soap*, enum sai__KerberosSpnProtocolType); SOAP_FMAC3 enum sai__KerberosSpnProtocolType * SOAP_FMAC4 soap_get_sai__KerberosSpnProtocolType(struct soap*, enum sai__KerberosSpnProtocolType *, const char*, const char*); SOAP_FMAC3 enum sai__KerberosSpnProtocolType * SOAP_FMAC4 soap_in_sai__KerberosSpnProtocolType(struct soap*, const char*, enum sai__KerberosSpnProtocolType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__KerberosSpnProtocolType(struct soap*, const char*, enum sai__KerberosSpnProtocolType *); #ifndef SOAP_TYPE_sai__AccessPermissionType #define SOAP_TYPE_sai__AccessPermissionType (94) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__AccessPermissionType(struct soap*, enum sai__AccessPermissionType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__AccessPermissionType(struct soap*, const enum sai__AccessPermissionType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AccessPermissionType(struct soap*, const char*, int, const enum sai__AccessPermissionType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__AccessPermissionType2s(struct soap*, enum sai__AccessPermissionType); SOAP_FMAC3 enum sai__AccessPermissionType * SOAP_FMAC4 soap_get_sai__AccessPermissionType(struct soap*, enum sai__AccessPermissionType *, const char*, const char*); SOAP_FMAC3 enum sai__AccessPermissionType * SOAP_FMAC4 soap_in_sai__AccessPermissionType(struct soap*, const char*, enum sai__AccessPermissionType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__AccessPermissionType(struct soap*, const char*, enum sai__AccessPermissionType *); #ifndef SOAP_TYPE_sai__ProvisioningModeType #define SOAP_TYPE_sai__ProvisioningModeType (93) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__ProvisioningModeType(struct soap*, enum sai__ProvisioningModeType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__ProvisioningModeType(struct soap*, const enum sai__ProvisioningModeType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__ProvisioningModeType(struct soap*, const char*, int, const enum sai__ProvisioningModeType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__ProvisioningModeType2s(struct soap*, enum sai__ProvisioningModeType); SOAP_FMAC3 enum sai__ProvisioningModeType * SOAP_FMAC4 soap_get_sai__ProvisioningModeType(struct soap*, enum sai__ProvisioningModeType *, const char*, const char*); SOAP_FMAC3 enum sai__ProvisioningModeType * SOAP_FMAC4 soap_in_sai__ProvisioningModeType(struct soap*, const char*, enum sai__ProvisioningModeType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__ProvisioningModeType(struct soap*, const char*, enum sai__ProvisioningModeType *); #ifndef SOAP_TYPE_sai__RngKeyEncodingType #define SOAP_TYPE_sai__RngKeyEncodingType (92) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__RngKeyEncodingType(struct soap*, enum sai__RngKeyEncodingType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__RngKeyEncodingType(struct soap*, const enum sai__RngKeyEncodingType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RngKeyEncodingType(struct soap*, const char*, int, const enum sai__RngKeyEncodingType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__RngKeyEncodingType2s(struct soap*, enum sai__RngKeyEncodingType); SOAP_FMAC3 enum sai__RngKeyEncodingType * SOAP_FMAC4 soap_get_sai__RngKeyEncodingType(struct soap*, enum sai__RngKeyEncodingType *, const char*, const char*); SOAP_FMAC3 enum sai__RngKeyEncodingType * SOAP_FMAC4 soap_in_sai__RngKeyEncodingType(struct soap*, const char*, enum sai__RngKeyEncodingType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__RngKeyEncodingType(struct soap*, const char*, enum sai__RngKeyEncodingType *); #ifndef SOAP_TYPE_sai__RsaCertificateEncodingType #define SOAP_TYPE_sai__RsaCertificateEncodingType (91) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__RsaCertificateEncodingType(struct soap*, enum sai__RsaCertificateEncodingType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__RsaCertificateEncodingType(struct soap*, const enum sai__RsaCertificateEncodingType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RsaCertificateEncodingType(struct soap*, const char*, int, const enum sai__RsaCertificateEncodingType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__RsaCertificateEncodingType2s(struct soap*, enum sai__RsaCertificateEncodingType); SOAP_FMAC3 enum sai__RsaCertificateEncodingType * SOAP_FMAC4 soap_get_sai__RsaCertificateEncodingType(struct soap*, enum sai__RsaCertificateEncodingType *, const char*, const char*); SOAP_FMAC3 enum sai__RsaCertificateEncodingType * SOAP_FMAC4 soap_in_sai__RsaCertificateEncodingType(struct soap*, const char*, enum sai__RsaCertificateEncodingType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__RsaCertificateEncodingType(struct soap*, const char*, enum sai__RsaCertificateEncodingType *); #ifndef SOAP_TYPE_sai__RsaKeyEncodingType #define SOAP_TYPE_sai__RsaKeyEncodingType (90) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__RsaKeyEncodingType(struct soap*, enum sai__RsaKeyEncodingType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__RsaKeyEncodingType(struct soap*, const enum sai__RsaKeyEncodingType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RsaKeyEncodingType(struct soap*, const char*, int, const enum sai__RsaKeyEncodingType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__RsaKeyEncodingType2s(struct soap*, enum sai__RsaKeyEncodingType); SOAP_FMAC3 enum sai__RsaKeyEncodingType * SOAP_FMAC4 soap_get_sai__RsaKeyEncodingType(struct soap*, enum sai__RsaKeyEncodingType *, const char*, const char*); SOAP_FMAC3 enum sai__RsaKeyEncodingType * SOAP_FMAC4 soap_in_sai__RsaKeyEncodingType(struct soap*, const char*, enum sai__RsaKeyEncodingType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__RsaKeyEncodingType(struct soap*, const char*, enum sai__RsaKeyEncodingType *); #ifndef SOAP_TYPE_sai__UserAclRealmType #define SOAP_TYPE_sai__UserAclRealmType (85) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__UserAclRealmType(struct soap*, enum sai__UserAclRealmType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__UserAclRealmType(struct soap*, const enum sai__UserAclRealmType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclRealmType(struct soap*, const char*, int, const enum sai__UserAclRealmType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_sai__UserAclRealmType2s(struct soap*, enum sai__UserAclRealmType); SOAP_FMAC3 enum sai__UserAclRealmType * SOAP_FMAC4 soap_get_sai__UserAclRealmType(struct soap*, enum sai__UserAclRealmType *, const char*, const char*); SOAP_FMAC3 enum sai__UserAclRealmType * SOAP_FMAC4 soap_in_sai__UserAclRealmType(struct soap*, const char*, enum sai__UserAclRealmType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2sai__UserAclRealmType(struct soap*, const char*, enum sai__UserAclRealmType *); #ifndef SOAP_TYPE_emi__AlertAuthOptionsType #define SOAP_TYPE_emi__AlertAuthOptionsType (82) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__AlertAuthOptionsType(struct soap*, enum emi__AlertAuthOptionsType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__AlertAuthOptionsType(struct soap*, const enum emi__AlertAuthOptionsType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertAuthOptionsType(struct soap*, const char*, int, const enum emi__AlertAuthOptionsType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_emi__AlertAuthOptionsType2s(struct soap*, enum emi__AlertAuthOptionsType); SOAP_FMAC3 enum emi__AlertAuthOptionsType * SOAP_FMAC4 soap_get_emi__AlertAuthOptionsType(struct soap*, enum emi__AlertAuthOptionsType *, const char*, const char*); SOAP_FMAC3 enum emi__AlertAuthOptionsType * SOAP_FMAC4 soap_in_emi__AlertAuthOptionsType(struct soap*, const char*, enum emi__AlertAuthOptionsType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2emi__AlertAuthOptionsType(struct soap*, const char*, enum emi__AlertAuthOptionsType *); #ifndef SOAP_TYPE_emi__EventSeverityType #define SOAP_TYPE_emi__EventSeverityType (78) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__EventSeverityType(struct soap*, enum emi__EventSeverityType *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__EventSeverityType(struct soap*, const enum emi__EventSeverityType *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventSeverityType(struct soap*, const char*, int, const enum emi__EventSeverityType *, const char*); SOAP_FMAC3S const char* SOAP_FMAC4S soap_emi__EventSeverityType2s(struct soap*, enum emi__EventSeverityType); SOAP_FMAC3 enum emi__EventSeverityType * SOAP_FMAC4 soap_get_emi__EventSeverityType(struct soap*, enum emi__EventSeverityType *, const char*, const char*); SOAP_FMAC3 enum emi__EventSeverityType * SOAP_FMAC4 soap_in_emi__EventSeverityType(struct soap*, const char*, enum emi__EventSeverityType *, const char*); SOAP_FMAC3S int SOAP_FMAC4S soap_s2emi__EventSeverityType(struct soap*, const char*, enum emi__EventSeverityType *); #ifndef SOAP_TYPE__sai__KerberosRealmName #define SOAP_TYPE__sai__KerberosRealmName (109) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default__sai__KerberosRealmName(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__sai__KerberosRealmName(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put__sai__KerberosRealmName(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out__sai__KerberosRealmName(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get__sai__KerberosRealmName(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in__sai__KerberosRealmName(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new__sai__KerberosRealmName(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__sai__KerberosRealmName(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate__sai__KerberosRealmName(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__sai__KerberosRealmName(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__sai__SpnString #define SOAP_TYPE__sai__SpnString (108) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default__sai__SpnString(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__sai__SpnString(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put__sai__SpnString(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out__sai__SpnString(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get__sai__SpnString(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in__sai__SpnString(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new__sai__SpnString(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__sai__SpnString(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate__sai__SpnString(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__sai__SpnString(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__FriendlyNameType #define SOAP_TYPE_sai__FriendlyNameType (105) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__FriendlyNameType(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__FriendlyNameType(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__FriendlyNameType(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__FriendlyNameType(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_sai__FriendlyNameType(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_sai__FriendlyNameType(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_sai__FriendlyNameType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__FriendlyNameType(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_sai__FriendlyNameType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__FriendlyNameType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__ProvisioningOTPType #define SOAP_TYPE_sai__ProvisioningOTPType (104) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__ProvisioningOTPType(struct soap*, xsd__base64Binary *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__ProvisioningOTPType(struct soap*, xsd__base64Binary const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__ProvisioningOTPType(struct soap*, const xsd__base64Binary *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__ProvisioningOTPType(struct soap*, const char*, int, const xsd__base64Binary *, const char*); SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_get_sai__ProvisioningOTPType(struct soap*, xsd__base64Binary *, const char*, const char*); SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_in_sai__ProvisioningOTPType(struct soap*, const char*, xsd__base64Binary *, const char*); SOAP_FMAC5 xsd__base64Binary * SOAP_FMAC6 soap_new_sai__ProvisioningOTPType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__ProvisioningOTPType(struct soap*, xsd__base64Binary*); SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_instantiate_sai__ProvisioningOTPType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__ProvisioningOTPType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__MEBxPasswordType #define SOAP_TYPE_sai__MEBxPasswordType (103) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__MEBxPasswordType(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__MEBxPasswordType(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__MEBxPasswordType(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__MEBxPasswordType(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_sai__MEBxPasswordType(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_sai__MEBxPasswordType(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_sai__MEBxPasswordType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__MEBxPasswordType(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_sai__MEBxPasswordType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__MEBxPasswordType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__AclPasswordStringType #define SOAP_TYPE_sai__AclPasswordStringType (88) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__AclPasswordStringType(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__AclPasswordStringType(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__AclPasswordStringType(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AclPasswordStringType(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_sai__AclPasswordStringType(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_sai__AclPasswordStringType(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_sai__AclPasswordStringType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AclPasswordStringType(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_sai__AclPasswordStringType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AclPasswordStringType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__AclStringType #define SOAP_TYPE_sai__AclStringType (87) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_sai__AclStringType(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_sai__AclStringType(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_sai__AclStringType(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AclStringType(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_sai__AclStringType(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_sai__AclStringType(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_sai__AclStringType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AclStringType(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_sai__AclStringType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AclStringType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__CommunityStringType #define SOAP_TYPE_emi__CommunityStringType (83) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_emi__CommunityStringType(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_emi__CommunityStringType(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_emi__CommunityStringType(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__CommunityStringType(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_emi__CommunityStringType(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_emi__CommunityStringType(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_emi__CommunityStringType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__CommunityStringType(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_emi__CommunityStringType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__CommunityStringType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_cmn__GuidBuf #define SOAP_TYPE_cmn__GuidBuf (73) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__GuidBuf(struct soap*, xsd__base64Binary *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_cmn__GuidBuf(struct soap*, xsd__base64Binary const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__GuidBuf(struct soap*, const xsd__base64Binary *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__GuidBuf(struct soap*, const char*, int, const xsd__base64Binary *, const char*); SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_get_cmn__GuidBuf(struct soap*, xsd__base64Binary *, const char*, const char*); SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_in_cmn__GuidBuf(struct soap*, const char*, xsd__base64Binary *, const char*); SOAP_FMAC5 xsd__base64Binary * SOAP_FMAC6 soap_new_cmn__GuidBuf(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__GuidBuf(struct soap*, xsd__base64Binary*); SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_instantiate_cmn__GuidBuf(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__GuidBuf(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_cmn__IPv6AddressStringType #define SOAP_TYPE_cmn__IPv6AddressStringType (71) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__IPv6AddressStringType(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_cmn__IPv6AddressStringType(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__IPv6AddressStringType(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__IPv6AddressStringType(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_cmn__IPv6AddressStringType(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_cmn__IPv6AddressStringType(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_cmn__IPv6AddressStringType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__IPv6AddressStringType(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_cmn__IPv6AddressStringType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__IPv6AddressStringType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_cmn__IPv4AddressStringType #define SOAP_TYPE_cmn__IPv4AddressStringType (70) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__IPv4AddressStringType(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_cmn__IPv4AddressStringType(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__IPv4AddressStringType(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__IPv4AddressStringType(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_cmn__IPv4AddressStringType(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_cmn__IPv4AddressStringType(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_cmn__IPv4AddressStringType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__IPv4AddressStringType(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_cmn__IPv4AddressStringType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__IPv4AddressStringType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_cmn__HostNameType #define SOAP_TYPE_cmn__HostNameType (68) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_cmn__HostNameType(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_cmn__HostNameType(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_cmn__HostNameType(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__HostNameType(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_cmn__HostNameType(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_cmn__HostNameType(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_cmn__HostNameType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__HostNameType(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_cmn__HostNameType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__HostNameType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__GlobalPowerPolicyType #define SOAP_TYPE_sai__GlobalPowerPolicyType (66) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__GlobalPowerPolicyType(struct soap*, const char*, int, const sai__GlobalPowerPolicyType *, const char*); SOAP_FMAC3 sai__GlobalPowerPolicyType * SOAP_FMAC4 soap_get_sai__GlobalPowerPolicyType(struct soap*, sai__GlobalPowerPolicyType *, const char*, const char*); SOAP_FMAC3 sai__GlobalPowerPolicyType * SOAP_FMAC4 soap_in_sai__GlobalPowerPolicyType(struct soap*, const char*, sai__GlobalPowerPolicyType *, const char*); SOAP_FMAC5 sai__GlobalPowerPolicyType * SOAP_FMAC6 soap_new_sai__GlobalPowerPolicyType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__GlobalPowerPolicyType(struct soap*, sai__GlobalPowerPolicyType*); SOAP_FMAC3 sai__GlobalPowerPolicyType * SOAP_FMAC4 soap_instantiate_sai__GlobalPowerPolicyType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__GlobalPowerPolicyType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__EnvironmentDetectionType #define SOAP_TYPE_sai__EnvironmentDetectionType (65) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__EnvironmentDetectionType(struct soap*, const char*, int, const sai__EnvironmentDetectionType *, const char*); SOAP_FMAC3 sai__EnvironmentDetectionType * SOAP_FMAC4 soap_get_sai__EnvironmentDetectionType(struct soap*, sai__EnvironmentDetectionType *, const char*, const char*); SOAP_FMAC3 sai__EnvironmentDetectionType * SOAP_FMAC4 soap_in_sai__EnvironmentDetectionType(struct soap*, const char*, sai__EnvironmentDetectionType *, const char*); SOAP_FMAC5 sai__EnvironmentDetectionType * SOAP_FMAC6 soap_new_sai__EnvironmentDetectionType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__EnvironmentDetectionType(struct soap*, sai__EnvironmentDetectionType*); SOAP_FMAC3 sai__EnvironmentDetectionType * SOAP_FMAC4 soap_instantiate_sai__EnvironmentDetectionType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__EnvironmentDetectionType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__EnvironmentDetectionDomainType #define SOAP_TYPE_sai__EnvironmentDetectionDomainType (64) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__EnvironmentDetectionDomainType(struct soap*, const char*, int, const sai__EnvironmentDetectionDomainType *, const char*); SOAP_FMAC3 sai__EnvironmentDetectionDomainType * SOAP_FMAC4 soap_get_sai__EnvironmentDetectionDomainType(struct soap*, sai__EnvironmentDetectionDomainType *, const char*, const char*); SOAP_FMAC3 sai__EnvironmentDetectionDomainType * SOAP_FMAC4 soap_in_sai__EnvironmentDetectionDomainType(struct soap*, const char*, sai__EnvironmentDetectionDomainType *, const char*); SOAP_FMAC5 sai__EnvironmentDetectionDomainType * SOAP_FMAC6 soap_new_sai__EnvironmentDetectionDomainType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__EnvironmentDetectionDomainType(struct soap*, sai__EnvironmentDetectionDomainType*); SOAP_FMAC3 sai__EnvironmentDetectionDomainType * SOAP_FMAC4 soap_instantiate_sai__EnvironmentDetectionDomainType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__EnvironmentDetectionDomainType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__EnvironmentDetectionHTTPSType #define SOAP_TYPE_sai__EnvironmentDetectionHTTPSType (63) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__EnvironmentDetectionHTTPSType(struct soap*, const char*, int, const sai__EnvironmentDetectionHTTPSType *, const char*); SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType * SOAP_FMAC4 soap_get_sai__EnvironmentDetectionHTTPSType(struct soap*, sai__EnvironmentDetectionHTTPSType *, const char*, const char*); SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType * SOAP_FMAC4 soap_in_sai__EnvironmentDetectionHTTPSType(struct soap*, const char*, sai__EnvironmentDetectionHTTPSType *, const char*); SOAP_FMAC5 sai__EnvironmentDetectionHTTPSType * SOAP_FMAC6 soap_new_sai__EnvironmentDetectionHTTPSType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__EnvironmentDetectionHTTPSType(struct soap*, sai__EnvironmentDetectionHTTPSType*); SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType * SOAP_FMAC4 soap_instantiate_sai__EnvironmentDetectionHTTPSType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__EnvironmentDetectionHTTPSType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__ProvisioningAuditRecordType #define SOAP_TYPE_sai__ProvisioningAuditRecordType (62) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__ProvisioningAuditRecordType(struct soap*, const char*, int, const sai__ProvisioningAuditRecordType *, const char*); SOAP_FMAC3 sai__ProvisioningAuditRecordType * SOAP_FMAC4 soap_get_sai__ProvisioningAuditRecordType(struct soap*, sai__ProvisioningAuditRecordType *, const char*, const char*); SOAP_FMAC3 sai__ProvisioningAuditRecordType * SOAP_FMAC4 soap_in_sai__ProvisioningAuditRecordType(struct soap*, const char*, sai__ProvisioningAuditRecordType *, const char*); SOAP_FMAC5 sai__ProvisioningAuditRecordType * SOAP_FMAC6 soap_new_sai__ProvisioningAuditRecordType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__ProvisioningAuditRecordType(struct soap*, sai__ProvisioningAuditRecordType*); SOAP_FMAC3 sai__ProvisioningAuditRecordType * SOAP_FMAC4 soap_instantiate_sai__ProvisioningAuditRecordType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__ProvisioningAuditRecordType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__CertHashEntryType #define SOAP_TYPE_sai__CertHashEntryType (61) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CertHashEntryType(struct soap*, const char*, int, const sai__CertHashEntryType *, const char*); SOAP_FMAC3 sai__CertHashEntryType * SOAP_FMAC4 soap_get_sai__CertHashEntryType(struct soap*, sai__CertHashEntryType *, const char*, const char*); SOAP_FMAC3 sai__CertHashEntryType * SOAP_FMAC4 soap_in_sai__CertHashEntryType(struct soap*, const char*, sai__CertHashEntryType *, const char*); SOAP_FMAC5 sai__CertHashEntryType * SOAP_FMAC6 soap_new_sai__CertHashEntryType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__CertHashEntryType(struct soap*, sai__CertHashEntryType*); SOAP_FMAC3 sai__CertHashEntryType * SOAP_FMAC4 soap_instantiate_sai__CertHashEntryType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__CertHashEntryType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__PkiCapsType #define SOAP_TYPE_sai__PkiCapsType (60) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__PkiCapsType(struct soap*, const char*, int, const sai__PkiCapsType *, const char*); SOAP_FMAC3 sai__PkiCapsType * SOAP_FMAC4 soap_get_sai__PkiCapsType(struct soap*, sai__PkiCapsType *, const char*, const char*); SOAP_FMAC3 sai__PkiCapsType * SOAP_FMAC4 soap_in_sai__PkiCapsType(struct soap*, const char*, sai__PkiCapsType *, const char*); SOAP_FMAC5 sai__PkiCapsType * SOAP_FMAC6 soap_new_sai__PkiCapsType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__PkiCapsType(struct soap*, sai__PkiCapsType*); SOAP_FMAC3 sai__PkiCapsType * SOAP_FMAC4 soap_instantiate_sai__PkiCapsType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__PkiCapsType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__CrlType #define SOAP_TYPE_sai__CrlType (59) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CrlType(struct soap*, const char*, int, const sai__CrlType *, const char*); SOAP_FMAC3 sai__CrlType * SOAP_FMAC4 soap_get_sai__CrlType(struct soap*, sai__CrlType *, const char*, const char*); SOAP_FMAC3 sai__CrlType * SOAP_FMAC4 soap_in_sai__CrlType(struct soap*, const char*, sai__CrlType *, const char*); SOAP_FMAC5 sai__CrlType * SOAP_FMAC6 soap_new_sai__CrlType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__CrlType(struct soap*, sai__CrlType*); SOAP_FMAC3 sai__CrlType * SOAP_FMAC4 soap_instantiate_sai__CrlType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__CrlType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__CertificateType #define SOAP_TYPE_sai__CertificateType (58) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CertificateType(struct soap*, const char*, int, const sai__CertificateType *, const char*); SOAP_FMAC3 sai__CertificateType * SOAP_FMAC4 soap_get_sai__CertificateType(struct soap*, sai__CertificateType *, const char*, const char*); SOAP_FMAC3 sai__CertificateType * SOAP_FMAC4 soap_in_sai__CertificateType(struct soap*, const char*, sai__CertificateType *, const char*); SOAP_FMAC5 sai__CertificateType * SOAP_FMAC6 soap_new_sai__CertificateType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__CertificateType(struct soap*, sai__CertificateType*); SOAP_FMAC3 sai__CertificateType * SOAP_FMAC4 soap_instantiate_sai__CertificateType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__CertificateType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__TlsOptionsType #define SOAP_TYPE_sai__TlsOptionsType (57) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__TlsOptionsType(struct soap*, const char*, int, const sai__TlsOptionsType *, const char*); SOAP_FMAC3 sai__TlsOptionsType * SOAP_FMAC4 soap_get_sai__TlsOptionsType(struct soap*, sai__TlsOptionsType *, const char*, const char*); SOAP_FMAC3 sai__TlsOptionsType * SOAP_FMAC4 soap_in_sai__TlsOptionsType(struct soap*, const char*, sai__TlsOptionsType *, const char*); SOAP_FMAC5 sai__TlsOptionsType * SOAP_FMAC6 soap_new_sai__TlsOptionsType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__TlsOptionsType(struct soap*, sai__TlsOptionsType*); SOAP_FMAC3 sai__TlsOptionsType * SOAP_FMAC4 soap_instantiate_sai__TlsOptionsType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__TlsOptionsType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__KerberosOptionsType #define SOAP_TYPE_sai__KerberosOptionsType (56) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__KerberosOptionsType(struct soap*, const char*, int, const sai__KerberosOptionsType *, const char*); SOAP_FMAC3 sai__KerberosOptionsType * SOAP_FMAC4 soap_get_sai__KerberosOptionsType(struct soap*, sai__KerberosOptionsType *, const char*, const char*); SOAP_FMAC3 sai__KerberosOptionsType * SOAP_FMAC4 soap_in_sai__KerberosOptionsType(struct soap*, const char*, sai__KerberosOptionsType *, const char*); SOAP_FMAC5 sai__KerberosOptionsType * SOAP_FMAC6 soap_new_sai__KerberosOptionsType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__KerberosOptionsType(struct soap*, sai__KerberosOptionsType*); SOAP_FMAC3 sai__KerberosOptionsType * SOAP_FMAC4 soap_instantiate_sai__KerberosOptionsType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__KerberosOptionsType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__KerberosSpnType #define SOAP_TYPE_sai__KerberosSpnType (55) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__KerberosSpnType(struct soap*, const char*, int, const sai__KerberosSpnType *, const char*); SOAP_FMAC3 sai__KerberosSpnType * SOAP_FMAC4 soap_get_sai__KerberosSpnType(struct soap*, sai__KerberosSpnType *, const char*, const char*); SOAP_FMAC3 sai__KerberosSpnType * SOAP_FMAC4 soap_in_sai__KerberosSpnType(struct soap*, const char*, sai__KerberosSpnType *, const char*); SOAP_FMAC5 sai__KerberosSpnType * SOAP_FMAC6 soap_new_sai__KerberosSpnType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__KerberosSpnType(struct soap*, sai__KerberosSpnType*); SOAP_FMAC3 sai__KerberosSpnType * SOAP_FMAC4 soap_instantiate_sai__KerberosSpnType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__KerberosSpnType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__AdminAclEntryExType #define SOAP_TYPE_sai__AdminAclEntryExType (54) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AdminAclEntryExType(struct soap*, const char*, int, const sai__AdminAclEntryExType *, const char*); SOAP_FMAC3 sai__AdminAclEntryExType * SOAP_FMAC4 soap_get_sai__AdminAclEntryExType(struct soap*, sai__AdminAclEntryExType *, const char*, const char*); SOAP_FMAC3 sai__AdminAclEntryExType * SOAP_FMAC4 soap_in_sai__AdminAclEntryExType(struct soap*, const char*, sai__AdminAclEntryExType *, const char*); SOAP_FMAC5 sai__AdminAclEntryExType * SOAP_FMAC6 soap_new_sai__AdminAclEntryExType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AdminAclEntryExType(struct soap*, sai__AdminAclEntryExType*); SOAP_FMAC3 sai__AdminAclEntryExType * SOAP_FMAC4 soap_instantiate_sai__AdminAclEntryExType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AdminAclEntryExType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__UserAclEntryExType #define SOAP_TYPE_sai__UserAclEntryExType (53) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclEntryExType(struct soap*, const char*, int, const sai__UserAclEntryExType *, const char*); SOAP_FMAC3 sai__UserAclEntryExType * SOAP_FMAC4 soap_get_sai__UserAclEntryExType(struct soap*, sai__UserAclEntryExType *, const char*, const char*); SOAP_FMAC3 sai__UserAclEntryExType * SOAP_FMAC4 soap_in_sai__UserAclEntryExType(struct soap*, const char*, sai__UserAclEntryExType *, const char*); SOAP_FMAC5 sai__UserAclEntryExType * SOAP_FMAC6 soap_new_sai__UserAclEntryExType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserAclEntryExType(struct soap*, sai__UserAclEntryExType*); SOAP_FMAC3 sai__UserAclEntryExType * SOAP_FMAC4 soap_instantiate_sai__UserAclEntryExType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserAclEntryExType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__UserEntryKerberosType #define SOAP_TYPE_sai__UserEntryKerberosType (52) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserEntryKerberosType(struct soap*, const char*, int, const sai__UserEntryKerberosType *, const char*); SOAP_FMAC3 sai__UserEntryKerberosType * SOAP_FMAC4 soap_get_sai__UserEntryKerberosType(struct soap*, sai__UserEntryKerberosType *, const char*, const char*); SOAP_FMAC3 sai__UserEntryKerberosType * SOAP_FMAC4 soap_in_sai__UserEntryKerberosType(struct soap*, const char*, sai__UserEntryKerberosType *, const char*); SOAP_FMAC5 sai__UserEntryKerberosType * SOAP_FMAC6 soap_new_sai__UserEntryKerberosType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserEntryKerberosType(struct soap*, sai__UserEntryKerberosType*); SOAP_FMAC3 sai__UserEntryKerberosType * SOAP_FMAC4 soap_instantiate_sai__UserEntryKerberosType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserEntryKerberosType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__UserEntryDigestType #define SOAP_TYPE_sai__UserEntryDigestType (51) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserEntryDigestType(struct soap*, const char*, int, const sai__UserEntryDigestType *, const char*); SOAP_FMAC3 sai__UserEntryDigestType * SOAP_FMAC4 soap_get_sai__UserEntryDigestType(struct soap*, sai__UserEntryDigestType *, const char*, const char*); SOAP_FMAC3 sai__UserEntryDigestType * SOAP_FMAC4 soap_in_sai__UserEntryDigestType(struct soap*, const char*, sai__UserEntryDigestType *, const char*); SOAP_FMAC5 sai__UserEntryDigestType * SOAP_FMAC6 soap_new_sai__UserEntryDigestType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserEntryDigestType(struct soap*, sai__UserEntryDigestType*); SOAP_FMAC3 sai__UserEntryDigestType * SOAP_FMAC4 soap_instantiate_sai__UserEntryDigestType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserEntryDigestType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__AmtVersion #define SOAP_TYPE_sai__AmtVersion (50) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AmtVersion(struct soap*, const char*, int, const sai__AmtVersion *, const char*); SOAP_FMAC3 sai__AmtVersion * SOAP_FMAC4 soap_get_sai__AmtVersion(struct soap*, sai__AmtVersion *, const char*, const char*); SOAP_FMAC3 sai__AmtVersion * SOAP_FMAC4 soap_in_sai__AmtVersion(struct soap*, const char*, sai__AmtVersion *, const char*); SOAP_FMAC5 sai__AmtVersion * SOAP_FMAC6 soap_new_sai__AmtVersion(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AmtVersion(struct soap*, sai__AmtVersion*); SOAP_FMAC3 sai__AmtVersion * SOAP_FMAC4 soap_instantiate_sai__AmtVersion(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AmtVersion(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__UpdateCoreUrlKeyType #define SOAP_TYPE_sai__UpdateCoreUrlKeyType (49) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UpdateCoreUrlKeyType(struct soap*, const char*, int, const sai__UpdateCoreUrlKeyType *, const char*); SOAP_FMAC3 sai__UpdateCoreUrlKeyType * SOAP_FMAC4 soap_get_sai__UpdateCoreUrlKeyType(struct soap*, sai__UpdateCoreUrlKeyType *, const char*, const char*); SOAP_FMAC3 sai__UpdateCoreUrlKeyType * SOAP_FMAC4 soap_in_sai__UpdateCoreUrlKeyType(struct soap*, const char*, sai__UpdateCoreUrlKeyType *, const char*); SOAP_FMAC5 sai__UpdateCoreUrlKeyType * SOAP_FMAC6 soap_new_sai__UpdateCoreUrlKeyType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UpdateCoreUrlKeyType(struct soap*, sai__UpdateCoreUrlKeyType*); SOAP_FMAC3 sai__UpdateCoreUrlKeyType * SOAP_FMAC4 soap_instantiate_sai__UpdateCoreUrlKeyType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UpdateCoreUrlKeyType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__CertificateChainType #define SOAP_TYPE_sai__CertificateChainType (48) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__CertificateChainType(struct soap*, const char*, int, const sai__CertificateChainType *, const char*); SOAP_FMAC3 sai__CertificateChainType * SOAP_FMAC4 soap_get_sai__CertificateChainType(struct soap*, sai__CertificateChainType *, const char*, const char*); SOAP_FMAC3 sai__CertificateChainType * SOAP_FMAC4 soap_in_sai__CertificateChainType(struct soap*, const char*, sai__CertificateChainType *, const char*); SOAP_FMAC5 sai__CertificateChainType * SOAP_FMAC6 soap_new_sai__CertificateChainType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__CertificateChainType(struct soap*, sai__CertificateChainType*); SOAP_FMAC3 sai__CertificateChainType * SOAP_FMAC4 soap_instantiate_sai__CertificateChainType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__CertificateChainType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__RngKeyType #define SOAP_TYPE_sai__RngKeyType (47) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RngKeyType(struct soap*, const char*, int, const sai__RngKeyType *, const char*); SOAP_FMAC3 sai__RngKeyType * SOAP_FMAC4 soap_get_sai__RngKeyType(struct soap*, sai__RngKeyType *, const char*, const char*); SOAP_FMAC3 sai__RngKeyType * SOAP_FMAC4 soap_in_sai__RngKeyType(struct soap*, const char*, sai__RngKeyType *, const char*); SOAP_FMAC5 sai__RngKeyType * SOAP_FMAC6 soap_new_sai__RngKeyType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__RngKeyType(struct soap*, sai__RngKeyType*); SOAP_FMAC3 sai__RngKeyType * SOAP_FMAC4 soap_instantiate_sai__RngKeyType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__RngKeyType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__RsaKeyType #define SOAP_TYPE_sai__RsaKeyType (46) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__RsaKeyType(struct soap*, const char*, int, const sai__RsaKeyType *, const char*); SOAP_FMAC3 sai__RsaKeyType * SOAP_FMAC4 soap_get_sai__RsaKeyType(struct soap*, sai__RsaKeyType *, const char*, const char*); SOAP_FMAC3 sai__RsaKeyType * SOAP_FMAC4 soap_in_sai__RsaKeyType(struct soap*, const char*, sai__RsaKeyType *, const char*); SOAP_FMAC5 sai__RsaKeyType * SOAP_FMAC6 soap_new_sai__RsaKeyType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__RsaKeyType(struct soap*, sai__RsaKeyType*); SOAP_FMAC3 sai__RsaKeyType * SOAP_FMAC4 soap_instantiate_sai__RsaKeyType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__RsaKeyType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__UserAclRealmListType #define SOAP_TYPE_sai__UserAclRealmListType (45) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclRealmListType(struct soap*, const char*, int, const sai__UserAclRealmListType *, const char*); SOAP_FMAC3 sai__UserAclRealmListType * SOAP_FMAC4 soap_get_sai__UserAclRealmListType(struct soap*, sai__UserAclRealmListType *, const char*, const char*); SOAP_FMAC3 sai__UserAclRealmListType * SOAP_FMAC4 soap_in_sai__UserAclRealmListType(struct soap*, const char*, sai__UserAclRealmListType *, const char*); SOAP_FMAC5 sai__UserAclRealmListType * SOAP_FMAC6 soap_new_sai__UserAclRealmListType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserAclRealmListType(struct soap*, sai__UserAclRealmListType*); SOAP_FMAC3 sai__UserAclRealmListType * SOAP_FMAC4 soap_instantiate_sai__UserAclRealmListType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserAclRealmListType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__UserAclEntryHandleListType #define SOAP_TYPE_sai__UserAclEntryHandleListType (44) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclEntryHandleListType(struct soap*, const char*, int, const sai__UserAclEntryHandleListType *, const char*); SOAP_FMAC3 sai__UserAclEntryHandleListType * SOAP_FMAC4 soap_get_sai__UserAclEntryHandleListType(struct soap*, sai__UserAclEntryHandleListType *, const char*, const char*); SOAP_FMAC3 sai__UserAclEntryHandleListType * SOAP_FMAC4 soap_in_sai__UserAclEntryHandleListType(struct soap*, const char*, sai__UserAclEntryHandleListType *, const char*); SOAP_FMAC5 sai__UserAclEntryHandleListType * SOAP_FMAC6 soap_new_sai__UserAclEntryHandleListType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserAclEntryHandleListType(struct soap*, sai__UserAclEntryHandleListType*); SOAP_FMAC3 sai__UserAclEntryHandleListType * SOAP_FMAC4 soap_instantiate_sai__UserAclEntryHandleListType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserAclEntryHandleListType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__AdminAclEntryType #define SOAP_TYPE_sai__AdminAclEntryType (43) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__AdminAclEntryType(struct soap*, const char*, int, const sai__AdminAclEntryType *, const char*); SOAP_FMAC3 sai__AdminAclEntryType * SOAP_FMAC4 soap_get_sai__AdminAclEntryType(struct soap*, sai__AdminAclEntryType *, const char*, const char*); SOAP_FMAC3 sai__AdminAclEntryType * SOAP_FMAC4 soap_in_sai__AdminAclEntryType(struct soap*, const char*, sai__AdminAclEntryType *, const char*); SOAP_FMAC5 sai__AdminAclEntryType * SOAP_FMAC6 soap_new_sai__AdminAclEntryType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__AdminAclEntryType(struct soap*, sai__AdminAclEntryType*); SOAP_FMAC3 sai__AdminAclEntryType * SOAP_FMAC4 soap_instantiate_sai__AdminAclEntryType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__AdminAclEntryType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_sai__UserAclEntryType #define SOAP_TYPE_sai__UserAclEntryType (42) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_sai__UserAclEntryType(struct soap*, const char*, int, const sai__UserAclEntryType *, const char*); SOAP_FMAC3 sai__UserAclEntryType * SOAP_FMAC4 soap_get_sai__UserAclEntryType(struct soap*, sai__UserAclEntryType *, const char*, const char*); SOAP_FMAC3 sai__UserAclEntryType * SOAP_FMAC4 soap_in_sai__UserAclEntryType(struct soap*, const char*, sai__UserAclEntryType *, const char*); SOAP_FMAC5 sai__UserAclEntryType * SOAP_FMAC6 soap_new_sai__UserAclEntryType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_sai__UserAclEntryType(struct soap*, sai__UserAclEntryType*); SOAP_FMAC3 sai__UserAclEntryType * SOAP_FMAC4 soap_instantiate_sai__UserAclEntryType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_sai__UserAclEntryType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emc__SoapAlertResponse #define SOAP_TYPE__emc__SoapAlertResponse (41) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emc__SoapAlertResponse(struct soap*, const char*, int, const _emc__SoapAlertResponse *, const char*); SOAP_FMAC3 _emc__SoapAlertResponse * SOAP_FMAC4 soap_get__emc__SoapAlertResponse(struct soap*, _emc__SoapAlertResponse *, const char*, const char*); SOAP_FMAC3 _emc__SoapAlertResponse * SOAP_FMAC4 soap_in__emc__SoapAlertResponse(struct soap*, const char*, _emc__SoapAlertResponse *, const char*); SOAP_FMAC5 _emc__SoapAlertResponse * SOAP_FMAC6 soap_new__emc__SoapAlertResponse(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emc__SoapAlertResponse(struct soap*, _emc__SoapAlertResponse*); SOAP_FMAC3 _emc__SoapAlertResponse * SOAP_FMAC4 soap_instantiate__emc__SoapAlertResponse(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emc__SoapAlertResponse(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emc__SoapAlertRequest #define SOAP_TYPE__emc__SoapAlertRequest (40) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emc__SoapAlertRequest(struct soap*, const char*, int, const _emc__SoapAlertRequest *, const char*); SOAP_FMAC3 _emc__SoapAlertRequest * SOAP_FMAC4 soap_get__emc__SoapAlertRequest(struct soap*, _emc__SoapAlertRequest *, const char*, const char*); SOAP_FMAC3 _emc__SoapAlertRequest * SOAP_FMAC4 soap_in__emc__SoapAlertRequest(struct soap*, const char*, _emc__SoapAlertRequest *, const char*); SOAP_FMAC5 _emc__SoapAlertRequest * SOAP_FMAC6 soap_new__emc__SoapAlertRequest(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emc__SoapAlertRequest(struct soap*, _emc__SoapAlertRequest*); SOAP_FMAC3 _emc__SoapAlertRequest * SOAP_FMAC4 soap_instantiate__emc__SoapAlertRequest(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emc__SoapAlertRequest(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse #define SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse (39) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__GetGeneralAlertSubscriptionResponse(struct soap*, const char*, int, const _emi__GetGeneralAlertSubscriptionResponse *, const char*); SOAP_FMAC3 _emi__GetGeneralAlertSubscriptionResponse * SOAP_FMAC4 soap_get__emi__GetGeneralAlertSubscriptionResponse(struct soap*, _emi__GetGeneralAlertSubscriptionResponse *, const char*, const char*); SOAP_FMAC3 _emi__GetGeneralAlertSubscriptionResponse * SOAP_FMAC4 soap_in__emi__GetGeneralAlertSubscriptionResponse(struct soap*, const char*, _emi__GetGeneralAlertSubscriptionResponse *, const char*); SOAP_FMAC5 _emi__GetGeneralAlertSubscriptionResponse * SOAP_FMAC6 soap_new__emi__GetGeneralAlertSubscriptionResponse(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__GetGeneralAlertSubscriptionResponse(struct soap*, _emi__GetGeneralAlertSubscriptionResponse*); SOAP_FMAC3 _emi__GetGeneralAlertSubscriptionResponse * SOAP_FMAC4 soap_instantiate__emi__GetGeneralAlertSubscriptionResponse(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__GetGeneralAlertSubscriptionResponse(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emi__GetGeneralAlertSubscription #define SOAP_TYPE__emi__GetGeneralAlertSubscription (38) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__GetGeneralAlertSubscription(struct soap*, const char*, int, const _emi__GetGeneralAlertSubscription *, const char*); SOAP_FMAC3 _emi__GetGeneralAlertSubscription * SOAP_FMAC4 soap_get__emi__GetGeneralAlertSubscription(struct soap*, _emi__GetGeneralAlertSubscription *, const char*, const char*); SOAP_FMAC3 _emi__GetGeneralAlertSubscription * SOAP_FMAC4 soap_in__emi__GetGeneralAlertSubscription(struct soap*, const char*, _emi__GetGeneralAlertSubscription *, const char*); SOAP_FMAC5 _emi__GetGeneralAlertSubscription * SOAP_FMAC6 soap_new__emi__GetGeneralAlertSubscription(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__GetGeneralAlertSubscription(struct soap*, _emi__GetGeneralAlertSubscription*); SOAP_FMAC3 _emi__GetGeneralAlertSubscription * SOAP_FMAC4 soap_instantiate__emi__GetGeneralAlertSubscription(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__GetGeneralAlertSubscription(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse #define SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse (37) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap*, const char*, int, const _emi__EnumerateGeneralAlertSubscriptionsResponse *, const char*); SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptionsResponse * SOAP_FMAC4 soap_get__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap*, _emi__EnumerateGeneralAlertSubscriptionsResponse *, const char*, const char*); SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptionsResponse * SOAP_FMAC4 soap_in__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap*, const char*, _emi__EnumerateGeneralAlertSubscriptionsResponse *, const char*); SOAP_FMAC5 _emi__EnumerateGeneralAlertSubscriptionsResponse * SOAP_FMAC6 soap_new__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap*, _emi__EnumerateGeneralAlertSubscriptionsResponse*); SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptionsResponse * SOAP_FMAC4 soap_instantiate__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__EnumerateGeneralAlertSubscriptionsResponse(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions #define SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions (36) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__EnumerateGeneralAlertSubscriptions(struct soap*, const char*, int, const _emi__EnumerateGeneralAlertSubscriptions *, const char*); SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptions * SOAP_FMAC4 soap_get__emi__EnumerateGeneralAlertSubscriptions(struct soap*, _emi__EnumerateGeneralAlertSubscriptions *, const char*, const char*); SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptions * SOAP_FMAC4 soap_in__emi__EnumerateGeneralAlertSubscriptions(struct soap*, const char*, _emi__EnumerateGeneralAlertSubscriptions *, const char*); SOAP_FMAC5 _emi__EnumerateGeneralAlertSubscriptions * SOAP_FMAC6 soap_new__emi__EnumerateGeneralAlertSubscriptions(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__EnumerateGeneralAlertSubscriptions(struct soap*, _emi__EnumerateGeneralAlertSubscriptions*); SOAP_FMAC3 _emi__EnumerateGeneralAlertSubscriptions * SOAP_FMAC4 soap_instantiate__emi__EnumerateGeneralAlertSubscriptions(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__EnumerateGeneralAlertSubscriptions(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emi__SubscribeForGeneralAlertResponse #define SOAP_TYPE__emi__SubscribeForGeneralAlertResponse (35) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__SubscribeForGeneralAlertResponse(struct soap*, const char*, int, const _emi__SubscribeForGeneralAlertResponse *, const char*); SOAP_FMAC3 _emi__SubscribeForGeneralAlertResponse * SOAP_FMAC4 soap_get__emi__SubscribeForGeneralAlertResponse(struct soap*, _emi__SubscribeForGeneralAlertResponse *, const char*, const char*); SOAP_FMAC3 _emi__SubscribeForGeneralAlertResponse * SOAP_FMAC4 soap_in__emi__SubscribeForGeneralAlertResponse(struct soap*, const char*, _emi__SubscribeForGeneralAlertResponse *, const char*); SOAP_FMAC5 _emi__SubscribeForGeneralAlertResponse * SOAP_FMAC6 soap_new__emi__SubscribeForGeneralAlertResponse(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__SubscribeForGeneralAlertResponse(struct soap*, _emi__SubscribeForGeneralAlertResponse*); SOAP_FMAC3 _emi__SubscribeForGeneralAlertResponse * SOAP_FMAC4 soap_instantiate__emi__SubscribeForGeneralAlertResponse(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__SubscribeForGeneralAlertResponse(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emi__SubscribeForGeneralAlert #define SOAP_TYPE__emi__SubscribeForGeneralAlert (34) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__SubscribeForGeneralAlert(struct soap*, const char*, int, const _emi__SubscribeForGeneralAlert *, const char*); SOAP_FMAC3 _emi__SubscribeForGeneralAlert * SOAP_FMAC4 soap_get__emi__SubscribeForGeneralAlert(struct soap*, _emi__SubscribeForGeneralAlert *, const char*, const char*); SOAP_FMAC3 _emi__SubscribeForGeneralAlert * SOAP_FMAC4 soap_in__emi__SubscribeForGeneralAlert(struct soap*, const char*, _emi__SubscribeForGeneralAlert *, const char*); SOAP_FMAC5 _emi__SubscribeForGeneralAlert * SOAP_FMAC6 soap_new__emi__SubscribeForGeneralAlert(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__SubscribeForGeneralAlert(struct soap*, _emi__SubscribeForGeneralAlert*); SOAP_FMAC3 _emi__SubscribeForGeneralAlert * SOAP_FMAC4 soap_instantiate__emi__SubscribeForGeneralAlert(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__SubscribeForGeneralAlert(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emi__CancelAlertSubscriptionResponse #define SOAP_TYPE__emi__CancelAlertSubscriptionResponse (33) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__CancelAlertSubscriptionResponse(struct soap*, const char*, int, const _emi__CancelAlertSubscriptionResponse *, const char*); SOAP_FMAC3 _emi__CancelAlertSubscriptionResponse * SOAP_FMAC4 soap_get__emi__CancelAlertSubscriptionResponse(struct soap*, _emi__CancelAlertSubscriptionResponse *, const char*, const char*); SOAP_FMAC3 _emi__CancelAlertSubscriptionResponse * SOAP_FMAC4 soap_in__emi__CancelAlertSubscriptionResponse(struct soap*, const char*, _emi__CancelAlertSubscriptionResponse *, const char*); SOAP_FMAC5 _emi__CancelAlertSubscriptionResponse * SOAP_FMAC6 soap_new__emi__CancelAlertSubscriptionResponse(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__CancelAlertSubscriptionResponse(struct soap*, _emi__CancelAlertSubscriptionResponse*); SOAP_FMAC3 _emi__CancelAlertSubscriptionResponse * SOAP_FMAC4 soap_instantiate__emi__CancelAlertSubscriptionResponse(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__CancelAlertSubscriptionResponse(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__emi__CancelAlertSubscription #define SOAP_TYPE__emi__CancelAlertSubscription (32) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__CancelAlertSubscription(struct soap*, const char*, int, const _emi__CancelAlertSubscription *, const char*); SOAP_FMAC3 _emi__CancelAlertSubscription * SOAP_FMAC4 soap_get__emi__CancelAlertSubscription(struct soap*, _emi__CancelAlertSubscription *, const char*, const char*); SOAP_FMAC3 _emi__CancelAlertSubscription * SOAP_FMAC4 soap_in__emi__CancelAlertSubscription(struct soap*, const char*, _emi__CancelAlertSubscription *, const char*); SOAP_FMAC5 _emi__CancelAlertSubscription * SOAP_FMAC6 soap_new__emi__CancelAlertSubscription(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete__emi__CancelAlertSubscription(struct soap*, _emi__CancelAlertSubscription*); SOAP_FMAC3 _emi__CancelAlertSubscription * SOAP_FMAC4 soap_instantiate__emi__CancelAlertSubscription(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy__emi__CancelAlertSubscription(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__AlertSubscriptionGeneralType #define SOAP_TYPE_emi__AlertSubscriptionGeneralType (31) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionGeneralType(struct soap*, const char*, int, const emi__AlertSubscriptionGeneralType *, const char*); SOAP_FMAC3 emi__AlertSubscriptionGeneralType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionGeneralType(struct soap*, emi__AlertSubscriptionGeneralType *, const char*, const char*); SOAP_FMAC3 emi__AlertSubscriptionGeneralType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionGeneralType(struct soap*, const char*, emi__AlertSubscriptionGeneralType *, const char*); SOAP_FMAC5 emi__AlertSubscriptionGeneralType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionGeneralType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionGeneralType(struct soap*, emi__AlertSubscriptionGeneralType*); SOAP_FMAC3 emi__AlertSubscriptionGeneralType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionGeneralType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionGeneralType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__AlertSubscriptionSoapType #define SOAP_TYPE_emi__AlertSubscriptionSoapType (30) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionSoapType(struct soap*, const char*, int, const emi__AlertSubscriptionSoapType *, const char*); SOAP_FMAC3 emi__AlertSubscriptionSoapType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionSoapType(struct soap*, emi__AlertSubscriptionSoapType *, const char*, const char*); SOAP_FMAC3 emi__AlertSubscriptionSoapType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionSoapType(struct soap*, const char*, emi__AlertSubscriptionSoapType *, const char*); SOAP_FMAC5 emi__AlertSubscriptionSoapType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionSoapType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionSoapType(struct soap*, emi__AlertSubscriptionSoapType*); SOAP_FMAC3 emi__AlertSubscriptionSoapType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionSoapType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionSoapType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__AlertSubscriptionSNMPType #define SOAP_TYPE_emi__AlertSubscriptionSNMPType (29) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionSNMPType(struct soap*, const char*, int, const emi__AlertSubscriptionSNMPType *, const char*); SOAP_FMAC3 emi__AlertSubscriptionSNMPType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionSNMPType(struct soap*, emi__AlertSubscriptionSNMPType *, const char*, const char*); SOAP_FMAC3 emi__AlertSubscriptionSNMPType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionSNMPType(struct soap*, const char*, emi__AlertSubscriptionSNMPType *, const char*); SOAP_FMAC5 emi__AlertSubscriptionSNMPType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionSNMPType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionSNMPType(struct soap*, emi__AlertSubscriptionSNMPType*); SOAP_FMAC3 emi__AlertSubscriptionSNMPType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionSNMPType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionSNMPType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__AlertCredentialsType #define SOAP_TYPE_emi__AlertCredentialsType (28) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertCredentialsType(struct soap*, const char*, int, const emi__AlertCredentialsType *, const char*); SOAP_FMAC3 emi__AlertCredentialsType * SOAP_FMAC4 soap_get_emi__AlertCredentialsType(struct soap*, emi__AlertCredentialsType *, const char*, const char*); SOAP_FMAC3 emi__AlertCredentialsType * SOAP_FMAC4 soap_in_emi__AlertCredentialsType(struct soap*, const char*, emi__AlertCredentialsType *, const char*); SOAP_FMAC5 emi__AlertCredentialsType * SOAP_FMAC6 soap_new_emi__AlertCredentialsType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertCredentialsType(struct soap*, emi__AlertCredentialsType*); SOAP_FMAC3 emi__AlertCredentialsType * SOAP_FMAC4 soap_instantiate_emi__AlertCredentialsType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertCredentialsType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__ByteStr #define SOAP_TYPE_emi__ByteStr (27) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__ByteStr(struct soap*, const char*, int, const emi__ByteStr *, const char*); SOAP_FMAC3 emi__ByteStr * SOAP_FMAC4 soap_get_emi__ByteStr(struct soap*, emi__ByteStr *, const char*, const char*); SOAP_FMAC3 emi__ByteStr * SOAP_FMAC4 soap_in_emi__ByteStr(struct soap*, const char*, emi__ByteStr *, const char*); SOAP_FMAC5 emi__ByteStr * SOAP_FMAC6 soap_new_emi__ByteStr(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__ByteStr(struct soap*, emi__ByteStr*); SOAP_FMAC3 emi__ByteStr * SOAP_FMAC4 soap_instantiate_emi__ByteStr(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__ByteStr(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__SensorAttributesType #define SOAP_TYPE_emi__SensorAttributesType (26) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__SensorAttributesType(struct soap*, const char*, int, const emi__SensorAttributesType *, const char*); SOAP_FMAC3 emi__SensorAttributesType * SOAP_FMAC4 soap_get_emi__SensorAttributesType(struct soap*, emi__SensorAttributesType *, const char*, const char*); SOAP_FMAC3 emi__SensorAttributesType * SOAP_FMAC4 soap_in_emi__SensorAttributesType(struct soap*, const char*, emi__SensorAttributesType *, const char*); SOAP_FMAC5 emi__SensorAttributesType * SOAP_FMAC6 soap_new_emi__SensorAttributesType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__SensorAttributesType(struct soap*, emi__SensorAttributesType*); SOAP_FMAC3 emi__SensorAttributesType * SOAP_FMAC4 soap_instantiate_emi__SensorAttributesType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__SensorAttributesType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__SensorHandleArrayType #define SOAP_TYPE_emi__SensorHandleArrayType (25) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__SensorHandleArrayType(struct soap*, const char*, int, const emi__SensorHandleArrayType *, const char*); SOAP_FMAC3 emi__SensorHandleArrayType * SOAP_FMAC4 soap_get_emi__SensorHandleArrayType(struct soap*, emi__SensorHandleArrayType *, const char*, const char*); SOAP_FMAC3 emi__SensorHandleArrayType * SOAP_FMAC4 soap_in_emi__SensorHandleArrayType(struct soap*, const char*, emi__SensorHandleArrayType *, const char*); SOAP_FMAC5 emi__SensorHandleArrayType * SOAP_FMAC6 soap_new_emi__SensorHandleArrayType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__SensorHandleArrayType(struct soap*, emi__SensorHandleArrayType*); SOAP_FMAC3 emi__SensorHandleArrayType * SOAP_FMAC4 soap_instantiate_emi__SensorHandleArrayType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__SensorHandleArrayType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__EventLogRecordArrayType #define SOAP_TYPE_emi__EventLogRecordArrayType (24) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventLogRecordArrayType(struct soap*, const char*, int, const emi__EventLogRecordArrayType *, const char*); SOAP_FMAC3 emi__EventLogRecordArrayType * SOAP_FMAC4 soap_get_emi__EventLogRecordArrayType(struct soap*, emi__EventLogRecordArrayType *, const char*, const char*); SOAP_FMAC3 emi__EventLogRecordArrayType * SOAP_FMAC4 soap_in_emi__EventLogRecordArrayType(struct soap*, const char*, emi__EventLogRecordArrayType *, const char*); SOAP_FMAC5 emi__EventLogRecordArrayType * SOAP_FMAC6 soap_new_emi__EventLogRecordArrayType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__EventLogRecordArrayType(struct soap*, emi__EventLogRecordArrayType*); SOAP_FMAC3 emi__EventLogRecordArrayType * SOAP_FMAC4 soap_instantiate_emi__EventLogRecordArrayType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__EventLogRecordArrayType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__EventFilterHandleArrayType #define SOAP_TYPE_emi__EventFilterHandleArrayType (23) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventFilterHandleArrayType(struct soap*, const char*, int, const emi__EventFilterHandleArrayType *, const char*); SOAP_FMAC3 emi__EventFilterHandleArrayType * SOAP_FMAC4 soap_get_emi__EventFilterHandleArrayType(struct soap*, emi__EventFilterHandleArrayType *, const char*, const char*); SOAP_FMAC3 emi__EventFilterHandleArrayType * SOAP_FMAC4 soap_in_emi__EventFilterHandleArrayType(struct soap*, const char*, emi__EventFilterHandleArrayType *, const char*); SOAP_FMAC5 emi__EventFilterHandleArrayType * SOAP_FMAC6 soap_new_emi__EventFilterHandleArrayType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__EventFilterHandleArrayType(struct soap*, emi__EventFilterHandleArrayType*); SOAP_FMAC3 emi__EventFilterHandleArrayType * SOAP_FMAC4 soap_instantiate_emi__EventFilterHandleArrayType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__EventFilterHandleArrayType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__AlertSubscriptionHandleArrayType #define SOAP_TYPE_emi__AlertSubscriptionHandleArrayType (22) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionHandleArrayType(struct soap*, const char*, int, const emi__AlertSubscriptionHandleArrayType *, const char*); SOAP_FMAC3 emi__AlertSubscriptionHandleArrayType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionHandleArrayType(struct soap*, emi__AlertSubscriptionHandleArrayType *, const char*, const char*); SOAP_FMAC3 emi__AlertSubscriptionHandleArrayType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionHandleArrayType(struct soap*, const char*, emi__AlertSubscriptionHandleArrayType *, const char*); SOAP_FMAC5 emi__AlertSubscriptionHandleArrayType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionHandleArrayType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionHandleArrayType(struct soap*, emi__AlertSubscriptionHandleArrayType*); SOAP_FMAC3 emi__AlertSubscriptionHandleArrayType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionHandleArrayType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionHandleArrayType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__AlertSubscriptionType #define SOAP_TYPE_emi__AlertSubscriptionType (21) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionType(struct soap*, const char*, int, const emi__AlertSubscriptionType *, const char*); SOAP_FMAC3 emi__AlertSubscriptionType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionType(struct soap*, emi__AlertSubscriptionType *, const char*, const char*); SOAP_FMAC3 emi__AlertSubscriptionType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionType(struct soap*, const char*, emi__AlertSubscriptionType *, const char*); SOAP_FMAC5 emi__AlertSubscriptionType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionType(struct soap*, emi__AlertSubscriptionType*); SOAP_FMAC3 emi__AlertSubscriptionType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__EventFilterType #define SOAP_TYPE_emi__EventFilterType (20) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventFilterType(struct soap*, const char*, int, const emi__EventFilterType *, const char*); SOAP_FMAC3 emi__EventFilterType * SOAP_FMAC4 soap_get_emi__EventFilterType(struct soap*, emi__EventFilterType *, const char*, const char*); SOAP_FMAC3 emi__EventFilterType * SOAP_FMAC4 soap_in_emi__EventFilterType(struct soap*, const char*, emi__EventFilterType *, const char*); SOAP_FMAC5 emi__EventFilterType * SOAP_FMAC6 soap_new_emi__EventFilterType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__EventFilterType(struct soap*, emi__EventFilterType*); SOAP_FMAC3 emi__EventFilterType * SOAP_FMAC4 soap_instantiate_emi__EventFilterType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__EventFilterType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__EventLogRecordType #define SOAP_TYPE_emi__EventLogRecordType (19) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__EventLogRecordType(struct soap*, const char*, int, const emi__EventLogRecordType *, const char*); SOAP_FMAC3 emi__EventLogRecordType * SOAP_FMAC4 soap_get_emi__EventLogRecordType(struct soap*, emi__EventLogRecordType *, const char*, const char*); SOAP_FMAC3 emi__EventLogRecordType * SOAP_FMAC4 soap_in_emi__EventLogRecordType(struct soap*, const char*, emi__EventLogRecordType *, const char*); SOAP_FMAC5 emi__EventLogRecordType * SOAP_FMAC6 soap_new_emi__EventLogRecordType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__EventLogRecordType(struct soap*, emi__EventLogRecordType*); SOAP_FMAC3 emi__EventLogRecordType * SOAP_FMAC4 soap_instantiate_emi__EventLogRecordType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__EventLogRecordType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__ByteData #define SOAP_TYPE_emi__ByteData (18) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__ByteData(struct soap*, const char*, int, const emi__ByteData *, const char*); SOAP_FMAC3 emi__ByteData * SOAP_FMAC4 soap_get_emi__ByteData(struct soap*, emi__ByteData *, const char*, const char*); SOAP_FMAC3 emi__ByteData * SOAP_FMAC4 soap_in_emi__ByteData(struct soap*, const char*, emi__ByteData *, const char*); SOAP_FMAC5 emi__ByteData * SOAP_FMAC6 soap_new_emi__ByteData(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__ByteData(struct soap*, emi__ByteData*); SOAP_FMAC3 emi__ByteData * SOAP_FMAC4 soap_instantiate_emi__ByteData(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__ByteData(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType #define SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType (17) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_emi__AlertSubscriptionPolicyIDArrayType(struct soap*, const char*, int, const emi__AlertSubscriptionPolicyIDArrayType *, const char*); SOAP_FMAC3 emi__AlertSubscriptionPolicyIDArrayType * SOAP_FMAC4 soap_get_emi__AlertSubscriptionPolicyIDArrayType(struct soap*, emi__AlertSubscriptionPolicyIDArrayType *, const char*, const char*); SOAP_FMAC3 emi__AlertSubscriptionPolicyIDArrayType * SOAP_FMAC4 soap_in_emi__AlertSubscriptionPolicyIDArrayType(struct soap*, const char*, emi__AlertSubscriptionPolicyIDArrayType *, const char*); SOAP_FMAC5 emi__AlertSubscriptionPolicyIDArrayType * SOAP_FMAC6 soap_new_emi__AlertSubscriptionPolicyIDArrayType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_emi__AlertSubscriptionPolicyIDArrayType(struct soap*, emi__AlertSubscriptionPolicyIDArrayType*); SOAP_FMAC3 emi__AlertSubscriptionPolicyIDArrayType * SOAP_FMAC4 soap_instantiate_emi__AlertSubscriptionPolicyIDArrayType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_emi__AlertSubscriptionPolicyIDArrayType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_cmn__NodeAddressType #define SOAP_TYPE_cmn__NodeAddressType (16) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__NodeAddressType(struct soap*, const char*, int, const cmn__NodeAddressType *, const char*); SOAP_FMAC3 cmn__NodeAddressType * SOAP_FMAC4 soap_get_cmn__NodeAddressType(struct soap*, cmn__NodeAddressType *, const char*, const char*); SOAP_FMAC3 cmn__NodeAddressType * SOAP_FMAC4 soap_in_cmn__NodeAddressType(struct soap*, const char*, cmn__NodeAddressType *, const char*); SOAP_FMAC5 cmn__NodeAddressType * SOAP_FMAC6 soap_new_cmn__NodeAddressType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__NodeAddressType(struct soap*, cmn__NodeAddressType*); SOAP_FMAC3 cmn__NodeAddressType * SOAP_FMAC4 soap_instantiate_cmn__NodeAddressType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__NodeAddressType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_cmn__URLType #define SOAP_TYPE_cmn__URLType (15) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_cmn__URLType(struct soap*, const char*, int, const cmn__URLType *, const char*); SOAP_FMAC3 cmn__URLType * SOAP_FMAC4 soap_get_cmn__URLType(struct soap*, cmn__URLType *, const char*, const char*); SOAP_FMAC3 cmn__URLType * SOAP_FMAC4 soap_in_cmn__URLType(struct soap*, const char*, cmn__URLType *, const char*); SOAP_FMAC5 cmn__URLType * SOAP_FMAC6 soap_new_cmn__URLType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_cmn__URLType(struct soap*, cmn__URLType*); SOAP_FMAC3 cmn__URLType * SOAP_FMAC4 soap_instantiate_cmn__URLType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_cmn__URLType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_xsd__base64Binary #define SOAP_TYPE_xsd__base64Binary (9) #endif SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__base64Binary(struct soap*, const char*, int, const xsd__base64Binary *, const char*); SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_get_xsd__base64Binary(struct soap*, xsd__base64Binary *, const char*, const char*); SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_in_xsd__base64Binary(struct soap*, const char*, xsd__base64Binary *, const char*); SOAP_FMAC5 xsd__base64Binary * SOAP_FMAC6 soap_new_xsd__base64Binary(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_xsd__base64Binary(struct soap*, xsd__base64Binary*); SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_instantiate_xsd__base64Binary(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__base64Binary(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_xsd__anyURI #define SOAP_TYPE_xsd__anyURI (8) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_xsd__anyURI(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_xsd__anyURI(struct soap*, std::string const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__anyURI(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__anyURI(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_xsd__anyURI(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_xsd__anyURI(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_xsd__anyURI(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_xsd__anyURI(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_xsd__anyURI(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__anyURI(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__string #define SOAP_TYPE_std__string (7) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__string(struct soap*, std::string *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__string(struct soap*, const std::string *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_std__string(struct soap*, const std::string *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__string(struct soap*, const char*, int, const std::string*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_std__string(struct soap*, std::string *, const char*, const char*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_std__string(struct soap*, const char*, std::string*, const char*); SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_std__string(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__string(struct soap*, std::string*); SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_std__string(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__string(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Fault #define SOAP_TYPE_SOAP_ENV__Fault (166) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Fault(struct soap*, const char*, int, const struct SOAP_ENV__Fault *, const char*); SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_get_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *, const char*, const char*); SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_in_SOAP_ENV__Fault(struct soap*, const char*, struct SOAP_ENV__Fault *, const char*); SOAP_FMAC5 struct SOAP_ENV__Fault * SOAP_FMAC6 soap_new_SOAP_ENV__Fault(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault*); SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Fault(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Fault(struct soap*, int, int, void*, size_t, const void*, size_t); #endif #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Reason #define SOAP_TYPE_SOAP_ENV__Reason (165) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Reason(struct soap*, const char*, int, const struct SOAP_ENV__Reason *, const char*); SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_get_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *, const char*, const char*); SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_in_SOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason *, const char*); SOAP_FMAC5 struct SOAP_ENV__Reason * SOAP_FMAC6 soap_new_SOAP_ENV__Reason(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason*); SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Reason(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Reason(struct soap*, int, int, void*, size_t, const void*, size_t); #endif #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Detail #define SOAP_TYPE_SOAP_ENV__Detail (164) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Detail(struct soap*, const char*, int, const struct SOAP_ENV__Detail *, const char*); SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_get_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *, const char*, const char*); SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_in_SOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail *, const char*); SOAP_FMAC5 struct SOAP_ENV__Detail * SOAP_FMAC6 soap_new_SOAP_ENV__Detail(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail*); SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Detail(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Detail(struct soap*, int, int, void*, size_t, const void*, size_t); #endif #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Code #define SOAP_TYPE_SOAP_ENV__Code (162) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Code(struct soap*, const char*, int, const struct SOAP_ENV__Code *, const char*); SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_get_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *, const char*, const char*); SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_in_SOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code *, const char*); SOAP_FMAC5 struct SOAP_ENV__Code * SOAP_FMAC6 soap_new_SOAP_ENV__Code(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code*); SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Code(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Code(struct soap*, int, int, void*, size_t, const void*, size_t); #endif #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Header #define SOAP_TYPE_SOAP_ENV__Header (161) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *); SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap*, const char*, int, const struct SOAP_ENV__Header *, const char*); SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_get_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *, const char*, const char*); SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_in_SOAP_ENV__Header(struct soap*, const char*, struct SOAP_ENV__Header *, const char*); SOAP_FMAC5 struct SOAP_ENV__Header * SOAP_FMAC6 soap_new_SOAP_ENV__Header(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header*); SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Header(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap*, int, int, void*, size_t, const void*, size_t); #endif #ifndef SOAP_TYPE___emc__SoapAlert #define SOAP_TYPE___emc__SoapAlert (158) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default___emc__SoapAlert(struct soap*, struct __emc__SoapAlert *); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___emc__SoapAlert(struct soap*, const struct __emc__SoapAlert *); SOAP_FMAC3 int SOAP_FMAC4 soap_put___emc__SoapAlert(struct soap*, const struct __emc__SoapAlert *, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out___emc__SoapAlert(struct soap*, const char*, int, const struct __emc__SoapAlert *, const char*); SOAP_FMAC3 struct __emc__SoapAlert * SOAP_FMAC4 soap_get___emc__SoapAlert(struct soap*, struct __emc__SoapAlert *, const char*, const char*); SOAP_FMAC3 struct __emc__SoapAlert * SOAP_FMAC4 soap_in___emc__SoapAlert(struct soap*, const char*, struct __emc__SoapAlert *, const char*); SOAP_FMAC5 struct __emc__SoapAlert * SOAP_FMAC6 soap_new___emc__SoapAlert(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete___emc__SoapAlert(struct soap*, struct __emc__SoapAlert*); SOAP_FMAC3 struct __emc__SoapAlert * SOAP_FMAC4 soap_instantiate___emc__SoapAlert(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy___emc__SoapAlert(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE__sai__union_EnvironmentDetectionType #define SOAP_TYPE__sai__union_EnvironmentDetectionType (153) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__sai__union_EnvironmentDetectionType(struct soap*, int, const union _sai__union_EnvironmentDetectionType *); SOAP_FMAC3 int SOAP_FMAC4 soap_out__sai__union_EnvironmentDetectionType(struct soap*, int, const union _sai__union_EnvironmentDetectionType *); SOAP_FMAC3 union _sai__union_EnvironmentDetectionType * SOAP_FMAC4 soap_in__sai__union_EnvironmentDetectionType(struct soap*, int*, union _sai__union_EnvironmentDetectionType *); #ifndef SOAP_TYPE__sai__union_UserAclEntryExType #define SOAP_TYPE__sai__union_UserAclEntryExType (141) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__sai__union_UserAclEntryExType(struct soap*, int, const union _sai__union_UserAclEntryExType *); SOAP_FMAC3 int SOAP_FMAC4 soap_out__sai__union_UserAclEntryExType(struct soap*, int, const union _sai__union_UserAclEntryExType *); SOAP_FMAC3 union _sai__union_UserAclEntryExType * SOAP_FMAC4 soap_in__sai__union_UserAclEntryExType(struct soap*, int*, union _sai__union_UserAclEntryExType *); #ifndef SOAP_TYPE__emi__union_AlertSubscriptionGeneralType #define SOAP_TYPE__emi__union_AlertSubscriptionGeneralType (131) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__emi__union_AlertSubscriptionGeneralType(struct soap*, int, const union _emi__union_AlertSubscriptionGeneralType *); SOAP_FMAC3 int SOAP_FMAC4 soap_out__emi__union_AlertSubscriptionGeneralType(struct soap*, int, const union _emi__union_AlertSubscriptionGeneralType *); SOAP_FMAC3 union _emi__union_AlertSubscriptionGeneralType * SOAP_FMAC4 soap_in__emi__union_AlertSubscriptionGeneralType(struct soap*, int*, union _emi__union_AlertSubscriptionGeneralType *); #ifndef SOAP_TYPE__cmn__union_NodeAddressType #define SOAP_TYPE__cmn__union_NodeAddressType (113) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__cmn__union_NodeAddressType(struct soap*, int, const union _cmn__union_NodeAddressType *); SOAP_FMAC3 int SOAP_FMAC4 soap_out__cmn__union_NodeAddressType(struct soap*, int, const union _cmn__union_NodeAddressType *); SOAP_FMAC3 union _cmn__union_NodeAddressType * SOAP_FMAC4 soap_in__cmn__union_NodeAddressType(struct soap*, int*, union _cmn__union_NodeAddressType *); #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason #define SOAP_TYPE_PointerToSOAP_ENV__Reason (168) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap*, const char *, int, struct SOAP_ENV__Reason *const*, const char *); SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason **, const char*, const char*); SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason **, const char*); #endif #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail #define SOAP_TYPE_PointerToSOAP_ENV__Detail (167) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap*, const char *, int, struct SOAP_ENV__Detail *const*, const char *); SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail **, const char*, const char*); SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail **, const char*); #endif #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_PointerToSOAP_ENV__Code #define SOAP_TYPE_PointerToSOAP_ENV__Code (163) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap*, const char *, int, struct SOAP_ENV__Code *const*, const char *); SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code **, const char*, const char*); SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code **, const char*); #endif #ifndef SOAP_TYPE_PointerTo_emc__SoapAlertResponse #define SOAP_TYPE_PointerTo_emc__SoapAlertResponse (156) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_emc__SoapAlertResponse(struct soap*, _emc__SoapAlertResponse *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_emc__SoapAlertResponse(struct soap*, _emc__SoapAlertResponse *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_emc__SoapAlertResponse(struct soap*, const char *, int, _emc__SoapAlertResponse *const*, const char *); SOAP_FMAC3 _emc__SoapAlertResponse ** SOAP_FMAC4 soap_get_PointerTo_emc__SoapAlertResponse(struct soap*, _emc__SoapAlertResponse **, const char*, const char*); SOAP_FMAC3 _emc__SoapAlertResponse ** SOAP_FMAC4 soap_in_PointerTo_emc__SoapAlertResponse(struct soap*, const char*, _emc__SoapAlertResponse **, const char*); #ifndef SOAP_TYPE_PointerTo_emc__SoapAlertRequest #define SOAP_TYPE_PointerTo_emc__SoapAlertRequest (155) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_emc__SoapAlertRequest(struct soap*, _emc__SoapAlertRequest *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_emc__SoapAlertRequest(struct soap*, _emc__SoapAlertRequest *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_emc__SoapAlertRequest(struct soap*, const char *, int, _emc__SoapAlertRequest *const*, const char *); SOAP_FMAC3 _emc__SoapAlertRequest ** SOAP_FMAC4 soap_get_PointerTo_emc__SoapAlertRequest(struct soap*, _emc__SoapAlertRequest **, const char*, const char*); SOAP_FMAC3 _emc__SoapAlertRequest ** SOAP_FMAC4 soap_in_PointerTo_emc__SoapAlertRequest(struct soap*, const char*, _emc__SoapAlertRequest **, const char*); #ifndef SOAP_TYPE_PointerTounsignedInt #define SOAP_TYPE_PointerTounsignedInt (154) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTounsignedInt(struct soap*, unsigned int *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTounsignedInt(struct soap*, unsigned int *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTounsignedInt(struct soap*, const char *, int, unsigned int *const*, const char *); SOAP_FMAC3 unsigned int ** SOAP_FMAC4 soap_get_PointerTounsignedInt(struct soap*, unsigned int **, const char*, const char*); SOAP_FMAC3 unsigned int ** SOAP_FMAC4 soap_in_PointerTounsignedInt(struct soap*, const char*, unsigned int **, const char*); #ifndef SOAP_TYPE_PointerTosai__EnvironmentDetectionHTTPSType #define SOAP_TYPE_PointerTosai__EnvironmentDetectionHTTPSType (152) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__EnvironmentDetectionHTTPSType(struct soap*, sai__EnvironmentDetectionHTTPSType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__EnvironmentDetectionHTTPSType(struct soap*, sai__EnvironmentDetectionHTTPSType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__EnvironmentDetectionHTTPSType(struct soap*, const char *, int, sai__EnvironmentDetectionHTTPSType *const*, const char *); SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType ** SOAP_FMAC4 soap_get_PointerTosai__EnvironmentDetectionHTTPSType(struct soap*, sai__EnvironmentDetectionHTTPSType **, const char*, const char*); SOAP_FMAC3 sai__EnvironmentDetectionHTTPSType ** SOAP_FMAC4 soap_in_PointerTosai__EnvironmentDetectionHTTPSType(struct soap*, const char*, sai__EnvironmentDetectionHTTPSType **, const char*); #ifndef SOAP_TYPE_PointerTosai__EnvironmentDetectionDomainType #define SOAP_TYPE_PointerTosai__EnvironmentDetectionDomainType (151) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__EnvironmentDetectionDomainType(struct soap*, sai__EnvironmentDetectionDomainType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__EnvironmentDetectionDomainType(struct soap*, sai__EnvironmentDetectionDomainType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__EnvironmentDetectionDomainType(struct soap*, const char *, int, sai__EnvironmentDetectionDomainType *const*, const char *); SOAP_FMAC3 sai__EnvironmentDetectionDomainType ** SOAP_FMAC4 soap_get_PointerTosai__EnvironmentDetectionDomainType(struct soap*, sai__EnvironmentDetectionDomainType **, const char*, const char*); SOAP_FMAC3 sai__EnvironmentDetectionDomainType ** SOAP_FMAC4 soap_in_PointerTosai__EnvironmentDetectionDomainType(struct soap*, const char*, sai__EnvironmentDetectionDomainType **, const char*); #ifndef SOAP_TYPE_PointerTobool #define SOAP_TYPE_PointerTobool (148) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTobool(struct soap*, bool *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTobool(struct soap*, bool *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTobool(struct soap*, const char *, int, bool *const*, const char *); SOAP_FMAC3 bool ** SOAP_FMAC4 soap_get_PointerTobool(struct soap*, bool **, const char*, const char*); SOAP_FMAC3 bool ** SOAP_FMAC4 soap_in_PointerTobool(struct soap*, const char*, bool **, const char*); #ifndef SOAP_TYPE_PointerToxsd__base64Binary #define SOAP_TYPE_PointerToxsd__base64Binary (147) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToxsd__base64Binary(struct soap*, xsd__base64Binary *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToxsd__base64Binary(struct soap*, xsd__base64Binary *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToxsd__base64Binary(struct soap*, const char *, int, xsd__base64Binary *const*, const char *); SOAP_FMAC3 xsd__base64Binary ** SOAP_FMAC4 soap_get_PointerToxsd__base64Binary(struct soap*, xsd__base64Binary **, const char*, const char*); SOAP_FMAC3 xsd__base64Binary ** SOAP_FMAC4 soap_in_PointerToxsd__base64Binary(struct soap*, const char*, xsd__base64Binary **, const char*); #ifndef SOAP_TYPE_PointerTostd__string #define SOAP_TYPE_PointerTostd__string (146) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTostd__string(struct soap*, std::string *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTostd__string(struct soap*, std::string *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTostd__string(struct soap*, const char *, int, std::string *const*, const char *); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTostd__string(struct soap*, std::string **, const char*, const char*); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTostd__string(struct soap*, const char*, std::string **, const char*); #ifndef SOAP_TYPE_PointerTosai__KerberosSpnType #define SOAP_TYPE_PointerTosai__KerberosSpnType (142) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__KerberosSpnType(struct soap*, sai__KerberosSpnType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__KerberosSpnType(struct soap*, sai__KerberosSpnType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__KerberosSpnType(struct soap*, const char *, int, sai__KerberosSpnType *const*, const char *); SOAP_FMAC3 sai__KerberosSpnType ** SOAP_FMAC4 soap_get_PointerTosai__KerberosSpnType(struct soap*, sai__KerberosSpnType **, const char*, const char*); SOAP_FMAC3 sai__KerberosSpnType ** SOAP_FMAC4 soap_in_PointerTosai__KerberosSpnType(struct soap*, const char*, sai__KerberosSpnType **, const char*); #ifndef SOAP_TYPE_PointerTosai__UserEntryKerberosType #define SOAP_TYPE_PointerTosai__UserEntryKerberosType (140) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__UserEntryKerberosType(struct soap*, sai__UserEntryKerberosType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__UserEntryKerberosType(struct soap*, sai__UserEntryKerberosType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__UserEntryKerberosType(struct soap*, const char *, int, sai__UserEntryKerberosType *const*, const char *); SOAP_FMAC3 sai__UserEntryKerberosType ** SOAP_FMAC4 soap_get_PointerTosai__UserEntryKerberosType(struct soap*, sai__UserEntryKerberosType **, const char*, const char*); SOAP_FMAC3 sai__UserEntryKerberosType ** SOAP_FMAC4 soap_in_PointerTosai__UserEntryKerberosType(struct soap*, const char*, sai__UserEntryKerberosType **, const char*); #ifndef SOAP_TYPE_PointerTosai__UserEntryDigestType #define SOAP_TYPE_PointerTosai__UserEntryDigestType (139) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__UserEntryDigestType(struct soap*, sai__UserEntryDigestType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__UserEntryDigestType(struct soap*, sai__UserEntryDigestType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__UserEntryDigestType(struct soap*, const char *, int, sai__UserEntryDigestType *const*, const char *); SOAP_FMAC3 sai__UserEntryDigestType ** SOAP_FMAC4 soap_get_PointerTosai__UserEntryDigestType(struct soap*, sai__UserEntryDigestType **, const char*, const char*); SOAP_FMAC3 sai__UserEntryDigestType ** SOAP_FMAC4 soap_in_PointerTosai__UserEntryDigestType(struct soap*, const char*, sai__UserEntryDigestType **, const char*); #ifndef SOAP_TYPE_PointerTosai__UserAclRealmListType #define SOAP_TYPE_PointerTosai__UserAclRealmListType (134) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__UserAclRealmListType(struct soap*, sai__UserAclRealmListType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__UserAclRealmListType(struct soap*, sai__UserAclRealmListType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__UserAclRealmListType(struct soap*, const char *, int, sai__UserAclRealmListType *const*, const char *); SOAP_FMAC3 sai__UserAclRealmListType ** SOAP_FMAC4 soap_get_PointerTosai__UserAclRealmListType(struct soap*, sai__UserAclRealmListType **, const char*, const char*); SOAP_FMAC3 sai__UserAclRealmListType ** SOAP_FMAC4 soap_in_PointerTosai__UserAclRealmListType(struct soap*, const char*, sai__UserAclRealmListType **, const char*); #ifndef SOAP_TYPE_PointerToemi__AlertSubscriptionPolicyIDType #define SOAP_TYPE_PointerToemi__AlertSubscriptionPolicyIDType (133) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertSubscriptionPolicyIDType(struct soap*, unsigned char *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertSubscriptionPolicyIDType(struct soap*, unsigned char *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertSubscriptionPolicyIDType(struct soap*, const char *, int, unsigned char *const*, const char *); SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_get_PointerToemi__AlertSubscriptionPolicyIDType(struct soap*, unsigned char **, const char*, const char*); SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_in_PointerToemi__AlertSubscriptionPolicyIDType(struct soap*, const char*, unsigned char **, const char*); #ifndef SOAP_TYPE_PointerToemi__AlertSubscriptionGeneralType #define SOAP_TYPE_PointerToemi__AlertSubscriptionGeneralType (132) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertSubscriptionGeneralType(struct soap*, emi__AlertSubscriptionGeneralType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertSubscriptionGeneralType(struct soap*, emi__AlertSubscriptionGeneralType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertSubscriptionGeneralType(struct soap*, const char *, int, emi__AlertSubscriptionGeneralType *const*, const char *); SOAP_FMAC3 emi__AlertSubscriptionGeneralType ** SOAP_FMAC4 soap_get_PointerToemi__AlertSubscriptionGeneralType(struct soap*, emi__AlertSubscriptionGeneralType **, const char*, const char*); SOAP_FMAC3 emi__AlertSubscriptionGeneralType ** SOAP_FMAC4 soap_in_PointerToemi__AlertSubscriptionGeneralType(struct soap*, const char*, emi__AlertSubscriptionGeneralType **, const char*); #ifndef SOAP_TYPE_PointerToemi__AlertSubscriptionSoapType #define SOAP_TYPE_PointerToemi__AlertSubscriptionSoapType (130) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertSubscriptionSoapType(struct soap*, emi__AlertSubscriptionSoapType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertSubscriptionSoapType(struct soap*, emi__AlertSubscriptionSoapType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertSubscriptionSoapType(struct soap*, const char *, int, emi__AlertSubscriptionSoapType *const*, const char *); SOAP_FMAC3 emi__AlertSubscriptionSoapType ** SOAP_FMAC4 soap_get_PointerToemi__AlertSubscriptionSoapType(struct soap*, emi__AlertSubscriptionSoapType **, const char*, const char*); SOAP_FMAC3 emi__AlertSubscriptionSoapType ** SOAP_FMAC4 soap_in_PointerToemi__AlertSubscriptionSoapType(struct soap*, const char*, emi__AlertSubscriptionSoapType **, const char*); #ifndef SOAP_TYPE_PointerToemi__AlertSubscriptionSNMPType #define SOAP_TYPE_PointerToemi__AlertSubscriptionSNMPType (129) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertSubscriptionSNMPType(struct soap*, emi__AlertSubscriptionSNMPType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertSubscriptionSNMPType(struct soap*, emi__AlertSubscriptionSNMPType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertSubscriptionSNMPType(struct soap*, const char *, int, emi__AlertSubscriptionSNMPType *const*, const char *); SOAP_FMAC3 emi__AlertSubscriptionSNMPType ** SOAP_FMAC4 soap_get_PointerToemi__AlertSubscriptionSNMPType(struct soap*, emi__AlertSubscriptionSNMPType **, const char*, const char*); SOAP_FMAC3 emi__AlertSubscriptionSNMPType ** SOAP_FMAC4 soap_in_PointerToemi__AlertSubscriptionSNMPType(struct soap*, const char*, emi__AlertSubscriptionSNMPType **, const char*); #ifndef SOAP_TYPE_PointerToemi__AlertCredentialsType #define SOAP_TYPE_PointerToemi__AlertCredentialsType (127) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__AlertCredentialsType(struct soap*, emi__AlertCredentialsType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__AlertCredentialsType(struct soap*, emi__AlertCredentialsType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__AlertCredentialsType(struct soap*, const char *, int, emi__AlertCredentialsType *const*, const char *); SOAP_FMAC3 emi__AlertCredentialsType ** SOAP_FMAC4 soap_get_PointerToemi__AlertCredentialsType(struct soap*, emi__AlertCredentialsType **, const char*, const char*); SOAP_FMAC3 emi__AlertCredentialsType ** SOAP_FMAC4 soap_in_PointerToemi__AlertCredentialsType(struct soap*, const char*, emi__AlertCredentialsType **, const char*); #ifndef SOAP_TYPE_PointerTosai__CertificateHandleType #define SOAP_TYPE_PointerTosai__CertificateHandleType (126) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTosai__CertificateHandleType(struct soap*, unsigned int *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTosai__CertificateHandleType(struct soap*, unsigned int *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTosai__CertificateHandleType(struct soap*, const char *, int, unsigned int *const*, const char *); SOAP_FMAC3 unsigned int ** SOAP_FMAC4 soap_get_PointerTosai__CertificateHandleType(struct soap*, unsigned int **, const char*, const char*); SOAP_FMAC3 unsigned int ** SOAP_FMAC4 soap_in_PointerTosai__CertificateHandleType(struct soap*, const char*, unsigned int **, const char*); #ifndef SOAP_TYPE_PointerTocmn__URLType #define SOAP_TYPE_PointerTocmn__URLType (125) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__URLType(struct soap*, cmn__URLType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__URLType(struct soap*, cmn__URLType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__URLType(struct soap*, const char *, int, cmn__URLType *const*, const char *); SOAP_FMAC3 cmn__URLType ** SOAP_FMAC4 soap_get_PointerTocmn__URLType(struct soap*, cmn__URLType **, const char*, const char*); SOAP_FMAC3 cmn__URLType ** SOAP_FMAC4 soap_in_PointerTocmn__URLType(struct soap*, const char*, cmn__URLType **, const char*); #ifndef SOAP_TYPE_PointerToemi__CommunityStringType #define SOAP_TYPE_PointerToemi__CommunityStringType (124) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__CommunityStringType(struct soap*, std::string *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__CommunityStringType(struct soap*, std::string *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__CommunityStringType(struct soap*, const char *, int, std::string *const*, const char *); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerToemi__CommunityStringType(struct soap*, std::string **, const char*, const char*); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerToemi__CommunityStringType(struct soap*, const char*, std::string **, const char*); #ifndef SOAP_TYPE_PointerTocmn__NodeAddressType #define SOAP_TYPE_PointerTocmn__NodeAddressType (123) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__NodeAddressType(struct soap*, cmn__NodeAddressType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__NodeAddressType(struct soap*, cmn__NodeAddressType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__NodeAddressType(struct soap*, const char *, int, cmn__NodeAddressType *const*, const char *); SOAP_FMAC3 cmn__NodeAddressType ** SOAP_FMAC4 soap_get_PointerTocmn__NodeAddressType(struct soap*, cmn__NodeAddressType **, const char*, const char*); SOAP_FMAC3 cmn__NodeAddressType ** SOAP_FMAC4 soap_in_PointerTocmn__NodeAddressType(struct soap*, const char*, cmn__NodeAddressType **, const char*); #ifndef SOAP_TYPE_PointerToemi__EventLogRecordType #define SOAP_TYPE_PointerToemi__EventLogRecordType (119) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__EventLogRecordType(struct soap*, emi__EventLogRecordType *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__EventLogRecordType(struct soap*, emi__EventLogRecordType *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__EventLogRecordType(struct soap*, const char *, int, emi__EventLogRecordType *const*, const char *); SOAP_FMAC3 emi__EventLogRecordType ** SOAP_FMAC4 soap_get_PointerToemi__EventLogRecordType(struct soap*, emi__EventLogRecordType **, const char*, const char*); SOAP_FMAC3 emi__EventLogRecordType ** SOAP_FMAC4 soap_in_PointerToemi__EventLogRecordType(struct soap*, const char*, emi__EventLogRecordType **, const char*); #ifndef SOAP_TYPE_PointerToemi__ByteData #define SOAP_TYPE_PointerToemi__ByteData (116) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToemi__ByteData(struct soap*, emi__ByteData *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToemi__ByteData(struct soap*, emi__ByteData *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToemi__ByteData(struct soap*, const char *, int, emi__ByteData *const*, const char *); SOAP_FMAC3 emi__ByteData ** SOAP_FMAC4 soap_get_PointerToemi__ByteData(struct soap*, emi__ByteData **, const char*, const char*); SOAP_FMAC3 emi__ByteData ** SOAP_FMAC4 soap_in_PointerToemi__ByteData(struct soap*, const char*, emi__ByteData **, const char*); #ifndef SOAP_TYPE_PointerTocmn__IPv6AddressStringType #define SOAP_TYPE_PointerTocmn__IPv6AddressStringType (112) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__IPv6AddressStringType(struct soap*, std::string *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__IPv6AddressStringType(struct soap*, std::string *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__IPv6AddressStringType(struct soap*, const char *, int, std::string *const*, const char *); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTocmn__IPv6AddressStringType(struct soap*, std::string **, const char*, const char*); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTocmn__IPv6AddressStringType(struct soap*, const char*, std::string **, const char*); #ifndef SOAP_TYPE_PointerTocmn__IPv4AddressStringType #define SOAP_TYPE_PointerTocmn__IPv4AddressStringType (111) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__IPv4AddressStringType(struct soap*, std::string *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__IPv4AddressStringType(struct soap*, std::string *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__IPv4AddressStringType(struct soap*, const char *, int, std::string *const*, const char *); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTocmn__IPv4AddressStringType(struct soap*, std::string **, const char*, const char*); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTocmn__IPv4AddressStringType(struct soap*, const char*, std::string **, const char*); #ifndef SOAP_TYPE_PointerTocmn__HostNameType #define SOAP_TYPE_PointerTocmn__HostNameType (110) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTocmn__HostNameType(struct soap*, std::string *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTocmn__HostNameType(struct soap*, std::string *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTocmn__HostNameType(struct soap*, const char *, int, std::string *const*, const char *); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTocmn__HostNameType(struct soap*, std::string **, const char*, const char*); SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTocmn__HostNameType(struct soap*, const char*, std::string **, const char*); #ifndef SOAP_TYPE_PointerTounsignedByte #define SOAP_TYPE_PointerTounsignedByte (12) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTounsignedByte(struct soap*, unsigned char *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTounsignedByte(struct soap*, unsigned char *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTounsignedByte(struct soap*, const char *, int, unsigned char *const*, const char *); SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_get_PointerTounsignedByte(struct soap*, unsigned char **, const char*, const char*); SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_in_PointerTounsignedByte(struct soap*, const char*, unsigned char **, const char*); #ifndef SOAP_TYPE__QName #define SOAP_TYPE__QName (5) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default__QName(struct soap*, char **); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__QName(struct soap*, char *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap*, char *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap*, const char*, int, char*const*, const char*); SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap*, char **, const char*, const char*); SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap*, const char*, char **, const char*); #ifndef SOAP_TYPE_string #define SOAP_TYPE_string (3) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap*, char **); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap*, char *const*); SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap*, char *const*, const char*, const char*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap*, const char*, int, char*const*, const char*); SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap*, char **, const char*, const char*); SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap*, const char*, char **, const char*); #ifndef SOAP_TYPE_std__vectorTemplateOfstd__string #define SOAP_TYPE_std__vectorTemplateOfstd__string (150) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfstd__string(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfstd__string(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfstd__string(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfstd__string(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfstd__string(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfstd__string(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfstd__string(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfstd__string(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfxsd__anyURI #define SOAP_TYPE_std__vectorTemplateOfxsd__anyURI (149) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfxsd__anyURI(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfxsd__anyURI(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfxsd__anyURI(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfxsd__anyURI(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfxsd__anyURI(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfxsd__anyURI(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfxsd__anyURI(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfxsd__anyURI(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfunsignedInt #define SOAP_TYPE_std__vectorTemplateOfunsignedInt (145) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfunsignedInt(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfunsignedInt(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfunsignedInt(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfunsignedInt(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfunsignedInt(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfunsignedInt(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfunsignedInt(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfunsignedInt(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfxsd__base64Binary #define SOAP_TYPE_std__vectorTemplateOfxsd__base64Binary (144) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfxsd__base64Binary(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfxsd__base64Binary(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfxsd__base64Binary(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfxsd__base64Binary(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfxsd__base64Binary(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfxsd__base64Binary(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfxsd__base64Binary(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfxsd__base64Binary(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfPointerTosai__KerberosSpnType #define SOAP_TYPE_std__vectorTemplateOfPointerTosai__KerberosSpnType (143) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfPointerTosai__KerberosSpnType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfsai__UserAclRealmType #define SOAP_TYPE_std__vectorTemplateOfsai__UserAclRealmType (136) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfsai__UserAclRealmType(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfsai__UserAclRealmType(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfsai__UserAclRealmType(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfsai__UserAclRealmType(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfsai__UserAclRealmType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfsai__UserAclRealmType(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfsai__UserAclRealmType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfsai__UserAclRealmType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfsai__UserAclEntryHandleType #define SOAP_TYPE_std__vectorTemplateOfsai__UserAclEntryHandleType (135) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfsai__UserAclEntryHandleType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfemi__AlertAuthOptionsType #define SOAP_TYPE_std__vectorTemplateOfemi__AlertAuthOptionsType (128) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__AlertAuthOptionsType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfemi__SensorHandleType #define SOAP_TYPE_std__vectorTemplateOfemi__SensorHandleType (121) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__SensorHandleType(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__SensorHandleType(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__SensorHandleType(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__SensorHandleType(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__SensorHandleType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__SensorHandleType(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__SensorHandleType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__SensorHandleType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfPointerToemi__EventLogRecordType #define SOAP_TYPE_std__vectorTemplateOfPointerToemi__EventLogRecordType (120) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfPointerToemi__EventLogRecordType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfemi__EventFilterHandleType #define SOAP_TYPE_std__vectorTemplateOfemi__EventFilterHandleType (118) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__EventFilterHandleType(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__EventFilterHandleType(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__EventFilterHandleType(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__EventFilterHandleType(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__EventFilterHandleType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__EventFilterHandleType(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__EventFilterHandleType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__EventFilterHandleType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionHandleType #define SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionHandleType (117) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__AlertSubscriptionHandleType(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfunsignedByte #define SOAP_TYPE_std__vectorTemplateOfunsignedByte (115) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfunsignedByte(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfunsignedByte(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfunsignedByte(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfunsignedByte(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfunsignedByte(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfunsignedByte(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfunsignedByte(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfunsignedByte(struct soap*, int, int, void*, size_t, const void*, size_t); #ifndef SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType #define SOAP_TYPE_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType (114) #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap*, std::vector*); SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap*, const std::vector*); SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap*, const char*, int, const std::vector*, const char*); SOAP_FMAC3 std::vector* SOAP_FMAC4 soap_in_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap*, const char*, std::vector*, const char*); SOAP_FMAC5 std::vector * SOAP_FMAC6 soap_new_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap*, int); SOAP_FMAC5 void SOAP_FMAC6 soap_delete_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap*, std::vector*); SOAP_FMAC3 std::vector * SOAP_FMAC4 soap_instantiate_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap*, int, const char*, const char*, size_t*); SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__vectorTemplateOfemi__AlertSubscriptionPolicyIDType(struct soap*, int, int, void*, size_t, const void*, size_t); #endif /* End of soapH.h */ UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/soapEventManagerClientSoapBindingObject.h0000644012402100775320000000533510746077317031315 0ustar00gkbld_amtccigk00000000000000/* soapEventManagerClientSoapBindingObject.h Generated by gSOAP 2.7.9e from /root/Projects/UNS/SoapServer/gSoapGeneratedCode/SoapInterfaceTmp.h Copyright(C) 2000-2006, Robert van Engelen, Genivia Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. */ #ifndef soapEventManagerClientSoapBinding_H #define soapEventManagerClientSoapBinding_H #include "soapH.h" /******************************************************************************\ * * * Service Object * * * \******************************************************************************/ class EventManagerClientSoapBinding : public soap { public: EventManagerClientSoapBinding() { static const struct Namespace namespaces[] = { {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL}, {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL}, {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, {"cmn", "http://schemas.intel.com/platform/client/Common/2006/01", NULL, NULL}, {"emi", "http://schemas.intel.com/platform/client/EventManager/2004/01", NULL, NULL}, {"sai", "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01", NULL, NULL}, {"emc", "http://schemas.intel.com/platform/client/EventManagerClient/2006/01", NULL, NULL}, {NULL, NULL, NULL, NULL} }; soap_init(this); if (!this->namespaces) this->namespaces = namespaces; }; virtual ~EventManagerClientSoapBinding() { soap_destroy(this); soap_end(this); soap_done(this); }; virtual int bind(const char *host, int port, int backlog) { return soap_bind(this, host, port, backlog); }; virtual int accept() { return soap_accept(this); }; virtual int serve() { return soap_serve(this); }; }; /******************************************************************************\ * * * Service Operations (you should define these) * * * \******************************************************************************/ SOAP_FMAC5 int SOAP_FMAC6 __emc__SoapAlert(struct soap*, _emc__SoapAlertRequest *emc__SoapAlertRequest, _emc__SoapAlertResponse *emc__SoapAlertResponse); #endif UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/SoapInterfaceTmp.h0000644012402100775320000023140510746077317024655 0ustar00gkbld_amtccigk00000000000000/* /root/Projects/UNS/SoapServer/gSoapGeneratedCode/SoapInterfaceTmp.h Generated by wsdl2h 1.2.9e from EventManagerClientInterface.wsdl and gNameSpaces.dat 2007-04-25 11:57:11 GMT Copyright (C) 2001-2006 Robert van Engelen, Genivia Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL or Genivia's license for commercial use. */ /* NOTE: - Compile this file with soapcpp2 to complete the code generation process. - Use soapcpp2 option -I to specify paths for #import To build with STL, 'stlvector.h' is imported from 'import' dir in package. - Use wsdl2h options -c and -s to generate pure C code or C++ code without STL. - Use 'typemap.dat' to control schema namespace bindings and type mappings. It is strongly recommended to customize the names of the namespace prefixes generated by wsdl2h. To do so, modify the prefix bindings in the Namespaces section below and add the modified lines to 'typemap.dat' to rerun wsdl2h. - Use Doxygen (www.doxygen.org) to browse this file. - Use wsdl2h option -l to view the software license terms. DO NOT include this file directly into your project. Include only the soapcpp2-generated headers and source code files. */ //gsoapopt w /******************************************************************************\ * * * http://schemas.intel.com/platform/client/EventManagerClient/2006/01 * * * \******************************************************************************/ /******************************************************************************\ * * * Import * * * \******************************************************************************/ // STL vector containers (use option -s to disable) #import "stlvector.h" /******************************************************************************\ * * * Schema Namespaces * * * \******************************************************************************/ /* NOTE: It is strongly recommended to customize the names of the namespace prefixes generated by wsdl2h. To do so, modify the prefix bindings below and add the modified lines to typemap.dat to rerun wsdl2h: emc = "http://schemas.intel.com/platform/client/EventManagerClient/2006/01" cmn = "http://schemas.intel.com/platform/client/Common/2006/01" emi = "http://schemas.intel.com/platform/client/EventManager/2004/01" sai = "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01" */ //gsoap cmn schema namespace: http://schemas.intel.com/platform/client/Common/2006/01 //gsoap emi schema namespace: http://schemas.intel.com/platform/client/EventManager/2004/01 //gsoap emc schema namespace: http://schemas.intel.com/platform/client/EventManagerClient/2006/01 //gsoap sai schema namespace: http://schemas.intel.com/platform/client/SecurityAdministration/2004/01 //gsoap cmn schema elementForm: qualified //gsoap cmn schema attributeForm: unqualified //gsoap emi schema elementForm: qualified //gsoap emi schema attributeForm: unqualified //gsoap emc schema elementForm: qualified //gsoap emc schema attributeForm: unqualified //gsoap sai schema elementForm: qualified //gsoap sai schema attributeForm: unqualified /******************************************************************************\ * * * Schema Types * * * \******************************************************************************/ /// Primitive built-in type "xs:anyURI" typedef std::string xsd__anyURI; /// Built-in type "xs:base64Binary". class xsd__base64Binary { unsigned char *__ptr; int __size; char *id, *type, *options; /* NOTE: for DIME and MTOM XOP attachments only */ struct soap *soap; }; // Forward declaration of class cmn__URLType. class cmn__URLType; // Forward declaration of class cmn__NodeAddressType. class cmn__NodeAddressType; // Forward declaration of class emi__AlertSubscriptionPolicyIDArrayType. class emi__AlertSubscriptionPolicyIDArrayType; // Forward declaration of class emi__ByteData. class emi__ByteData; // Forward declaration of class emi__EventLogRecordType. class emi__EventLogRecordType; // Forward declaration of class emi__EventFilterType. class emi__EventFilterType; // Forward declaration of class emi__AlertSubscriptionType. class emi__AlertSubscriptionType; // Forward declaration of class emi__AlertSubscriptionHandleArrayType. class emi__AlertSubscriptionHandleArrayType; // Forward declaration of class emi__EventFilterHandleArrayType. class emi__EventFilterHandleArrayType; // Forward declaration of class emi__EventLogRecordArrayType. class emi__EventLogRecordArrayType; // Forward declaration of class emi__SensorHandleArrayType. class emi__SensorHandleArrayType; // Forward declaration of class emi__SensorAttributesType. class emi__SensorAttributesType; // Forward declaration of class emi__ByteStr. class emi__ByteStr; // Forward declaration of class emi__AlertCredentialsType. class emi__AlertCredentialsType; // Forward declaration of class emi__AlertSubscriptionSNMPType. class emi__AlertSubscriptionSNMPType; // Forward declaration of class emi__AlertSubscriptionSoapType. class emi__AlertSubscriptionSoapType; // Forward declaration of class emi__AlertSubscriptionGeneralType. class emi__AlertSubscriptionGeneralType; // Forward declaration of class _emi__CancelAlertSubscription. class _emi__CancelAlertSubscription; // Forward declaration of class _emi__CancelAlertSubscriptionResponse. class _emi__CancelAlertSubscriptionResponse; // Forward declaration of class _emi__SubscribeForGeneralAlert. class _emi__SubscribeForGeneralAlert; // Forward declaration of class _emi__SubscribeForGeneralAlertResponse. class _emi__SubscribeForGeneralAlertResponse; // Forward declaration of class _emi__EnumerateGeneralAlertSubscriptions. class _emi__EnumerateGeneralAlertSubscriptions; // Forward declaration of class _emi__EnumerateGeneralAlertSubscriptionsResponse. class _emi__EnumerateGeneralAlertSubscriptionsResponse; // Forward declaration of class _emi__GetGeneralAlertSubscription. class _emi__GetGeneralAlertSubscription; // Forward declaration of class _emi__GetGeneralAlertSubscriptionResponse. class _emi__GetGeneralAlertSubscriptionResponse; // Forward declaration of class _emc__SoapAlertRequest. class _emc__SoapAlertRequest; // Forward declaration of class _emc__SoapAlertResponse. class _emc__SoapAlertResponse; // Forward declaration of class sai__UserAclEntryType. class sai__UserAclEntryType; // Forward declaration of class sai__AdminAclEntryType. class sai__AdminAclEntryType; // Forward declaration of class sai__UserAclEntryHandleListType. class sai__UserAclEntryHandleListType; // Forward declaration of class sai__UserAclRealmListType. class sai__UserAclRealmListType; // Forward declaration of class sai__RsaKeyType. class sai__RsaKeyType; // Forward declaration of class sai__RngKeyType. class sai__RngKeyType; // Forward declaration of class sai__CertificateChainType. class sai__CertificateChainType; // Forward declaration of class sai__UpdateCoreUrlKeyType. class sai__UpdateCoreUrlKeyType; // Forward declaration of class sai__AmtVersion. class sai__AmtVersion; // Forward declaration of class sai__UserEntryDigestType. class sai__UserEntryDigestType; // Forward declaration of class sai__UserEntryKerberosType. class sai__UserEntryKerberosType; // Forward declaration of class sai__UserAclEntryExType. class sai__UserAclEntryExType; // Forward declaration of class sai__AdminAclEntryExType. class sai__AdminAclEntryExType; // Forward declaration of class sai__KerberosSpnType. class sai__KerberosSpnType; // Forward declaration of class sai__KerberosOptionsType. class sai__KerberosOptionsType; // Forward declaration of class sai__TlsOptionsType. class sai__TlsOptionsType; // Forward declaration of class sai__CertificateType. class sai__CertificateType; // Forward declaration of class sai__CrlType. class sai__CrlType; // Forward declaration of class sai__PkiCapsType. class sai__PkiCapsType; // Forward declaration of class sai__CertHashEntryType. class sai__CertHashEntryType; // Forward declaration of class sai__ProvisioningAuditRecordType. class sai__ProvisioningAuditRecordType; // Forward declaration of class sai__EnvironmentDetectionHTTPSType. class sai__EnvironmentDetectionHTTPSType; // Forward declaration of class sai__EnvironmentDetectionDomainType. class sai__EnvironmentDetectionDomainType; // Forward declaration of class sai__EnvironmentDetectionType. class sai__EnvironmentDetectionType; // Forward declaration of class sai__GlobalPowerPolicyType. class sai__GlobalPowerPolicyType; /// "http://schemas.intel.com/platform/client/Common/2006/01":PT_STATUS is a simpleType restriction of xs:unsignedInt. typedef unsigned int cmn__PT_USCORESTATUS; /// "http://schemas.intel.com/platform/client/Common/2006/01":HostNameType is a simpleType restriction of xs:string. /// @brief String of maximum of 32 characters (not including null) /// Length of this string is within 0..64 characters typedef std::string cmn__HostNameType 0:64; /// "http://schemas.intel.com/platform/client/Common/2006/01":IPv4AddressType is a simpleType restriction of xs:unsignedInt. typedef unsigned int cmn__IPv4AddressType; /// "http://schemas.intel.com/platform/client/Common/2006/01":IPv4AddressStringType is a simpleType restriction of xs:string. /// Content pattern is "(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}" typedef std::string cmn__IPv4AddressStringType "(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}"; /// "http://schemas.intel.com/platform/client/Common/2006/01":IPv6AddressStringType is a simpleType restriction of xs:string. /// Content pattern is "((([\dA-Fa-f]{1,4}:){7}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){6}:[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){5}:([\dA-Fa-f]{1,4}:)?[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){4}:([\dA-Fa-f]{1,4}:){0,2}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){3}:([\dA-Fa-f]{1,4}:){0,3}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){2}:([\dA-Fa-f]{1,4}:){0,4}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){6}(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}) | (([\dA-Fa-f]{1,4}:){0,5}:(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}) | (::([\dA-Fa-f]{1,4}:){0,5}(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}) | ([\dA-Fa-f]{1,4}::([\dA-Fa-f]{1,4}:){0,5}[\dA-Fa-f]{1,4}) | (::([\dA-Fa-f]{1,4}:){0,6}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){1,7}:))" typedef std::string cmn__IPv6AddressStringType "((([\dA-Fa-f]{1,4}:){7}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){6}:[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){5}:([\dA-Fa-f]{1,4}:)?[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){4}:([\dA-Fa-f]{1,4}:){0,2}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){3}:([\dA-Fa-f]{1,4}:){0,3}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){2}:([\dA-Fa-f]{1,4}:){0,4}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){6}(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}) | (([\dA-Fa-f]{1,4}:){0,5}:(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}) | (::([\dA-Fa-f]{1,4}:){0,5}(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}) | ([\dA-Fa-f]{1,4}::([\dA-Fa-f]{1,4}:){0,5}[\dA-Fa-f]{1,4}) | (::([\dA-Fa-f]{1,4}:){0,6}[\dA-Fa-f]{1,4}) | (([\dA-Fa-f]{1,4}:){1,7}:))"; /// "http://schemas.intel.com/platform/client/Common/2006/01":InterfaceHandleType is a simpleType restriction of xs:unsignedInt. typedef unsigned int cmn__InterfaceHandleType; /// "http://schemas.intel.com/platform/client/Common/2006/01":GuidBuf is a simpleType restriction of xs:base64Binary. /// Length of this string is exactly 16 characters typedef xsd__base64Binary cmn__GuidBuf; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":TimeType is a simpleType restriction of xs:unsignedInt. typedef unsigned int emi__TimeType; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionPolicyIDType is a simpleType restriction of xs:unsignedByte. typedef unsigned char emi__AlertSubscriptionPolicyIDType; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionHandleType is a simpleType restriction of xs:unsignedInt. typedef unsigned int emi__AlertSubscriptionHandleType; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":EventFilterHandleType is a simpleType restriction of xs:unsignedInt. typedef unsigned int emi__EventFilterHandleType; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":EventSeverityType is a simpleType restriction of xs:unsignedByte. /// Note: enum values are prefixed with 'emi__EventSeverityType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum emi__EventSeverityType { /// @brief "0 = Unspecified" emi__EventSeverityType__0 = 0, ///< xs:unsignedByte value="0" /// @brief "1 = Monitor" emi__EventSeverityType__1 = 1, ///< xs:unsignedByte value="1" /// @brief "2 = Information" emi__EventSeverityType__2 = 2, ///< xs:unsignedByte value="2" /// @brief "4 = OK (return to OK condition)" emi__EventSeverityType__4 = 4, ///< xs:unsignedByte value="4" /// @brief "8 = Non-critical condition" emi__EventSeverityType__8 = 8, ///< xs:unsignedByte value="8" /// @brief "16 = Critical condition" emi__EventSeverityType__16 = 16, ///< xs:unsignedByte value="16" /// @brief "32 = Non-recoverable condition" emi__EventSeverityType__32 = 32, ///< xs:unsignedByte value="32" }; /// Typedef synonym for enum emi__EventSeverityType. typedef enum emi__EventSeverityType emi__EventSeverityType; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":PT_STATUS is a simpleType restriction of xs:unsignedInt. typedef unsigned int emi__PT_USCORESTATUS; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":IPv4AddressType is a simpleType restriction of xs:unsignedInt. typedef unsigned int emi__IPv4AddressType; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":SensorHandleType is a simpleType restriction of xs:unsignedInt. typedef unsigned int emi__SensorHandleType; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertAuthOptionsType is a simpleType restriction of xs:string. /// Note: enum values are prefixed with 'emi__AlertAuthOptionsType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum emi__AlertAuthOptionsType { emi__AlertAuthOptionsType__Kerberos, ///< xs:string value="Kerberos" emi__AlertAuthOptionsType__Digest, ///< xs:string value="Digest" emi__AlertAuthOptionsType__Basic, ///< xs:string value="Basic" }; /// Typedef synonym for enum emi__AlertAuthOptionsType. typedef enum emi__AlertAuthOptionsType emi__AlertAuthOptionsType; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":CommunityStringType is a simpleType restriction of xs:string. /// Length of this string is within 1..16 characters typedef std::string emi__CommunityStringType 1:16; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":PT_STATUS is a simpleType restriction of xs:unsignedInt. typedef unsigned int sai__PT_USCORESTATUS; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserAclRealmType is a simpleType restriction of xs:unsignedInt. /// Note: enum values are prefixed with 'sai__UserAclRealmType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__UserAclRealmType { /// @brief InvalidRealm = 0 sai__UserAclRealmType__0 = 0, ///< xs:unsignedInt value="0" /// @brief Reserved = 1 sai__UserAclRealmType__1 = 1, ///< xs:unsignedInt value="1" /// @brief RedirectionRealm = 2 sai__UserAclRealmType__2 = 2, ///< xs:unsignedInt value="2" /// @brief PTAdministrationRealm = 3 sai__UserAclRealmType__3 = 3, ///< xs:unsignedInt value="3" /// @brief HardwareAssetRealm = 4 sai__UserAclRealmType__4 = 4, ///< xs:unsignedInt value="4" /// @brief RemoteControlRealm = 5 sai__UserAclRealmType__5 = 5, ///< xs:unsignedInt value="5" /// @brief StorageRealm = 6 sai__UserAclRealmType__6 = 6, ///< xs:unsignedInt value="6" /// @brief EventManagerRealm = 7 sai__UserAclRealmType__7 = 7, ///< xs:unsignedInt value="7" /// @brief StorageAdminRealm = 8 sai__UserAclRealmType__8 = 8, ///< xs:unsignedInt value="8" /// @brief AgentPresenceLocalRealm = 9 sai__UserAclRealmType__9 = 9, ///< xs:unsignedInt value="9" /// @brief AgentPresenceRemoteRealm = 10 sai__UserAclRealmType__10 = 10, ///< xs:unsignedInt value="10" /// @brief CircuitBreakerRealm = 11 sai__UserAclRealmType__11 = 11, ///< xs:unsignedInt value="11" /// @brief NetworkTimeRealm = 12 sai__UserAclRealmType__12 = 12, ///< xs:unsignedInt value="12" /// @brief GeneralInfoRealm = 13 sai__UserAclRealmType__13 = 13, ///< xs:unsignedInt value="13" /// @brief FirmwareUpdateRealm = 14 sai__UserAclRealmType__14 = 14, ///< xs:unsignedInt value="14" /// @brief LocalUN = 16 sai__UserAclRealmType__16 = 16, ///< xs:unsignedInt value="16" /// @brief EndpointAccessControlRealm = 17 sai__UserAclRealmType__17 = 17, ///< xs:unsignedInt value="17" /// @brief EndpointAccessControlAdminRealm = 18 sai__UserAclRealmType__18 = 18, ///< xs:unsignedInt value="18" }; /// Typedef synonym for enum sai__UserAclRealmType. typedef enum sai__UserAclRealmType sai__UserAclRealmType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserAclEntryHandleType is a simpleType restriction of xs:unsignedInt. typedef unsigned int sai__UserAclEntryHandleType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AclStringType is a simpleType restriction of xs:string. /// Length of this string is within 0..16 characters typedef std::string sai__AclStringType:16; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AclPasswordStringType is a simpleType restriction of xs:string. /// Length of this string is within 0..32 characters typedef std::string sai__AclPasswordStringType:32; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":IPv4AddressType is a simpleType restriction of xs:unsignedInt. typedef unsigned int sai__IPv4AddressType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":RsaKeyEncodingType is a simpleType restriction of xs:unsignedInt. /// Note: enum values are prefixed with 'sai__RsaKeyEncodingType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__RsaKeyEncodingType { /// @brief RsaKeyEncodingTypeInvalid = 30 sai__RsaKeyEncodingType__30 = 30, ///< xs:unsignedInt value="30" /// @brief RsaKeyEncodingTypeSshv2Mpint = 31 sai__RsaKeyEncodingType__31 = 31, ///< xs:unsignedInt value="31" }; /// Typedef synonym for enum sai__RsaKeyEncodingType. typedef enum sai__RsaKeyEncodingType sai__RsaKeyEncodingType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":RsaCertificateEncodingType is a simpleType restriction of xs:unsignedInt. /// Note: enum values are prefixed with 'sai__RsaCertificateEncodingType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__RsaCertificateEncodingType { /// @brief RsaCertificateEncodingTypeInvalid = 10 sai__RsaCertificateEncodingType__10 = 10, ///< xs:unsignedInt value="10" /// @brief RsaCertificateEncodingTypeX509 = 11 sai__RsaCertificateEncodingType__11 = 11, ///< xs:unsignedInt value="11" }; /// Typedef synonym for enum sai__RsaCertificateEncodingType. typedef enum sai__RsaCertificateEncodingType sai__RsaCertificateEncodingType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":RngKeyEncodingType is a simpleType restriction of xs:unsignedInt. /// Note: enum values are prefixed with 'sai__RngKeyEncodingType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__RngKeyEncodingType { /// @brief RngKeyEncodingTypeInvalid = 20 sai__RngKeyEncodingType__20 = 20, ///< xs:unsignedInt value="20" /// @brief RngKeyEncodingTypeBare = 21 sai__RngKeyEncodingType__21 = 21, ///< xs:unsignedInt value="21" }; /// Typedef synonym for enum sai__RngKeyEncodingType. typedef enum sai__RngKeyEncodingType sai__RngKeyEncodingType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":ProvisioningModeType is a simpleType restriction of xs:unsignedInt. /// Note: enum values are prefixed with 'sai__ProvisioningModeType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__ProvisioningModeType { /// @brief "0 = ProvisioningModeCurrent" sai__ProvisioningModeType__0 = 0, ///< xs:unsignedInt value="0" /// @brief "1 = ProvisioningModeEnterprise" sai__ProvisioningModeType__1 = 1, ///< xs:unsignedInt value="1" /// @brief "2 = ProvisioningModeSmallBusiness" sai__ProvisioningModeType__2 = 2, ///< xs:unsignedInt value="2" }; /// Typedef synonym for enum sai__ProvisioningModeType. typedef enum sai__ProvisioningModeType sai__ProvisioningModeType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AccessPermissionType is a simpleType restriction of xs:string. /// Note: enum values are prefixed with 'sai__AccessPermissionType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__AccessPermissionType { sai__AccessPermissionType__LocalAccessPermission, ///< xs:string value="LocalAccessPermission" sai__AccessPermissionType__NetworkAccessPermission, ///< xs:string value="NetworkAccessPermission" sai__AccessPermissionType__AnyAccessPermission, ///< xs:string value="AnyAccessPermission" }; /// Typedef synonym for enum sai__AccessPermissionType. typedef enum sai__AccessPermissionType sai__AccessPermissionType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":KerberosSpnProtocolType is a simpleType restriction of xs:string. /// Note: enum values are prefixed with 'sai__KerberosSpnProtocolType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__KerberosSpnProtocolType { sai__KerberosSpnProtocolType__HTTP, ///< xs:string value="HTTP" sai__KerberosSpnProtocolType__HTTPS, ///< xs:string value="HTTPS" sai__KerberosSpnProtocolType__SOL_USCOREIDER, ///< xs:string value="SOL_IDER" sai__KerberosSpnProtocolType__SOL_USCOREIDER_USCORESSL, ///< xs:string value="SOL_IDER_SSL" }; /// Typedef synonym for enum sai__KerberosSpnProtocolType. typedef enum sai__KerberosSpnProtocolType sai__KerberosSpnProtocolType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":KerberosEncryptionType is a simpleType restriction of xs:string. /// Note: enum values are prefixed with 'sai__KerberosEncryptionType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__KerberosEncryptionType { sai__KerberosEncryptionType__HMAC_USCORERC4, ///< xs:string value="HMAC_RC4" }; /// Typedef synonym for enum sai__KerberosEncryptionType. typedef enum sai__KerberosEncryptionType sai__KerberosEncryptionType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":PowerStateType is a simpleType restriction of xs:string. /// Note: enum values are prefixed with 'sai__PowerStateType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__PowerStateType { sai__PowerStateType__PowerStateS0, ///< xs:string value="PowerStateS0" sai__PowerStateType__PowerStateS1, ///< xs:string value="PowerStateS1" sai__PowerStateType__PowerStateS2, ///< xs:string value="PowerStateS2" sai__PowerStateType__PowerStateS3, ///< xs:string value="PowerStateS3" sai__PowerStateType__PowerStateS4, ///< xs:string value="PowerStateS4" sai__PowerStateType__PowerStateS5, ///< xs:string value="PowerStateS5" }; /// Typedef synonym for enum sai__PowerStateType. typedef enum sai__PowerStateType sai__PowerStateType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":EnabledInterfacesType is a simpleType restriction of xs:string. /// Note: enum values are prefixed with 'sai__EnabledInterfacesType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__EnabledInterfacesType { sai__EnabledInterfacesType__WebUI, ///< xs:string value="WebUI" sai__EnabledInterfacesType__SerialOverLAN, ///< xs:string value="SerialOverLAN" sai__EnabledInterfacesType__IdeRedirection, ///< xs:string value="IdeRedirection" }; /// Typedef synonym for enum sai__EnabledInterfacesType. typedef enum sai__EnabledInterfacesType sai__EnabledInterfacesType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":InterfaceType is a simpleType restriction of xs:string. /// Note: enum values are prefixed with 'sai__InterfaceType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__InterfaceType { sai__InterfaceType__NetworkInterface, ///< xs:string value="NetworkInterface" sai__InterfaceType__LocalHostInterface, ///< xs:string value="LocalHostInterface" }; /// Typedef synonym for enum sai__InterfaceType. typedef enum sai__InterfaceType sai__InterfaceType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":TlsAthenticationType is a simpleType restriction of xs:string. /// Note: enum values are prefixed with 'sai__TlsAthenticationType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__TlsAthenticationType { sai__TlsAthenticationType__NoAuth, ///< xs:string value="NoAuth" sai__TlsAthenticationType__ServerAuth, ///< xs:string value="ServerAuth" sai__TlsAthenticationType__MutualAuth, ///< xs:string value="MutualAuth" }; /// Typedef synonym for enum sai__TlsAthenticationType. typedef enum sai__TlsAthenticationType sai__TlsAthenticationType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":CertificateHandleType is a simpleType restriction of xs:unsignedInt. typedef unsigned int sai__CertificateHandleType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":ProvisioningTLSModeType is a simpleType restriction of xs:unsignedByte. /// Note: enum values are prefixed with 'sai__ProvisioningTLSModeType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__ProvisioningTLSModeType { /// @brief "0 = Not Ready" sai__ProvisioningTLSModeType__0 = 0, ///< xs:unsignedByte value="0" /// @brief "1 = PSK" sai__ProvisioningTLSModeType__1 = 1, ///< xs:unsignedByte value="1" /// @brief "2 = PKI" sai__ProvisioningTLSModeType__2 = 2, ///< xs:unsignedByte value="2" }; /// Typedef synonym for enum sai__ProvisioningTLSModeType. typedef enum sai__ProvisioningTLSModeType sai__ProvisioningTLSModeType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":MEBxPasswordType is a simpleType restriction of xs:string. /// Length of this string is within 0..32 characters typedef std::string sai__MEBxPasswordType 0:32; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":ProvisioningOTPType is a simpleType restriction of xs:base64Binary. /// Length of this string is within 8..32 characters typedef xsd__base64Binary sai__ProvisioningOTPType 8:32; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":FriendlyNameType is a simpleType restriction of xs:string. /// Length of this string is within 1..32 characters typedef std::string sai__FriendlyNameType 1:32; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":HashTypeType is a simpleType restriction of xs:unsignedByte. /// Note: enum values are prefixed with 'sai__HashTypeType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__HashTypeType { /// @brief "1 = SHA-1-160" sai__HashTypeType__1 = 1, ///< xs:unsignedByte value="1" }; /// Typedef synonym for enum sai__HashTypeType. typedef enum sai__HashTypeType sai__HashTypeType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UNOptionsType is a simpleType restriction of xs:string. /// Note: enum values are prefixed with 'sai__UNOptionsType' to avoid name clashes, please use wsdl2h option -e to omit this prefix enum sai__UNOptionsType { sai__UNOptionsType__NoAuth, ///< xs:string value="NoAuth" sai__UNOptionsType__Auth, ///< xs:string value="Auth" sai__UNOptionsType__Disable, ///< xs:string value="Disable" }; /// Typedef synonym for enum sai__UNOptionsType. typedef enum sai__UNOptionsType sai__UNOptionsType; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":SpnString is a simpleType restriction of xs:string. /// Length of this string is within 0..266 characters typedef std::string _sai__SpnString 0:266; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":KerberosRealmName is a simpleType restriction of xs:string. /// Length of this string is within 1..63 characters typedef std::string _sai__KerberosRealmName 1:63; /// "http://schemas.intel.com/platform/client/Common/2006/01":NodeAddressType is a complexType. class cmn__NodeAddressType { public: /// CHOICE OF ELEMENTS FOR choice int __union_NodeAddressType ; ///< Union _cmn__union_NodeAddressType selector: set to SOAP_UNION__cmn__union_NodeAddressType_ union _cmn__union_NodeAddressType { /// Element HostName of type "http://schemas.intel.com/platform/client/Common/2006/01":HostNameType. cmn__HostNameType* HostName 1; ///< Required element. /// Element IPv4Address of type "http://schemas.intel.com/platform/client/Common/2006/01":IPv4AddressStringType. cmn__IPv4AddressStringType* IPv4Address 1; ///< Required element. /// Element IPv6Address of type "http://schemas.intel.com/platform/client/Common/2006/01":IPv6AddressStringType. cmn__IPv6AddressStringType* IPv6Address 1; ///< Required element. } union_NodeAddressType ; // END OF CHOICE /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionPolicyIDArrayType is a complexType. class emi__AlertSubscriptionPolicyIDArrayType { public: /// Vector of emi__AlertSubscriptionPolicyIDType with length 0..unbounded std::vector AlertSubscriptionPolicyID 0; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":ByteData is a complexType. class emi__ByteData { public: /// Vector of unsigned char with length 8..8 std::vector Byte 8:8; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":EventLogRecordType is a complexType. class emi__EventLogRecordType { public: /// Element TimeStamp of type "http://schemas.intel.com/platform/client/EventManager/2004/01":TimeType. emi__TimeType TimeStamp 1; ///< Required element. /// Element DeviceAddress of type xs:unsignedByte. unsigned char DeviceAddress 1; ///< Required element. /// Element EventSensorType of type xs:unsignedByte. unsigned char EventSensorType 1; ///< Required element. /// Element EventType of type xs:unsignedByte. unsigned char EventType 1; ///< Required element. /// Element EventOffset of type xs:unsignedByte. unsigned char EventOffset 1; ///< Required element. /// Element EventSourceType of type xs:unsignedByte. unsigned char EventSourceType 1; ///< Required element. /// Element EventSeverity of type "http://schemas.intel.com/platform/client/EventManager/2004/01":EventSeverityType. enum emi__EventSeverityType EventSeverity 1; ///< Required element. /// Element SensorNumber of type xs:unsignedByte. unsigned char SensorNumber 1; ///< Required element. /// Element Entity of type xs:unsignedByte. unsigned char Entity 1; ///< Required element. /// Element EntityInstance of type xs:unsignedByte. unsigned char EntityInstance 1; ///< Required element. /// Element EventData of type "http://schemas.intel.com/platform/client/EventManager/2004/01":ByteData. emi__ByteData* EventData 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":EventFilterType is a complexType. class emi__EventFilterType { public: /// Element FilterConfiguration of type xs:unsignedByte. unsigned char FilterConfiguration 1; ///< Required element. /// Element FilterAction of type xs:unsignedByte. unsigned char FilterAction 1; ///< Required element. /// Element AlertSubscriptionPolicyID of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionPolicyIDType. emi__AlertSubscriptionPolicyIDType AlertSubscriptionPolicyID 1; ///< Required element. /// Element DeviceAddress of type xs:unsignedByte. unsigned char DeviceAddress 1; ///< Required element. /// Element EventSensorType of type xs:unsignedByte. unsigned char EventSensorType 1; ///< Required element. /// Element EventType of type xs:unsignedByte. unsigned char EventType 1; ///< Required element. /// Element EventOffset of type xs:unsignedByte. unsigned char EventOffset 1; ///< Required element. /// Element EventSourceType of type xs:unsignedByte. unsigned char EventSourceType 1; ///< Required element. /// Element EventSeverity of type "http://schemas.intel.com/platform/client/EventManager/2004/01":EventSeverityType. enum emi__EventSeverityType EventSeverity 1; ///< Required element. /// Element SensorNumber of type xs:unsignedByte. unsigned char SensorNumber 1; ///< Required element. /// Element Entity of type xs:unsignedByte. unsigned char Entity 1; ///< Required element. /// Element EntityInstance of type xs:unsignedByte. unsigned char EntityInstance 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionType is a complexType. class emi__AlertSubscriptionType { public: /// Element AlertSubscriptionPolicyID of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionPolicyIDType. emi__AlertSubscriptionPolicyIDType AlertSubscriptionPolicyID 1; ///< Required element. /// Element DestinationAddress of type "http://schemas.intel.com/platform/client/EventManager/2004/01":IPv4AddressType. emi__IPv4AddressType DestinationAddress 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionHandleArrayType is a complexType. class emi__AlertSubscriptionHandleArrayType { public: /// Vector of emi__AlertSubscriptionHandleType with length 0..unbounded std::vector AlertSubscriptionHandle 0; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":EventFilterHandleArrayType is a complexType. class emi__EventFilterHandleArrayType { public: /// Vector of emi__EventFilterHandleType with length 0..unbounded std::vector EventFilterHandle 0; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":EventLogRecordArrayType is a complexType. class emi__EventLogRecordArrayType { public: /// Vector of emi__EventLogRecordType* with length 0..unbounded std::vector EventLogRecord 0; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":SensorHandleArrayType is a complexType. class emi__SensorHandleArrayType { public: /// Vector of emi__SensorHandleType with length 0..unbounded std::vector SensorHandle 0; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":SensorAttributesType is a complexType. class emi__SensorAttributesType { public: /// Element IsLegacySensor of type xs:boolean. bool IsLegacySensor 1; ///< Required element. /// Element AssertionEvent of type xs:boolean. bool AssertionEvent 1; ///< Required element. /// Element DeassertionEvent of type xs:boolean. bool DeassertionEvent 1; ///< Required element. /// Element Index of type xs:unsignedByte. unsigned char Index 1; ///< Required element. /// Element DeviceAddress of type xs:unsignedByte. unsigned char DeviceAddress 1; ///< Required element. /// Element EventSensorType of type xs:unsignedByte. unsigned char EventSensorType 1; ///< Required element. /// Element EventType of type xs:unsignedByte. unsigned char EventType 1; ///< Required element. /// Element EventOffset of type xs:unsignedByte. unsigned char EventOffset 1; ///< Required element. /// Element EventSourceType of type xs:unsignedByte. unsigned char EventSourceType 1; ///< Required element. /// Element EventSeverity of type "http://schemas.intel.com/platform/client/EventManager/2004/01":EventSeverityType. enum emi__EventSeverityType EventSeverity 1; ///< Required element. /// Element SensorNumber of type xs:unsignedByte. unsigned char SensorNumber 1; ///< Required element. /// Element Entity of type xs:unsignedByte. unsigned char Entity 1; ///< Required element. /// Element EntityInstance of type xs:unsignedByte. unsigned char EntityInstance 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":ByteStr is a complexType. class emi__ByteStr { public: /// Vector of unsigned char with length 1..16 std::vector Byte 1:16; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertCredentialsType is a complexType. class emi__AlertCredentialsType { public: /// Element Username of type xs:string. std::string Username 1; ///< Required element. /// Element Password of type xs:string. std::string Password 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionSNMPType is a complexType. class emi__AlertSubscriptionSNMPType { public: /// Element Address of type "http://schemas.intel.com/platform/client/Common/2006/01":NodeAddressType. cmn__NodeAddressType* Address 1; ///< Required element. /// Element CommunityString of type "http://schemas.intel.com/platform/client/EventManager/2004/01":CommunityStringType. emi__CommunityStringType* CommunityString 0; ///< Optional element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionSoapType is a complexType. class emi__AlertSubscriptionSoapType { public: /// Element Address of type "http://schemas.intel.com/platform/client/Common/2006/01":URLType. cmn__URLType* Address 1; ///< Required element. /// Element ClientCredentials of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":CertificateHandleType. sai__CertificateHandleType* ClientCredentials 0; ///< Optional element. /// Element UserCredentials of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertCredentialsType. emi__AlertCredentialsType* UserCredentials 0; ///< Optional element. /// Vector of enum emi__AlertAuthOptionsType with length 0..3 std::vector AlertAuthOptions 0:3; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionGeneralType is a complexType. class emi__AlertSubscriptionGeneralType { public: /// CHOICE OF ELEMENTS FOR choice int __union_AlertSubscriptionGeneralType; ///< Union _emi__union_AlertSubscriptionGeneralType selector: set to SOAP_UNION__emi__union_AlertSubscriptionGeneralType_ union _emi__union_AlertSubscriptionGeneralType { /// Element AlertSubscriptionSNMP of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionSNMPType. emi__AlertSubscriptionSNMPType* AlertSubscriptionSNMP 1; ///< Required element. /// Element AlertSubscriptionSoap of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionSoapType. emi__AlertSubscriptionSoapType* AlertSubscriptionSoap 1; ///< Required element. } union_AlertSubscriptionGeneralType; // END OF CHOICE /// Element PolicyID of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionPolicyIDType. emi__AlertSubscriptionPolicyIDType PolicyID 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManager/2004/01":CancelAlertSubscription of complexType. /// "http://schemas.intel.com/platform/client/EventManager/2004/01":CancelAlertSubscription is a complexType. class _emi__CancelAlertSubscription { public: /// Element SubscriptionHandle of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionHandleType. emi__AlertSubscriptionHandleType SubscriptionHandle 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManager/2004/01":CancelAlertSubscriptionResponse of complexType. /// "http://schemas.intel.com/platform/client/EventManager/2004/01":CancelAlertSubscriptionResponse is a complexType. class _emi__CancelAlertSubscriptionResponse { public: /// Element Status of type "http://schemas.intel.com/platform/client/EventManager/2004/01":PT_STATUS. emi__PT_USCORESTATUS Status 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManager/2004/01":SubscribeForGeneralAlert of complexType. /// "http://schemas.intel.com/platform/client/EventManager/2004/01":SubscribeForGeneralAlert is a complexType. class _emi__SubscribeForGeneralAlert { public: /// Element SubscriptionInfo of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionGeneralType. emi__AlertSubscriptionGeneralType* SubscriptionInfo 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManager/2004/01":SubscribeForGeneralAlertResponse of complexType. /// "http://schemas.intel.com/platform/client/EventManager/2004/01":SubscribeForGeneralAlertResponse is a complexType. class _emi__SubscribeForGeneralAlertResponse { public: /// Element Status of type "http://schemas.intel.com/platform/client/EventManager/2004/01":PT_STATUS. emi__PT_USCORESTATUS Status 1; ///< Required element. /// Element SubscriptionHandle of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionHandleType. emi__AlertSubscriptionHandleType SubscriptionHandle 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManager/2004/01":EnumerateGeneralAlertSubscriptions of complexType. /// "http://schemas.intel.com/platform/client/EventManager/2004/01":EnumerateGeneralAlertSubscriptions is a complexType. class _emi__EnumerateGeneralAlertSubscriptions { public: /// Element PolicyID of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionPolicyIDType. emi__AlertSubscriptionPolicyIDType* PolicyID 0; ///< Optional element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManager/2004/01":EnumerateGeneralAlertSubscriptionsResponse of complexType. /// "http://schemas.intel.com/platform/client/EventManager/2004/01":EnumerateGeneralAlertSubscriptionsResponse is a complexType. class _emi__EnumerateGeneralAlertSubscriptionsResponse { public: /// Element Status of type "http://schemas.intel.com/platform/client/EventManager/2004/01":PT_STATUS. emi__PT_USCORESTATUS Status 1; ///< Required element. /// Vector of emi__AlertSubscriptionHandleType with length 0..unbounded std::vector SubscriptionHandle 0; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManager/2004/01":GetGeneralAlertSubscription of complexType. /// "http://schemas.intel.com/platform/client/EventManager/2004/01":GetGeneralAlertSubscription is a complexType. class _emi__GetGeneralAlertSubscription { public: /// Element SubscriptionHandle of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionHandleType. emi__AlertSubscriptionHandleType SubscriptionHandle 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManager/2004/01":GetGeneralAlertSubscriptionResponse of complexType. /// "http://schemas.intel.com/platform/client/EventManager/2004/01":GetGeneralAlertSubscriptionResponse is a complexType. class _emi__GetGeneralAlertSubscriptionResponse { public: /// Element Status of type "http://schemas.intel.com/platform/client/EventManager/2004/01":PT_STATUS. emi__PT_USCORESTATUS Status 1; ///< Required element. /// Element SubscriptionInfo of type "http://schemas.intel.com/platform/client/EventManager/2004/01":AlertSubscriptionGeneralType. emi__AlertSubscriptionGeneralType* SubscriptionInfo 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManagerClient/2006/01":SoapAlertRequest of complexType. /// "http://schemas.intel.com/platform/client/EventManagerClient/2006/01":SoapAlertRequest is a complexType. class _emc__SoapAlertRequest { public: /// Vector of emi__EventLogRecordType* with length 0..64 std::vector SoapAlertRecords 0:64; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// Element "http://schemas.intel.com/platform/client/EventManagerClient/2006/01":SoapAlertResponse of complexType. /// "http://schemas.intel.com/platform/client/EventManagerClient/2006/01":SoapAlertResponse is a complexType. class _emc__SoapAlertResponse { public: /// Element Status of type "http://schemas.intel.com/platform/client/Common/2006/01":PT_STATUS. cmn__PT_USCORESTATUS Status 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserAclEntryType is a complexType. class sai__UserAclEntryType { public: /// Element Username of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AclStringType. sai__AclStringType Username 1; ///< Required element. /// Element Password of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AclPasswordStringType. sai__AclPasswordStringType Password 1; ///< Required element. /// Element Realms of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserAclRealmListType. sai__UserAclRealmListType* Realms 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AdminAclEntryType is a complexType. class sai__AdminAclEntryType { public: /// Element Username of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AclStringType. sai__AclStringType Username 1; ///< Required element. /// Element Password of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AclPasswordStringType. sai__AclPasswordStringType Password 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserAclEntryHandleListType is a complexType. class sai__UserAclEntryHandleListType { public: /// Vector of sai__UserAclEntryHandleType with length 0..7 std::vector Handle 0:7; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserAclRealmListType is a complexType. class sai__UserAclRealmListType { public: /// Vector of enum sai__UserAclRealmType with length 0..14 std::vector Realm 0:14; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":RsaKeyType is a complexType. class sai__RsaKeyType { public: /// Element Encoding of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":RsaKeyEncodingType. enum sai__RsaKeyEncodingType Encoding 1; ///< Required element. /// Element Length of type xs:unsignedInt. unsigned int Length 1; ///< Required element. /// Element Value of type xs:base64Binary. xsd__base64Binary Value 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":RngKeyType is a complexType. class sai__RngKeyType { public: /// Element Type of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":RngKeyEncodingType. enum sai__RngKeyEncodingType Type 1; ///< Required element. /// Element Length of type xs:unsignedInt. unsigned int Length 1; ///< Required element. /// Element Data of type xs:base64Binary. xsd__base64Binary Data 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":CertificateChainType is a complexType. class sai__CertificateChainType { public: /// Element Encoding of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":RsaCertificateEncodingType. enum sai__RsaCertificateEncodingType Encoding 1; ///< Required element. /// Element Length of type xs:unsignedInt. unsigned int Length 1; ///< Required element. /// Element Value of type xs:base64Binary. xsd__base64Binary Value 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UpdateCoreUrlKeyType is a complexType. class sai__UpdateCoreUrlKeyType { public: /// Element KeyLength of type xs:unsignedInt. unsigned int KeyLength 1; ///< Required element. /// Element KeyAlgorithm of type xs:unsignedInt. unsigned int KeyAlgorithm 1; ///< Required element. /// Element KeyData of type xs:base64Binary. xsd__base64Binary KeyData 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AmtVersion is a complexType. class sai__AmtVersion { public: /// Element major of type xs:unsignedByte. unsigned char major 1; ///< Required element. /// Element minor of type xs:unsignedByte. unsigned char minor 1; ///< Required element. /// Element micro of type xs:unsignedShort. unsigned short micro 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserEntryDigestType is a complexType. class sai__UserEntryDigestType { public: /// Element Username of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AclStringType. sai__AclStringType Username 1; ///< Required element. /// Length of this string is exactly 16 characters xsd__base64Binary DigestPassword 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserEntryKerberosType is a complexType. class sai__UserEntryKerberosType { public: /// Element Sid of type xs:base64Binary. xsd__base64Binary Sid 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserAclEntryExType is a complexType. class sai__UserAclEntryExType { public: /// CHOICE OF ELEMENTS FOR choice int __union_UserAclEntryExType ; ///< Union _sai__union_UserAclEntryExType selector: set to SOAP_UNION__sai__union_UserAclEntryExType_ union _sai__union_UserAclEntryExType { /// Element DigestUser of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserEntryDigestType. sai__UserEntryDigestType* DigestUser 1; ///< Required element. /// Element KerberosUser of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserEntryKerberosType. sai__UserEntryKerberosType* KerberosUser 1; ///< Required element. } union_UserAclEntryExType ; // END OF CHOICE /// Element AccessPermission of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AccessPermissionType. enum sai__AccessPermissionType AccessPermission 1; ///< Required element. /// Element Realms of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":UserAclRealmListType. sai__UserAclRealmListType* Realms 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AdminAclEntryExType is a complexType. class sai__AdminAclEntryExType { public: /// Element Username of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":AclStringType. sai__AclStringType Username 1; ///< Required element. /// Length of this string is exactly 16 characters xsd__base64Binary DigestPassword 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":KerberosSpnType is a complexType. class sai__KerberosSpnType { public: /// Element SpnProtocolIndex of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":KerberosSpnProtocolType. enum sai__KerberosSpnProtocolType SpnProtocolIndex 1; ///< Required element. /// Element reference "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":SpnString. _sai__SpnString SpnString 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":KerberosOptionsType is a complexType. class sai__KerberosOptionsType { public: /// Element reference "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":KerberosRealmName. _sai__KerberosRealmName KerberosRealmName 1; ///< Required element. /// Vector of sai__KerberosSpnType* with length 1..4 std::vector KerberosSpn 1:4; /// Element KerberosKeyVersion of type xs:unsignedInt. unsigned int KerberosKeyVersion 1; ///< Required element. /// Element KerberosEncryption of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":KerberosEncryptionType. enum sai__KerberosEncryptionType KerberosEncryption 1; ///< Required element. /// Length of this string is exactly 16 characters xsd__base64Binary KerberosMasterKey 1; ///< Required element. /// Value range is [1..] unsigned int KerberosMaximumClockTolerance 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":TlsOptionsType is a complexType. class sai__TlsOptionsType { public: /// Element Interface of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":InterfaceType. enum sai__InterfaceType Interface 1; ///< Required element. /// Element TlsAuthentication of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":TlsAthenticationType. enum sai__TlsAthenticationType TlsAuthentication 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":CertificateType is a complexType. class sai__CertificateType { public: /// Element X509cert of type xs:base64Binary. xsd__base64Binary X509cert 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":CrlType is a complexType. class sai__CrlType { public: /// Element CrlUrl of type xs:string. std::string CrlUrl 1; ///< Required element. /// Vector of xsd__base64Binary with length 1..unbounded std::vector SerialNumber 1; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":PkiCapsType is a complexType. class sai__PkiCapsType { public: /// Element CrlStoreSize of type xs:unsignedInt. unsigned int CrlStoreSize 1; ///< Required element. /// Element RootCertMaxSize of type xs:unsignedInt. unsigned int RootCertMaxSize 1; ///< Required element. /// Element RootCertMaxInstances of type xs:unsignedInt. unsigned int RootCertMaxInstances 1; ///< Required element. /// Element FqdnSuffixMaxEntries of type xs:unsignedInt. unsigned int FqdnSuffixMaxEntries 1; ///< Required element. /// Element FqdnSuffixMaxEntryLength of type xs:unsignedInt. unsigned int FqdnSuffixMaxEntryLength 1; ///< Required element. /// Element CertChainMaxSize of type xs:unsignedInt. unsigned int CertChainMaxSize 1; ///< Required element. /// Vector of unsigned int with length 1..unbounded std::vector SupportedKeyLengths 1; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":CertHashEntryType is a complexType. class sai__CertHashEntryType { public: /// Element Default of type xs:boolean. bool Default 1; ///< Required element. /// Element Active of type xs:boolean. bool Active 1; ///< Required element. /// Element HashType of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":HashTypeType. enum sai__HashTypeType HashType 1; ///< Required element. /// Element Hash of type xs:base64Binary. xsd__base64Binary Hash 1; ///< Required element. /// Element FriendlyName of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":FriendlyNameType. sai__FriendlyNameType FriendlyName 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":ProvisioningAuditRecordType is a complexType. class sai__ProvisioningAuditRecordType { public: /// Element ProvisioningTLSMode of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":ProvisioningTLSModeType. enum sai__ProvisioningTLSModeType ProvisioningTLSMode 1; ///< Required element. /// Element SecureDNS of type xs:boolean. bool SecureDNS 1; ///< Required element. /// Element HostInitiated of type xs:boolean. bool HostInitiated 1; ///< Required element. /// Element ProvServerFQDN of type xs:string. std::string* ProvServerFQDN 0; ///< Optional element. /// Element SelectedHashType of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":HashTypeType. enum sai__HashTypeType SelectedHashType 1; ///< Required element. /// Element SelectedHashData of type xs:base64Binary. xsd__base64Binary SelectedHashData 1; ///< Required element. /// Element CaCertSerials of type xs:base64Binary. xsd__base64Binary* CaCertSerials 0; ///< Optional element. /// Element AdditionalCaSerialNums of type xs:boolean. bool* AdditionalCaSerialNums 0; ///< Optional element. /// Element IsOemDefault of type xs:boolean. bool IsOemDefault 1; ///< Required element. /// Element IsTimeValid of type xs:boolean. bool IsTimeValid 1; ///< Required element. /// Element ProvServerIP of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":IPv4AddressType. sai__IPv4AddressType ProvServerIP 1; ///< Required element. /// Element TlsStartTime of type xs:unsignedInt. unsigned int TlsStartTime 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":EnvironmentDetectionHTTPSType is a complexType. class sai__EnvironmentDetectionHTTPSType { public: /// Vector of xsd__anyURI with length 1..5 std::vector values 1:5; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":EnvironmentDetectionDomainType is a complexType. class sai__EnvironmentDetectionDomainType { public: /// Vector of std::string with length 1..5 std::vector values 1:5; /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":EnvironmentDetectionType is a complexType. class sai__EnvironmentDetectionType { public: /// CHOICE OF ELEMENTS FOR choice int __union_EnvironmentDetectionType; ///< Union _sai__union_EnvironmentDetectionType selector: set to SOAP_UNION__sai__union_EnvironmentDetectionType_ union _sai__union_EnvironmentDetectionType { /// Element LocalDomains of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":EnvironmentDetectionDomainType. sai__EnvironmentDetectionDomainType* LocalDomains 1; ///< Required element. /// Element RemoteAddressHTTPS of type "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":EnvironmentDetectionHTTPSType. sai__EnvironmentDetectionHTTPSType* RemoteAddressHTTPS 1; ///< Required element. } union_EnvironmentDetectionType; // END OF CHOICE /// Element ExternalCircuitBreakerPolicy of type xs:unsignedInt. unsigned int* ExternalCircuitBreakerPolicy 0; ///< Optional element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/SecurityAdministration/2004/01":GlobalPowerPolicyType is a complexType. class sai__GlobalPowerPolicyType { public: /// Element IdleWakeTimeout of type xs:unsignedInt. unsigned int IdleWakeTimeout 1; ///< Required element. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /// "http://schemas.intel.com/platform/client/Common/2006/01":URLType is a complexType with simpleContent. class cmn__URLType { public: /// __item wraps 'xs:anyURI' simpleContent. xsd__anyURI __item ; /// TODO: /// Schema extensibility is user-definable. /// Consult the protocol documentation to change or insert declarations. /// Use wsdl2h option -x to remove this attribute. @_XML __anyAttribute ; ///< Catch any attribute content in XML string. /// A handle to the soap struct that manages this instance (automatically set) struct soap *soap ; }; /******************************************************************************\ * * * Services * * * \******************************************************************************/ //gsoap emc service name: EventManagerClientSoapBinding //gsoap emc service type: EventManagerClientSoapPortType //gsoap emc service port: http://hostname:16992/EventManagerClientService //gsoap emc service namespace: http://schemas.intel.com/platform/client/EventManagerClient/2006/01 //gsoap emc service transport: http://schemas.xmlsoap.org/soap/http /** @mainpage Service Definitions @section Service_bindings Bindings - @ref EventManagerClientSoapBinding */ /** @page EventManagerClientSoapBinding Binding "EventManagerClientSoapBinding" @section EventManagerClientSoapBinding_operations Operations of Binding "EventManagerClientSoapBinding" - @ref __emc__SoapAlert @section EventManagerClientSoapBinding_ports Endpoints of Binding "EventManagerClientSoapBinding" - http://hostname:16992/EventManagerClientService Note: use wsdl2h option -N to change the service binding prefix name */ /******************************************************************************\ * * * EventManagerClientSoapBinding * * * \******************************************************************************/ /******************************************************************************\ * * * __emc__SoapAlert * * * \******************************************************************************/ /// Operation "__emc__SoapAlert" of service binding "EventManagerClientSoapBinding" /** Operation details: - SOAP document/literal style - SOAP action="http://schemas.intel.com/platform/client/EventManagerClient/2006/01/SoapAlert" C stub function (defined in soapClient.c[pp] generated by soapcpp2): @code int soap_call___emc__SoapAlert( struct soap *soap, NULL, // char *endpoint = NULL selects default endpoint for this operation NULL, // char *action = NULL selects default action for this operation // request parameters: _emc__SoapAlertRequest* emc__SoapAlertRequest, // response parameters: _emc__SoapAlertResponse* emc__SoapAlertResponse ); @endcode C server function (called from the service dispatcher defined in soapServer.c[pp]): @code int __emc__SoapAlert( struct soap *soap, // request parameters: _emc__SoapAlertRequest* emc__SoapAlertRequest, // response parameters: _emc__SoapAlertResponse* emc__SoapAlertResponse ); @endcode C++ proxy class (defined in soapEventManagerClientSoapBindingProxy.h): class EventManagerClientSoapBinding; */ //gsoap emc service method-style: SoapAlert document //gsoap emc service method-encoding: SoapAlert literal //gsoap emc service method-action: SoapAlert http://schemas.intel.com/platform/client/EventManagerClient/2006/01/SoapAlert int __emc__SoapAlert( _emc__SoapAlertRequest* emc__SoapAlertRequest, ///< Request parameter _emc__SoapAlertResponse* emc__SoapAlertResponse ///< Response parameter ); /* End of /root/Projects/UNS/SoapServer/gSoapGeneratedCode/SoapInterfaceTmp.h */ UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/soapServer.cpp0000644012402100775320000000616710746077317024142 0ustar00gkbld_amtccigk00000000000000/* soapServer.cpp Generated by gSOAP 2.7.9e from /root/Projects/UNS/SoapServer/gSoapGeneratedCode/SoapInterfaceTmp.h Copyright(C) 2000-2006, Robert van Engelen, Genivia Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. */ #include "soapH.h" SOAP_SOURCE_STAMP("@(#) soapServer.cpp ver 2.7.9e 2007-04-25 11:57:11 GMT") SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap) { #ifndef WITH_FASTCGI unsigned int k = soap->max_keep_alive; #endif do { #ifdef WITH_FASTCGI if (FCGI_Accept() < 0) { soap->error = SOAP_EOF; return soap_send_fault(soap); } #endif soap_begin(soap); #ifndef WITH_FASTCGI if (soap->max_keep_alive > 0 && !--k) soap->keep_alive = 0; #endif if (soap_begin_recv(soap)) { if (soap->error < SOAP_STOP) { #ifdef WITH_FASTCGI soap_send_fault(soap); #else return soap_send_fault(soap); #endif } soap_closesock(soap); continue; } if (soap_envelope_begin_in(soap) || soap_recv_header(soap) || soap_body_begin_in(soap) || soap_serve_request(soap) || (soap->fserveloop && soap->fserveloop(soap))) { #ifdef WITH_FASTCGI soap_send_fault(soap); #else return soap_send_fault(soap); #endif } #ifdef WITH_FASTCGI } while (1); #else } while (soap->keep_alive); #endif return SOAP_OK; } #ifndef WITH_NOSERVEREQUEST SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap *soap) { soap_peek_element(soap); if (!soap_match_tag(soap, soap->tag, "emc:SoapAlertRequest")) return soap_serve___emc__SoapAlert(soap); return soap->error = SOAP_NO_METHOD; } #endif SOAP_FMAC5 int SOAP_FMAC6 soap_serve___emc__SoapAlert(struct soap *soap) { struct __emc__SoapAlert soap_tmp___emc__SoapAlert; _emc__SoapAlertResponse emc__SoapAlertResponse; emc__SoapAlertResponse.soap_default(soap); soap_default___emc__SoapAlert(soap, &soap_tmp___emc__SoapAlert); soap->encodingStyle = NULL; if (!soap_get___emc__SoapAlert(soap, &soap_tmp___emc__SoapAlert, "-emc:SoapAlert", NULL)) return soap->error; if (soap_body_end_in(soap) || soap_envelope_end_in(soap) || soap_end_recv(soap)) return soap->error; soap->error = __emc__SoapAlert(soap, soap_tmp___emc__SoapAlert.emc__SoapAlertRequest, &emc__SoapAlertResponse); if (soap->error) return soap->error; soap_serializeheader(soap); emc__SoapAlertResponse.soap_serialize(soap); if (soap_begin_count(soap)) return soap->error; if (soap->mode & SOAP_IO_LENGTH) { if (soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || emc__SoapAlertResponse.soap_put(soap, "emc:SoapAlertResponse", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap)) return soap->error; }; if (soap_end_count(soap) || soap_response(soap, SOAP_OK) || soap_envelope_begin_out(soap) || soap_putheader(soap) || soap_body_begin_out(soap) || emc__SoapAlertResponse.soap_put(soap, "emc:SoapAlertResponse", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap->error; return soap_closesock(soap); } /* End of soapServer.cpp */ UNS-3.2.0.24/SoapServer/gSoapGeneratedCode/soapStub.h0000644012402100775320000021630010746077317023246 0ustar00gkbld_amtccigk00000000000000/* soapStub.h Generated by gSOAP 2.7.9e from /root/Projects/UNS/SoapServer/gSoapGeneratedCode/SoapInterfaceTmp.h Copyright(C) 2000-2006, Robert van Engelen, Genivia Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. */ #ifndef soapStub_H #define soapStub_H #include #include "stdsoap2.h" /******************************************************************************\ * * * Enumerations * * * \******************************************************************************/ #ifndef SOAP_TYPE_emi__EventSeverityType #define SOAP_TYPE_emi__EventSeverityType (78) /* emi:EventSeverityType */ enum emi__EventSeverityType {emi__EventSeverityType__0 = 0, emi__EventSeverityType__1 = 1, emi__EventSeverityType__2 = 2, emi__EventSeverityType__4 = 4, emi__EventSeverityType__8 = 8, emi__EventSeverityType__16 = 16, emi__EventSeverityType__32 = 32}; #endif #ifndef SOAP_TYPE_emi__AlertAuthOptionsType #define SOAP_TYPE_emi__AlertAuthOptionsType (82) /* emi:AlertAuthOptionsType */ enum emi__AlertAuthOptionsType {emi__AlertAuthOptionsType__Kerberos = 0, emi__AlertAuthOptionsType__Digest = 1, emi__AlertAuthOptionsType__Basic = 2}; #endif #ifndef SOAP_TYPE_sai__UserAclRealmType #define SOAP_TYPE_sai__UserAclRealmType (85) /* sai:UserAclRealmType */ enum sai__UserAclRealmType {sai__UserAclRealmType__0 = 0, sai__UserAclRealmType__1 = 1, sai__UserAclRealmType__2 = 2, sai__UserAclRealmType__3 = 3, sai__UserAclRealmType__4 = 4, sai__UserAclRealmType__5 = 5, sai__UserAclRealmType__6 = 6, sai__UserAclRealmType__7 = 7, sai__UserAclRealmType__8 = 8, sai__UserAclRealmType__9 = 9, sai__UserAclRealmType__10 = 10, sai__UserAclRealmType__11 = 11, sai__UserAclRealmType__12 = 12, sai__UserAclRealmType__13 = 13, sai__UserAclRealmType__14 = 14, sai__UserAclRealmType__16 = 16, sai__UserAclRealmType__17 = 17, sai__UserAclRealmType__18 = 18}; #endif #ifndef SOAP_TYPE_sai__RsaKeyEncodingType #define SOAP_TYPE_sai__RsaKeyEncodingType (90) /* sai:RsaKeyEncodingType */ enum sai__RsaKeyEncodingType {sai__RsaKeyEncodingType__30 = 30, sai__RsaKeyEncodingType__31 = 31}; #endif #ifndef SOAP_TYPE_sai__RsaCertificateEncodingType #define SOAP_TYPE_sai__RsaCertificateEncodingType (91) /* sai:RsaCertificateEncodingType */ enum sai__RsaCertificateEncodingType {sai__RsaCertificateEncodingType__10 = 10, sai__RsaCertificateEncodingType__11 = 11}; #endif #ifndef SOAP_TYPE_sai__RngKeyEncodingType #define SOAP_TYPE_sai__RngKeyEncodingType (92) /* sai:RngKeyEncodingType */ enum sai__RngKeyEncodingType {sai__RngKeyEncodingType__20 = 20, sai__RngKeyEncodingType__21 = 21}; #endif #ifndef SOAP_TYPE_sai__ProvisioningModeType #define SOAP_TYPE_sai__ProvisioningModeType (93) /* sai:ProvisioningModeType */ enum sai__ProvisioningModeType {sai__ProvisioningModeType__0 = 0, sai__ProvisioningModeType__1 = 1, sai__ProvisioningModeType__2 = 2}; #endif #ifndef SOAP_TYPE_sai__AccessPermissionType #define SOAP_TYPE_sai__AccessPermissionType (94) /* sai:AccessPermissionType */ enum sai__AccessPermissionType {sai__AccessPermissionType__LocalAccessPermission = 0, sai__AccessPermissionType__NetworkAccessPermission = 1, sai__AccessPermissionType__AnyAccessPermission = 2}; #endif #ifndef SOAP_TYPE_sai__KerberosSpnProtocolType #define SOAP_TYPE_sai__KerberosSpnProtocolType (95) /* sai:KerberosSpnProtocolType */ enum sai__KerberosSpnProtocolType {sai__KerberosSpnProtocolType__HTTP = 0, sai__KerberosSpnProtocolType__HTTPS = 1, sai__KerberosSpnProtocolType__SOL_USCOREIDER = 2, sai__KerberosSpnProtocolType__SOL_USCOREIDER_USCORESSL = 3}; #endif #ifndef SOAP_TYPE_sai__KerberosEncryptionType #define SOAP_TYPE_sai__KerberosEncryptionType (96) /* sai:KerberosEncryptionType */ enum sai__KerberosEncryptionType {sai__KerberosEncryptionType__HMAC_USCORERC4 = 0}; #endif #ifndef SOAP_TYPE_sai__PowerStateType #define SOAP_TYPE_sai__PowerStateType (97) /* sai:PowerStateType */ enum sai__PowerStateType {sai__PowerStateType__PowerStateS0 = 0, sai__PowerStateType__PowerStateS1 = 1, sai__PowerStateType__PowerStateS2 = 2, sai__PowerStateType__PowerStateS3 = 3, sai__PowerStateType__PowerStateS4 = 4, sai__PowerStateType__PowerStateS5 = 5}; #endif #ifndef SOAP_TYPE_sai__EnabledInterfacesType #define SOAP_TYPE_sai__EnabledInterfacesType (98) /* sai:EnabledInterfacesType */ enum sai__EnabledInterfacesType {sai__EnabledInterfacesType__WebUI = 0, sai__EnabledInterfacesType__SerialOverLAN = 1, sai__EnabledInterfacesType__IdeRedirection = 2}; #endif #ifndef SOAP_TYPE_sai__InterfaceType #define SOAP_TYPE_sai__InterfaceType (99) /* sai:InterfaceType */ enum sai__InterfaceType {sai__InterfaceType__NetworkInterface = 0, sai__InterfaceType__LocalHostInterface = 1}; #endif #ifndef SOAP_TYPE_sai__TlsAthenticationType #define SOAP_TYPE_sai__TlsAthenticationType (100) /* sai:TlsAthenticationType */ enum sai__TlsAthenticationType {sai__TlsAthenticationType__NoAuth = 0, sai__TlsAthenticationType__ServerAuth = 1, sai__TlsAthenticationType__MutualAuth = 2}; #endif #ifndef SOAP_TYPE_sai__ProvisioningTLSModeType #define SOAP_TYPE_sai__ProvisioningTLSModeType (102) /* sai:ProvisioningTLSModeType */ enum sai__ProvisioningTLSModeType {sai__ProvisioningTLSModeType__0 = 0, sai__ProvisioningTLSModeType__1 = 1, sai__ProvisioningTLSModeType__2 = 2}; #endif #ifndef SOAP_TYPE_sai__HashTypeType #define SOAP_TYPE_sai__HashTypeType (106) /* sai:HashTypeType */ enum sai__HashTypeType {sai__HashTypeType__1 = 1}; #endif #ifndef SOAP_TYPE_sai__UNOptionsType #define SOAP_TYPE_sai__UNOptionsType (107) /* sai:UNOptionsType */ enum sai__UNOptionsType {sai__UNOptionsType__NoAuth = 0, sai__UNOptionsType__Auth = 1, sai__UNOptionsType__Disable = 2}; #endif /******************************************************************************\ * * * Classes and Structs * * * \******************************************************************************/ #if 0 /* volatile type: do not redeclare */ #endif #ifndef SOAP_TYPE_xsd__base64Binary #define SOAP_TYPE_xsd__base64Binary (9) /* Base64 schema type: */ class SOAP_CMAC xsd__base64Binary { public: unsigned char *__ptr; int __size; char *id; /* optional element of type xsd:string */ char *type; /* optional element of type xsd:string */ char *options; /* optional element of type xsd:string */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 9; } /* = unique id SOAP_TYPE_xsd__base64Binary */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); xsd__base64Binary() : __ptr(NULL), id(NULL), type(NULL), options(NULL), soap(NULL) { } virtual ~xsd__base64Binary() { } }; #endif #ifndef SOAP_TYPE__cmn__union_NodeAddressType #define SOAP_TYPE__cmn__union_NodeAddressType (113) /* xsd:choice */ union _cmn__union_NodeAddressType { #define SOAP_UNION__cmn__union_NodeAddressType_HostName (1) std::string *HostName; #define SOAP_UNION__cmn__union_NodeAddressType_IPv4Address (2) std::string *IPv4Address; #define SOAP_UNION__cmn__union_NodeAddressType_IPv6Address (3) std::string *IPv6Address; }; #endif #ifndef SOAP_TYPE_cmn__NodeAddressType #define SOAP_TYPE_cmn__NodeAddressType (16) /* cmn:NodeAddressType */ class SOAP_CMAC cmn__NodeAddressType { public: int __union_NodeAddressType; /* union discriminant (of union defined below) */ union _cmn__union_NodeAddressType union_NodeAddressType; /* required element of type xsd:choice */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 16; } /* = unique id SOAP_TYPE_cmn__NodeAddressType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); cmn__NodeAddressType() : soap(NULL) { } virtual ~cmn__NodeAddressType() { } }; #endif #ifndef SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType #define SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType (17) /* emi:AlertSubscriptionPolicyIDArrayType */ class SOAP_CMAC emi__AlertSubscriptionPolicyIDArrayType { public: std::vectorAlertSubscriptionPolicyID; /* optional element of type emi:AlertSubscriptionPolicyIDType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 17; } /* = unique id SOAP_TYPE_emi__AlertSubscriptionPolicyIDArrayType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__AlertSubscriptionPolicyIDArrayType() : soap(NULL) { } virtual ~emi__AlertSubscriptionPolicyIDArrayType() { } }; #endif #ifndef SOAP_TYPE_emi__ByteData #define SOAP_TYPE_emi__ByteData (18) /* emi:ByteData */ class SOAP_CMAC emi__ByteData { public: std::vectorByte; /* sequence of 8 to 8 elements */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 18; } /* = unique id SOAP_TYPE_emi__ByteData */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__ByteData() : soap(NULL) { } virtual ~emi__ByteData() { } }; #endif #ifndef SOAP_TYPE_emi__EventLogRecordType #define SOAP_TYPE_emi__EventLogRecordType (19) /* emi:EventLogRecordType */ class SOAP_CMAC emi__EventLogRecordType { public: unsigned int TimeStamp; /* required element of type emi:TimeType */ unsigned char DeviceAddress; /* required element of type xsd:unsignedByte */ unsigned char EventSensorType; /* required element of type xsd:unsignedByte */ unsigned char EventType; /* required element of type xsd:unsignedByte */ unsigned char EventOffset; /* required element of type xsd:unsignedByte */ unsigned char EventSourceType; /* required element of type xsd:unsignedByte */ enum emi__EventSeverityType EventSeverity; /* required element of type emi:EventSeverityType */ unsigned char SensorNumber; /* required element of type xsd:unsignedByte */ unsigned char Entity; /* required element of type xsd:unsignedByte */ unsigned char EntityInstance; /* required element of type xsd:unsignedByte */ emi__ByteData *EventData; /* required element of type emi:ByteData */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 19; } /* = unique id SOAP_TYPE_emi__EventLogRecordType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__EventLogRecordType() : EventData(NULL), soap(NULL) { } virtual ~emi__EventLogRecordType() { } }; #endif #ifndef SOAP_TYPE_emi__EventFilterType #define SOAP_TYPE_emi__EventFilterType (20) /* emi:EventFilterType */ class SOAP_CMAC emi__EventFilterType { public: unsigned char FilterConfiguration; /* required element of type xsd:unsignedByte */ unsigned char FilterAction; /* required element of type xsd:unsignedByte */ unsigned char AlertSubscriptionPolicyID; /* required element of type emi:AlertSubscriptionPolicyIDType */ unsigned char DeviceAddress; /* required element of type xsd:unsignedByte */ unsigned char EventSensorType; /* required element of type xsd:unsignedByte */ unsigned char EventType; /* required element of type xsd:unsignedByte */ unsigned char EventOffset; /* required element of type xsd:unsignedByte */ unsigned char EventSourceType; /* required element of type xsd:unsignedByte */ enum emi__EventSeverityType EventSeverity; /* required element of type emi:EventSeverityType */ unsigned char SensorNumber; /* required element of type xsd:unsignedByte */ unsigned char Entity; /* required element of type xsd:unsignedByte */ unsigned char EntityInstance; /* required element of type xsd:unsignedByte */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 20; } /* = unique id SOAP_TYPE_emi__EventFilterType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__EventFilterType() : soap(NULL) { } virtual ~emi__EventFilterType() { } }; #endif #ifndef SOAP_TYPE_emi__AlertSubscriptionType #define SOAP_TYPE_emi__AlertSubscriptionType (21) /* emi:AlertSubscriptionType */ class SOAP_CMAC emi__AlertSubscriptionType { public: unsigned char AlertSubscriptionPolicyID; /* required element of type emi:AlertSubscriptionPolicyIDType */ unsigned int DestinationAddress; /* required element of type emi:IPv4AddressType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 21; } /* = unique id SOAP_TYPE_emi__AlertSubscriptionType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__AlertSubscriptionType() : soap(NULL) { } virtual ~emi__AlertSubscriptionType() { } }; #endif #ifndef SOAP_TYPE_emi__AlertSubscriptionHandleArrayType #define SOAP_TYPE_emi__AlertSubscriptionHandleArrayType (22) /* emi:AlertSubscriptionHandleArrayType */ class SOAP_CMAC emi__AlertSubscriptionHandleArrayType { public: std::vectorAlertSubscriptionHandle; /* optional element of type emi:AlertSubscriptionHandleType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 22; } /* = unique id SOAP_TYPE_emi__AlertSubscriptionHandleArrayType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__AlertSubscriptionHandleArrayType() : soap(NULL) { } virtual ~emi__AlertSubscriptionHandleArrayType() { } }; #endif #ifndef SOAP_TYPE_emi__EventFilterHandleArrayType #define SOAP_TYPE_emi__EventFilterHandleArrayType (23) /* emi:EventFilterHandleArrayType */ class SOAP_CMAC emi__EventFilterHandleArrayType { public: std::vectorEventFilterHandle; /* optional element of type emi:EventFilterHandleType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 23; } /* = unique id SOAP_TYPE_emi__EventFilterHandleArrayType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__EventFilterHandleArrayType() : soap(NULL) { } virtual ~emi__EventFilterHandleArrayType() { } }; #endif #ifndef SOAP_TYPE_emi__EventLogRecordArrayType #define SOAP_TYPE_emi__EventLogRecordArrayType (24) /* emi:EventLogRecordArrayType */ class SOAP_CMAC emi__EventLogRecordArrayType { public: std::vectorEventLogRecord; /* optional element of type emi:EventLogRecordType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 24; } /* = unique id SOAP_TYPE_emi__EventLogRecordArrayType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__EventLogRecordArrayType() : soap(NULL) { } virtual ~emi__EventLogRecordArrayType() { } }; #endif #ifndef SOAP_TYPE_emi__SensorHandleArrayType #define SOAP_TYPE_emi__SensorHandleArrayType (25) /* emi:SensorHandleArrayType */ class SOAP_CMAC emi__SensorHandleArrayType { public: std::vectorSensorHandle; /* optional element of type emi:SensorHandleType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 25; } /* = unique id SOAP_TYPE_emi__SensorHandleArrayType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__SensorHandleArrayType() : soap(NULL) { } virtual ~emi__SensorHandleArrayType() { } }; #endif #ifndef SOAP_TYPE_emi__SensorAttributesType #define SOAP_TYPE_emi__SensorAttributesType (26) /* emi:SensorAttributesType */ class SOAP_CMAC emi__SensorAttributesType { public: bool IsLegacySensor; /* required element of type xsd:boolean */ bool AssertionEvent; /* required element of type xsd:boolean */ bool DeassertionEvent; /* required element of type xsd:boolean */ unsigned char Index; /* required element of type xsd:unsignedByte */ unsigned char DeviceAddress; /* required element of type xsd:unsignedByte */ unsigned char EventSensorType; /* required element of type xsd:unsignedByte */ unsigned char EventType; /* required element of type xsd:unsignedByte */ unsigned char EventOffset; /* required element of type xsd:unsignedByte */ unsigned char EventSourceType; /* required element of type xsd:unsignedByte */ enum emi__EventSeverityType EventSeverity; /* required element of type emi:EventSeverityType */ unsigned char SensorNumber; /* required element of type xsd:unsignedByte */ unsigned char Entity; /* required element of type xsd:unsignedByte */ unsigned char EntityInstance; /* required element of type xsd:unsignedByte */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 26; } /* = unique id SOAP_TYPE_emi__SensorAttributesType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__SensorAttributesType() : soap(NULL) { } virtual ~emi__SensorAttributesType() { } }; #endif #ifndef SOAP_TYPE_emi__ByteStr #define SOAP_TYPE_emi__ByteStr (27) /* emi:ByteStr */ class SOAP_CMAC emi__ByteStr { public: std::vectorByte; /* sequence of 1 to 16 elements */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 27; } /* = unique id SOAP_TYPE_emi__ByteStr */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__ByteStr() : soap(NULL) { } virtual ~emi__ByteStr() { } }; #endif #ifndef SOAP_TYPE_emi__AlertCredentialsType #define SOAP_TYPE_emi__AlertCredentialsType (28) /* emi:AlertCredentialsType */ class SOAP_CMAC emi__AlertCredentialsType { public: std::string Username; /* required element of type xsd:string */ std::string Password; /* required element of type xsd:string */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 28; } /* = unique id SOAP_TYPE_emi__AlertCredentialsType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__AlertCredentialsType() : soap(NULL) { } virtual ~emi__AlertCredentialsType() { } }; #endif #ifndef SOAP_TYPE_emi__AlertSubscriptionSNMPType #define SOAP_TYPE_emi__AlertSubscriptionSNMPType (29) /* emi:AlertSubscriptionSNMPType */ class SOAP_CMAC emi__AlertSubscriptionSNMPType { public: cmn__NodeAddressType *Address; /* required element of type cmn:NodeAddressType */ std::string *CommunityString; /* optional element of type emi:CommunityStringType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 29; } /* = unique id SOAP_TYPE_emi__AlertSubscriptionSNMPType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__AlertSubscriptionSNMPType() : Address(NULL), CommunityString(NULL), soap(NULL) { } virtual ~emi__AlertSubscriptionSNMPType() { } }; #endif #ifndef SOAP_TYPE_emi__AlertSubscriptionSoapType #define SOAP_TYPE_emi__AlertSubscriptionSoapType (30) /* emi:AlertSubscriptionSoapType */ class SOAP_CMAC emi__AlertSubscriptionSoapType { public: class cmn__URLType *Address; /* required element of type cmn:URLType */ unsigned int *ClientCredentials; /* optional element of type sai:CertificateHandleType */ emi__AlertCredentialsType *UserCredentials; /* optional element of type emi:AlertCredentialsType */ std::vectorAlertAuthOptions; /* sequence of 0 to 3 elements */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 30; } /* = unique id SOAP_TYPE_emi__AlertSubscriptionSoapType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__AlertSubscriptionSoapType() : Address(NULL), ClientCredentials(NULL), UserCredentials(NULL), soap(NULL) { } virtual ~emi__AlertSubscriptionSoapType() { } }; #endif #ifndef SOAP_TYPE__emi__union_AlertSubscriptionGeneralType #define SOAP_TYPE__emi__union_AlertSubscriptionGeneralType (131) /* xsd:choice */ union _emi__union_AlertSubscriptionGeneralType { #define SOAP_UNION__emi__union_AlertSubscriptionGeneralType_AlertSubscriptionSNMP (1) emi__AlertSubscriptionSNMPType *AlertSubscriptionSNMP; #define SOAP_UNION__emi__union_AlertSubscriptionGeneralType_AlertSubscriptionSoap (2) emi__AlertSubscriptionSoapType *AlertSubscriptionSoap; }; #endif #ifndef SOAP_TYPE_emi__AlertSubscriptionGeneralType #define SOAP_TYPE_emi__AlertSubscriptionGeneralType (31) /* emi:AlertSubscriptionGeneralType */ class SOAP_CMAC emi__AlertSubscriptionGeneralType { public: int __union_AlertSubscriptionGeneralType; /* union discriminant (of union defined below) */ union _emi__union_AlertSubscriptionGeneralType union_AlertSubscriptionGeneralType; /* required element of type xsd:choice */ unsigned char PolicyID; /* required element of type emi:AlertSubscriptionPolicyIDType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 31; } /* = unique id SOAP_TYPE_emi__AlertSubscriptionGeneralType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); emi__AlertSubscriptionGeneralType() : soap(NULL) { } virtual ~emi__AlertSubscriptionGeneralType() { } }; #endif #ifndef SOAP_TYPE__emi__CancelAlertSubscription #define SOAP_TYPE__emi__CancelAlertSubscription (32) /* emi:CancelAlertSubscription */ class SOAP_CMAC _emi__CancelAlertSubscription { public: unsigned int SubscriptionHandle; /* required element of type emi:AlertSubscriptionHandleType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 32; } /* = unique id SOAP_TYPE__emi__CancelAlertSubscription */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emi__CancelAlertSubscription() : soap(NULL) { } virtual ~_emi__CancelAlertSubscription() { } }; #endif #ifndef SOAP_TYPE__emi__CancelAlertSubscriptionResponse #define SOAP_TYPE__emi__CancelAlertSubscriptionResponse (33) /* emi:CancelAlertSubscriptionResponse */ class SOAP_CMAC _emi__CancelAlertSubscriptionResponse { public: unsigned int Status; /* required element of type emi:PT_STATUS */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 33; } /* = unique id SOAP_TYPE__emi__CancelAlertSubscriptionResponse */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emi__CancelAlertSubscriptionResponse() : soap(NULL) { } virtual ~_emi__CancelAlertSubscriptionResponse() { } }; #endif #ifndef SOAP_TYPE__emi__SubscribeForGeneralAlert #define SOAP_TYPE__emi__SubscribeForGeneralAlert (34) /* emi:SubscribeForGeneralAlert */ class SOAP_CMAC _emi__SubscribeForGeneralAlert { public: emi__AlertSubscriptionGeneralType *SubscriptionInfo; /* required element of type emi:AlertSubscriptionGeneralType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 34; } /* = unique id SOAP_TYPE__emi__SubscribeForGeneralAlert */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emi__SubscribeForGeneralAlert() : SubscriptionInfo(NULL), soap(NULL) { } virtual ~_emi__SubscribeForGeneralAlert() { } }; #endif #ifndef SOAP_TYPE__emi__SubscribeForGeneralAlertResponse #define SOAP_TYPE__emi__SubscribeForGeneralAlertResponse (35) /* emi:SubscribeForGeneralAlertResponse */ class SOAP_CMAC _emi__SubscribeForGeneralAlertResponse { public: unsigned int Status; /* required element of type emi:PT_STATUS */ unsigned int SubscriptionHandle; /* required element of type emi:AlertSubscriptionHandleType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 35; } /* = unique id SOAP_TYPE__emi__SubscribeForGeneralAlertResponse */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emi__SubscribeForGeneralAlertResponse() : soap(NULL) { } virtual ~_emi__SubscribeForGeneralAlertResponse() { } }; #endif #ifndef SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions #define SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions (36) /* emi:EnumerateGeneralAlertSubscriptions */ class SOAP_CMAC _emi__EnumerateGeneralAlertSubscriptions { public: unsigned char *PolicyID; /* optional element of type emi:AlertSubscriptionPolicyIDType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 36; } /* = unique id SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptions */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emi__EnumerateGeneralAlertSubscriptions() : PolicyID(NULL), soap(NULL) { } virtual ~_emi__EnumerateGeneralAlertSubscriptions() { } }; #endif #ifndef SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse #define SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse (37) /* emi:EnumerateGeneralAlertSubscriptionsResponse */ class SOAP_CMAC _emi__EnumerateGeneralAlertSubscriptionsResponse { public: unsigned int Status; /* required element of type emi:PT_STATUS */ std::vectorSubscriptionHandle; /* optional element of type emi:AlertSubscriptionHandleType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 37; } /* = unique id SOAP_TYPE__emi__EnumerateGeneralAlertSubscriptionsResponse */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emi__EnumerateGeneralAlertSubscriptionsResponse() : soap(NULL) { } virtual ~_emi__EnumerateGeneralAlertSubscriptionsResponse() { } }; #endif #ifndef SOAP_TYPE__emi__GetGeneralAlertSubscription #define SOAP_TYPE__emi__GetGeneralAlertSubscription (38) /* emi:GetGeneralAlertSubscription */ class SOAP_CMAC _emi__GetGeneralAlertSubscription { public: unsigned int SubscriptionHandle; /* required element of type emi:AlertSubscriptionHandleType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 38; } /* = unique id SOAP_TYPE__emi__GetGeneralAlertSubscription */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emi__GetGeneralAlertSubscription() : soap(NULL) { } virtual ~_emi__GetGeneralAlertSubscription() { } }; #endif #ifndef SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse #define SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse (39) /* emi:GetGeneralAlertSubscriptionResponse */ class SOAP_CMAC _emi__GetGeneralAlertSubscriptionResponse { public: unsigned int Status; /* required element of type emi:PT_STATUS */ emi__AlertSubscriptionGeneralType *SubscriptionInfo; /* required element of type emi:AlertSubscriptionGeneralType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 39; } /* = unique id SOAP_TYPE__emi__GetGeneralAlertSubscriptionResponse */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emi__GetGeneralAlertSubscriptionResponse() : SubscriptionInfo(NULL), soap(NULL) { } virtual ~_emi__GetGeneralAlertSubscriptionResponse() { } }; #endif #ifndef SOAP_TYPE__emc__SoapAlertRequest #define SOAP_TYPE__emc__SoapAlertRequest (40) /* emc:SoapAlertRequest */ class SOAP_CMAC _emc__SoapAlertRequest { public: std::vectorSoapAlertRecords; /* sequence of 0 to 64 elements */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 40; } /* = unique id SOAP_TYPE__emc__SoapAlertRequest */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emc__SoapAlertRequest() : soap(NULL) { } virtual ~_emc__SoapAlertRequest() { } }; #endif #ifndef SOAP_TYPE__emc__SoapAlertResponse #define SOAP_TYPE__emc__SoapAlertResponse (41) /* emc:SoapAlertResponse */ class SOAP_CMAC _emc__SoapAlertResponse { public: unsigned int Status; /* RPC return element */ /* required element of type cmn:PT_STATUS */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 41; } /* = unique id SOAP_TYPE__emc__SoapAlertResponse */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); _emc__SoapAlertResponse() : soap(NULL) { } virtual ~_emc__SoapAlertResponse() { } }; #endif #ifndef SOAP_TYPE_sai__UserAclEntryType #define SOAP_TYPE_sai__UserAclEntryType (42) /* sai:UserAclEntryType */ class SOAP_CMAC sai__UserAclEntryType { public: std::string Username; /* required element of type sai:AclStringType */ std::string Password; /* required element of type sai:AclPasswordStringType */ class sai__UserAclRealmListType *Realms; /* required element of type sai:UserAclRealmListType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 42; } /* = unique id SOAP_TYPE_sai__UserAclEntryType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__UserAclEntryType() : Realms(NULL), soap(NULL) { } virtual ~sai__UserAclEntryType() { } }; #endif #ifndef SOAP_TYPE_sai__AdminAclEntryType #define SOAP_TYPE_sai__AdminAclEntryType (43) /* sai:AdminAclEntryType */ class SOAP_CMAC sai__AdminAclEntryType { public: std::string Username; /* required element of type sai:AclStringType */ std::string Password; /* required element of type sai:AclPasswordStringType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 43; } /* = unique id SOAP_TYPE_sai__AdminAclEntryType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__AdminAclEntryType() : soap(NULL) { } virtual ~sai__AdminAclEntryType() { } }; #endif #ifndef SOAP_TYPE_sai__UserAclEntryHandleListType #define SOAP_TYPE_sai__UserAclEntryHandleListType (44) /* sai:UserAclEntryHandleListType */ class SOAP_CMAC sai__UserAclEntryHandleListType { public: std::vectorHandle; /* sequence of 0 to 7 elements */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 44; } /* = unique id SOAP_TYPE_sai__UserAclEntryHandleListType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__UserAclEntryHandleListType() : soap(NULL) { } virtual ~sai__UserAclEntryHandleListType() { } }; #endif #ifndef SOAP_TYPE_sai__UserAclRealmListType #define SOAP_TYPE_sai__UserAclRealmListType (45) /* sai:UserAclRealmListType */ class SOAP_CMAC sai__UserAclRealmListType { public: std::vectorRealm; /* sequence of 0 to 14 elements */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 45; } /* = unique id SOAP_TYPE_sai__UserAclRealmListType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__UserAclRealmListType() : soap(NULL) { } virtual ~sai__UserAclRealmListType() { } }; #endif #ifndef SOAP_TYPE_sai__RsaKeyType #define SOAP_TYPE_sai__RsaKeyType (46) /* sai:RsaKeyType */ class SOAP_CMAC sai__RsaKeyType { public: enum sai__RsaKeyEncodingType Encoding; /* required element of type sai:RsaKeyEncodingType */ unsigned int Length; /* required element of type xsd:unsignedInt */ xsd__base64Binary Value; /* required element of type xsd:base64Binary */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 46; } /* = unique id SOAP_TYPE_sai__RsaKeyType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__RsaKeyType() : soap(NULL) { } virtual ~sai__RsaKeyType() { } }; #endif #ifndef SOAP_TYPE_sai__RngKeyType #define SOAP_TYPE_sai__RngKeyType (47) /* sai:RngKeyType */ class SOAP_CMAC sai__RngKeyType { public: enum sai__RngKeyEncodingType Type; /* required element of type sai:RngKeyEncodingType */ unsigned int Length; /* required element of type xsd:unsignedInt */ xsd__base64Binary Data; /* required element of type xsd:base64Binary */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 47; } /* = unique id SOAP_TYPE_sai__RngKeyType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__RngKeyType() : soap(NULL) { } virtual ~sai__RngKeyType() { } }; #endif #ifndef SOAP_TYPE_sai__CertificateChainType #define SOAP_TYPE_sai__CertificateChainType (48) /* sai:CertificateChainType */ class SOAP_CMAC sai__CertificateChainType { public: enum sai__RsaCertificateEncodingType Encoding; /* required element of type sai:RsaCertificateEncodingType */ unsigned int Length; /* required element of type xsd:unsignedInt */ xsd__base64Binary Value; /* required element of type xsd:base64Binary */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 48; } /* = unique id SOAP_TYPE_sai__CertificateChainType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__CertificateChainType() : soap(NULL) { } virtual ~sai__CertificateChainType() { } }; #endif #ifndef SOAP_TYPE_sai__UpdateCoreUrlKeyType #define SOAP_TYPE_sai__UpdateCoreUrlKeyType (49) /* sai:UpdateCoreUrlKeyType */ class SOAP_CMAC sai__UpdateCoreUrlKeyType { public: unsigned int KeyLength; /* required element of type xsd:unsignedInt */ unsigned int KeyAlgorithm; /* required element of type xsd:unsignedInt */ xsd__base64Binary KeyData; /* required element of type xsd:base64Binary */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 49; } /* = unique id SOAP_TYPE_sai__UpdateCoreUrlKeyType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__UpdateCoreUrlKeyType() : soap(NULL) { } virtual ~sai__UpdateCoreUrlKeyType() { } }; #endif #ifndef SOAP_TYPE_sai__AmtVersion #define SOAP_TYPE_sai__AmtVersion (50) /* sai:AmtVersion */ class SOAP_CMAC sai__AmtVersion { public: unsigned char major; /* required element of type xsd:unsignedByte */ unsigned char minor; /* required element of type xsd:unsignedByte */ unsigned short micro; /* required element of type xsd:unsignedShort */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 50; } /* = unique id SOAP_TYPE_sai__AmtVersion */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__AmtVersion() : soap(NULL) { } virtual ~sai__AmtVersion() { } }; #endif #ifndef SOAP_TYPE_sai__UserEntryDigestType #define SOAP_TYPE_sai__UserEntryDigestType (51) /* sai:UserEntryDigestType */ class SOAP_CMAC sai__UserEntryDigestType { public: std::string Username; /* required element of type sai:AclStringType */ xsd__base64Binary DigestPassword; /* required element of type xsd:base64Binary */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 51; } /* = unique id SOAP_TYPE_sai__UserEntryDigestType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__UserEntryDigestType() : soap(NULL) { } virtual ~sai__UserEntryDigestType() { } }; #endif #ifndef SOAP_TYPE_sai__UserEntryKerberosType #define SOAP_TYPE_sai__UserEntryKerberosType (52) /* sai:UserEntryKerberosType */ class SOAP_CMAC sai__UserEntryKerberosType { public: xsd__base64Binary Sid; /* required element of type xsd:base64Binary */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 52; } /* = unique id SOAP_TYPE_sai__UserEntryKerberosType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__UserEntryKerberosType() : soap(NULL) { } virtual ~sai__UserEntryKerberosType() { } }; #endif #ifndef SOAP_TYPE__sai__union_UserAclEntryExType #define SOAP_TYPE__sai__union_UserAclEntryExType (141) /* xsd:choice */ union _sai__union_UserAclEntryExType { #define SOAP_UNION__sai__union_UserAclEntryExType_DigestUser (1) sai__UserEntryDigestType *DigestUser; #define SOAP_UNION__sai__union_UserAclEntryExType_KerberosUser (2) sai__UserEntryKerberosType *KerberosUser; }; #endif #ifndef SOAP_TYPE_sai__UserAclEntryExType #define SOAP_TYPE_sai__UserAclEntryExType (53) /* sai:UserAclEntryExType */ class SOAP_CMAC sai__UserAclEntryExType { public: int __union_UserAclEntryExType; /* union discriminant (of union defined below) */ union _sai__union_UserAclEntryExType union_UserAclEntryExType; /* required element of type xsd:choice */ enum sai__AccessPermissionType AccessPermission; /* required element of type sai:AccessPermissionType */ sai__UserAclRealmListType *Realms; /* required element of type sai:UserAclRealmListType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 53; } /* = unique id SOAP_TYPE_sai__UserAclEntryExType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__UserAclEntryExType() : Realms(NULL), soap(NULL) { } virtual ~sai__UserAclEntryExType() { } }; #endif #ifndef SOAP_TYPE_sai__AdminAclEntryExType #define SOAP_TYPE_sai__AdminAclEntryExType (54) /* sai:AdminAclEntryExType */ class SOAP_CMAC sai__AdminAclEntryExType { public: std::string Username; /* required element of type sai:AclStringType */ xsd__base64Binary DigestPassword; /* required element of type xsd:base64Binary */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 54; } /* = unique id SOAP_TYPE_sai__AdminAclEntryExType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__AdminAclEntryExType() : soap(NULL) { } virtual ~sai__AdminAclEntryExType() { } }; #endif #ifndef SOAP_TYPE_sai__KerberosSpnType #define SOAP_TYPE_sai__KerberosSpnType (55) /* sai:KerberosSpnType */ class SOAP_CMAC sai__KerberosSpnType { public: enum sai__KerberosSpnProtocolType SpnProtocolIndex; /* required element of type sai:KerberosSpnProtocolType */ std::string SpnString; /* required element of type sai:SpnString */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 55; } /* = unique id SOAP_TYPE_sai__KerberosSpnType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__KerberosSpnType() : soap(NULL) { } virtual ~sai__KerberosSpnType() { } }; #endif #ifndef SOAP_TYPE_sai__KerberosOptionsType #define SOAP_TYPE_sai__KerberosOptionsType (56) /* sai:KerberosOptionsType */ class SOAP_CMAC sai__KerberosOptionsType { public: std::string KerberosRealmName; /* required element of type sai:KerberosRealmName */ std::vectorKerberosSpn; /* sequence of 1 to 4 elements */ unsigned int KerberosKeyVersion; /* required element of type xsd:unsignedInt */ enum sai__KerberosEncryptionType KerberosEncryption; /* required element of type sai:KerberosEncryptionType */ xsd__base64Binary KerberosMasterKey; /* required element of type xsd:base64Binary */ unsigned int KerberosMaximumClockTolerance; /* required element of type xsd:unsignedInt */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 56; } /* = unique id SOAP_TYPE_sai__KerberosOptionsType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__KerberosOptionsType() : soap(NULL) { } virtual ~sai__KerberosOptionsType() { } }; #endif #ifndef SOAP_TYPE_sai__TlsOptionsType #define SOAP_TYPE_sai__TlsOptionsType (57) /* sai:TlsOptionsType */ class SOAP_CMAC sai__TlsOptionsType { public: enum sai__InterfaceType Interface; /* required element of type sai:InterfaceType */ enum sai__TlsAthenticationType TlsAuthentication; /* required element of type sai:TlsAthenticationType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 57; } /* = unique id SOAP_TYPE_sai__TlsOptionsType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__TlsOptionsType() : soap(NULL) { } virtual ~sai__TlsOptionsType() { } }; #endif #ifndef SOAP_TYPE_sai__CertificateType #define SOAP_TYPE_sai__CertificateType (58) /* sai:CertificateType */ class SOAP_CMAC sai__CertificateType { public: xsd__base64Binary X509cert; /* required element of type xsd:base64Binary */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 58; } /* = unique id SOAP_TYPE_sai__CertificateType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__CertificateType() : soap(NULL) { } virtual ~sai__CertificateType() { } }; #endif #ifndef SOAP_TYPE_sai__CrlType #define SOAP_TYPE_sai__CrlType (59) /* sai:CrlType */ class SOAP_CMAC sai__CrlType { public: std::string CrlUrl; /* required element of type xsd:string */ std::vectorSerialNumber; /* required element of type xsd:base64Binary */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 59; } /* = unique id SOAP_TYPE_sai__CrlType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__CrlType() : soap(NULL) { } virtual ~sai__CrlType() { } }; #endif #ifndef SOAP_TYPE_sai__PkiCapsType #define SOAP_TYPE_sai__PkiCapsType (60) /* sai:PkiCapsType */ class SOAP_CMAC sai__PkiCapsType { public: unsigned int CrlStoreSize; /* required element of type xsd:unsignedInt */ unsigned int RootCertMaxSize; /* required element of type xsd:unsignedInt */ unsigned int RootCertMaxInstances; /* required element of type xsd:unsignedInt */ unsigned int FqdnSuffixMaxEntries; /* required element of type xsd:unsignedInt */ unsigned int FqdnSuffixMaxEntryLength; /* required element of type xsd:unsignedInt */ unsigned int CertChainMaxSize; /* required element of type xsd:unsignedInt */ std::vectorSupportedKeyLengths; /* required element of type xsd:unsignedInt */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 60; } /* = unique id SOAP_TYPE_sai__PkiCapsType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__PkiCapsType() : soap(NULL) { } virtual ~sai__PkiCapsType() { } }; #endif #ifndef SOAP_TYPE_sai__CertHashEntryType #define SOAP_TYPE_sai__CertHashEntryType (61) /* sai:CertHashEntryType */ class SOAP_CMAC sai__CertHashEntryType { public: bool Default; /* required element of type xsd:boolean */ bool Active; /* required element of type xsd:boolean */ enum sai__HashTypeType HashType; /* required element of type sai:HashTypeType */ xsd__base64Binary Hash; /* required element of type xsd:base64Binary */ std::string FriendlyName; /* required element of type sai:FriendlyNameType */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 61; } /* = unique id SOAP_TYPE_sai__CertHashEntryType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__CertHashEntryType() : soap(NULL) { } virtual ~sai__CertHashEntryType() { } }; #endif #ifndef SOAP_TYPE_sai__ProvisioningAuditRecordType #define SOAP_TYPE_sai__ProvisioningAuditRecordType (62) /* sai:ProvisioningAuditRecordType */ class SOAP_CMAC sai__ProvisioningAuditRecordType { public: enum sai__ProvisioningTLSModeType ProvisioningTLSMode; /* required element of type sai:ProvisioningTLSModeType */ bool SecureDNS; /* required element of type xsd:boolean */ bool HostInitiated; /* required element of type xsd:boolean */ std::string *ProvServerFQDN; /* optional element of type xsd:string */ enum sai__HashTypeType SelectedHashType; /* required element of type sai:HashTypeType */ xsd__base64Binary SelectedHashData; /* required element of type xsd:base64Binary */ xsd__base64Binary *CaCertSerials; /* optional element of type xsd:base64Binary */ bool *AdditionalCaSerialNums; /* optional element of type xsd:boolean */ bool IsOemDefault; /* required element of type xsd:boolean */ bool IsTimeValid; /* required element of type xsd:boolean */ unsigned int ProvServerIP; /* required element of type sai:IPv4AddressType */ unsigned int TlsStartTime; /* required element of type xsd:unsignedInt */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 62; } /* = unique id SOAP_TYPE_sai__ProvisioningAuditRecordType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__ProvisioningAuditRecordType() : ProvServerFQDN(NULL), CaCertSerials(NULL), AdditionalCaSerialNums(NULL), soap(NULL) { } virtual ~sai__ProvisioningAuditRecordType() { } }; #endif #ifndef SOAP_TYPE_sai__EnvironmentDetectionHTTPSType #define SOAP_TYPE_sai__EnvironmentDetectionHTTPSType (63) /* sai:EnvironmentDetectionHTTPSType */ class SOAP_CMAC sai__EnvironmentDetectionHTTPSType { public: std::vectorvalues; /* sequence of 1 to 5 elements */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 63; } /* = unique id SOAP_TYPE_sai__EnvironmentDetectionHTTPSType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__EnvironmentDetectionHTTPSType() : soap(NULL) { } virtual ~sai__EnvironmentDetectionHTTPSType() { } }; #endif #ifndef SOAP_TYPE_sai__EnvironmentDetectionDomainType #define SOAP_TYPE_sai__EnvironmentDetectionDomainType (64) /* sai:EnvironmentDetectionDomainType */ class SOAP_CMAC sai__EnvironmentDetectionDomainType { public: std::vectorvalues; /* sequence of 1 to 5 elements */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 64; } /* = unique id SOAP_TYPE_sai__EnvironmentDetectionDomainType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__EnvironmentDetectionDomainType() : soap(NULL) { } virtual ~sai__EnvironmentDetectionDomainType() { } }; #endif #ifndef SOAP_TYPE__sai__union_EnvironmentDetectionType #define SOAP_TYPE__sai__union_EnvironmentDetectionType (153) /* xsd:choice */ union _sai__union_EnvironmentDetectionType { #define SOAP_UNION__sai__union_EnvironmentDetectionType_LocalDomains (1) sai__EnvironmentDetectionDomainType *LocalDomains; #define SOAP_UNION__sai__union_EnvironmentDetectionType_RemoteAddressHTTPS (2) sai__EnvironmentDetectionHTTPSType *RemoteAddressHTTPS; }; #endif #ifndef SOAP_TYPE_sai__EnvironmentDetectionType #define SOAP_TYPE_sai__EnvironmentDetectionType (65) /* sai:EnvironmentDetectionType */ class SOAP_CMAC sai__EnvironmentDetectionType { public: int __union_EnvironmentDetectionType; /* union discriminant (of union defined below) */ union _sai__union_EnvironmentDetectionType union_EnvironmentDetectionType; /* required element of type xsd:choice */ unsigned int *ExternalCircuitBreakerPolicy; /* optional element of type xsd:unsignedInt */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 65; } /* = unique id SOAP_TYPE_sai__EnvironmentDetectionType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__EnvironmentDetectionType() : ExternalCircuitBreakerPolicy(NULL), soap(NULL) { } virtual ~sai__EnvironmentDetectionType() { } }; #endif #ifndef SOAP_TYPE_sai__GlobalPowerPolicyType #define SOAP_TYPE_sai__GlobalPowerPolicyType (66) /* sai:GlobalPowerPolicyType */ class SOAP_CMAC sai__GlobalPowerPolicyType { public: unsigned int IdleWakeTimeout; /* required element of type xsd:unsignedInt */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 66; } /* = unique id SOAP_TYPE_sai__GlobalPowerPolicyType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); sai__GlobalPowerPolicyType() : soap(NULL) { } virtual ~sai__GlobalPowerPolicyType() { } }; #endif #ifndef SOAP_TYPE_cmn__URLType #define SOAP_TYPE_cmn__URLType (15) /* Primitive cmn:URLType schema type: */ class SOAP_CMAC cmn__URLType { public: std::string __item; char *__anyAttribute; /* optional attribute */ struct soap *soap; /* transient */ public: virtual int soap_type() const { return 15; } /* = unique id SOAP_TYPE_cmn__URLType */ virtual void soap_default(struct soap*); virtual void soap_serialize(struct soap*) const; virtual int soap_put(struct soap*, const char*, const char*) const; virtual int soap_out(struct soap*, const char*, int, const char*) const; virtual void *soap_get(struct soap*, const char*, const char*); virtual void *soap_in(struct soap*, const char*, const char*); cmn__URLType() : __anyAttribute(NULL), soap(NULL) { } virtual ~cmn__URLType() { } }; #endif #ifndef SOAP_TYPE___emc__SoapAlert #define SOAP_TYPE___emc__SoapAlert (158) /* Operation wrapper: */ struct __emc__SoapAlert { public: _emc__SoapAlertRequest *emc__SoapAlertRequest; /* optional element of type emc:SoapAlertRequest */ }; #endif #ifndef SOAP_TYPE_SOAP_ENV__Header #define SOAP_TYPE_SOAP_ENV__Header (161) /* SOAP Header: */ struct SOAP_ENV__Header { public: void *dummy; /* transient */ }; #endif #ifndef SOAP_TYPE_SOAP_ENV__Code #define SOAP_TYPE_SOAP_ENV__Code (162) /* SOAP Fault Code: */ struct SOAP_ENV__Code { public: char *SOAP_ENV__Value; /* optional element of type xsd:QName */ struct SOAP_ENV__Code *SOAP_ENV__Subcode; /* optional element of type SOAP-ENV:Code */ }; #endif #ifndef SOAP_TYPE_SOAP_ENV__Detail #define SOAP_TYPE_SOAP_ENV__Detail (164) /* SOAP-ENV:Detail */ struct SOAP_ENV__Detail { public: int __type; /* any type of element (defined below) */ void *fault; /* transient */ char *__any; }; #endif #ifndef SOAP_TYPE_SOAP_ENV__Reason #define SOAP_TYPE_SOAP_ENV__Reason (165) /* SOAP-ENV:Reason */ struct SOAP_ENV__Reason { public: char *SOAP_ENV__Text; /* optional element of type xsd:string */ }; #endif #ifndef SOAP_TYPE_SOAP_ENV__Fault #define SOAP_TYPE_SOAP_ENV__Fault (166) /* SOAP Fault: */ struct SOAP_ENV__Fault { public: char *faultcode; /* optional element of type xsd:QName */ char *faultstring; /* optional element of type xsd:string */ char *faultactor; /* optional element of type xsd:string */ struct SOAP_ENV__Detail *detail; /* optional element of type SOAP-ENV:Detail */ struct SOAP_ENV__Code *SOAP_ENV__Code; /* optional element of type SOAP-ENV:Code */ struct SOAP_ENV__Reason *SOAP_ENV__Reason; /* optional element of type SOAP-ENV:Reason */ char *SOAP_ENV__Node; /* optional element of type xsd:string */ char *SOAP_ENV__Role; /* optional element of type xsd:string */ struct SOAP_ENV__Detail *SOAP_ENV__Detail; /* optional element of type SOAP-ENV:Detail */ }; #endif /******************************************************************************\ * * * Types with Custom Serializers * * * \******************************************************************************/ /******************************************************************************\ * * * Typedefs * * * \******************************************************************************/ #ifndef SOAP_TYPE__XML #define SOAP_TYPE__XML (4) typedef char *_XML; #endif #ifndef SOAP_TYPE__QName #define SOAP_TYPE__QName (5) typedef char *_QName; #endif #ifndef SOAP_TYPE_xsd__anyURI #define SOAP_TYPE_xsd__anyURI (8) typedef std::string xsd__anyURI; #endif #ifndef SOAP_TYPE_cmn__PT_USCORESTATUS #define SOAP_TYPE_cmn__PT_USCORESTATUS (67) typedef unsigned int cmn__PT_USCORESTATUS; #endif #ifndef SOAP_TYPE_cmn__HostNameType #define SOAP_TYPE_cmn__HostNameType (68) typedef std::string cmn__HostNameType; #endif #ifndef SOAP_TYPE_cmn__IPv4AddressType #define SOAP_TYPE_cmn__IPv4AddressType (69) typedef unsigned int cmn__IPv4AddressType; #endif #ifndef SOAP_TYPE_cmn__IPv4AddressStringType #define SOAP_TYPE_cmn__IPv4AddressStringType (70) typedef std::string cmn__IPv4AddressStringType; #endif #ifndef SOAP_TYPE_cmn__IPv6AddressStringType #define SOAP_TYPE_cmn__IPv6AddressStringType (71) typedef std::string cmn__IPv6AddressStringType; #endif #ifndef SOAP_TYPE_cmn__InterfaceHandleType #define SOAP_TYPE_cmn__InterfaceHandleType (72) typedef unsigned int cmn__InterfaceHandleType; #endif #ifndef SOAP_TYPE_cmn__GuidBuf #define SOAP_TYPE_cmn__GuidBuf (73) typedef xsd__base64Binary cmn__GuidBuf; #endif #ifndef SOAP_TYPE_emi__TimeType #define SOAP_TYPE_emi__TimeType (74) typedef unsigned int emi__TimeType; #endif #ifndef SOAP_TYPE_emi__AlertSubscriptionPolicyIDType #define SOAP_TYPE_emi__AlertSubscriptionPolicyIDType (75) typedef unsigned char emi__AlertSubscriptionPolicyIDType; #endif #ifndef SOAP_TYPE_emi__AlertSubscriptionHandleType #define SOAP_TYPE_emi__AlertSubscriptionHandleType (76) typedef unsigned int emi__AlertSubscriptionHandleType; #endif #ifndef SOAP_TYPE_emi__EventFilterHandleType #define SOAP_TYPE_emi__EventFilterHandleType (77) typedef unsigned int emi__EventFilterHandleType; #endif #ifndef SOAP_TYPE_emi__PT_USCORESTATUS #define SOAP_TYPE_emi__PT_USCORESTATUS (79) typedef unsigned int emi__PT_USCORESTATUS; #endif #ifndef SOAP_TYPE_emi__IPv4AddressType #define SOAP_TYPE_emi__IPv4AddressType (80) typedef unsigned int emi__IPv4AddressType; #endif #ifndef SOAP_TYPE_emi__SensorHandleType #define SOAP_TYPE_emi__SensorHandleType (81) typedef unsigned int emi__SensorHandleType; #endif #ifndef SOAP_TYPE_emi__CommunityStringType #define SOAP_TYPE_emi__CommunityStringType (83) typedef std::string emi__CommunityStringType; #endif #ifndef SOAP_TYPE_sai__PT_USCORESTATUS #define SOAP_TYPE_sai__PT_USCORESTATUS (84) typedef unsigned int sai__PT_USCORESTATUS; #endif #ifndef SOAP_TYPE_sai__UserAclEntryHandleType #define SOAP_TYPE_sai__UserAclEntryHandleType (86) typedef unsigned int sai__UserAclEntryHandleType; #endif #ifndef SOAP_TYPE_sai__AclStringType #define SOAP_TYPE_sai__AclStringType (87) typedef std::string sai__AclStringType; #endif #ifndef SOAP_TYPE_sai__AclPasswordStringType #define SOAP_TYPE_sai__AclPasswordStringType (88) typedef std::string sai__AclPasswordStringType; #endif #ifndef SOAP_TYPE_sai__IPv4AddressType #define SOAP_TYPE_sai__IPv4AddressType (89) typedef unsigned int sai__IPv4AddressType; #endif #ifndef SOAP_TYPE_sai__CertificateHandleType #define SOAP_TYPE_sai__CertificateHandleType (101) typedef unsigned int sai__CertificateHandleType; #endif #ifndef SOAP_TYPE_sai__MEBxPasswordType #define SOAP_TYPE_sai__MEBxPasswordType (103) typedef std::string sai__MEBxPasswordType; #endif #ifndef SOAP_TYPE_sai__ProvisioningOTPType #define SOAP_TYPE_sai__ProvisioningOTPType (104) typedef xsd__base64Binary sai__ProvisioningOTPType; #endif #ifndef SOAP_TYPE_sai__FriendlyNameType #define SOAP_TYPE_sai__FriendlyNameType (105) typedef std::string sai__FriendlyNameType; #endif #ifndef SOAP_TYPE__sai__SpnString #define SOAP_TYPE__sai__SpnString (108) typedef std::string _sai__SpnString; #endif #ifndef SOAP_TYPE__sai__KerberosRealmName #define SOAP_TYPE__sai__KerberosRealmName (109) typedef std::string _sai__KerberosRealmName; #endif /******************************************************************************\ * * * Typedef Synonyms * * * \******************************************************************************/ typedef enum emi__EventSeverityType emi__EventSeverityType; typedef enum emi__AlertAuthOptionsType emi__AlertAuthOptionsType; typedef enum sai__UserAclRealmType sai__UserAclRealmType; typedef enum sai__RsaKeyEncodingType sai__RsaKeyEncodingType; typedef enum sai__RsaCertificateEncodingType sai__RsaCertificateEncodingType; typedef enum sai__RngKeyEncodingType sai__RngKeyEncodingType; typedef enum sai__ProvisioningModeType sai__ProvisioningModeType; typedef enum sai__AccessPermissionType sai__AccessPermissionType; typedef enum sai__KerberosSpnProtocolType sai__KerberosSpnProtocolType; typedef enum sai__KerberosEncryptionType sai__KerberosEncryptionType; typedef enum sai__PowerStateType sai__PowerStateType; typedef enum sai__EnabledInterfacesType sai__EnabledInterfacesType; typedef enum sai__InterfaceType sai__InterfaceType; typedef enum sai__TlsAthenticationType sai__TlsAthenticationType; typedef enum sai__ProvisioningTLSModeType sai__ProvisioningTLSModeType; typedef enum sai__HashTypeType sai__HashTypeType; typedef enum sai__UNOptionsType sai__UNOptionsType; /******************************************************************************\ * * * Externals * * * \******************************************************************************/ /******************************************************************************\ * * * Service Operations * * * \******************************************************************************/ SOAP_FMAC5 int SOAP_FMAC6 __emc__SoapAlert(struct soap*, _emc__SoapAlertRequest *emc__SoapAlertRequest, _emc__SoapAlertResponse *emc__SoapAlertResponse); /******************************************************************************\ * * * Skeletons * * * \******************************************************************************/ SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap*); SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap*); SOAP_FMAC5 int SOAP_FMAC6 soap_serve___emc__SoapAlert(struct soap*); #endif /* End of soapStub.h */ UNS-3.2.0.24/SoapServer/WSDLs/0000755012402100775320000000000010746077320016536 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/SoapServer/WSDLs/EventManagerClientInterface.wsdl0000644012402100775320000000726110746077317025001 0ustar00gkbld_amtccigk00000000000000 UNS-3.2.0.24/SoapServer/WSDLs/CertStore.xsd0000644012402100775320000000166010746077317021201 0ustar00gkbld_amtccigk00000000000000 UNS-3.2.0.24/SoapServer/WSDLs/Common.xsd0000644012402100775320000000600110746077317020511 0ustar00gkbld_amtccigk00000000000000 String of maximum of 32 characters (not including null) UNS-3.2.0.24/SoapServer/WSDLs/EventManagerInterface.xsd0000644012402100775320000003055510746077317023471 0ustar00gkbld_amtccigk00000000000000 "0 = Unspecified" "1 = Monitor" "2 = Information" "4 = OK (return to OK condition)" "8 = Non-critical condition" "16 = Critical condition" "32 = Non-recoverable condition" UNS-3.2.0.24/SoapServer/WSDLs/gNameSpaces.dat0000644012402100775320000000406410746077317021430 0ustar00gkbld_amtccigk00000000000000wsdl="http://schemas.xmlsoap.org/wsdl/" xs="http://www.w3.org/2001/XMLSchema" soap="http://schemas.xmlsoap.org/wsdl/soap/" wsman="http://schemas.xmlsoap.org/ws/2005/02/management" wscat="http://schemas.xmlsoap.org/ws/2005/02/wsmancat" wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" cimns="http://schemas.dmtf.org/wsman/2005/02/cimv2.9" apr="http://schemas.intel.com/2004/12/management/PC/AgentWatchdogRemote" apl="http://schemas.intel.com/2004/12/management/PC/AgentWatchdogLocal" cmn="http://schemas.intel.com/platform/client/Common/2006/01" cstr="http://schemas.intel.com/platform/client/CertStore/2006/01" cb="http://schemas.intel.com/2004/12/management/PC/CircuitBreaker" fwu="http://schemas.intel.com/platform/client/FirmwareUpdate/2004/01" wcxs="http://schemas.intel.com/platform/client/WirelessConfiguration/2006/01" sai="http://schemas.intel.com/platform/client/SecurityAdministration/2004/01" rci="http://schemas.intel.com/platform/client/RemoteControl/2004/01" hwa="http://schemas.intel.com/platform/client/HardwareAsset/2004/01" idr="http://schemas.intel.com/platform/client/Redirection/2004/01" inf="http://schemas.intel.com/platform/client/GeneralInfo/2004/01" tim="http://schemas.intel.com/platform/client/NetworkTime/2004/01" net="http://schemas.intel.com/platform/client/NetworkAdministration/2004/01" xcfg="http://schemas.intel.com/platform/client/XProfiles/2006/01" eit="http://schemas.intel.com/platform/client/EIT/2004/01" emi="http://schemas.intel.com/platform/client/EventManager/2004/01" emc="http://schemas.intel.com/platform/client/EventManagerClient/2006/01" uni="http://schemas.intel.com/platform/client/UserNotification/2006/01" eac="http://schemas.intel.com/platform/client/EAC/2006/01" eaca="http://schemas.intel.com/platform/client/EACAdmin/2006/01" str="http://schemas.intel.com/platform/client/Storage/2004/01" stra="http://schemas.intel.com/platform/client/StorageAdministration/2004/01" UNS-3.2.0.24/SoapServer/WSDLs/SecurityAdministrationInterface.xsd0000644012402100775320000005453610746077317025637 0ustar00gkbld_amtccigk00000000000000 InvalidRealm = 0 Reserved = 1 RedirectionRealm = 2 PTAdministrationRealm = 3 HardwareAssetRealm = 4 RemoteControlRealm = 5 StorageRealm = 6 EventManagerRealm = 7 StorageAdminRealm = 8 AgentPresenceLocalRealm = 9 AgentPresenceRemoteRealm = 10 CircuitBreakerRealm = 11 NetworkTimeRealm = 12 GeneralInfoRealm = 13 FirmwareUpdateRealm = 14 LocalUN = 16 EndpointAccessControlRealm = 17 EndpointAccessControlAdminRealm = 18 RsaKeyEncodingTypeInvalid = 30 RsaKeyEncodingTypeSshv2Mpint = 31 RsaCertificateEncodingTypeInvalid = 10 RsaCertificateEncodingTypeX509 = 11 RngKeyEncodingTypeInvalid = 20 RngKeyEncodingTypeBare = 21 "0 = ProvisioningModeCurrent" "1 = ProvisioningModeEnterprise" "2 = ProvisioningModeSmallBusiness" "0 = Not Ready" "1 = PSK" "2 = PKI" "1 = SHA-1-160" UNS-3.2.0.24/SoapServer/WSDLs/WirelessConfigurationInterface.xsd0000644012402100775320000002024610746077317025436 0ustar00gkbld_amtccigk00000000000000 64 bit Key 128 bit Key 256 bit Key 5 chars Passphrase 13 chars Passphrase 8-63 chars Passphrase UNS-3.2.0.24/SoapServer/WSDLs/WirelessProfilesInterface.xsd0000644012402100775320000001667210746077317024422 0ustar00gkbld_amtccigk00000000000000 64 bit Key 128 bit Key 256 bit Key 5 chars Passphrase 13 chars Passphrase 8-63 chars Passphrase UNS-3.2.0.24/SoapServer/WSDLs/wsman.wsdl0000644012402100775320000005020310746077317020564 0ustar00gkbld_amtccigk00000000000000 Simple sample to demonstrate use of SOAP Headers http://172.30.173.30/wsman wsman:acme.com/2005/06/resource/example InstanceXXX http://172.30.173.30/wsman wsman:acme.com/2005/06/resource/example http://172.30.173.30/wsman wsman:acme.com/2005/06/resource/eventlog UNS-3.2.0.24/SoapServer/WSDLs/wsman.xsd0000644012402100775320000004315110746077317020415 0ustar00gkbld_amtccigk00000000000000 UNS-3.2.0.24/SoapServer/WSDLs/wsmancat.xsd0000644012402100775320000001254010746077317021103 0ustar00gkbld_amtccigk00000000000000 UNS-3.2.0.24/SoapServer/WSDLs/XProfile.xsd0000644012402100775320000001262410746077317021021 0ustar00gkbld_amtccigk00000000000000 NameMatch = Certificate name must match exactly, DomainSuffix = Domain name must end in specified name UNS-3.2.0.24/SoapServer/Makefile.am0000644012402100775320000000303010746077317017640 0ustar00gkbld_amtccigk00000000000000GSOAP_IMPORTS=gSOAP/import GSOAP_GCODE=gSoapGeneratedCode WSDL_INP=EventManagerClientInterface.wsdl WSDL_OUT=SoapInterfaceTmp.h WSDLS_FILES=WSDLs/EventManagerClientInterface.wsdl \ WSDLs/CertStore.xsd \ WSDLs/Common.xsd \ WSDLs/EventManagerInterface.xsd \ WSDLs/gNameSpaces.dat \ WSDLs/SecurityAdministrationInterface.xsd \ WSDLs/WirelessConfigurationInterface.xsd \ WSDLs/WirelessProfilesInterface.xsd \ WSDLs/wsmancat.xsd \ WSDLs/wsman.wsdl \ WSDLs/wsman.xsd \ WSDLs/XProfile.xsd SOAPIMPORT_FILES=$(GSOAP_IMPORTS)/c14n.h \ $(GSOAP_IMPORTS)/dom.h \ $(GSOAP_IMPORTS)/ds2.h \ $(GSOAP_IMPORTS)/ds.h \ $(GSOAP_IMPORTS)/README.txt \ $(GSOAP_IMPORTS)/soap12.h \ $(GSOAP_IMPORTS)/stldeque.h \ $(GSOAP_IMPORTS)/stl.h \ $(GSOAP_IMPORTS)/stllist.h \ $(GSOAP_IMPORTS)/stlset.h \ $(GSOAP_IMPORTS)/stlvector.h \ $(GSOAP_IMPORTS)/wsa3.h \ $(GSOAP_IMPORTS)/wsa4.h \ $(GSOAP_IMPORTS)/wsa5.h \ $(GSOAP_IMPORTS)/wsa.h \ $(GSOAP_IMPORTS)/wsp.h \ $(GSOAP_IMPORTS)/wsrp.h \ $(GSOAP_IMPORTS)/wsse2.h \ $(GSOAP_IMPORTS)/wsse.h \ $(GSOAP_IMPORTS)/wsu.h \ $(GSOAP_IMPORTS)/xlink.h \ $(GSOAP_IMPORTS)/xmime.h \ $(GSOAP_IMPORTS)/xml.h \ $(GSOAP_IMPORTS)/xmlmime.h \ $(GSOAP_IMPORTS)/xop.h dist_noinst_DATA=$(WSDLS_FILES) \ $(SOAPIMPORT_FILES) wsdls: rm -d -f -r $(GSOAP_GCODE) mkdir $(GSOAP_GCODE) cd WSDLs && wsdl2h -y -t gNameSpaces.dat -o ../$(GSOAP_GCODE)/$(WSDL_OUT) $(WSDL_INP) cd WSDLs && soapcpp2 -x -L -S -I ../$(GSOAP_IMPORTS) -d ../$(GSOAP_GCODE) ../$(GSOAP_GCODE)/$(WSDL_OUT) cp $(GSOAP_GCODE)/EventManagerClientSoapBinding.nsmap $(GSOAP_GCODE)/SoapBinding.nsmap UNS-3.2.0.24/SoapServer/Makefile.in0000644012402100775320000002470410746077317017664 0ustar00gkbld_amtccigk00000000000000# 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 = SoapServer DIST_COMMON = $(dist_noinst_DATA) $(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 = DATA = $(dist_noinst_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ 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@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURL_CFLAGS = @CURL_CFLAGS@ CURL_CONFIG = @CURL_CONFIG@ CURL_LIBS = @CURL_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DAEMON_FALSE = @DAEMON_FALSE@ DAEMON_TRUE = @DAEMON_TRUE@ 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@ GSOAP_CFLAGS = @GSOAP_CFLAGS@ GSOAP_LIBS = @GSOAP_LIBS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ OPENSSL_LIBS = @OPENSSL_LIBS@ OPENWSMAN_CFLAGS = @OPENWSMAN_CFLAGS@ OPENWSMAN_LIBS = @OPENWSMAN_LIBS@ 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@ PKG_CONFIG = @PKG_CONFIG@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ 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@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ GSOAP_IMPORTS = gSOAP/import GSOAP_GCODE = gSoapGeneratedCode WSDL_INP = EventManagerClientInterface.wsdl WSDL_OUT = SoapInterfaceTmp.h WSDLS_FILES = WSDLs/EventManagerClientInterface.wsdl \ WSDLs/CertStore.xsd \ WSDLs/Common.xsd \ WSDLs/EventManagerInterface.xsd \ WSDLs/gNameSpaces.dat \ WSDLs/SecurityAdministrationInterface.xsd \ WSDLs/WirelessConfigurationInterface.xsd \ WSDLs/WirelessProfilesInterface.xsd \ WSDLs/wsmancat.xsd \ WSDLs/wsman.wsdl \ WSDLs/wsman.xsd \ WSDLs/XProfile.xsd SOAPIMPORT_FILES = $(GSOAP_IMPORTS)/c14n.h \ $(GSOAP_IMPORTS)/dom.h \ $(GSOAP_IMPORTS)/ds2.h \ $(GSOAP_IMPORTS)/ds.h \ $(GSOAP_IMPORTS)/README.txt \ $(GSOAP_IMPORTS)/soap12.h \ $(GSOAP_IMPORTS)/stldeque.h \ $(GSOAP_IMPORTS)/stl.h \ $(GSOAP_IMPORTS)/stllist.h \ $(GSOAP_IMPORTS)/stlset.h \ $(GSOAP_IMPORTS)/stlvector.h \ $(GSOAP_IMPORTS)/wsa3.h \ $(GSOAP_IMPORTS)/wsa4.h \ $(GSOAP_IMPORTS)/wsa5.h \ $(GSOAP_IMPORTS)/wsa.h \ $(GSOAP_IMPORTS)/wsp.h \ $(GSOAP_IMPORTS)/wsrp.h \ $(GSOAP_IMPORTS)/wsse2.h \ $(GSOAP_IMPORTS)/wsse.h \ $(GSOAP_IMPORTS)/wsu.h \ $(GSOAP_IMPORTS)/xlink.h \ $(GSOAP_IMPORTS)/xmime.h \ $(GSOAP_IMPORTS)/xml.h \ $(GSOAP_IMPORTS)/xmlmime.h \ $(GSOAP_IMPORTS)/xop.h dist_noinst_DATA = $(WSDLS_FILES) \ $(SOAPIMPORT_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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) --foreign SoapServer/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign SoapServer/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(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) $(mkdir_p) $(distdir)/$(GSOAP_IMPORTS) $(distdir)/WSDLs @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 $(DATA) 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 wsdls: rm -d -f -r $(GSOAP_GCODE) mkdir $(GSOAP_GCODE) cd WSDLs && wsdl2h -y -t gNameSpaces.dat -o ../$(GSOAP_GCODE)/$(WSDL_OUT) $(WSDL_INP) cd WSDLs && soapcpp2 -x -L -S -I ../$(GSOAP_IMPORTS) -d ../$(GSOAP_GCODE) ../$(GSOAP_GCODE)/$(WSDL_OUT) cp $(GSOAP_GCODE)/EventManagerClientSoapBinding.nsmap $(GSOAP_GCODE)/SoapBinding.nsmap # 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: UNS-3.2.0.24/SoapServer/SoapBinding.cpp0000644012402100775320000000421110746077320020501 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "SoapBinding.nsmap" UNS-3.2.0.24/SoapServer/SoapBinding.h0000644012402100775320000000437210746077320020156 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _SOAP_BINDING_H #define _SOAP_BINDING_H #include "soapH.h" extern SOAP_NMAC struct Namespace namespaces[]; #endif //_SOAP_BINDING_H UNS-3.2.0.24/SyncLib/0000755012402100775320000000000010746102025015043 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/SyncLib/Include/0000755012402100775320000000000010746077320016437 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/SyncLib/Include/Event.h0000644012402100775320000000536710746077320017704 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ ////////////////////////////////////////////////////////////////////////// // Event.h // // This file contains the definition of the Event class (for thread // synchronization) ////////////////////////////////////////////////////////////////////////// #ifndef _LAD_EVENT_H #define _LAD_EVENT_H #ifndef WAIT_INFINITE #define WAIT_INFINITE 0xffffffff #endif class OSEvent; class Event { public: Event (bool manual = true); Event (const Event& rhs); ~Event (); void set (); void reset (); void pulse (); bool wait (unsigned long msecs = WAIT_INFINITE); Event& operator= (const Event& rhs); private: OSEvent* _osEvent; }; #endif //_LAD_EVENT_H UNS-3.2.0.24/SyncLib/Include/Lock.h0000644012402100775320000000620310746077320017501 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ ////////////////////////////////////////////////////////////////////////// // Lock.h // // This file contains the definition and implementation of the Lock class // and the TryLock class ////////////////////////////////////////////////////////////////////////// #ifndef _LAD_LOCK_H #define _LAD_LOCK_H #include "RWLock.h" #ifndef NULL #define NULL 0 #endif class Lock { public: Lock(Semaphore &sem) : _sem(&sem), _rw_lock(NULL) { _sem->acquire(); } Lock(RWLock &rw_lock, RWLock::RWMode mode = RWLock::READ_ONLY) : _sem(NULL), _rw_lock(&rw_lock) { _rw_lock->acquire(mode); } ~Lock() { if (_sem) { _sem->release(); } if (_rw_lock) { _rw_lock->release(); } } private: Semaphore *_sem; RWLock *_rw_lock; }; class TryLock { public: TryLock(Semaphore &sem, bool &is_locked) : _sem(&sem) { _locked = _sem->acquireTry(); is_locked = _locked; } ~TryLock() { if (_locked) { _sem->release(); } } private: bool _locked; Semaphore *_sem; }; #endif //_LAD_LOCK_H UNS-3.2.0.24/SyncLib/Include/RWLock.h0000644012402100775320000000477310746077320017764 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _RW_LOCK_H_ #define _RW_LOCK_H_ #include "Semaphore.h" class RWLock { public: enum RWMode { READ_ONLY, READ_WRITE }; RWLock(); ~RWLock() {} void acquire(const RWMode mode_p = READ_ONLY); void release(); void switch2RO(); private: Semaphore _readSem; Semaphore _writeSem; Semaphore _countSem; unsigned int _counter; }; #endif //_RW_LOCK_H_ UNS-3.2.0.24/SyncLib/Include/Semaphore.h0000644012402100775320000000550010746077320020533 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ ////////////////////////////////////////////////////////////////////////// // Semaphore.h // // This file contains the definition of the Semaphore class ////////////////////////////////////////////////////////////////////////// #ifndef _LAD_SEMAPHORE_H #define _LAD_SEMAPHORE_H class OSSemaphore; class Semaphore { public: Semaphore(int maxval = 1); Semaphore (const Semaphore& rhs); ~Semaphore(); void acquire(); // blocks until value !=0, and decrements the value void release(); // increments the value by 1 bool acquireTry(); // try to acquire the semaphore: return 'true' if succeded Semaphore& operator= (const Semaphore& rhs); private: OSSemaphore* _osSemaphore; }; #endif //_LAD_SEMAPHORE_H UNS-3.2.0.24/SyncLib/Include/SPtr.h0000644012402100775320000001323410746077320017503 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ ////////////////////////////////////////////////////////////////////////// // SPtr.h // // This is a smart pointer class. It receives an initialized object in // the constructor, and maintains a reference count to this object. It // deletes the object only when the reference count reaches 0. // ////////////////////////////////////////////////////////////////////////// #ifndef _SPTR_H_ #define _SPTR_H_ #include #include "Semaphore.h" template class SPtr { public: // constructor explicit SPtr (T* ptr_p = 0) : _ptr(ptr_p), _pref_count (new int(1)), _psem(new Semaphore(1)) {} // copy constructor template SPtr (const SPtr& other_sptr_p) { other_sptr_p.getSem()->acquire(); _ptr = other_sptr_p.get(); _pref_count = other_sptr_p.getRefcnt(); _psem = other_sptr_p.getSem(); ++(*_pref_count); _psem->release(); } SPtr (const SPtr& other_sptr_p) { other_sptr_p.getSem()->acquire(); _ptr = other_sptr_p.get(); _pref_count = other_sptr_p.getRefcnt(); _psem = other_sptr_p.getSem(); ++(*_pref_count); _psem->release(); } // destructor ~SPtr () { _psem->acquire(); if (--(*_pref_count) == 0) { // delete pointer only on last destruction delete _pref_count; delete _psem; if (_ptr) { delete _ptr; } _ptr = 0; } else { _psem->release(); } } // operator= // if 'this' already points to an object, unreference it template SPtr & operator= (const SPtr& other_sptr_p) { if ((void*)&other_sptr_p == this) { return *this; } _psem->acquire(); if (--(*_pref_count) == 0) { delete _pref_count; delete _psem; if (_ptr) { delete _ptr; } } else { _psem->release(); } other_sptr_p.getSem()->acquire(); _ptr = (T *) other_sptr_p.get(); _pref_count = other_sptr_p.getRefcnt(); _psem = other_sptr_p.getSem(); ++(*_pref_count); _psem->release(); return *this; } SPtr & operator= (const SPtr& other_sptr_p) { if (&other_sptr_p == this) { return *this; } _psem->acquire(); if (--(*_pref_count) == 0) { delete _pref_count; delete _psem; if (_ptr) { delete _ptr; } } else { _psem->release(); } other_sptr_p.getSem()->acquire(); _ptr = other_sptr_p.get(); _pref_count = other_sptr_p.getRefcnt(); _psem = other_sptr_p.getSem(); ++(*_pref_count); _psem->release(); return *this; } // operator* T& operator*() const { return *_ptr; } // operator-> T* operator->() const { return _ptr; } // get - return inner pointer T* get() const { return _ptr; } int *getRefcnt() const { return _pref_count; } Semaphore *getSem() const { return _psem; } private: // the pointer itself T* _ptr; // a pointer to the reference count int *_pref_count; Semaphore *_psem; } ; template inline bool operator==(const SPtr& x, const SPtr& y) { return(x.get() == y.get()); } template inline bool operator!=(const SPtr& x, const SPtr& y) { return(x.get() != y.get()); } #endif // _SPTR_H_ UNS-3.2.0.24/SyncLib/Include/Thread.h0000644012402100775320000001002010746077320020010 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ ////////////////////////////////////////////////////////////////////////// // Thread.h // // This file contains an OS independent interface for thread manipulation // A Thread class is defined for easy usage. // // Usage: // // Option 1: Construct an instance of the "Thread" class with an external // callback function. When calling the "start" method, the thread will be // started on the callback function // // Option 2: Subclass the "Thread" class and reimplement the virtual "run" // method. When calling the "start" method, the thread will be started // on the "run" function. // // Implementation overview: // Calling the "start" method will start the new thread, which will call the // "run" method. The default implementation of the "run" method will call // the Callback function given in the constructor. // ////////////////////////////////////////////////////////////////////////// #ifndef _LAD_THREAD_H #define _LAD_THREAD_H #ifndef WAIT_INFINITE #define WAIT_INFINITE 0xffffffff #endif #ifndef NULL #define NULL 0 #endif typedef void (*CallbackFunction) (void*); class OSThread; class Thread { friend class OSThread; public: Thread (CallbackFunction func = NULL, void* param = NULL); Thread (const Thread& rhs); virtual ~Thread(); // wait for the thread to complete; return true if the thread completed, // false on timeout bool wait(unsigned long msecs = WAIT_INFINITE) const; // start the new thread, return true on success bool start(); // true if the thread is in running state bool running() const; // measure the time (in msecs) from thread start-time long elapsedTime() const; // return ID for the current thread static unsigned long currentThread(); // put the current thread to sleep static void msleep (long msecs); Thread& operator= (const Thread& rhs); protected: virtual void run(); private: CallbackFunction _func; void* _param; long _startTime; OSThread* _osThread; }; #endif //_LAD_THREAD UNS-3.2.0.24/SyncLib/src/0000755012402100775320000000000010746077320015643 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/SyncLib/src/EventLinux.cpp0000644012402100775320000001263210746077320020454 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ ////////////////////////////////////////////////////////////////////////// // EventLinux.cpp // // This file contains the linux impelmentation of the Event class ////////////////////////////////////////////////////////////////////////// #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "Event.h" #include "SPtr.h" #include #include #include #include class OSEvent_s { public: OSEvent_s() { pthread_mutex_init(&_mut, NULL); pthread_cond_init(&_cond, NULL); _set = false; } ~OSEvent_s() { pthread_cond_destroy(&_cond); pthread_mutex_destroy(&_mut); } pthread_mutex_t _mut; pthread_cond_t _cond; bool _set; }; class OSEvent { public: OSEvent() { _ose = SPtr(new OSEvent_s); } ~OSEvent() { _ose = SPtr(NULL); } SPtr _ose; }; Event::Event(bool manual) { _osEvent = new OSEvent; /* _osEvent->ose->_set = false; pthread_mutex_init (&_osEvent->ose->_mut, NULL); pthread_cond_init (&_osEvent->ose->_cond, NULL); */ } Event::Event(const Event& rhs) { _osEvent = new OSEvent; _osEvent->_ose = rhs._osEvent->_ose; /* _osEvent->_mut = rhs._osEvent->_mut; _osEvent->_cond = rhs._osEvent->_cond; */ } Event::~Event() { /* pthread_cond_destroy (&_osEvent->ose->_cond); pthread_mutex_destroy (&_osEvent->ose->_mut); */ delete _osEvent; } bool Event::wait(unsigned long msecs_p) { int retcode = 0; if (msecs_p != WAIT_INFINITE) { timeval now; timespec timeout, time; gettimeofday(&now, NULL); time.tv_sec = msecs_p / 1000; time.tv_nsec = (msecs_p % 1000) * 1000000; timeout.tv_sec = now.tv_sec + time.tv_sec; timeout.tv_nsec = now.tv_usec + time.tv_nsec; pthread_mutex_lock (&_osEvent->_ose->_mut); //printf("@@@@ Event (%p) wait (cond %p), set: %d (to %d)\n", // this, &_osEvent->_ose->_cond, _osEvent->_ose->_set, msecs_p); if (!_osEvent->_ose->_set) { retcode = pthread_cond_timedwait(&_osEvent->_ose->_cond, &_osEvent->_ose->_mut, &timeout); //printf("@@@@ Event (%p) after wait, set: %d\n", this, _osEvent->_ose->_set); _osEvent->_ose->_set = false; } //printf("@@@@ Event (%p) after wait, set: %d\n", this, _osEvent->_ose->_set); pthread_mutex_unlock(&_osEvent->_ose->_mut); if (retcode == ETIMEDOUT) { return false; } else { return true; } } else { pthread_mutex_lock (&_osEvent->_ose->_mut); //printf("@@@@ Event (%p) wait (cond %p), set: %d\n", // this, &_osEvent->_ose->_cond, _osEvent->_ose->_set); if (!_osEvent->_ose->_set) { pthread_cond_wait (&_osEvent->_ose->_cond, &_osEvent->_ose->_mut); } _osEvent->_ose->_set = false; //printf("@@@@ Event (%p) after wait, set: %d\n", this, _osEvent->_ose->_set); pthread_mutex_unlock (&_osEvent->_ose->_mut); return true; } } void Event::set() { pthread_mutex_lock (&_osEvent->_ose->_mut); pthread_cond_signal (&_osEvent->_ose->_cond); //printf("@@@@ Event (%p) set (cond %p)\n", this, &_osEvent->_ose->_cond); _osEvent->_ose->_set = true; pthread_mutex_unlock (&_osEvent->_ose->_mut); } void Event::reset() { pthread_mutex_lock (&_osEvent->_ose->_mut); // only way to reset the condition is to destroy it and restart it pthread_cond_destroy (&_osEvent->_ose->_cond); pthread_cond_init (&_osEvent->_ose->_cond, NULL); _osEvent->_ose->_set = false; pthread_mutex_unlock (&_osEvent->_ose->_mut); } UNS-3.2.0.24/SyncLib/src/RWLock.cpp0000644012402100775320000000665210746077320017521 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "RWLock.h" RWLock::RWLock() : _counter(0) {} void RWLock::acquire(const RWMode mode_p) { if (mode_p == READ_ONLY) { //wait for writer's exit _writeSem.acquire(); //might be blocked only to decrement _counter and _readSem.release() in release() _countSem.acquire(); int tmp = ++_counter; _countSem.release(); if (tmp == 1) { //never blocks, no writers, first reader _readSem.acquire(); } _writeSem.release(); } else { _writeSem.acquire(); //wait for reader's exit _readSem.acquire(); } return; } //will do nothing if no read-write lock was acquired void RWLock::switch2RO() { _countSem.acquire(); if (!_counter) { _counter = 1; _writeSem.release(); } _countSem.release(); } //will do nothing if no lock was acquired void RWLock::release() { //might be blocked only to increment _counter in read-only mode _countSem.acquire(); if (_counter) { //read-only mode _counter--; if (!_counter) { //the last reader _readSem.release(); } } else { //read-write mode _readSem.release(); _writeSem.release(); } _countSem.release(); return; } UNS-3.2.0.24/SyncLib/src/SemaphoreLinux.cpp0000644012402100775320000000602610746077320021316 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ ////////////////////////////////////////////////////////////////////////// // SemaphoreLinux.cpp // // This file contains the linux ipmlementation of the Semaphore class ////////////////////////////////////////////////////////////////////////// #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "Semaphore.h" #include class OSSemaphore { public: sem_t _sem; }; Semaphore::Semaphore(int maxval) { _osSemaphore = new OSSemaphore; sem_init (&_osSemaphore->_sem, 0, maxval); } Semaphore::~Semaphore() { sem_destroy (&_osSemaphore->_sem); delete _osSemaphore; } void Semaphore::acquire() { // blocks until value !=0, and decrements the value sem_wait (&_osSemaphore->_sem); } void Semaphore::release() { // increments the value by 1 sem_post (&_osSemaphore->_sem); } bool Semaphore::acquireTry() { // try to acquire the semaphore: return 'true' if succeded return (sem_trywait (&_osSemaphore->_sem) == 0); } UNS-3.2.0.24/SyncLib/src/ThreadLinux.cpp0000644012402100775320000001300210746077320020572 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ ////////////////////////////////////////////////////////////////////////// // ThreadLinux.cpp // // This file contains the linux implementation of the Thread class /////////////////////////////////////////////////////////////////////////// #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "Thread.h" #include #include #include class OSThread { public: pthread_t _handle; pthread_cond_t _cond; pthread_mutex_t _mut; bool _running; static void * threadFunc(void * thread_p); }; #include void * OSThread::threadFunc(void *thread_p) { if(thread_p) { Thread *t = (Thread*)thread_p; // printf("@@@@ OSThread::threadFunc (%p)\n", t->_osThread); t->run(); // printf("@@@@ OSThread::threadFunc (%p) after run\n", t->_osThread); pthread_mutex_lock(&t->_osThread->_mut); t->_osThread->_running = false; // printf("@@@@ OSThread::threadFunc setting signal\n"); pthread_cond_signal(&t->_osThread->_cond); pthread_mutex_unlock(&t->_osThread->_mut); } return (void*)0; } Thread::Thread (CallbackFunction func_p, void* param_p) { _osThread = new OSThread; _osThread->_handle = 0; _osThread->_running = false; pthread_mutex_init (&_osThread->_mut, NULL); pthread_cond_init (&_osThread->_cond, NULL); _func = func_p; _param = param_p; } Thread::~Thread() { pthread_cond_destroy(&_osThread->_cond); pthread_mutex_destroy(&_osThread->_mut); delete _osThread; } unsigned long Thread::currentThread() { return pthread_self(); } bool Thread::wait(unsigned long msecs_p) const { int retcode = 0; if(msecs_p != WAIT_INFINITE) { timeval now; timespec timeout, time; gettimeofday(&now, NULL); time.tv_sec = msecs_p / 1000; time.tv_nsec = (msecs_p % 1000) * 1000000; timeout.tv_sec = now.tv_sec + time.tv_sec; timeout.tv_nsec = now.tv_usec + time.tv_nsec; pthread_mutex_lock(&_osThread->_mut); if (_osThread->_running) { retcode = pthread_cond_timedwait(&_osThread->_cond, &_osThread->_mut, &timeout); } pthread_mutex_unlock(&_osThread->_mut); if(retcode == ETIMEDOUT) { return false; } else { return true; } } else { pthread_mutex_lock(&_osThread->_mut); // printf("@@@@ Thread wait (%p), running: %d\n", _osThread, _osThread->_running); if (_osThread->_running) { pthread_cond_wait(&_osThread->_cond, &_osThread->_mut); _osThread->_running = false; } // printf("@@@@ Thread after wait\n"); pthread_mutex_unlock(&_osThread->_mut); return true; } } bool Thread::start() { if(running() == false) { timeval now; struct timezone tz; gettimeofday(&now, &tz); _startTime = now.tv_sec; _osThread->_running = true; if(pthread_create(&_osThread->_handle, NULL, OSThread::threadFunc, this) != 0) { return false; } } return true; } bool Thread::running() const { return (_osThread->_running); } void Thread::msleep(long msecs_p) { timespec time, rem; int counter = 5; // givin it 5 tries time.tv_sec = msecs_p/1000; time.tv_nsec = (msecs_p%1000) * 1000000; while (counter > 0) { // nanosleep might return due to a signal, in which case // rem will include the remaining time if(nanosleep(&time, &rem) == -1) { time.tv_sec = rem.tv_sec; time.tv_nsec = rem.tv_nsec; --counter; } else { break; } } } void Thread::run() { if (_func != NULL) { _func(_param); } } long Thread::elapsedTime() const { struct timezone tz; timeval now; gettimeofday(&now, &tz); return ((now.tv_sec - _startTime)*1000); } UNS-3.2.0.24/SyncLib/Makefile.am0000644012402100775320000000064210746077320017112 0ustar00gkbld_amtccigk00000000000000SRC_PATH=src libSyncLib_la_SOURCES=$(SRC_PATH)/EventLinux.cpp \ $(SRC_PATH)/RWLock.cpp \ $(SRC_PATH)/SemaphoreLinux.cpp \ $(SRC_PATH)/ThreadLinux.cpp INCLUDE_PATH=Include noinst_HEADERS=$(INCLUDE_PATH)/Event.h \ $(INCLUDE_PATH)/Lock.h \ $(INCLUDE_PATH)/RWLock.h \ $(INCLUDE_PATH)/Semaphore.h \ $(INCLUDE_PATH)/Thread.h \ $(INCLUDE_PATH)/SPtr.h INCLUDES=-I$(srcdir)/$(INCLUDE_PATH) noinst_LTLIBRARIES=libSyncLib.la UNS-3.2.0.24/SyncLib/Makefile.in0000644012402100775320000004363110746077320017130 0ustar00gkbld_amtccigk00000000000000# 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 = SyncLib DIST_COMMON = $(noinst_HEADERS) $(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 = LTLIBRARIES = $(noinst_LTLIBRARIES) libSyncLib_la_LIBADD = am_libSyncLib_la_OBJECTS = EventLinux.lo RWLock.lo SemaphoreLinux.lo \ ThreadLinux.lo libSyncLib_la_OBJECTS = $(am_libSyncLib_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libSyncLib_la_SOURCES) DIST_SOURCES = $(libSyncLib_la_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ 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@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURL_CFLAGS = @CURL_CFLAGS@ CURL_CONFIG = @CURL_CONFIG@ CURL_LIBS = @CURL_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DAEMON_FALSE = @DAEMON_FALSE@ DAEMON_TRUE = @DAEMON_TRUE@ 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@ GSOAP_CFLAGS = @GSOAP_CFLAGS@ GSOAP_LIBS = @GSOAP_LIBS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ OPENSSL_LIBS = @OPENSSL_LIBS@ OPENWSMAN_CFLAGS = @OPENWSMAN_CFLAGS@ OPENWSMAN_LIBS = @OPENWSMAN_LIBS@ 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@ PKG_CONFIG = @PKG_CONFIG@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ 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@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ SRC_PATH = src libSyncLib_la_SOURCES = $(SRC_PATH)/EventLinux.cpp \ $(SRC_PATH)/RWLock.cpp \ $(SRC_PATH)/SemaphoreLinux.cpp \ $(SRC_PATH)/ThreadLinux.cpp INCLUDE_PATH = Include noinst_HEADERS = $(INCLUDE_PATH)/Event.h \ $(INCLUDE_PATH)/Lock.h \ $(INCLUDE_PATH)/RWLock.h \ $(INCLUDE_PATH)/Semaphore.h \ $(INCLUDE_PATH)/Thread.h \ $(INCLUDE_PATH)/SPtr.h INCLUDES = -I$(srcdir)/$(INCLUDE_PATH) noinst_LTLIBRARIES = libSyncLib.la all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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) --foreign SyncLib/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign SyncLib/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_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 libSyncLib.la: $(libSyncLib_la_OBJECTS) $(libSyncLib_la_DEPENDENCIES) $(CXXLINK) $(libSyncLib_la_LDFLAGS) $(libSyncLib_la_OBJECTS) $(libSyncLib_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EventLinux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/RWLock.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SemaphoreLinux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ThreadLinux.Plo@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< EventLinux.lo: $(SRC_PATH)/EventLinux.cpp @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT EventLinux.lo -MD -MP -MF "$(DEPDIR)/EventLinux.Tpo" -c -o EventLinux.lo `test -f '$(SRC_PATH)/EventLinux.cpp' || echo '$(srcdir)/'`$(SRC_PATH)/EventLinux.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/EventLinux.Tpo" "$(DEPDIR)/EventLinux.Plo"; else rm -f "$(DEPDIR)/EventLinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(SRC_PATH)/EventLinux.cpp' object='EventLinux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o EventLinux.lo `test -f '$(SRC_PATH)/EventLinux.cpp' || echo '$(srcdir)/'`$(SRC_PATH)/EventLinux.cpp RWLock.lo: $(SRC_PATH)/RWLock.cpp @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RWLock.lo -MD -MP -MF "$(DEPDIR)/RWLock.Tpo" -c -o RWLock.lo `test -f '$(SRC_PATH)/RWLock.cpp' || echo '$(srcdir)/'`$(SRC_PATH)/RWLock.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/RWLock.Tpo" "$(DEPDIR)/RWLock.Plo"; else rm -f "$(DEPDIR)/RWLock.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(SRC_PATH)/RWLock.cpp' object='RWLock.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RWLock.lo `test -f '$(SRC_PATH)/RWLock.cpp' || echo '$(srcdir)/'`$(SRC_PATH)/RWLock.cpp SemaphoreLinux.lo: $(SRC_PATH)/SemaphoreLinux.cpp @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT SemaphoreLinux.lo -MD -MP -MF "$(DEPDIR)/SemaphoreLinux.Tpo" -c -o SemaphoreLinux.lo `test -f '$(SRC_PATH)/SemaphoreLinux.cpp' || echo '$(srcdir)/'`$(SRC_PATH)/SemaphoreLinux.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/SemaphoreLinux.Tpo" "$(DEPDIR)/SemaphoreLinux.Plo"; else rm -f "$(DEPDIR)/SemaphoreLinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(SRC_PATH)/SemaphoreLinux.cpp' object='SemaphoreLinux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o SemaphoreLinux.lo `test -f '$(SRC_PATH)/SemaphoreLinux.cpp' || echo '$(srcdir)/'`$(SRC_PATH)/SemaphoreLinux.cpp ThreadLinux.lo: $(SRC_PATH)/ThreadLinux.cpp @am__fastdepCXX_TRUE@ if $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ThreadLinux.lo -MD -MP -MF "$(DEPDIR)/ThreadLinux.Tpo" -c -o ThreadLinux.lo `test -f '$(SRC_PATH)/ThreadLinux.cpp' || echo '$(srcdir)/'`$(SRC_PATH)/ThreadLinux.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/ThreadLinux.Tpo" "$(DEPDIR)/ThreadLinux.Plo"; else rm -f "$(DEPDIR)/ThreadLinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(SRC_PATH)/ThreadLinux.cpp' object='ThreadLinux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ThreadLinux.lo `test -f '$(SRC_PATH)/ThreadLinux.cpp' || echo '$(srcdir)/'`$(SRC_PATH)/ThreadLinux.cpp 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)/$(INCLUDE_PATH) @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) $(HEADERS) 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 clean-noinstLTLIBRARIES \ 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-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 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES 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-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 # 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: UNS-3.2.0.24/WSMAN_Common/0000755012402100775320000000000010746077321015707 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/WSMAN_Common/Include/0000755012402100775320000000000010746077320017271 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/WSMAN_Common/Include/CimClass.h0000644012402100775320000001461510746077320021147 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __AMT_MOF_OBJECT_H #define __AMT_MOF_OBJECT_H #include #include #include "EndpointReference.h" using namespace std; using namespace WsmanClientNamespace; using namespace CimXMLUtilsNamespace; using namespace CimXMLTypesNamespace; using namespace WsmanExceptionNamespace; namespace CimClassNamespace { template class CimClassContainer; // CIMClass Exception class class CIMClassException : public GeneralWsmanException { public: CIMClassException(const char* msg, unsigned int err = WSMAN_GENERAL_ERROR) :GeneralWsmanException(msg, err){} }; class CimClass : public Serializable, public DeSerializable { protected: bool isCreated; string resourceUri; ResourceCreated creationData; static const WsmanClient* defaultProvider; public: CimClass(const string& objName, const string& uri, const string& ns, const string& nsPrefix = ""); virtual ~CimClass(); string GetObjectName() const; string GetResourceUri() const; virtual NameValuePairs GetSelectorsList() const = 0; EndpointReference ToEndpointReference() const; void Get(const NameValuePairs *selectors = NULL, const WsmanClient *cl = defaultProvider); void Put(const WsmanClient *cl = defaultProvider); void Create(const WsmanClient *cl = defaultProvider); void Delete(const WsmanClient *cl = defaultProvider); void Invoke(const string& functionName, const Serializable* input, DeSerializable* output, const WsmanClient *cl = defaultProvider) const; // Enumerates the CIM objects of type T. Subclasses will // be enumerated but they will be returned as instances of // T. (Subclass properties will not be recorded). template static void Enumerate(vector &vec, const NameValuePairs *selectors = NULL, const WsmanClient *cl = defaultProvider); // Enumerates the CIM objects of type T. Subclasses will // be enumerated and subclass properties will be recorded. // Pointer to the created instances of T are entered to the // given container. template static void Enumerate(CimClassContainer &container, const NameValuePairs *selectors = NULL, const WsmanClient *cl = defaultProvider); static void RegisterDefaultWsmanProvider(const WsmanClient *cl); }; // maps CimClass names to ids, used by the factory class class CimClassMap : public map { public: CimClassMap(); ~CimClassMap(){} }; // map entry typedef pair map_entry; // factory class class CimClassFactory { private: static const CimClassMap cimMap; // factory function. The implementation for this is autogenerated // in CimClassFactory.cpp public: static CimClass* CreateCimClass(const string& xml); }; template class CimClassContainer { private: vector vec; public: CimClassContainer(){} ~CimClassContainer() { Clear(); } void AddCimClass(const string& xml) { T* t = static_cast(CimClassFactory::CreateCimClass(xml)); if(!t) { throw CIMClassException("An unidentified CIM object was received.", WSMAN_RESPONSE_UNKNOWN); } vec.push_back(t); } T* operator [](unsigned int i) const { return vec[i]; } unsigned int Size() const { return vec.size(); } bool Empty() const { return vec.empty(); } void Clear() { for(unsigned int i = 0; i < vec.size(); i++) { delete vec[i]; vec[i] = NULL; } vec.empty(); } }; } // namespace CimClassNamespace using namespace CimClassNamespace; template void CimClass::Enumerate(vector &vec, const NameValuePairs *selectors, const WsmanClient *cl) { if(!cl) { throw CIMClassException("A NULL WsmanClient pointer was provided.", WSMAN_MISSING_INPUT); } vector tmp; cl->Enumerate(T::CLASS_URI, tmp, selectors); for(unsigned int i = 0; i < tmp.size(); i++) { T t; t.Deserialize(tmp[i]); vec.push_back(t); } } template void CimClass::Enumerate(CimClassContainer &container, const NameValuePairs *selectors, const WsmanClient *cl) { if(!cl) { throw CIMClassException("A NULL WsmanClient pointer was provided.", WSMAN_MISSING_INPUT); } vector tmp; cl->Enumerate(T::CLASS_URI, tmp, selectors); for(unsigned int i = 0; i < tmp.size(); i++) { container.AddCimClass(tmp[i]); } } #endif UNS-3.2.0.24/WSMAN_Common/Include/Deserializable.h0000644012402100775320000000517310746077320022367 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __DESERIALIZABLE_H #define __DESERIALIZABLE_H #include "XMLUtils.h" using namespace CimXMLUtilsNamespace; using namespace std; namespace CimClassNamespace { class DeSerializable { protected: string deSerializableName; string dsUri; public: DeSerializable(const string& deSerializableName, const string& ns = ""); virtual ~DeSerializable(); void Deserialize(const string& xml); void Deserialize(const XMLElement& elem); virtual void SetValue(const XMLElement& elem) = 0; }; } // CimClassNamespace #endif UNS-3.2.0.24/WSMAN_Common/Include/EndpointReference.h0000644012402100775320000001014110746077320023036 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: EndpointReference.h // // Contents: C++ representation of an EndpointReference type // //---------------------------------------------------------------------------- #ifndef __ENDPOINT_REF_H #define __ENDPOINT_REF_H #include #include "Serializable.h" #include "Deserializable.h" using namespace std; namespace CimClassNamespace { #define NameValuePairs map class SelectorSet : public Serializable, public DeSerializable { public: NameValuePairs Selectors; SelectorSet(); virtual ~SelectorSet(); void SerializeMembers(XMLElement& elem) const; void SetValue(const XMLElement& elem); }; class ReferenceParameters : public Serializable, public DeSerializable { private: string uri; SelectorSet Selectors; public: ReferenceParameters(); virtual ~ReferenceParameters(); void SerializeMembers(XMLElement& elem) const; NameValuePairs GetSelectors() const; void SetSelectors(const NameValuePairs &sel); void SetValue(const XMLElement& elem); void SetUri(const string& uri); string GetUri() const; }; class EndpointReference : public Serializable, public DeSerializable { private: string eprName; string add; ReferenceParameters ref; public: EndpointReference(const string& name = "EndpointReference", const string& ns = "", const string& pref = ""); virtual ~EndpointReference(); string GetEPRName() const; void SetName(const string &name); void SetAddress(const string &add); string GetAddress() const; void SerializeMembers(XMLElement& elem) const; void SetValue(const XMLElement& elem); NameValuePairs GetSelectors() const; string GetResourceURI() const; void SetResourceUri(const string& uri); void SetSelectors(const NameValuePairs &sel); bool CompareResourceURI(const string &uri) const; }; class ResourceCreated : public EndpointReference { public: ResourceCreated(); virtual ~ResourceCreated(); }; } //CimClassNamespace #endif UNS-3.2.0.24/WSMAN_Common/Include/Serializable.h0000644012402100775320000000565310746077320022061 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: Serializable.h // // Contents: Definition of class Serializable // //---------------------------------------------------------------------------- #ifndef __SERIALIZABLE_H #define __SERIALIZABLE_H #include #include #include "XMLUtils.h" using namespace CimXMLUtilsNamespace; using namespace std; namespace CimClassNamespace { class Serializable { protected: string serializableName; string nsUri; string prefix; public: Serializable(const string& serializableName, const string& ns = "", const string& nsPrefix = ""); virtual ~Serializable(); string Serialize(const bool includeRoot = true) const; virtual void SerializeMembers(XMLElement &node) const = 0; }; } //CimClassNamespace #endif UNS-3.2.0.24/WSMAN_Common/Include/XMLTypes.h0000644012402100775320000001701610746077320021134 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ // defines basic XML types used in CIM Objects as well as a // type<->string converter class #ifndef __CIM_XML_TYPES_H #define __CIM_XML_TYPES_H #include #include #include using namespace std; using namespace WsmanExceptionNamespace; // definitions used for type conversion #define CONST_10 10 #define CHAR_0 '0' #define CHAR_9 '9' #define CHAR_MINUS '-' #define NUMBER_STRING_SIZE 12 namespace CimXMLTypesNamespace { // define HexBinary type typedef string HexBinary; // define DateTime type typedef string DateTime; // define Int64 type #ifndef _WIN32 typedef long long Int64; typedef unsigned long long Uint64; #else typedef __int64 Int64; typedef unsigned __int64 Uint64; #endif // define Base64 type class Base64 { public: unsigned char* data; unsigned int len; Base64(); Base64(const Base64& b); Base64(unsigned char *buffer, unsigned int blen); Base64(const string& input); ~Base64(); string ToString() const; void SetData(const string& input); void SetData(unsigned char *buffer, unsigned int blen); Base64& operator =(const Base64& other); }; class XMLTypeConvertionException : public ::GeneralWsmanException { public: XMLTypeConvertionException(const char* message) :GeneralWsmanException(message, WSMAN_TYPE_CONVERSION_ERROR){} }; class XMLTypeConverter { public: // template functions for converting Integers template static bool StringToUInteger(const string& str, T& t) { T res = 0, tmp; char c; for (unsigned int i=0; i < str.size(); i++) { c = str.at(i); if (c < CHAR_0 || c > CHAR_9) // illegal char { return false; } tmp = res; for(unsigned int j = 1; j < CONST_10; j++) { res += tmp; if(res < tmp) // overflow { return false; } } res += c - CHAR_0; if (res < tmp) // overflow { return false; } } t = res; return true; } template static bool StringToInteger(const string& str, T& t) { bool minus = str.size() > 0 && str.at(0) == CHAR_MINUS; T res = 0, tmp; char c; unsigned int i = minus ? 1 : 0; for (; i < str.size(); i++) { c = str.at(i); if (c < CHAR_0 || c > CHAR_9) { return false; } tmp = res; for(unsigned int j = 1; j < CONST_10; j++) { res += tmp; if(res < 0) // check for overflow { if(minus) { if(res-1 < 0) { return false; } } else { return false; } } } res += c - CHAR_0; if(res < 0) // check for overflow { if(minus) { if((T)(res -1) < 0 || i+1 < str.size()) { return false; } } else { return false; } } } if(minus) { t = res < 0 ? res : -res; } else { t = res; } return true; } template static string UIntegerToString(const T& number) { char buffer[NUMBER_STRING_SIZE]; buffer[NUMBER_STRING_SIZE - 1] = 0; T res = number, rem, div = CONST_10; unsigned int i = NUMBER_STRING_SIZE - 1; if(res==0) { buffer[--i] = CHAR_0; } else { while(res > 0) { i --; rem = res % div; res /= div; buffer[i] = CHAR_0 + rem; } } return string(buffer + i); } template static string IntegerToString(const T& number) { char buffer[NUMBER_STRING_SIZE]; bool minus = (number < 0); buffer[NUMBER_STRING_SIZE - 1] = 0; T res = minus ? -number : number, rem, div = CONST_10; unsigned int i = NUMBER_STRING_SIZE - 1; while(res > 0) { i --; rem = res % div; res /= div; buffer[i] = CHAR_0 + rem; } if(minus) { i --; buffer[i] = CHAR_MINUS; } return string(buffer + i); } // template functions using streams (beware of use with char!) template static string ToString(const T& t) { stringstream tmp; tmp << t; return tmp.str(); } template static void FromString(const string& str, T& t) { stringstream tmp(str); tmp >> t; } // type conversion function declarations static void StringToType(const string& str, int& t); static string TypeToString(const int& str); static void StringToType(const string& str, unsigned int& t); static string TypeToString(const unsigned int& str); static void StringToType(const string& str, char& t); static string TypeToString(const char& str); static void StringToType(const string& str, unsigned char& t); static string TypeToString(const unsigned char& str); static void StringToType(const string& str, short& t); static string TypeToString(const short& str); static void StringToType(const string& str, unsigned short& t); static string TypeToString(const unsigned short& str); static void StringToType(const string& str, Int64& t); static string TypeToString(const Int64& str); static void StringToType(const string& str, Uint64& t); static string TypeToString(const Uint64& str); static void StringToType(const string& str, bool& t); static string TypeToString(const bool& str); static void StringToType(const string& str, Base64& t); static string TypeToString(const Base64& buf); static void StringToType(const string& str, double& t); static string TypeToString(const double& str); static void StringToType(const string& str, string& t); static string TypeToString(const string& str); }; }//CimClassNamespace #endif UNS-3.2.0.24/WSMAN_Common/Include/XMLUtils.h0000644012402100775320000001400510746077320021123 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ // defines an XML utility interface #ifndef __CIMXMLUTILS_H #define __CIMXMLUTILS_H #include #include #include #include "XMLTypes.h" #include using namespace std; using namespace CimXMLTypesNamespace; using namespace WsmanExceptionNamespace; namespace CimXMLUtilsNamespace { // function declarations // this function should be calles once at the beginning of the program void InitXMLLibrary(); // this function should be called once at the end of the program void TerminateXMLLibrary(); // Exception class, encapsulates exceptions thrown by the XML lib // used to implement the XML utility interface class CIMXMLException : public GeneralWsmanException { public: CIMXMLException(const char* message) :GeneralWsmanException(message, WSMAN_XML_ERROR){} }; // forward class declaration class XMLElementImpl; // XMLElement represents an XML element node class XMLElement { friend class XMLDocImpl; friend class XMLElementImpl; private: XMLElementImpl* impl; XMLElement(XMLElementImpl* i); public: XMLElement(const XMLElement& other); ~XMLElement(); XMLElement& operator=(const XMLElement &other ); XMLElement CreateChildNode(const string& nodeName, const string& ns, const string& prefix, const string* text = NULL); void CreateLeafNode(const string& nodeName, const string& ns, const string& prefix, const string& nodeValue); void AddText(const string& nodeValue); bool HasNextSibling() const; XMLElement GetNextSibling() const; bool HasChildren() const; bool IsLeafNode() const; XMLElement GetFirstChild() const; string GetNodeName() const; string GetTextValue() const; string ToString(bool incRoot = false) const; string GetNSUri() const; void GetAttributes(map& attribs) const; string GetAttribValue(const string& name) const; void AddAttribValue(const string& name, const string& value); void AddNSDefinition(const string& ns, const string* prefix = NULL); template void AppendLeaf(const string& name, const T& t, const string& ns = "", const string& prefix = "") { CreateLeafNode(name, ns, prefix, CimXMLTypesNamespace::XMLTypeConverter::TypeToString(t)); } template void AppendLeafArray(const string& name, const vector& vec, const string& ns = "", const string& prefix = "") { for(unsigned int i = 0 ; i < vec.size(); i++) { AppendLeaf(name, vec[i], ns, prefix); } } template void AppendNode(const string& name, const T& t, const string& ns = "", const string& prefix = "") { XMLElement e = CreateChildNode(name, ns, prefix); t.SerializeMembers(e); } template void AppendNodeArray(const string& name, const vector& vec, const string& ns = "", const string& prefix = "") { for(unsigned int i = 0 ; i < vec.size(); i++) { AppendNode(name, vec[i], ns, prefix); } } template void SetValue(T& t) const { CimXMLTypesNamespace:: XMLTypeConverter:: StringToType(GetTextValue(),t); } template void AddValue(vector& vec) const { T t; CimXMLTypesNamespace:: XMLTypeConverter:: StringToType(GetTextValue(),t); vec.push_back(t); } template void SetComplexType(T& t) const { t.Deserialize(*this); } template void AddComplexType(vector& vec) const { T t; t.Deserialize(*this); vec.push_back(t); } }; class XMLDocImpl; // XML Doc represents an XML document class XMLDoc { private: XMLDocImpl* impl; XMLDoc(const XMLDoc& xml); XMLDoc& operator=(const XMLDoc &other ); public: XMLDoc(const string& xml); XMLDoc(const char* rootName = "root", const char* uri = NULL, const char* prefix = NULL); ~XMLDoc(); XMLElement GetRootNode(); string ToString(bool incVersionStr = false); }; } //CimXMLUtilsNamespace #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/0000755012402100775320000000000010746077321020056 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/0000755012402100775320000000000010746077321021441 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/AMT_EndpointAccessControlService.h0000644012402100775320000003057310746077320030106 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __AMT_ENDPOINTACCESSCONTROLSERVICE_H #define __AMT_ENDPOINTACCESSCONTROLSERVICE_H #include "CIM_Service.h" namespace CimClassNamespace { // Class AMT_EndpointAccessControlService: // A AMT_EndpointAccessControlService is a Logical Element that contains the information necessary to represent and manage the functionality provided by a the Endpoint Access Control manager of Intel® AMT. class AMT_EndpointAccessControlService : public CIM_Service { public: // type definitions typedef CimClassContainer AMT_EndpointAccessControlServiceContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // Invoke RequestStateChange Classes: // Requests that the element's state be changed to the value specified in the RequestedState parameter. When the requested state change takes place, the element's EnabledState and RequestedState will be the same. Invoking the RequestStateChange method multiple times could result in earlier requests being overwritten/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. class RequestStateChange_INPUT : public Serializable { public: // class fields // The state requested for the element. This information will be placed into the instance's RequestedState property if the RequestStateChange method's return code is 0, 3, or 4096 (0x1000) - 'Completed with No Error', 'Timeout', or 'Job Started' respectively. Refer to the description of the EnabledState and RequestedState properties for the detailed meanings of the RequestedState values. // Legal values: // Enabled: 2 // Disabled: 3 // Shut Down: 4 // Offline: 6 // Test: 7 // Defer: 8 // Quiesce: 9 // Reboot: 10 // Reset: 11 // DMTF Reserved: .. // Vendor Reserved: 32768..65535 unsigned short RequestedState; // This field determines whether the RequestedState field is valid. bool RequestedStateSpecified; // 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 doesn't support this parameter. A return code of 'Use Of Timeout Parameter Not Supported' MUST be returned. DateTime TimeoutPeriod; // This field determines whether the TimeoutPeriod field is valid. bool TimeoutPeriodSpecified; // Class Constructor RequestStateChange_INPUT(); // Class Destructor ~RequestStateChange_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class RequestStateChange_OUTPUT : public DeSerializable { public: // class fields // Reference to the job (may be null if task completed). EndpointReference Job; // This field determines whether the Job field is valid. bool JobSpecified; // Function Return Value: // Legal values: // Completed with No Error: 0 // Not Supported: 1 // Unknown/Unspecified Error: 2 // Can NOT complete within Timeout Period: 3 // Failed: 4 // Invalid Parameter: 5 // In Use: 6 // DMTF Reserved: .. // Method Parameters Checked - Job Started: 4096 // Invalid State Transition: 4097 // Use of Timeout Parameter Not Supported: 4098 // Busy: 4099 // Method Reserved: 4100..32767 // Vendor Specific: 32768..65535 unsigned int ReturnValue; // Class Constructor RequestStateChange_OUTPUT(); // Class Destructor ~RequestStateChange_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Invoke GetPosture Classes: // This method returns (and optionally updates) the EAC posture for the Intel® AMT device. class GetPosture_INPUT : public Serializable { public: // class fields // The posture type to be generated. // Legal values: // Attribute-Value pair (AVP) type: 0 unsigned short PostureType; // Class Constructor GetPosture_INPUT(); // Class Destructor ~GetPosture_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class GetPosture_OUTPUT : public DeSerializable { public: // class fields // BLOB representation of a Digital Signature document that contains Signed NAC Posture information. Base64 SignedPosture; // This field determines whether the SignedPosture field is valid. bool SignedPostureSpecified; // A computed hash value over the posture data (fields like current time is omitted). This hash can be used to check if the posture was changed, comparing to the last computed hash value. Base64 PostureChangeHash; // This field determines whether the PostureChangeHash field is valid. bool PostureChangeHashSpecified; // Function Return Value: // Legal values: // PT_STATUS_SUCCESS: 0 // PT_STATUS_INTERNAL_ERROR: 1 // PT_STATUS_INVALID_PARAMETER: 36 // PT_STATUS_NO_ASSOCIATION: 2072 unsigned int ReturnValue; // Class Constructor GetPosture_OUTPUT(); // Class Destructor ~GetPosture_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Invoke GetPostureHash Classes: // This method returns an hash of the currently available posture for the Intel® AMT device, which can be compared to hash values from previous results to detect differences. class GetPostureHash_INPUT : public Serializable { public: // class fields // The posture type to be generated. // Legal values: // Attribute-Value pair (AVP) type: 0 unsigned short PostureType; // Class Constructor GetPostureHash_INPUT(); // Class Destructor ~GetPostureHash_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class GetPostureHash_OUTPUT : public DeSerializable { public: // class fields // A computed hash value over the posture data (fields like current time is omitted). This hash can be used to check if the posture was changed, comparing to the last computed hash value. Base64 PostureChangeHash; // This field determines whether the PostureChangeHash field is valid. bool PostureChangeHashSpecified; // Function Return Value: // Legal values: // PT_STATUS_SUCCESS: 0 // PT_STATUS_INTERNAL_ERROR: 1 // PT_STATUS_INVALID_PARAMETER: 36 // PT_STATUS_NO_ASSOCIATION: 2072 unsigned int ReturnValue; // Class Constructor GetPostureHash_OUTPUT(); // Class Destructor ~GetPostureHash_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Invoke UpdatePostureState Classes: // This method update the posture state for the Intel® AMT device. class UpdatePostureState_INPUT : public Serializable { public: // class fields // The update type to be generated. // Legal values: // Intel® AMT should reset its internal boot counter state.: 0 unsigned short UpdateType; // Class Constructor UpdatePostureState_INPUT(); // Class Destructor ~UpdatePostureState_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class UpdatePostureState_OUTPUT : public DeSerializable { public: // class fields // Function Return Value: // Legal values: // PT_STATUS_SUCCESS: 0 // PT_STATUS_INTERNAL_ERROR: 1 // PT_STATUS_INVALID_PARAMETER: 36 unsigned int ReturnValue; // Class Constructor UpdatePostureState_OUTPUT(); // Class Destructor ~UpdatePostureState_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Class Constructor AMT_EndpointAccessControlService( const string& objName = AMT_EndpointAccessControlService::CLASS_NAME, const string& uri = AMT_EndpointAccessControlService::CLASS_URI, const string& ns = AMT_EndpointAccessControlService::CLASS_NS, const string& nsPrefix = AMT_EndpointAccessControlService::CLASS_NS_PREFIX); // Class Destructor virtual ~AMT_EndpointAccessControlService(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); // This function performs the Invoke RequestStateChange operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; // This function performs the Invoke GetPosture operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeGetPosture(GetPosture_INPUT &input, GetPosture_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; // This function performs the Invoke GetPostureHash operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeGetPostureHash(GetPostureHash_INPUT &input, GetPostureHash_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; // This function performs the Invoke UpdatePostureState operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeUpdatePostureState(UpdatePostureState_INPUT &input, UpdatePostureState_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/AMT_EventSubscriber.h0000644012402100775320000001576610746077320025436 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __AMT_EVENTSUBSCRIBER_H #define __AMT_EVENTSUBSCRIBER_H #include "CIM_RemotePort.h" namespace CimClassNamespace { // Class AMT_EventSubscriber: // Represents an event subscriber in AMT class AMT_EventSubscriber : public CIM_RemotePort { public: // type definitions typedef CimClassContainer AMT_EventSubscriberContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // Invoke RequestStateChange Classes: // Requests that the element's state be changed to the value specified in the RequestedState parameter. When the requested state change takes place, the element's EnabledState and RequestedState will be the same. Invoking the RequestStateChange method multiple times could result in earlier requests being overwritten/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. class RequestStateChange_INPUT : public Serializable { public: // class fields // The state requested for the element. This information will be placed into the instance's RequestedState property if the RequestStateChange method's return code is 0, 3, or 4096 (0x1000) - 'Completed with No Error', 'Timeout', or 'Job Started' respectively. Refer to the description of the EnabledState and RequestedState properties for the detailed meanings of the RequestedState values. // Legal values: // Enabled: 2 // Disabled: 3 // Shut Down: 4 // Offline: 6 // Test: 7 // Defer: 8 // Quiesce: 9 // Reboot: 10 // Reset: 11 // DMTF Reserved: .. // Vendor Reserved: 32768..65535 unsigned short RequestedState; // This field determines whether the RequestedState field is valid. bool RequestedStateSpecified; // 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 doesn't support this parameter. A return code of 'Use Of Timeout Parameter Not Supported' MUST be returned. DateTime TimeoutPeriod; // This field determines whether the TimeoutPeriod field is valid. bool TimeoutPeriodSpecified; // Class Constructor RequestStateChange_INPUT(); // Class Destructor ~RequestStateChange_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class RequestStateChange_OUTPUT : public DeSerializable { public: // class fields // Reference to the job (may be null if task completed). EndpointReference Job; // This field determines whether the Job field is valid. bool JobSpecified; // Function Return Value: // Legal values: // Completed with No Error: 0 // Not Supported: 1 // Unknown/Unspecified Error: 2 // Can NOT complete within Timeout Period: 3 // Failed: 4 // Invalid Parameter: 5 // In Use: 6 // DMTF Reserved: .. // Method Parameters Checked - Job Started: 4096 // Invalid State Transition: 4097 // Use of Timeout Parameter Not Supported: 4098 // Busy: 4099 // Method Reserved: 4100..32767 // Vendor Specific: 32768..65535 unsigned int ReturnValue; // Class Constructor RequestStateChange_OUTPUT(); // Class Destructor ~RequestStateChange_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Class Constructor AMT_EventSubscriber( const string& objName = AMT_EventSubscriber::CLASS_NAME, const string& uri = AMT_EventSubscriber::CLASS_URI, const string& ns = AMT_EventSubscriber::CLASS_NS, const string& nsPrefix = AMT_EventSubscriber::CLASS_NS_PREFIX); // Class Destructor virtual ~AMT_EventSubscriber(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); // This function performs the Invoke RequestStateChange operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/AMT_SOAPEventSubscriber.h0000644012402100775320000001130610746077320026103 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __AMT_SOAPEVENTSUBSCRIBER_H #define __AMT_SOAPEVENTSUBSCRIBER_H #include "AMT_EventSubscriber.h" namespace CimClassNamespace { // Class AMT_SOAPEventSubscriber: // Represents a SOAP-events subscriber in the Intel® AMT system. class AMT_SOAPEventSubscriber : public AMT_EventSubscriber { public: // type definitions typedef CimClassContainer AMT_SOAPEventSubscriberContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // Access and/or addressing information for a remote connection. This can be a host name, network address or similar information. string AccessInfo; // Identifies the role this RemoteServiceAccessPoint is playing in the hosting system. unsigned int AccessContext; // This field determines whether the AccessContext field is valid. bool AccessContextSpecified; // When the AccessContext property contains a value of 1, 'Other' then this is a free form string providing more information about the role of RemoteServiceAccessPoint in the hosting system. string OtherAccessContext; // This field determines whether the OtherAccessContext field is valid. bool OtherAccessContextSpecified; // The user's credentials. string UserName; // This field determines whether the UserName field is valid. bool UserNameSpecified; // The user's credentials. string Password; // This field determines whether the Password field is valid. bool PasswordSpecified; // A list of authentications allowed for this event. The priority of authentications is given by the order of the list. // Legal values: // Kerberos: 0 // Digest: 1 // Basic: 2 vector AlertAuthenticationOptions; // Associates a Subscription to its filter. unsigned char PolicyID; // Class Constructor AMT_SOAPEventSubscriber( const string& objName = AMT_SOAPEventSubscriber::CLASS_NAME, const string& uri = AMT_SOAPEventSubscriber::CLASS_URI, const string& ns = AMT_SOAPEventSubscriber::CLASS_NS, const string& nsPrefix = AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); // Class Destructor virtual ~AMT_SOAPEventSubscriber(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/CIM_EnabledLogicalElement.h0000644012402100775320000003047310746077320026447 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __CIM_ENABLEDLOGICALELEMENT_H #define __CIM_ENABLEDLOGICALELEMENT_H #include "CIM_LogicalElement.h" namespace CimClassNamespace { // Class CIM_EnabledLogicalElement: // This class extends LogicalElement to abstract the concept of an element that is enabled and disabled, such as a LogicalDevice or a ServiceAccessPoint. class CIM_EnabledLogicalElement : public CIM_LogicalElement { public: // type definitions typedef CimClassContainer CIM_EnabledLogicalElementContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // EnabledState is an integer enumeration that indicates the enabled/disabled states of an element. It can also indicate the transitions between these requested states. For example, shutting down (value = 4) and starting (value=10) are transient states between enabled and disabled. The following text briefly summarizes the various enabled/disabled states: // Enabled (2) indicates that the element is/could be executing commands, will process any queued commands, and queues new requests. // Disabled (3) indicates that the element will not execute commands and will drop any new requests. // Shutting Down (4) indicates that the element is in the process of going to a Disabled state. // Not Applicable (5) indicates the element doesn't support being enabled/disabled. // Enabled but Offline (6) indicates that the element may be completing commands, and will drop any new requests. // Test (7) indicates that the element is in a test state. // Deferred (8) indicates that the element may be completing commands, but will queue any new requests. // Quiesce (9) indicates that the element is enabled but in a restricted mode. The element's behavior is similar to the Enabled state, but it only processes a restricted set of commands. All other requests are queued. // Starting (10) indicates that the element is in the process of going to an Enabled state. New requests are queued. // Legal values: // Unknown: 0 // Other: 1 // Enabled: 2 // Disabled: 3 // Shutting Down: 4 // Not Applicable: 5 // Enabled but Offline: 6 // In Test: 7 // Deferred: 8 // Quiesce: 9 // Starting: 10 // DMTF Reserved: 11..32767 // Vendor Reserved: 32768..65535 unsigned short EnabledState; // This field determines whether the EnabledState field is valid. bool EnabledStateSpecified; // A string describing the element's enabled/disabled state when the EnabledState property is set to 1 ("Other"). This property MUST be set to NULL when EnabledState is any value other than 1. string OtherEnabledState; // This field determines whether the OtherEnabledState field is valid. bool OtherEnabledStateSpecified; // RequestedState is an integer enumeration indicating the last requested or desired state for the element. The actual state of the element is represented by EnabledState. This property is provided to compare the last requested and current enabled/disabled states. Note that when EnabledState is set to 5 ("Not Applicable"), then this property has no meaning. By default, the element's RequestedState is 5 ("No Change"). Refer to the EnabledState's property Description for explanations of the values in the RequestedState enumeration. // // It should be noted that there are two new values in RequestedState that build on the statuses of EnabledState. These are "Reboot" (10) and "Reset" (11). The former, Reboot, refers to doing a "Shut Down" and then moving to an "Enabled" state. The latter, Reset, indicates that the element is first "Disabled" and then "Enabled". The distinction between requesting "Shut Down" and "Disabled" should also be noted. The former, Shut Down, requests an orderly transition to the Disabled state, and MAY involve removing power, to completely erase any existing state. The latter, the Disabled state, requests an immediate disabling of the element, such that it will not execute or accept any commands or processing requests. // // This property is set as the result of a method invocation (such as Start or StopService on CIM_Service), or may be overridden and defined as WRITEable in a subclass. The method approach is considered superior to a WRITEable property, since it allows an explicit invocation of the operation and the return of a result code. // // It is possible that a particular instance of EnabledLogicalElement may not support RequestedStateChange. If this occurs, the value 12 ("Not Applicable") is used. // Legal values: // Enabled: 2 // Disabled: 3 // Shut Down: 4 // No Change: 5 // Offline: 6 // Test: 7 // Deferred: 8 // Quiesce: 9 // Reboot: 10 // Reset: 11 // Not Applicable: 12 // DMTF Reserved: .. // Vendor Reserved: 32768..65535 unsigned short RequestedState; // This field determines whether the RequestedState field is valid. bool RequestedStateSpecified; // An enumerated value indicating an administrator's default/startup configuration for an element's Enabled State. By default, the element is "Enabled" (value=2). // Legal values: // Enabled: 2 // Disabled: 3 // Not Applicable: 5 // Enabled but Offline: 6 // No Default: 7 // DMTF Reserved: 8..32767 // Vendor Reserved: 32768..65535 unsigned short EnabledDefault; // This field determines whether the EnabledDefault field is valid. bool EnabledDefaultSpecified; // The date/time when the element's EnabledState last changed. If the state of the element has not changed and this property is populated, then it MUST be set to a 0 interval value. If a state change was requested, but rejected or not yet processed, the property MUST NOT be updated. DateTime TimeOfLastStateChange; // This field determines whether the TimeOfLastStateChange field is valid. bool TimeOfLastStateChangeSpecified; // Invoke RequestStateChange Classes: // Requests that the element's state be changed to the value specified in the RequestedState parameter. When the requested state change takes place, the element's EnabledState and RequestedState will be the same. Invoking the RequestStateChange method multiple times could result in earlier requests being overwritten/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. class RequestStateChange_INPUT : public Serializable { public: // class fields // The state requested for the element. This information will be placed into the instance's RequestedState property if the RequestStateChange method's return code is 0, 3, or 4096 (0x1000) - 'Completed with No Error', 'Timeout', or 'Job Started' respectively. Refer to the description of the EnabledState and RequestedState properties for the detailed meanings of the RequestedState values. // Legal values: // Enabled: 2 // Disabled: 3 // Shut Down: 4 // Offline: 6 // Test: 7 // Defer: 8 // Quiesce: 9 // Reboot: 10 // Reset: 11 // DMTF Reserved: .. // Vendor Reserved: 32768..65535 unsigned short RequestedState; // This field determines whether the RequestedState field is valid. bool RequestedStateSpecified; // 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 doesn't support this parameter. A return code of 'Use Of Timeout Parameter Not Supported' MUST be returned. DateTime TimeoutPeriod; // This field determines whether the TimeoutPeriod field is valid. bool TimeoutPeriodSpecified; // Class Constructor RequestStateChange_INPUT(); // Class Destructor ~RequestStateChange_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class RequestStateChange_OUTPUT : public DeSerializable { public: // class fields // Reference to the job (may be null if task completed). EndpointReference Job; // This field determines whether the Job field is valid. bool JobSpecified; // Function Return Value: // Legal values: // Completed with No Error: 0 // Not Supported: 1 // Unknown/Unspecified Error: 2 // Can NOT complete within Timeout Period: 3 // Failed: 4 // Invalid Parameter: 5 // In Use: 6 // DMTF Reserved: .. // Method Parameters Checked - Job Started: 4096 // Invalid State Transition: 4097 // Use of Timeout Parameter Not Supported: 4098 // Busy: 4099 // Method Reserved: 4100..32767 // Vendor Specific: 32768..65535 unsigned int ReturnValue; // Class Constructor RequestStateChange_OUTPUT(); // Class Destructor ~RequestStateChange_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Class Constructor CIM_EnabledLogicalElement( const string& objName = CIM_EnabledLogicalElement::CLASS_NAME, const string& uri = CIM_EnabledLogicalElement::CLASS_URI, const string& ns = CIM_EnabledLogicalElement::CLASS_NS, const string& nsPrefix = CIM_EnabledLogicalElement::CLASS_NS_PREFIX); // Class Destructor virtual ~CIM_EnabledLogicalElement(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); // This function performs the Invoke RequestStateChange operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/CIM_LogicalElement.h0000644012402100775320000000673510746077320025200 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __CIM_LOGICALELEMENT_H #define __CIM_LOGICALELEMENT_H #include "CIM_ManagedSystemElement.h" namespace CimClassNamespace { // Class CIM_LogicalElement: // CIM_LogicalElement is a base class for all the components of a System that represent abstract system components, such as Files, Processes, or LogicalDevices. class CIM_LogicalElement : public CIM_ManagedSystemElement { public: // type definitions typedef CimClassContainer CIM_LogicalElementContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // Class Constructor CIM_LogicalElement( const string& objName = CIM_LogicalElement::CLASS_NAME, const string& uri = CIM_LogicalElement::CLASS_URI, const string& ns = CIM_LogicalElement::CLASS_NS, const string& nsPrefix = CIM_LogicalElement::CLASS_NS_PREFIX); // Class Destructor virtual ~CIM_LogicalElement(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/CIM_ManagedElement.h0000644012402100775320000001102210746077320025143 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __CIM_MANAGEDELEMENT_H #define __CIM_MANAGEDELEMENT_H #include "CimClass.h" namespace CimClassNamespace { // Class CIM_ManagedElement: // ManagedElement is an abstract class that provides a common superclass (or top of the inheritance tree) for the non-association classes in the CIM Schema. class CIM_ManagedElement : public CimClass { public: // type definitions typedef CimClassContainer CIM_ManagedElementContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // The Caption property is a short textual description (one- line string) of the object. string Caption; // This field determines whether the Caption field is valid. bool CaptionSpecified; // The Description property provides a textual description of the object. string Description; // This field determines whether the Description field is valid. bool DescriptionSpecified; // A user-friendly name for the object. This property allows each instance to define a user-friendly name IN ADDITION TO its key properties/identity data, and description information. // Note that ManagedSystemElement's Name property is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information MAY be present in both the Name and ElementName properties. string ElementName; // This field determines whether the ElementName field is valid. bool ElementNameSpecified; // Class Constructor CIM_ManagedElement( const string& objName = CIM_ManagedElement::CLASS_NAME, const string& uri = CIM_ManagedElement::CLASS_URI, const string& ns = CIM_ManagedElement::CLASS_NS, const string& nsPrefix = CIM_ManagedElement::CLASS_NS_PREFIX); // Class Destructor virtual ~CIM_ManagedElement(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/CIM_ManagedSystemElement.h0000644012402100775320000002471010746077320026360 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __CIM_MANAGEDSYSTEMELEMENT_H #define __CIM_MANAGEDSYSTEMELEMENT_H #include "CIM_ManagedElement.h" namespace CimClassNamespace { // Class CIM_ManagedSystemElement: // CIM_ManagedSystemElement is the base class for the System Element hierarchy. Any distinguishable component of a System is a candidate for inclusion in this class. Examples of system components include: // - software components such as application servers, databases, and applications // - operating system components such as files, processes, and threads // - device components such as disk drives, controllers, processors, and printers // - physical components such as chips and cards. class CIM_ManagedSystemElement : public CIM_ManagedElement { public: // type definitions typedef CimClassContainer CIM_ManagedSystemElementContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // A datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed. DateTime InstallDate; // This field determines whether the InstallDate field is valid. bool InstallDateSpecified; // The Name property defines the label by which the object is known. When subclassed, the Name property can be overridden to be a Key property. string Name; // This field determines whether the Name field is valid. bool NameSpecified; // Indicates the current status(es) of the element. Various operational statuses are defined. Many of the enumeration's values are self- explanatory. However, a few are not and are described in more detail. // "Stressed" indicates that the element is functioning, but needs attention. Examples of "Stressed" states are overload, overheated, etc. // "Predictive Failure" indicates that an element is functioning nominally but predicting a failure in the near future. // "In Service" describes an element being configured, maintained, cleaned, or otherwise administered. // "No Contact" indicates that the monitoring system has knowledge of this element, but has never been able to establish communications with it. // "Lost Communication" indicates that the ManagedSystem Element is known to exist and has been contacted successfully in the past, but is currently unreachable. // "Stopped" and "Aborted" are similar, although the former implies a clean and orderly stop, while the latter implies an abrupt stop where the element's state and configuration may need to be updated. // "Dormant" indicates that the element is inactive or quiesced. // "Supporting Entity in Error" describes that this element may be "OK" but that another element, on which it is dependent, is in error. An example is a network service or endpoint that cannot function due to lower layer networking problems. // "Completed" indicates the element has completed its operation. This value should be combined with either OK, Error, or Degraded so that a client can till if the complete operation passed (Completed with OK), and failure (Completed with Error). Completed with Degraded would imply the operation finished, but did not complete OK or report an error. // "Power Mode" indicates the element has additional power model information contained in the Associated PowerManagementService association. // OperationalStatus replaces the Status property on ManagedSystemElement to provide a consistent approach to enumerations, to address implementation needs for an array property, and to provide a migration path from today's environment to the future. This change was not made earlier since it required the DEPRECATED qualifier. Due to the widespread use of the existing Status property in management applications, it is strongly RECOMMENDED that providers/instrumentation provide BOTH the Status and OperationalStatus properties. Further, the first value of OperationalStatus SHOULD contain the primary status for the element. When instrumented, Status (since it is single-valued) SHOULD also provide the primary status of the element. // Legal values: // Unknown: 0 // Other: 1 // OK: 2 // Degraded: 3 // Stressed: 4 // Predictive Failure: 5 // Error: 6 // Non-Recoverable Error: 7 // Starting: 8 // Stopping: 9 // Stopped: 10 // In Service: 11 // No Contact: 12 // Lost Communication: 13 // Aborted: 14 // Dormant: 15 // Supporting Entity in Error: 16 // Completed: 17 // Power Mode: 18 // DMTF Reserved: .. // Vendor Reserved: 0x8000.. vector OperationalStatus; // Strings describing the various OperationalStatus array values. For example, if "Stopping" is the value assigned to OperationalStatus, then this property may contain an explanation as to why an object is being stopped. Note that entries in this array are correlated with those at the same array index in OperationalStatus. vector StatusDescriptions; // A string indicating the current status of the object. Various operational and non-operational statuses are defined. This property is deprecated in lieu of OperationalStatus, which includes the same semantics in its enumeration. This change is made for 3 reasons: 1) Status is more correctly defined as an array. This overcomes the limitation of describing status via a single value, when it is really a multi-valued property (for example, an element may be OK AND Stopped. 2) A MaxLen of 10 is too restrictive and leads to unclear enumerated values. And, 3) The change to a uint16 data type was discussed when CIM V2.0 was defined. However, existing V1.0 implementations used the string property and did not want to modify their code. Therefore, Status was grandfathered into the Schema. Use of the Deprecated qualifier allows the maintenance of the existing property, but also permits an improved definition using OperationalStatus. string Status; // This field determines whether the Status field is valid. bool StatusSpecified; // Indicates the current health of the element. This attribute expresses the health of this element but not necessarily that of its subcomponents. The possible values are 0 to 30, where 5 means the element is entirely healthy and 30 means the element is completely non-functional. The following continuum is defined: // "Non-recoverable Error" (30) - The element has completed failed and recovery is not possible. All functionality provided by this element has been lost. // "Critical Failure" (25) - The element is non-functional and recovery MAY NOT be possible. // "Major Failure" (20) - The element is failing. It is possible the some or all of the functionality of this component is degraded or not working. // "Minor Failure" (15) - All functionality is available but some MAY be degraded. // "Degraded/Warning" (10) - The element is in working order and all functionality is provided. However, the element is not working to the best of its abilities. For example, the element may not be operating at optimal performance or it may be reporting recoverable errors. // "OK" (5) - The element is fully functional and is operating within normal operational parameters and without error. // "Unknown" (0) - The implementation can not report on HealthState at this time. // DMTF has reserved the unused portion of the continuum for additional HealthStates in the future. // Legal values: // Unknown: 0 // OK: 5 // Degraded/Warning: 10 // Minor failure: 15 // Major failure: 20 // Critical failure: 25 // Non-recoverable error: 30 // DMTF Reserved: .. unsigned short HealthState; // This field determines whether the HealthState field is valid. bool HealthStateSpecified; // Class Constructor CIM_ManagedSystemElement( const string& objName = CIM_ManagedSystemElement::CLASS_NAME, const string& uri = CIM_ManagedSystemElement::CLASS_URI, const string& ns = CIM_ManagedSystemElement::CLASS_NS, const string& nsPrefix = CIM_ManagedSystemElement::CLASS_NS_PREFIX); // Class Destructor virtual ~CIM_ManagedSystemElement(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/CIM_RemotePort.h0000644012402100775320000001063510746077320024406 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __CIM_REMOTEPORT_H #define __CIM_REMOTEPORT_H #include "CIM_RemoteServiceAccessPoint.h" namespace CimClassNamespace { // Class CIM_RemotePort: // RemotePort adds port information to the access data (such as IP Address), specified in and inherited from RemoteServiceAccessPoint. For example, using the additional properties in this class, one could indicate that UDP Port 123 is accessed at IP Address xyz. The IP Address would be specified in the inherited AccessInfo property, while the UDP Port number would be specified in this class' property, PortInfo. class CIM_RemotePort : public CIM_RemoteServiceAccessPoint { public: // type definitions typedef CimClassContainer CIM_RemotePortContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // Port information that may further specify the remote access information. string PortInfo; // This field determines whether the PortInfo field is valid. bool PortInfoSpecified; // An enumerated integer describing the protocol of the port addressed by PortInformation. // Legal values: // Other: 1 // TCP: 2 // UDP: 3 // Vendor Specific: 32768..65535 unsigned short PortProtocol; // This field determines whether the PortProtocol field is valid. bool PortProtocolSpecified; // Describes the protocol when the property PortProtocol is set to 1 ("Other"). string OtherProtocolDescription; // This field determines whether the OtherProtocolDescription field is valid. bool OtherProtocolDescriptionSpecified; // Class Constructor CIM_RemotePort( const string& objName = CIM_RemotePort::CLASS_NAME, const string& uri = CIM_RemotePort::CLASS_URI, const string& ns = CIM_RemotePort::CLASS_NS, const string& nsPrefix = CIM_RemotePort::CLASS_NS_PREFIX); // Class Destructor virtual ~CIM_RemotePort(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/CIM_RemoteServiceAccessPoint.h0000644012402100775320000002144210746077320027214 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __CIM_REMOTESERVICEACCESSPOINT_H #define __CIM_REMOTESERVICEACCESSPOINT_H #include "CIM_ServiceAccessPoint.h" namespace CimClassNamespace { // Class CIM_RemoteServiceAccessPoint: // RemoteServiceAccessPoint describes access and/or addressing information for a remote connection, that is known to a 'local' network element. This information is scoped/contained by the 'local' network element, since this is the context in which it is 'remote'. // // Why the remote access point is relevant and information on its use are described by subclassing RemoteService AccessPoint, or by associating to it. class CIM_RemoteServiceAccessPoint : public CIM_ServiceAccessPoint { public: // type definitions typedef CimClassContainer CIM_RemoteServiceAccessPointContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // Access and/or addressing information for a remote connection. This can be a host name, network address or similar information. string AccessInfo; // This field determines whether the AccessInfo field is valid. bool AccessInfoSpecified; // An enumerated integer describing the format and interpretation of the AccessInfo property. // Legal values: // Other: 1 // Host Name: 2 // IPv4 Address: 3 // IPv6 Address: 4 // IPX Address: 5 // DECnet Address: 6 // SNA Address: 7 // Autonomous System Number: 8 // MPLS Label: 9 // IPv4 Subnet Address: 10 // IPv6 Subnet Address: 11 // IPv4 Address Range: 12 // IPv6 Address Range: 13 // Dial String: 100 // Ethernet Address: 101 // Token Ring Address: 102 // ATM Address: 103 // Frame Relay Address: 104 // URL: 200 // FQDN: 201 // User FQDN: 202 // DER ASN1 DN: 203 // DER ASN1 GN: 204 // Key ID: 205 // DMTF Reserved: .. // Vendor Reserved: 32768..65535 unsigned short InfoFormat; // This field determines whether the InfoFormat field is valid. bool InfoFormatSpecified; // Describes the format when the property InfoFormat is set to 1 ("Other"). string OtherInfoFormatDescription; // This field determines whether the OtherInfoFormatDescription field is valid. bool OtherInfoFormatDescriptionSpecified; // Invoke RequestStateChange Classes: // Requests that the element's state be changed to the value specified in the RequestedState parameter. When the requested state change takes place, the element's EnabledState and RequestedState will be the same. Invoking the RequestStateChange method multiple times could result in earlier requests being overwritten/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. class RequestStateChange_INPUT : public Serializable { public: // class fields // The state requested for the element. This information will be placed into the instance's RequestedState property if the RequestStateChange method's return code is 0, 3, or 4096 (0x1000) - 'Completed with No Error', 'Timeout', or 'Job Started' respectively. Refer to the description of the EnabledState and RequestedState properties for the detailed meanings of the RequestedState values. // Legal values: // Enabled: 2 // Disabled: 3 // Shut Down: 4 // Offline: 6 // Test: 7 // Defer: 8 // Quiesce: 9 // Reboot: 10 // Reset: 11 // DMTF Reserved: .. // Vendor Reserved: 32768..65535 unsigned short RequestedState; // This field determines whether the RequestedState field is valid. bool RequestedStateSpecified; // 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 doesn't support this parameter. A return code of 'Use Of Timeout Parameter Not Supported' MUST be returned. DateTime TimeoutPeriod; // This field determines whether the TimeoutPeriod field is valid. bool TimeoutPeriodSpecified; // Class Constructor RequestStateChange_INPUT(); // Class Destructor ~RequestStateChange_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class RequestStateChange_OUTPUT : public DeSerializable { public: // class fields // Reference to the job (may be null if task completed). EndpointReference Job; // This field determines whether the Job field is valid. bool JobSpecified; // Function Return Value: // Legal values: // Completed with No Error: 0 // Not Supported: 1 // Unknown/Unspecified Error: 2 // Can NOT complete within Timeout Period: 3 // Failed: 4 // Invalid Parameter: 5 // In Use: 6 // DMTF Reserved: .. // Method Parameters Checked - Job Started: 4096 // Invalid State Transition: 4097 // Use of Timeout Parameter Not Supported: 4098 // Busy: 4099 // Method Reserved: 4100..32767 // Vendor Specific: 32768..65535 unsigned int ReturnValue; // Class Constructor RequestStateChange_OUTPUT(); // Class Destructor ~RequestStateChange_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Class Constructor CIM_RemoteServiceAccessPoint( const string& objName = CIM_RemoteServiceAccessPoint::CLASS_NAME, const string& uri = CIM_RemoteServiceAccessPoint::CLASS_URI, const string& ns = CIM_RemoteServiceAccessPoint::CLASS_NS, const string& nsPrefix = CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); // Class Destructor virtual ~CIM_RemoteServiceAccessPoint(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); // This function performs the Invoke RequestStateChange operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/CIM_Service.h0000644012402100775320000003252210746077320023705 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __CIM_SERVICE_H #define __CIM_SERVICE_H #include "CIM_EnabledLogicalElement.h" namespace CimClassNamespace { // Class CIM_Service: // A CIM_Service is a Logical Element that contains the information necessary to represent and manage the functionality provided by a Device and/or SoftwareFeature. A Service is a general-purpose object to configure and manage the implementation of functionality. It is not the functionality itself. class CIM_Service : public CIM_EnabledLogicalElement { public: // type definitions typedef CimClassContainer CIM_ServiceContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // This field is a Cim Key. // The scoping System's CreationClassName. string SystemCreationClassName; // This field is a Cim Key. // The scoping System's Name. string SystemName; // This field is a Cim Key. // CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified. string CreationClassName; // This field is a Cim Key. // The Name property uniquely identifies the Service and provides an indication of the functionality that is managed. This functionality is described in more detail in the object's Description property. string Name; // The name of the primary owner for the service, if one is defined. The primary owner is the initial support contact for the Service. string PrimaryOwnerName; // This field determines whether the PrimaryOwnerName field is valid. bool PrimaryOwnerNameSpecified; // A string that provides information on how the primary owner of the Service can be reached (e.g. phone number, email address, ...). string PrimaryOwnerContact; // This field determines whether the PrimaryOwnerContact field is valid. bool PrimaryOwnerContactSpecified; // StartMode is a string value indicating whether the Service is automatically started by a System, Operating System, etc. or only started upon request. This property is deprecated in lieu of the EnabledDefault property inherited from EnabledLogicalElement, which addresses the same semantics. The change to a uint16 data type was discussed when CIM V2.0 was defined. However, existing V1.0 implementations used the string property and did not want to modify their code. Therefore, StartMode was grandfathered into the Schema. Use of the Deprecated qualifier allows the maintenance of the existing property, but also permits an improved, clarified definition using EnabledDefault. string StartMode; // This field determines whether the StartMode field is valid. bool StartModeSpecified; // Started is a boolean indicating whether the Service has been started (TRUE), or stopped (FALSE). bool Started; // This field determines whether the Started field is valid. bool StartedSpecified; // Invoke RequestStateChange Classes: // Requests that the element's state be changed to the value specified in the RequestedState parameter. When the requested state change takes place, the element's EnabledState and RequestedState will be the same. Invoking the RequestStateChange method multiple times could result in earlier requests being overwritten/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. class RequestStateChange_INPUT : public Serializable { public: // class fields // The state requested for the element. This information will be placed into the instance's RequestedState property if the RequestStateChange method's return code is 0, 3, or 4096 (0x1000) - 'Completed with No Error', 'Timeout', or 'Job Started' respectively. Refer to the description of the EnabledState and RequestedState properties for the detailed meanings of the RequestedState values. // Legal values: // Enabled: 2 // Disabled: 3 // Shut Down: 4 // Offline: 6 // Test: 7 // Defer: 8 // Quiesce: 9 // Reboot: 10 // Reset: 11 // DMTF Reserved: .. // Vendor Reserved: 32768..65535 unsigned short RequestedState; // This field determines whether the RequestedState field is valid. bool RequestedStateSpecified; // 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 doesn't support this parameter. A return code of 'Use Of Timeout Parameter Not Supported' MUST be returned. DateTime TimeoutPeriod; // This field determines whether the TimeoutPeriod field is valid. bool TimeoutPeriodSpecified; // Class Constructor RequestStateChange_INPUT(); // Class Destructor ~RequestStateChange_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class RequestStateChange_OUTPUT : public DeSerializable { public: // class fields // Reference to the job (may be null if task completed). EndpointReference Job; // This field determines whether the Job field is valid. bool JobSpecified; // Function Return Value: // Legal values: // Completed with No Error: 0 // Not Supported: 1 // Unknown/Unspecified Error: 2 // Can NOT complete within Timeout Period: 3 // Failed: 4 // Invalid Parameter: 5 // In Use: 6 // DMTF Reserved: .. // Method Parameters Checked - Job Started: 4096 // Invalid State Transition: 4097 // Use of Timeout Parameter Not Supported: 4098 // Busy: 4099 // Method Reserved: 4100..32767 // Vendor Specific: 32768..65535 unsigned int ReturnValue; // Class Constructor RequestStateChange_OUTPUT(); // Class Destructor ~RequestStateChange_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Invoke StartService Classes: // The StartService method places the Service in the started state. Note that this method's function overlaps with the RequestedState property. RequestedState was added to the model to maintain a record (i.e., a persisted value) of the last state request. Invoking the StartService method should set the RequestedState property appropriately. The method returns an integer value of 0 if the Service was successfully started, 1 if the request is not supported and any other number to indicate an error. In a subclass, the set of possible return codes could be specified, using a ValueMap qualifier on the method. The strings to which the ValueMap contents are 'translated' may also be specified in the subclass as a Values array qualifier. // // Note that this method overlaps in semantics with the RequestStateChange method inherited from EnabledLogicalElement. This method is maintained since it has been widely implemented, and its simple 'start' semantics are convenient to use. class StartService_INPUT : public Serializable { public: // class fields // Class Constructor StartService_INPUT(); // Class Destructor ~StartService_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class StartService_OUTPUT : public DeSerializable { public: // class fields // Function Return Value: unsigned int ReturnValue; // Class Constructor StartService_OUTPUT(); // Class Destructor ~StartService_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Invoke StopService Classes: // The StopService method places the Service in the stopped state. Note that this method's function overlaps with the RequestedState property. RequestedState was added to the model to maintain a record (i.e., a persisted value) of the last state request. Invoking the StopService method should set the RequestedState property appropriately. The method returns an integer value of 0 if the Service was successfully stopped, 1 if the request is not supported and any other number to indicate an error. In a subclass, the set of possible return codes could be specified, using a ValueMap qualifier on the method. The strings to which the ValueMap contents are 'translated' may also be specified in the subclass as a Values array qualifier. // // Note that this method overlaps in semantics with the RequestStateChange method inherited from EnabledLogicalElement. This method is maintained since it has been widely implemented, and its simple 'stop' semantics are convenient to use. class StopService_INPUT : public Serializable { public: // class fields // Class Constructor StopService_INPUT(); // Class Destructor ~StopService_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class StopService_OUTPUT : public DeSerializable { public: // class fields // Function Return Value: unsigned int ReturnValue; // Class Constructor StopService_OUTPUT(); // Class Destructor ~StopService_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Class Constructor CIM_Service( const string& objName = CIM_Service::CLASS_NAME, const string& uri = CIM_Service::CLASS_URI, const string& ns = CIM_Service::CLASS_NS, const string& nsPrefix = CIM_Service::CLASS_NS_PREFIX); // Class Destructor virtual ~CIM_Service(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); // This function performs the Invoke RequestStateChange operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; // This function performs the Invoke StartService operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeStartService(StartService_INPUT &input, StartService_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; // This function performs the Invoke StopService operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeStopService(StopService_INPUT &input, StopService_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Include/CIM_ServiceAccessPoint.h0000644012402100775320000001766110746077320026050 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __CIM_SERVICEACCESSPOINT_H #define __CIM_SERVICEACCESSPOINT_H #include "CIM_EnabledLogicalElement.h" namespace CimClassNamespace { // Class CIM_ServiceAccessPoint: // CIM_ServiceAccessPoint represents the ability to utilize or invoke a Service. Access points represent that a Service is made available to other entities for use. class CIM_ServiceAccessPoint : public CIM_EnabledLogicalElement { public: // type definitions typedef CimClassContainer CIM_ServiceAccessPointContainer; // static const declarations static const string CLASS_NAME; static const string CLASS_URI; static const string CLASS_NS; static const string CLASS_NS_PREFIX; // class fields // This field is a Cim Key. // The scoping System's CreationClassName. string SystemCreationClassName; // This field is a Cim Key. // The scoping System's Name. string SystemName; // This field is a Cim Key. // CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified. string CreationClassName; // This field is a Cim Key. // The Name property uniquely identifies the ServiceAccessPoint and provides an indication of the functionality that is managed. This functionality is described in more detail in the object's Description property. string Name; // Invoke RequestStateChange Classes: // Requests that the element's state be changed to the value specified in the RequestedState parameter. When the requested state change takes place, the element's EnabledState and RequestedState will be the same. Invoking the RequestStateChange method multiple times could result in earlier requests being overwritten/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. class RequestStateChange_INPUT : public Serializable { public: // class fields // The state requested for the element. This information will be placed into the instance's RequestedState property if the RequestStateChange method's return code is 0, 3, or 4096 (0x1000) - 'Completed with No Error', 'Timeout', or 'Job Started' respectively. Refer to the description of the EnabledState and RequestedState properties for the detailed meanings of the RequestedState values. // Legal values: // Enabled: 2 // Disabled: 3 // Shut Down: 4 // Offline: 6 // Test: 7 // Defer: 8 // Quiesce: 9 // Reboot: 10 // Reset: 11 // DMTF Reserved: .. // Vendor Reserved: 32768..65535 unsigned short RequestedState; // This field determines whether the RequestedState field is valid. bool RequestedStateSpecified; // 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 doesn't support this parameter. A return code of 'Use Of Timeout Parameter Not Supported' MUST be returned. DateTime TimeoutPeriod; // This field determines whether the TimeoutPeriod field is valid. bool TimeoutPeriodSpecified; // Class Constructor RequestStateChange_INPUT(); // Class Destructor ~RequestStateChange_INPUT(){} // This function appends a serialization of this instance to the given node. void SerializeMembers(XMLElement& node) const; }; class RequestStateChange_OUTPUT : public DeSerializable { public: // class fields // Reference to the job (may be null if task completed). EndpointReference Job; // This field determines whether the Job field is valid. bool JobSpecified; // Function Return Value: // Legal values: // Completed with No Error: 0 // Not Supported: 1 // Unknown/Unspecified Error: 2 // Can NOT complete within Timeout Period: 3 // Failed: 4 // Invalid Parameter: 5 // In Use: 6 // DMTF Reserved: .. // Method Parameters Checked - Job Started: 4096 // Invalid State Transition: 4097 // Use of Timeout Parameter Not Supported: 4098 // Busy: 4099 // Method Reserved: 4100..32767 // Vendor Specific: 32768..65535 unsigned int ReturnValue; // Class Constructor RequestStateChange_OUTPUT(); // Class Destructor ~RequestStateChange_OUTPUT(){} // This function sets a field value according to the given node. void SetValue(const XMLElement& elem); }; // Class Constructor CIM_ServiceAccessPoint( const string& objName = CIM_ServiceAccessPoint::CLASS_NAME, const string& uri = CIM_ServiceAccessPoint::CLASS_URI, const string& ns = CIM_ServiceAccessPoint::CLASS_NS, const string& nsPrefix = CIM_ServiceAccessPoint::CLASS_NS_PREFIX); // Class Destructor virtual ~CIM_ServiceAccessPoint(){} // This function appends a serialization of this instance to the given node. virtual void SerializeMembers(XMLElement& node) const; // This function returns the selector set of this instance. virtual NameValuePairs GetSelectorsList() const; // This function sets a field value according to the given node. virtual void SetValue(const XMLElement& node); // This function performs the Invoke RequestStateChange operation using the given input. // The output of the function is returned in the given output class. virtual void InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl = defaultProvider) const; }; } #endif UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/0000755012402100775320000000000010746077321020605 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/AMT_EndpointAccessControlService.cpp0000644012402100775320000002660110746077320027602 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "AMT_EndpointAccessControlService.h" using namespace CimClassNamespace; AMT_EndpointAccessControlService::RequestStateChange_INPUT::RequestStateChange_INPUT() :Serializable("RequestStateChange_INPUT", AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX), RequestedStateSpecified(false), TimeoutPeriodSpecified(false){} void AMT_EndpointAccessControlService::RequestStateChange_INPUT::SerializeMembers(XMLElement& node) const { if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); } if(TimeoutPeriodSpecified) { node.AppendLeaf("TimeoutPeriod", TimeoutPeriod, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); } } AMT_EndpointAccessControlService::RequestStateChange_OUTPUT::RequestStateChange_OUTPUT() :DeSerializable("RequestStateChange_OUTPUT",AMT_EndpointAccessControlService::CLASS_URI), JobSpecified(false){} void AMT_EndpointAccessControlService::RequestStateChange_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "Job") { node.SetComplexType(Job); JobSpecified = true; } else if(name == "ReturnValue") { node.SetValue(ReturnValue); } } AMT_EndpointAccessControlService::GetPosture_INPUT::GetPosture_INPUT() :Serializable("GetPosture_INPUT", AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX){} void AMT_EndpointAccessControlService::GetPosture_INPUT::SerializeMembers(XMLElement& node) const { node.AppendLeaf("PostureType", PostureType, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); } AMT_EndpointAccessControlService::GetPosture_OUTPUT::GetPosture_OUTPUT() :DeSerializable("GetPosture_OUTPUT",AMT_EndpointAccessControlService::CLASS_URI), SignedPostureSpecified(false), PostureChangeHashSpecified(false){} void AMT_EndpointAccessControlService::GetPosture_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "SignedPosture") { node.SetValue(SignedPosture); SignedPostureSpecified = true; } else if(name == "PostureChangeHash") { node.SetValue(PostureChangeHash); PostureChangeHashSpecified = true; } else if(name == "ReturnValue") { node.SetValue(ReturnValue); } } AMT_EndpointAccessControlService::GetPostureHash_INPUT::GetPostureHash_INPUT() :Serializable("GetPostureHash_INPUT", AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX){} void AMT_EndpointAccessControlService::GetPostureHash_INPUT::SerializeMembers(XMLElement& node) const { node.AppendLeaf("PostureType", PostureType, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); } AMT_EndpointAccessControlService::GetPostureHash_OUTPUT::GetPostureHash_OUTPUT() :DeSerializable("GetPostureHash_OUTPUT",AMT_EndpointAccessControlService::CLASS_URI), PostureChangeHashSpecified(false){} void AMT_EndpointAccessControlService::GetPostureHash_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "PostureChangeHash") { node.SetValue(PostureChangeHash); PostureChangeHashSpecified = true; } else if(name == "ReturnValue") { node.SetValue(ReturnValue); } } AMT_EndpointAccessControlService::UpdatePostureState_INPUT::UpdatePostureState_INPUT() :Serializable("UpdatePostureState_INPUT", AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX){} void AMT_EndpointAccessControlService::UpdatePostureState_INPUT::SerializeMembers(XMLElement& node) const { node.AppendLeaf("UpdateType", UpdateType, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); } AMT_EndpointAccessControlService::UpdatePostureState_OUTPUT::UpdatePostureState_OUTPUT() :DeSerializable("UpdatePostureState_OUTPUT",AMT_EndpointAccessControlService::CLASS_URI){} void AMT_EndpointAccessControlService::UpdatePostureState_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "ReturnValue") { node.SetValue(ReturnValue); } } AMT_EndpointAccessControlService::AMT_EndpointAccessControlService( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CIM_Service(objName, uri, ns, nsPrefix){} void AMT_EndpointAccessControlService::SerializeMembers(XMLElement& node) const { node.AppendLeaf("CreationClassName", CreationClassName, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); } if(EnabledStateSpecified) { node.AppendLeaf("EnabledState", EnabledState, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); } node.AppendLeaf("Name", Name, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); } node.AppendLeaf("SystemCreationClassName", SystemCreationClassName, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); node.AppendLeaf("SystemName", SystemName, AMT_EndpointAccessControlService::CLASS_URI, AMT_EndpointAccessControlService::CLASS_NS_PREFIX); } NameValuePairs AMT_EndpointAccessControlService::GetSelectorsList() const { NameValuePairs serList; serList["CreationClassName"] = XMLTypeConverter::TypeToString(CreationClassName); serList["Name"] = XMLTypeConverter::TypeToString(Name); serList["SystemCreationClassName"] = XMLTypeConverter::TypeToString(SystemCreationClassName); serList["SystemName"] = XMLTypeConverter::TypeToString(SystemName); return serList; } void AMT_EndpointAccessControlService::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "Started") { node.SetValue(Started); StartedSpecified = true; } else if(name == "StartMode") { node.SetValue(StartMode); StartModeSpecified = true; } else if(name == "PrimaryOwnerContact") { node.SetValue(PrimaryOwnerContact); PrimaryOwnerContactSpecified = true; } else if(name == "PrimaryOwnerName") { node.SetValue(PrimaryOwnerName); PrimaryOwnerNameSpecified = true; } else if(name == "Name") { node.SetValue(Name); } else if(name == "CreationClassName") { node.SetValue(CreationClassName); } else if(name == "SystemName") { node.SetValue(SystemName); } else if(name == "SystemCreationClassName") { node.SetValue(SystemCreationClassName); } else if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } else if(name == "EnabledState") { node.SetValue(EnabledState); EnabledStateSpecified = true; } else if(name == "OtherEnabledState") { node.SetValue(OtherEnabledState); OtherEnabledStateSpecified = true; } else if(name == "RequestedState") { node.SetValue(RequestedState); RequestedStateSpecified = true; } else if(name == "EnabledDefault") { node.SetValue(EnabledDefault); EnabledDefaultSpecified = true; } else if(name == "TimeOfLastStateChange") { node.SetValue(TimeOfLastStateChange); TimeOfLastStateChangeSpecified = true; } } void AMT_EndpointAccessControlService::InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl) const { Invoke("RequestStateChange", &input, &output, cl); } void AMT_EndpointAccessControlService::InvokeGetPosture(GetPosture_INPUT &input, GetPosture_OUTPUT &output, const WsmanClient *cl) const { Invoke("GetPosture", &input, &output, cl); } void AMT_EndpointAccessControlService::InvokeGetPostureHash(GetPostureHash_INPUT &input, GetPostureHash_OUTPUT &output, const WsmanClient *cl) const { Invoke("GetPostureHash", &input, &output, cl); } void AMT_EndpointAccessControlService::InvokeUpdatePostureState(UpdatePostureState_INPUT &input, UpdatePostureState_OUTPUT &output, const WsmanClient *cl) const { Invoke("UpdatePostureState", &input, &output, cl); } const string AMT_EndpointAccessControlService::CLASS_NAME = "AMT_EndpointAccessControlService"; const string AMT_EndpointAccessControlService::CLASS_URI = "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EndpointAccessControlService"; const string AMT_EndpointAccessControlService::CLASS_NS = "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EndpointAccessControlService"; const string AMT_EndpointAccessControlService::CLASS_NS_PREFIX = "vxEncd"; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/AMT_EventSubscriber.cpp0000644012402100775320000002407210746077320025123 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "AMT_EventSubscriber.h" using namespace CimClassNamespace; AMT_EventSubscriber::RequestStateChange_INPUT::RequestStateChange_INPUT() :Serializable("RequestStateChange_INPUT", AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX), RequestedStateSpecified(false), TimeoutPeriodSpecified(false){} void AMT_EventSubscriber::RequestStateChange_INPUT::SerializeMembers(XMLElement& node) const { if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(TimeoutPeriodSpecified) { node.AppendLeaf("TimeoutPeriod", TimeoutPeriod, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } } AMT_EventSubscriber::RequestStateChange_OUTPUT::RequestStateChange_OUTPUT() :DeSerializable("RequestStateChange_OUTPUT",AMT_EventSubscriber::CLASS_URI), JobSpecified(false){} void AMT_EventSubscriber::RequestStateChange_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "Job") { node.SetComplexType(Job); JobSpecified = true; } else if(name == "ReturnValue") { node.SetValue(ReturnValue); } } AMT_EventSubscriber::AMT_EventSubscriber( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CIM_RemotePort(objName, uri, ns, nsPrefix){} void AMT_EventSubscriber::SerializeMembers(XMLElement& node) const { if(AccessInfoSpecified) { node.AppendLeaf("AccessInfo", AccessInfo, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(CaptionSpecified) { node.AppendLeaf("Caption", Caption, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } node.AppendLeaf("CreationClassName", CreationClassName, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); if(DescriptionSpecified) { node.AppendLeaf("Description", Description, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(EnabledDefaultSpecified) { node.AppendLeaf("EnabledDefault", EnabledDefault, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(EnabledStateSpecified) { node.AppendLeaf("EnabledState", EnabledState, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(HealthStateSpecified) { node.AppendLeaf("HealthState", HealthState, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(InfoFormatSpecified) { node.AppendLeaf("InfoFormat", InfoFormat, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(InstallDateSpecified) { node.AppendLeaf("InstallDate", InstallDate, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } node.AppendLeaf("Name", Name, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); node.AppendLeafArray("OperationalStatus", OperationalStatus, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); if(OtherEnabledStateSpecified) { node.AppendLeaf("OtherEnabledState", OtherEnabledState, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(OtherInfoFormatDescriptionSpecified) { node.AppendLeaf("OtherInfoFormatDescription", OtherInfoFormatDescription, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(OtherProtocolDescriptionSpecified) { node.AppendLeaf("OtherProtocolDescription", OtherProtocolDescription, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(PortInfoSpecified) { node.AppendLeaf("PortInfo", PortInfo, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(PortProtocolSpecified) { node.AppendLeaf("PortProtocol", PortProtocol, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } if(StatusSpecified) { node.AppendLeaf("Status", Status, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } node.AppendLeafArray("StatusDescriptions", StatusDescriptions, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); node.AppendLeaf("SystemCreationClassName", SystemCreationClassName, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); node.AppendLeaf("SystemName", SystemName, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); if(TimeOfLastStateChangeSpecified) { node.AppendLeaf("TimeOfLastStateChange", TimeOfLastStateChange, AMT_EventSubscriber::CLASS_URI, AMT_EventSubscriber::CLASS_NS_PREFIX); } } NameValuePairs AMT_EventSubscriber::GetSelectorsList() const { NameValuePairs serList; serList["CreationClassName"] = XMLTypeConverter::TypeToString(CreationClassName); serList["Name"] = XMLTypeConverter::TypeToString(Name); serList["SystemCreationClassName"] = XMLTypeConverter::TypeToString(SystemCreationClassName); serList["SystemName"] = XMLTypeConverter::TypeToString(SystemName); return serList; } void AMT_EventSubscriber::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "OtherProtocolDescription") { node.SetValue(OtherProtocolDescription); OtherProtocolDescriptionSpecified = true; } else if(name == "PortProtocol") { node.SetValue(PortProtocol); PortProtocolSpecified = true; } else if(name == "PortInfo") { node.SetValue(PortInfo); PortInfoSpecified = true; } else if(name == "Name") { node.SetValue(Name); } else if(name == "CreationClassName") { node.SetValue(CreationClassName); } else if(name == "SystemName") { node.SetValue(SystemName); } else if(name == "SystemCreationClassName") { node.SetValue(SystemCreationClassName); } else if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } else if(name == "EnabledState") { node.SetValue(EnabledState); EnabledStateSpecified = true; } else if(name == "OtherEnabledState") { node.SetValue(OtherEnabledState); OtherEnabledStateSpecified = true; } else if(name == "RequestedState") { node.SetValue(RequestedState); RequestedStateSpecified = true; } else if(name == "EnabledDefault") { node.SetValue(EnabledDefault); EnabledDefaultSpecified = true; } else if(name == "TimeOfLastStateChange") { node.SetValue(TimeOfLastStateChange); TimeOfLastStateChangeSpecified = true; } else if(name == "AccessInfo") { node.SetValue(AccessInfo); AccessInfoSpecified = true; } else if(name == "InfoFormat") { node.SetValue(InfoFormat); InfoFormatSpecified = true; } else if(name == "OtherInfoFormatDescription") { node.SetValue(OtherInfoFormatDescription); OtherInfoFormatDescriptionSpecified = true; } } void AMT_EventSubscriber::InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl) const { Invoke("RequestStateChange", &input, &output, cl); } const string AMT_EventSubscriber::CLASS_NAME = "AMT_EventSubscriber"; const string AMT_EventSubscriber::CLASS_URI = "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EventSubscriber"; const string AMT_EventSubscriber::CLASS_NS = "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_EventSubscriber"; const string AMT_EventSubscriber::CLASS_NS_PREFIX = ""; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/AMT_SOAPEventSubscriber.cpp0000644012402100775320000002115010746077321025601 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "AMT_SOAPEventSubscriber.h" using namespace CimClassNamespace; AMT_SOAPEventSubscriber::AMT_SOAPEventSubscriber( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :AMT_EventSubscriber(objName, uri, ns, nsPrefix), AccessContextSpecified(false), OtherAccessContextSpecified(false), UserNameSpecified(false), PasswordSpecified(false){} void AMT_SOAPEventSubscriber::SerializeMembers(XMLElement& node) const { if(AccessContextSpecified) { node.AppendLeaf("AccessContext", AccessContext, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } node.AppendLeaf("AccessInfo", AccessInfo, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); node.AppendLeafArray("AlertAuthenticationOptions", AlertAuthenticationOptions, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); node.AppendLeaf("CreationClassName", CreationClassName, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } if(EnabledStateSpecified) { node.AppendLeaf("EnabledState", EnabledState, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } if(InfoFormatSpecified) { node.AppendLeaf("InfoFormat", InfoFormat, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } node.AppendLeaf("Name", Name, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); if(OtherAccessContextSpecified) { node.AppendLeaf("OtherAccessContext", OtherAccessContext, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } if(PasswordSpecified) { node.AppendLeaf("Password", Password, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } node.AppendLeaf("PolicyID", PolicyID, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); if(PortProtocolSpecified) { node.AppendLeaf("PortProtocol", PortProtocol, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } if(PortInfoSpecified) { node.AppendLeaf("PortInfo", PortInfo, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } node.AppendLeaf("SystemCreationClassName", SystemCreationClassName, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); node.AppendLeaf("SystemName", SystemName); //, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); if(UserNameSpecified) { node.AppendLeaf("UserName", UserName, AMT_SOAPEventSubscriber::CLASS_URI, AMT_SOAPEventSubscriber::CLASS_NS_PREFIX); } } NameValuePairs AMT_SOAPEventSubscriber::GetSelectorsList() const { NameValuePairs serList; serList["CreationClassName"] = XMLTypeConverter::TypeToString(CreationClassName); serList["Name"] = XMLTypeConverter::TypeToString(Name); serList["SystemCreationClassName"] = XMLTypeConverter::TypeToString(SystemCreationClassName); serList["SystemName"] = XMLTypeConverter::TypeToString(SystemName); return serList; } void AMT_SOAPEventSubscriber::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "OtherInfoFormatDescription") { node.SetValue(OtherInfoFormatDescription); OtherInfoFormatDescriptionSpecified = true; } else if(name == "InfoFormat") { node.SetValue(InfoFormat); InfoFormatSpecified = true; } else if(name == "TimeOfLastStateChange") { node.SetValue(TimeOfLastStateChange); TimeOfLastStateChangeSpecified = true; } else if(name == "EnabledDefault") { node.SetValue(EnabledDefault); EnabledDefaultSpecified = true; } else if(name == "RequestedState") { node.SetValue(RequestedState); RequestedStateSpecified = true; } else if(name == "OtherEnabledState") { node.SetValue(OtherEnabledState); OtherEnabledStateSpecified = true; } else if(name == "EnabledState") { node.SetValue(EnabledState); EnabledStateSpecified = true; } else if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } else if(name == "SystemCreationClassName") { node.SetValue(SystemCreationClassName); } else if(name == "SystemName") { node.SetValue(SystemName); } else if(name == "CreationClassName") { node.SetValue(CreationClassName); } else if(name == "Name") { node.SetValue(Name); } else if(name == "PortInfo") { node.SetValue(PortInfo); PortInfoSpecified = true; } else if(name == "PortProtocol") { node.SetValue(PortProtocol); PortProtocolSpecified = true; } else if(name == "OtherProtocolDescription") { node.SetValue(OtherProtocolDescription); OtherProtocolDescriptionSpecified = true; } else if(name == "AccessInfo") { node.SetValue(AccessInfo); } else if(name == "AccessContext") { node.SetValue(AccessContext); AccessContextSpecified = true; } else if(name == "OtherAccessContext") { node.SetValue(OtherAccessContext); OtherAccessContextSpecified = true; } else if(name == "UserName") { node.SetValue(UserName); UserNameSpecified = true; } else if(name == "Password") { node.SetValue(Password); PasswordSpecified = true; } else if(name == "AlertAuthenticationOptions") { node.AddValue(AlertAuthenticationOptions); } else if(name == "PolicyID") { node.SetValue(PolicyID); } } const string AMT_SOAPEventSubscriber::CLASS_NAME = "AMT_SOAPEventSubscriber"; const string AMT_SOAPEventSubscriber::CLASS_URI = "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_SOAPEventSubscriber"; const string AMT_SOAPEventSubscriber::CLASS_NS = "http://intel.com/wbem/wscim/1/amt-schema/1/AMT_SOAPEventSubscriber"; const string AMT_SOAPEventSubscriber::CLASS_NS_PREFIX = "vxSOeg"; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/CIM_EnabledLogicalElement.cpp0000644012402100775320000002016210746077321026141 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "CIM_EnabledLogicalElement.h" using namespace CimClassNamespace; CIM_EnabledLogicalElement::RequestStateChange_INPUT::RequestStateChange_INPUT() :Serializable("RequestStateChange_INPUT", CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX), RequestedStateSpecified(false), TimeoutPeriodSpecified(false){} void CIM_EnabledLogicalElement::RequestStateChange_INPUT::SerializeMembers(XMLElement& node) const { if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(TimeoutPeriodSpecified) { node.AppendLeaf("TimeoutPeriod", TimeoutPeriod, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } } CIM_EnabledLogicalElement::RequestStateChange_OUTPUT::RequestStateChange_OUTPUT() :DeSerializable("RequestStateChange_OUTPUT",CIM_EnabledLogicalElement::CLASS_URI), JobSpecified(false){} void CIM_EnabledLogicalElement::RequestStateChange_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "Job") { node.SetComplexType(Job); JobSpecified = true; } else if(name == "ReturnValue") { node.SetValue(ReturnValue); } } CIM_EnabledLogicalElement::CIM_EnabledLogicalElement( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CIM_LogicalElement(objName, uri, ns, nsPrefix), EnabledStateSpecified(false), OtherEnabledStateSpecified(false), RequestedStateSpecified(false), EnabledDefaultSpecified(false), TimeOfLastStateChangeSpecified(false){} void CIM_EnabledLogicalElement::SerializeMembers(XMLElement& node) const { if(CaptionSpecified) { node.AppendLeaf("Caption", Caption, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(DescriptionSpecified) { node.AppendLeaf("Description", Description, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(EnabledDefaultSpecified) { node.AppendLeaf("EnabledDefault", EnabledDefault, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(EnabledStateSpecified) { node.AppendLeaf("EnabledState", EnabledState, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(HealthStateSpecified) { node.AppendLeaf("HealthState", HealthState, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(InstallDateSpecified) { node.AppendLeaf("InstallDate", InstallDate, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(NameSpecified) { node.AppendLeaf("Name", Name, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } node.AppendLeafArray("OperationalStatus", OperationalStatus, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); if(OtherEnabledStateSpecified) { node.AppendLeaf("OtherEnabledState", OtherEnabledState, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } if(StatusSpecified) { node.AppendLeaf("Status", Status, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } node.AppendLeafArray("StatusDescriptions", StatusDescriptions, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); if(TimeOfLastStateChangeSpecified) { node.AppendLeaf("TimeOfLastStateChange", TimeOfLastStateChange, CIM_EnabledLogicalElement::CLASS_URI, CIM_EnabledLogicalElement::CLASS_NS_PREFIX); } } NameValuePairs CIM_EnabledLogicalElement::GetSelectorsList() const { NameValuePairs serList; return serList; } void CIM_EnabledLogicalElement::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "Name") { node.SetValue(Name); NameSpecified = true; } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } else if(name == "EnabledState") { node.SetValue(EnabledState); EnabledStateSpecified = true; } else if(name == "OtherEnabledState") { node.SetValue(OtherEnabledState); OtherEnabledStateSpecified = true; } else if(name == "RequestedState") { node.SetValue(RequestedState); RequestedStateSpecified = true; } else if(name == "EnabledDefault") { node.SetValue(EnabledDefault); EnabledDefaultSpecified = true; } else if(name == "TimeOfLastStateChange") { node.SetValue(TimeOfLastStateChange); TimeOfLastStateChangeSpecified = true; } } void CIM_EnabledLogicalElement::InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl) const { Invoke("RequestStateChange", &input, &output, cl); } const string CIM_EnabledLogicalElement::CLASS_NAME = "CIM_EnabledLogicalElement"; const string CIM_EnabledLogicalElement::CLASS_URI = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_EnabledLogicalElement"; const string CIM_EnabledLogicalElement::CLASS_NS = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_EnabledLogicalElement"; const string CIM_EnabledLogicalElement::CLASS_NS_PREFIX = ""; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/CIM_LogicalElement.cpp0000644012402100775320000001174110746077321024671 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "CIM_LogicalElement.h" using namespace CimClassNamespace; CIM_LogicalElement::CIM_LogicalElement( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CIM_ManagedSystemElement(objName, uri, ns, nsPrefix){} void CIM_LogicalElement::SerializeMembers(XMLElement& node) const { if(CaptionSpecified) { node.AppendLeaf("Caption", Caption, CIM_LogicalElement::CLASS_URI, CIM_LogicalElement::CLASS_NS_PREFIX); } if(DescriptionSpecified) { node.AppendLeaf("Description", Description, CIM_LogicalElement::CLASS_URI, CIM_LogicalElement::CLASS_NS_PREFIX); } if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, CIM_LogicalElement::CLASS_URI, CIM_LogicalElement::CLASS_NS_PREFIX); } if(HealthStateSpecified) { node.AppendLeaf("HealthState", HealthState, CIM_LogicalElement::CLASS_URI, CIM_LogicalElement::CLASS_NS_PREFIX); } if(InstallDateSpecified) { node.AppendLeaf("InstallDate", InstallDate, CIM_LogicalElement::CLASS_URI, CIM_LogicalElement::CLASS_NS_PREFIX); } if(NameSpecified) { node.AppendLeaf("Name", Name, CIM_LogicalElement::CLASS_URI, CIM_LogicalElement::CLASS_NS_PREFIX); } node.AppendLeafArray("OperationalStatus", OperationalStatus, CIM_LogicalElement::CLASS_URI, CIM_LogicalElement::CLASS_NS_PREFIX); if(StatusSpecified) { node.AppendLeaf("Status", Status, CIM_LogicalElement::CLASS_URI, CIM_LogicalElement::CLASS_NS_PREFIX); } node.AppendLeafArray("StatusDescriptions", StatusDescriptions, CIM_LogicalElement::CLASS_URI, CIM_LogicalElement::CLASS_NS_PREFIX); } NameValuePairs CIM_LogicalElement::GetSelectorsList() const { NameValuePairs serList; return serList; } void CIM_LogicalElement::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "Name") { node.SetValue(Name); NameSpecified = true; } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } } const string CIM_LogicalElement::CLASS_NAME = "CIM_LogicalElement"; const string CIM_LogicalElement::CLASS_URI = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_LogicalElement"; const string CIM_LogicalElement::CLASS_NS = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_LogicalElement"; const string CIM_LogicalElement::CLASS_NS_PREFIX = ""; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/CIM_ManagedElement.cpp0000644012402100775320000000736010746077321024655 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "CIM_ManagedElement.h" using namespace CimClassNamespace; CIM_ManagedElement::CIM_ManagedElement( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CimClass(objName, uri, ns, nsPrefix), CaptionSpecified(false), DescriptionSpecified(false), ElementNameSpecified(false){} void CIM_ManagedElement::SerializeMembers(XMLElement& node) const { if(CaptionSpecified) { node.AppendLeaf("Caption", Caption, CIM_ManagedElement::CLASS_URI, CIM_ManagedElement::CLASS_NS_PREFIX); } if(DescriptionSpecified) { node.AppendLeaf("Description", Description, CIM_ManagedElement::CLASS_URI, CIM_ManagedElement::CLASS_NS_PREFIX); } if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, CIM_ManagedElement::CLASS_URI, CIM_ManagedElement::CLASS_NS_PREFIX); } } NameValuePairs CIM_ManagedElement::GetSelectorsList() const { NameValuePairs serList; return serList; } void CIM_ManagedElement::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } } const string CIM_ManagedElement::CLASS_NAME = "CIM_ManagedElement"; const string CIM_ManagedElement::CLASS_URI = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ManagedElement"; const string CIM_ManagedElement::CLASS_NS = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ManagedElement"; const string CIM_ManagedElement::CLASS_NS_PREFIX = ""; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/CIM_ManagedSystemElement.cpp0000644012402100775320000001240510746077321026056 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "CIM_ManagedSystemElement.h" using namespace CimClassNamespace; CIM_ManagedSystemElement::CIM_ManagedSystemElement( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CIM_ManagedElement(objName, uri, ns, nsPrefix), InstallDateSpecified(false), NameSpecified(false), StatusSpecified(false), HealthStateSpecified(false){} void CIM_ManagedSystemElement::SerializeMembers(XMLElement& node) const { if(CaptionSpecified) { node.AppendLeaf("Caption", Caption, CIM_ManagedSystemElement::CLASS_URI, CIM_ManagedSystemElement::CLASS_NS_PREFIX); } if(DescriptionSpecified) { node.AppendLeaf("Description", Description, CIM_ManagedSystemElement::CLASS_URI, CIM_ManagedSystemElement::CLASS_NS_PREFIX); } if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, CIM_ManagedSystemElement::CLASS_URI, CIM_ManagedSystemElement::CLASS_NS_PREFIX); } if(HealthStateSpecified) { node.AppendLeaf("HealthState", HealthState, CIM_ManagedSystemElement::CLASS_URI, CIM_ManagedSystemElement::CLASS_NS_PREFIX); } if(InstallDateSpecified) { node.AppendLeaf("InstallDate", InstallDate, CIM_ManagedSystemElement::CLASS_URI, CIM_ManagedSystemElement::CLASS_NS_PREFIX); } if(NameSpecified) { node.AppendLeaf("Name", Name, CIM_ManagedSystemElement::CLASS_URI, CIM_ManagedSystemElement::CLASS_NS_PREFIX); } node.AppendLeafArray("OperationalStatus", OperationalStatus, CIM_ManagedSystemElement::CLASS_URI, CIM_ManagedSystemElement::CLASS_NS_PREFIX); if(StatusSpecified) { node.AppendLeaf("Status", Status, CIM_ManagedSystemElement::CLASS_URI, CIM_ManagedSystemElement::CLASS_NS_PREFIX); } node.AppendLeafArray("StatusDescriptions", StatusDescriptions, CIM_ManagedSystemElement::CLASS_URI, CIM_ManagedSystemElement::CLASS_NS_PREFIX); } NameValuePairs CIM_ManagedSystemElement::GetSelectorsList() const { NameValuePairs serList; return serList; } void CIM_ManagedSystemElement::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "Name") { node.SetValue(Name); NameSpecified = true; } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } } const string CIM_ManagedSystemElement::CLASS_NAME = "CIM_ManagedSystemElement"; const string CIM_ManagedSystemElement::CLASS_URI = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ManagedSystemElement"; const string CIM_ManagedSystemElement::CLASS_NS = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ManagedSystemElement"; const string CIM_ManagedSystemElement::CLASS_NS_PREFIX = ""; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/CIM_RemotePort.cpp0000644012402100775320000001563710746077321024115 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "CIM_RemotePort.h" using namespace CimClassNamespace; CIM_RemotePort::CIM_RemotePort( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CIM_RemoteServiceAccessPoint(objName, uri, ns, nsPrefix), PortInfoSpecified(false), PortProtocolSpecified(false), OtherProtocolDescriptionSpecified(false){} void CIM_RemotePort::SerializeMembers(XMLElement& node) const { if(AccessInfoSpecified) { node.AppendLeaf("AccessInfo", AccessInfo, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); } node.AppendLeaf("CreationClassName", CreationClassName, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); } if(EnabledStateSpecified) { node.AppendLeaf("EnabledState", EnabledState, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); } if(InfoFormatSpecified) { node.AppendLeaf("InfoFormat", InfoFormat, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); } node.AppendLeaf("Name", Name, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); if(PortInfoSpecified) { node.AppendLeaf("PortInfo", PortInfo, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); } if(PortProtocolSpecified) { node.AppendLeaf("PortProtocol", PortProtocol, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); } if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); } node.AppendLeaf("SystemCreationClassName", SystemCreationClassName, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); node.AppendLeaf("SystemName", SystemName, CIM_RemotePort::CLASS_URI, CIM_RemotePort::CLASS_NS_PREFIX); } NameValuePairs CIM_RemotePort::GetSelectorsList() const { NameValuePairs serList; serList["CreationClassName"] = XMLTypeConverter::TypeToString(CreationClassName); serList["Name"] = XMLTypeConverter::TypeToString(Name); serList["SystemCreationClassName"] = XMLTypeConverter::TypeToString(SystemCreationClassName); serList["SystemName"] = XMLTypeConverter::TypeToString(SystemName); return serList; } void CIM_RemotePort::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "OtherInfoFormatDescription") { node.SetValue(OtherInfoFormatDescription); OtherInfoFormatDescriptionSpecified = true; } else if(name == "InfoFormat") { node.SetValue(InfoFormat); InfoFormatSpecified = true; } else if(name == "AccessInfo") { node.SetValue(AccessInfo); AccessInfoSpecified = true; } else if(name == "TimeOfLastStateChange") { node.SetValue(TimeOfLastStateChange); TimeOfLastStateChangeSpecified = true; } else if(name == "EnabledDefault") { node.SetValue(EnabledDefault); EnabledDefaultSpecified = true; } else if(name == "RequestedState") { node.SetValue(RequestedState); RequestedStateSpecified = true; } else if(name == "OtherEnabledState") { node.SetValue(OtherEnabledState); OtherEnabledStateSpecified = true; } else if(name == "EnabledState") { node.SetValue(EnabledState); EnabledStateSpecified = true; } else if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } else if(name == "SystemCreationClassName") { node.SetValue(SystemCreationClassName); } else if(name == "SystemName") { node.SetValue(SystemName); } else if(name == "CreationClassName") { node.SetValue(CreationClassName); } else if(name == "Name") { node.SetValue(Name); } else if(name == "PortInfo") { node.SetValue(PortInfo); PortInfoSpecified = true; } else if(name == "PortProtocol") { node.SetValue(PortProtocol); PortProtocolSpecified = true; } else if(name == "OtherProtocolDescription") { node.SetValue(OtherProtocolDescription); OtherProtocolDescriptionSpecified = true; } } const string CIM_RemotePort::CLASS_NAME = "CIM_RemotePort"; const string CIM_RemotePort::CLASS_URI = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemotePort"; const string CIM_RemotePort::CLASS_NS = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemotePort"; const string CIM_RemotePort::CLASS_NS_PREFIX = "vxReew"; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/CIM_RemoteServiceAccessPoint.cpp0000644012402100775320000002373110746077321026717 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "CIM_RemoteServiceAccessPoint.h" using namespace CimClassNamespace; CIM_RemoteServiceAccessPoint::RequestStateChange_INPUT::RequestStateChange_INPUT() :Serializable("RequestStateChange_INPUT", CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX), RequestedStateSpecified(false), TimeoutPeriodSpecified(false){} void CIM_RemoteServiceAccessPoint::RequestStateChange_INPUT::SerializeMembers(XMLElement& node) const { if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(TimeoutPeriodSpecified) { node.AppendLeaf("TimeoutPeriod", TimeoutPeriod, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } } CIM_RemoteServiceAccessPoint::RequestStateChange_OUTPUT::RequestStateChange_OUTPUT() :DeSerializable("RequestStateChange_OUTPUT",CIM_RemoteServiceAccessPoint::CLASS_URI), JobSpecified(false){} void CIM_RemoteServiceAccessPoint::RequestStateChange_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "Job") { node.SetComplexType(Job); JobSpecified = true; } else if(name == "ReturnValue") { node.SetValue(ReturnValue); } } CIM_RemoteServiceAccessPoint::CIM_RemoteServiceAccessPoint( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CIM_ServiceAccessPoint(objName, uri, ns, nsPrefix), AccessInfoSpecified(false), InfoFormatSpecified(false), OtherInfoFormatDescriptionSpecified(false){} void CIM_RemoteServiceAccessPoint::SerializeMembers(XMLElement& node) const { if(AccessInfoSpecified) { node.AppendLeaf("AccessInfo", AccessInfo, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(CaptionSpecified) { node.AppendLeaf("Caption", Caption, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } node.AppendLeaf("CreationClassName", CreationClassName, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); if(DescriptionSpecified) { node.AppendLeaf("Description", Description, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(EnabledDefaultSpecified) { node.AppendLeaf("EnabledDefault", EnabledDefault, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(EnabledStateSpecified) { node.AppendLeaf("EnabledState", EnabledState, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(HealthStateSpecified) { node.AppendLeaf("HealthState", HealthState, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(InfoFormatSpecified) { node.AppendLeaf("InfoFormat", InfoFormat, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(InstallDateSpecified) { node.AppendLeaf("InstallDate", InstallDate, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } node.AppendLeaf("Name", Name, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); node.AppendLeafArray("OperationalStatus", OperationalStatus, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); if(OtherEnabledStateSpecified) { node.AppendLeaf("OtherEnabledState", OtherEnabledState, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(OtherInfoFormatDescriptionSpecified) { node.AppendLeaf("OtherInfoFormatDescription", OtherInfoFormatDescription, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } if(StatusSpecified) { node.AppendLeaf("Status", Status, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } node.AppendLeafArray("StatusDescriptions", StatusDescriptions, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); node.AppendLeaf("SystemCreationClassName", SystemCreationClassName, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); node.AppendLeaf("SystemName", SystemName, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); if(TimeOfLastStateChangeSpecified) { node.AppendLeaf("TimeOfLastStateChange", TimeOfLastStateChange, CIM_RemoteServiceAccessPoint::CLASS_URI, CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX); } } NameValuePairs CIM_RemoteServiceAccessPoint::GetSelectorsList() const { NameValuePairs serList; serList["CreationClassName"] = XMLTypeConverter::TypeToString(CreationClassName); serList["Name"] = XMLTypeConverter::TypeToString(Name); serList["SystemCreationClassName"] = XMLTypeConverter::TypeToString(SystemCreationClassName); serList["SystemName"] = XMLTypeConverter::TypeToString(SystemName); return serList; } void CIM_RemoteServiceAccessPoint::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "Name") { node.SetValue(Name); } else if(name == "CreationClassName") { node.SetValue(CreationClassName); } else if(name == "SystemName") { node.SetValue(SystemName); } else if(name == "SystemCreationClassName") { node.SetValue(SystemCreationClassName); } else if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } else if(name == "EnabledState") { node.SetValue(EnabledState); EnabledStateSpecified = true; } else if(name == "OtherEnabledState") { node.SetValue(OtherEnabledState); OtherEnabledStateSpecified = true; } else if(name == "RequestedState") { node.SetValue(RequestedState); RequestedStateSpecified = true; } else if(name == "EnabledDefault") { node.SetValue(EnabledDefault); EnabledDefaultSpecified = true; } else if(name == "TimeOfLastStateChange") { node.SetValue(TimeOfLastStateChange); TimeOfLastStateChangeSpecified = true; } else if(name == "AccessInfo") { node.SetValue(AccessInfo); AccessInfoSpecified = true; } else if(name == "InfoFormat") { node.SetValue(InfoFormat); InfoFormatSpecified = true; } else if(name == "OtherInfoFormatDescription") { node.SetValue(OtherInfoFormatDescription); OtherInfoFormatDescriptionSpecified = true; } } void CIM_RemoteServiceAccessPoint::InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl) const { Invoke("RequestStateChange", &input, &output, cl); } const string CIM_RemoteServiceAccessPoint::CLASS_NAME = "CIM_RemoteServiceAccessPoint"; const string CIM_RemoteServiceAccessPoint::CLASS_URI = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemoteServiceAccessPoint"; const string CIM_RemoteServiceAccessPoint::CLASS_NS = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RemoteServiceAccessPoint"; const string CIM_RemoteServiceAccessPoint::CLASS_NS_PREFIX = ""; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/CIM_Service.cpp0000644012402100775320000002472610746077321023414 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "CIM_Service.h" using namespace CimClassNamespace; CIM_Service::RequestStateChange_INPUT::RequestStateChange_INPUT() :Serializable("RequestStateChange_INPUT", CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX), RequestedStateSpecified(false), TimeoutPeriodSpecified(false){} void CIM_Service::RequestStateChange_INPUT::SerializeMembers(XMLElement& node) const { if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(TimeoutPeriodSpecified) { node.AppendLeaf("TimeoutPeriod", TimeoutPeriod, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } } CIM_Service::RequestStateChange_OUTPUT::RequestStateChange_OUTPUT() :DeSerializable("RequestStateChange_OUTPUT",CIM_Service::CLASS_URI), JobSpecified(false){} void CIM_Service::RequestStateChange_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "Job") { node.SetComplexType(Job); JobSpecified = true; } else if(name == "ReturnValue") { node.SetValue(ReturnValue); } } CIM_Service::StartService_INPUT::StartService_INPUT() :Serializable("StartService_INPUT", CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX){} void CIM_Service::StartService_INPUT::SerializeMembers(XMLElement& node) const { } CIM_Service::StartService_OUTPUT::StartService_OUTPUT() :DeSerializable("StartService_OUTPUT",CIM_Service::CLASS_URI){} void CIM_Service::StartService_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "ReturnValue") { node.SetValue(ReturnValue); } } CIM_Service::StopService_INPUT::StopService_INPUT() :Serializable("StopService_INPUT", CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX){} void CIM_Service::StopService_INPUT::SerializeMembers(XMLElement& node) const { } CIM_Service::StopService_OUTPUT::StopService_OUTPUT() :DeSerializable("StopService_OUTPUT",CIM_Service::CLASS_URI){} void CIM_Service::StopService_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "ReturnValue") { node.SetValue(ReturnValue); } } CIM_Service::CIM_Service( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CIM_EnabledLogicalElement(objName, uri, ns, nsPrefix), PrimaryOwnerNameSpecified(false), PrimaryOwnerContactSpecified(false), StartModeSpecified(false), StartedSpecified(false){} void CIM_Service::SerializeMembers(XMLElement& node) const { if(CaptionSpecified) { node.AppendLeaf("Caption", Caption, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } node.AppendLeaf("CreationClassName", CreationClassName, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); if(DescriptionSpecified) { node.AppendLeaf("Description", Description, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(EnabledDefaultSpecified) { node.AppendLeaf("EnabledDefault", EnabledDefault, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(EnabledStateSpecified) { node.AppendLeaf("EnabledState", EnabledState, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(HealthStateSpecified) { node.AppendLeaf("HealthState", HealthState, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(InstallDateSpecified) { node.AppendLeaf("InstallDate", InstallDate, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } node.AppendLeaf("Name", Name, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); node.AppendLeafArray("OperationalStatus", OperationalStatus, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); if(OtherEnabledStateSpecified) { node.AppendLeaf("OtherEnabledState", OtherEnabledState, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(PrimaryOwnerContactSpecified) { node.AppendLeaf("PrimaryOwnerContact", PrimaryOwnerContact, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(PrimaryOwnerNameSpecified) { node.AppendLeaf("PrimaryOwnerName", PrimaryOwnerName, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(StartModeSpecified) { node.AppendLeaf("StartMode", StartMode, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(StartedSpecified) { node.AppendLeaf("Started", Started, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } if(StatusSpecified) { node.AppendLeaf("Status", Status, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } node.AppendLeafArray("StatusDescriptions", StatusDescriptions, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); node.AppendLeaf("SystemCreationClassName", SystemCreationClassName, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); node.AppendLeaf("SystemName", SystemName, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); if(TimeOfLastStateChangeSpecified) { node.AppendLeaf("TimeOfLastStateChange", TimeOfLastStateChange, CIM_Service::CLASS_URI, CIM_Service::CLASS_NS_PREFIX); } } NameValuePairs CIM_Service::GetSelectorsList() const { NameValuePairs serList; serList["CreationClassName"] = XMLTypeConverter::TypeToString(CreationClassName); serList["Name"] = XMLTypeConverter::TypeToString(Name); serList["SystemCreationClassName"] = XMLTypeConverter::TypeToString(SystemCreationClassName); serList["SystemName"] = XMLTypeConverter::TypeToString(SystemName); return serList; } void CIM_Service::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "TimeOfLastStateChange") { node.SetValue(TimeOfLastStateChange); TimeOfLastStateChangeSpecified = true; } else if(name == "EnabledDefault") { node.SetValue(EnabledDefault); EnabledDefaultSpecified = true; } else if(name == "RequestedState") { node.SetValue(RequestedState); RequestedStateSpecified = true; } else if(name == "OtherEnabledState") { node.SetValue(OtherEnabledState); OtherEnabledStateSpecified = true; } else if(name == "EnabledState") { node.SetValue(EnabledState); EnabledStateSpecified = true; } else if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } else if(name == "SystemCreationClassName") { node.SetValue(SystemCreationClassName); } else if(name == "SystemName") { node.SetValue(SystemName); } else if(name == "CreationClassName") { node.SetValue(CreationClassName); } else if(name == "Name") { node.SetValue(Name); } else if(name == "PrimaryOwnerName") { node.SetValue(PrimaryOwnerName); PrimaryOwnerNameSpecified = true; } else if(name == "PrimaryOwnerContact") { node.SetValue(PrimaryOwnerContact); PrimaryOwnerContactSpecified = true; } else if(name == "StartMode") { node.SetValue(StartMode); StartModeSpecified = true; } else if(name == "Started") { node.SetValue(Started); StartedSpecified = true; } } void CIM_Service::InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl) const { Invoke("RequestStateChange", &input, &output, cl); } void CIM_Service::InvokeStartService(StartService_INPUT &input, StartService_OUTPUT &output, const WsmanClient *cl) const { Invoke("StartService", &input, &output, cl); } void CIM_Service::InvokeStopService(StopService_INPUT &input, StopService_OUTPUT &output, const WsmanClient *cl) const { Invoke("StopService", &input, &output, cl); } const string CIM_Service::CLASS_NAME = "CIM_Service"; const string CIM_Service::CLASS_URI = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Service"; const string CIM_Service::CLASS_NS = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Service"; const string CIM_Service::CLASS_NS_PREFIX = ""; UNS-3.2.0.24/WSMAN_Common/MofCppFiles/Src/CIM_ServiceAccessPoint.cpp0000644012402100775320000002124410746077321025540 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "CIM_ServiceAccessPoint.h" using namespace CimClassNamespace; CIM_ServiceAccessPoint::RequestStateChange_INPUT::RequestStateChange_INPUT() :Serializable("RequestStateChange_INPUT", CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX), RequestedStateSpecified(false), TimeoutPeriodSpecified(false){} void CIM_ServiceAccessPoint::RequestStateChange_INPUT::SerializeMembers(XMLElement& node) const { if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } if(TimeoutPeriodSpecified) { node.AppendLeaf("TimeoutPeriod", TimeoutPeriod, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } } CIM_ServiceAccessPoint::RequestStateChange_OUTPUT::RequestStateChange_OUTPUT() :DeSerializable("RequestStateChange_OUTPUT",CIM_ServiceAccessPoint::CLASS_URI), JobSpecified(false){} void CIM_ServiceAccessPoint::RequestStateChange_OUTPUT::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "Job") { node.SetComplexType(Job); JobSpecified = true; } else if(name == "ReturnValue") { node.SetValue(ReturnValue); } } CIM_ServiceAccessPoint::CIM_ServiceAccessPoint( const string& objName, const string& uri, const string& ns, const string& nsPrefix) :CIM_EnabledLogicalElement(objName, uri, ns, nsPrefix){} void CIM_ServiceAccessPoint::SerializeMembers(XMLElement& node) const { if(CaptionSpecified) { node.AppendLeaf("Caption", Caption, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } node.AppendLeaf("CreationClassName", CreationClassName, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); if(DescriptionSpecified) { node.AppendLeaf("Description", Description, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } if(ElementNameSpecified) { node.AppendLeaf("ElementName", ElementName, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } if(EnabledDefaultSpecified) { node.AppendLeaf("EnabledDefault", EnabledDefault, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } if(EnabledStateSpecified) { node.AppendLeaf("EnabledState", EnabledState, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } if(HealthStateSpecified) { node.AppendLeaf("HealthState", HealthState, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } if(InstallDateSpecified) { node.AppendLeaf("InstallDate", InstallDate, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } node.AppendLeaf("Name", Name, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); node.AppendLeafArray("OperationalStatus", OperationalStatus, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); if(OtherEnabledStateSpecified) { node.AppendLeaf("OtherEnabledState", OtherEnabledState, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } if(RequestedStateSpecified) { node.AppendLeaf("RequestedState", RequestedState, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } if(StatusSpecified) { node.AppendLeaf("Status", Status, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } node.AppendLeafArray("StatusDescriptions", StatusDescriptions, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); node.AppendLeaf("SystemCreationClassName", SystemCreationClassName, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); node.AppendLeaf("SystemName", SystemName, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); if(TimeOfLastStateChangeSpecified) { node.AppendLeaf("TimeOfLastStateChange", TimeOfLastStateChange, CIM_ServiceAccessPoint::CLASS_URI, CIM_ServiceAccessPoint::CLASS_NS_PREFIX); } } NameValuePairs CIM_ServiceAccessPoint::GetSelectorsList() const { NameValuePairs serList; serList["CreationClassName"] = XMLTypeConverter::TypeToString(CreationClassName); serList["Name"] = XMLTypeConverter::TypeToString(Name); serList["SystemCreationClassName"] = XMLTypeConverter::TypeToString(SystemCreationClassName); serList["SystemName"] = XMLTypeConverter::TypeToString(SystemName); return serList; } void CIM_ServiceAccessPoint::SetValue(const XMLElement& node) { string name = node.GetNodeName(); if(name == "TimeOfLastStateChange") { node.SetValue(TimeOfLastStateChange); TimeOfLastStateChangeSpecified = true; } else if(name == "EnabledDefault") { node.SetValue(EnabledDefault); EnabledDefaultSpecified = true; } else if(name == "RequestedState") { node.SetValue(RequestedState); RequestedStateSpecified = true; } else if(name == "OtherEnabledState") { node.SetValue(OtherEnabledState); OtherEnabledStateSpecified = true; } else if(name == "EnabledState") { node.SetValue(EnabledState); EnabledStateSpecified = true; } else if(name == "HealthState") { node.SetValue(HealthState); HealthStateSpecified = true; } else if(name == "Status") { node.SetValue(Status); StatusSpecified = true; } else if(name == "StatusDescriptions") { node.AddValue(StatusDescriptions); } else if(name == "OperationalStatus") { node.AddValue(OperationalStatus); } else if(name == "InstallDate") { node.SetValue(InstallDate); InstallDateSpecified = true; } else if(name == "Caption") { node.SetValue(Caption); CaptionSpecified = true; } else if(name == "Description") { node.SetValue(Description); DescriptionSpecified = true; } else if(name == "ElementName") { node.SetValue(ElementName); ElementNameSpecified = true; } else if(name == "SystemCreationClassName") { node.SetValue(SystemCreationClassName); } else if(name == "SystemName") { node.SetValue(SystemName); } else if(name == "CreationClassName") { node.SetValue(CreationClassName); } else if(name == "Name") { node.SetValue(Name); } } void CIM_ServiceAccessPoint::InvokeRequestStateChange(RequestStateChange_INPUT &input, RequestStateChange_OUTPUT &output, const WsmanClient *cl) const { Invoke("RequestStateChange", &input, &output, cl); } const string CIM_ServiceAccessPoint::CLASS_NAME = "CIM_ServiceAccessPoint"; const string CIM_ServiceAccessPoint::CLASS_URI = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAccessPoint"; const string CIM_ServiceAccessPoint::CLASS_NS = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAccessPoint"; const string CIM_ServiceAccessPoint::CLASS_NS_PREFIX = ""; UNS-3.2.0.24/WSMAN_Common/Src/0000755012402100775320000000000010746077321016436 5ustar00gkbld_amtccigk00000000000000UNS-3.2.0.24/WSMAN_Common/Src/CimClass.cpp0000644012402100775320000001074310746077321020645 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "CimClass.h" using namespace CimClassNamespace; // utility function void VerifyClientNotNull(const WsmanClient *cl) { if(!cl) { throw CIMClassException("A NULL WsmanClient pointer was provided.", WSMAN_MISSING_INPUT); } } string CIMCreateErrMsg(const string& name, const string& method, const char* what = NULL) { string ret = "Failed to perform " + name + " " + method + "."; if(what) { ret.append("\n").append(what); } return ret; } CimClass::CimClass(const string& objName, const string& uri, const string& ns, const string& pref): Serializable(objName, ns, pref), DeSerializable(objName, ns), isCreated(false), resourceUri(uri){} CimClass::~CimClass(){} string CimClass::GetObjectName() const { return serializableName; } string CimClass::GetResourceUri() const { return resourceUri; } EndpointReference CimClass::ToEndpointReference() const { EndpointReference d; d.SetResourceUri(GetResourceUri()); if(isCreated) { d.SetSelectors(creationData.GetSelectors()); d.SetAddress(creationData.GetAddress()); } else { d.SetSelectors(GetSelectorsList()); } return d; } void CimClass::Get (const NameValuePairs *selectors, const WsmanClient *cl) { VerifyClientNotNull(cl); Deserialize(cl->Get(GetResourceUri(), selectors)); } void CimClass::Put(const WsmanClient *cl) { VerifyClientNotNull(cl); cl->Put(GetResourceUri(), Serialize(), isCreated ? &creationData.GetSelectors() : &GetSelectorsList()); } void CimClass::Create(const WsmanClient *cl) { VerifyClientNotNull(cl); creationData.Deserialize(cl->Create(GetResourceUri(), Serialize())); isCreated = true; } void CimClass::Delete(const WsmanClient *cl) { VerifyClientNotNull(cl); cl->Delete(GetResourceUri(), isCreated ? &creationData.GetSelectors() : &GetSelectorsList()); } void CimClass::Invoke(const string& functionName, const Serializable* input, DeSerializable* output, const WsmanClient *cl) const { if(!input || !output) { throw CIMClassException(CIMCreateErrMsg(serializableName, "Invoke"+functionName + "\nFunction input output is missing.").c_str(), WSMAN_MISSING_INPUT); } VerifyClientNotNull(cl); output->Deserialize(cl->Invoke(GetResourceUri(), functionName, input->Serialize(), &GetSelectorsList())); } void CimClass::RegisterDefaultWsmanProvider(const WsmanClient *cl) { defaultProvider = cl; } const WsmanClient* CimClass::defaultProvider; UNS-3.2.0.24/WSMAN_Common/Src/Deserializable.cpp0000644012402100775320000000537610746077321022074 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "Deserializable.h" using namespace CimClassNamespace; DeSerializable::DeSerializable(const string& desName, const string& ns) :deSerializableName(desName), dsUri(ns){} DeSerializable::~DeSerializable(){} void DeSerializable::Deserialize(const string& xml) { CimXMLUtilsNamespace::InitXMLLibrary(); XMLDoc d(xml); XMLElement root = d.GetRootNode(); Deserialize(root); } void DeSerializable::Deserialize(const XMLElement& node) { CimXMLUtilsNamespace::InitXMLLibrary(); if(node.HasChildren()) { XMLElement tmp = node.GetFirstChild(); SetValue(tmp); while(tmp.HasNextSibling()) { tmp = tmp.GetNextSibling(); SetValue(tmp); } } } UNS-3.2.0.24/WSMAN_Common/Src/EndpointReference.cpp0000644012402100775320000001315410746077321022545 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "EndpointReference.h" using namespace CimClassNamespace; SelectorSet::SelectorSet(): Serializable("SelectorSet", "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd", "wsman"), DeSerializable("SelectorSet", "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"){} SelectorSet::~SelectorSet(){} void SelectorSet::SerializeMembers(XMLElement& elem) const { for(NameValuePairs::const_iterator it = Selectors.begin() ; it != Selectors.end(); it++) { XMLElement tmp = elem.CreateChildNode("Selector", nsUri, prefix, &it->second); tmp.AddAttribValue("Name", it->first); } } void SelectorSet::SetValue(const XMLElement& elem) { if(elem.GetNodeName() == "Selector") { Selectors[elem.GetAttribValue("Name")] = elem.ToString(); } } ReferenceParameters::ReferenceParameters(): Serializable("ReferenceParameters", "http://schemas.xmlsoap.org/ws/2004/08/addressing", "wsa"), DeSerializable("ReferenceParameters", "http://schemas.xmlsoap.org/ws/2004/08/addressing"){} ReferenceParameters::~ReferenceParameters(){} void ReferenceParameters::SerializeMembers(XMLElement& elem) const { string wsman = "wsman"; string wsmanNs = "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"; elem.AddNSDefinition(wsmanNs, &wsman); elem.AppendLeaf("ResourceUri", uri, wsmanNs, wsman); elem.AppendNode("SelectorSet", Selectors, wsmanNs, wsman); } NameValuePairs ReferenceParameters::GetSelectors() const { return Selectors.Selectors; } void ReferenceParameters::SetSelectors(const NameValuePairs &sel) { Selectors.Selectors.clear(); Selectors.Selectors = sel; } void ReferenceParameters::SetValue(const XMLElement& elem) { if(elem.GetNodeName() == "ResourceURI") { uri = elem.GetTextValue(); } else if(elem.GetNodeName() == "SelectorSet") { Selectors.Deserialize(elem); } } void ReferenceParameters::SetUri(const string& newUri) { uri = newUri; } string ReferenceParameters::GetUri() const { return uri; } EndpointReference::EndpointReference(const string& name, const string& ns, const string& pref): Serializable(name, ns, pref), DeSerializable(name, ns), eprName(name){add = "default";} EndpointReference::~EndpointReference(){} string EndpointReference::GetEPRName() const { return eprName; } void EndpointReference::SetName(const string &name) { eprName = name; } void EndpointReference::SetAddress(const string &newAdd) { add = newAdd; } string EndpointReference::GetAddress() const { return add; } void EndpointReference::SerializeMembers(XMLElement& elem) const { string wsa = "wsa"; string wsaNs = "http://schemas.xmlsoap.org/ws/2004/08/addressing"; elem.AddNSDefinition(wsaNs, &wsa); elem.AppendLeaf("Address", add, wsaNs, wsa); elem.AppendNode("ReferenceParameters", ref, wsaNs, wsa); } void EndpointReference::SetValue(const XMLElement& elem) { if(elem.GetNodeName() == "Address") { add = elem.GetTextValue(); } else if(elem.GetNodeName() == "ReferenceParameters") { ref.Deserialize(elem); } } NameValuePairs EndpointReference::GetSelectors() const { return ref.GetSelectors(); } string EndpointReference::GetResourceURI() const { return ref.GetUri(); } void EndpointReference::SetResourceUri(const string& uri) { ref.SetUri(uri); } void EndpointReference::SetSelectors(const NameValuePairs &sel) { ref.SetSelectors(sel); } bool EndpointReference::CompareResourceURI(const string &uri) const { return (ref.GetUri().compare(uri) == 0); } ResourceCreated::ResourceCreated(): EndpointReference("ResourceCreated", "http://schemas.xmlsoap.org/ws/2004/09/transfer", "wxf"){} ResourceCreated::~ResourceCreated(){} UNS-3.2.0.24/WSMAN_Common/Src/Serializable.cpp0000644012402100775320000000543710746077321021561 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "Serializable.h" using namespace CimClassNamespace; Serializable::Serializable(const string& serName, const string& nameS, const string& nsPref) : serializableName(serName), nsUri(nameS), prefix(nsPref){} Serializable::~Serializable(){} string Serializable::Serialize(const bool includeRoot) const { CimXMLUtilsNamespace::InitXMLLibrary(); XMLDoc doc(serializableName.c_str(), (nsUri.empty() ? NULL : nsUri.c_str()), (prefix.empty() ? prefix.c_str() : NULL)); XMLElement root = doc.GetRootNode(); SerializeMembers(root); if(includeRoot) { return doc.ToString(); } else { return root.ToString(includeRoot); } } UNS-3.2.0.24/WSMAN_Common/Src/XMLTypes.cpp0000644012402100775320000002502110746077321020627 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "XMLTypes.h" #include #define MAX_STRING_SIZE 21 #define BASE_10 10 using namespace CimXMLTypesNamespace; // utility functions static string ToBase64(unsigned char *in, int inlen) { if(!in) { return ""; } char* out = new char[((inlen + 1) * 4) / 3 + 3]; char* out_start = out; // Base 64 Related const char base64digits[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; int iTotalLength = 0; for (; inlen >= 3; inlen -= 3) { iTotalLength += 4; *out++ = base64digits[in[0] >> 2]; *out++ = base64digits[((in[0] << 4) & 0x30) | (in[1] >> 4)]; *out++ = base64digits[((in[1] << 2) & 0x3c) | (in[2] >> 6)]; *out++ = base64digits[in[2] & 0x3f]; in += 3; } if (inlen > 0) { unsigned char fragment; iTotalLength += 4; *out++ = base64digits[in[0] >> 2]; fragment = (in[0] << 4) & 0x30; if (inlen > 1) fragment |= in[1] >> 4; *out++ = base64digits[fragment]; *out++ = (inlen < 2) ? '=' : base64digits[(in[1] << 2) & 0x3c]; *out++ = '='; } *out = '\0'; string tmp = out_start; delete[] out_start; return tmp; } static unsigned char A4toB3(unsigned char *a, unsigned char *b) { char bChars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; char aChars[256]; memset(aChars, 0xff, 256); for(int i=0; i<(int)sizeof(bChars); i++) { aChars[(int)bChars[i]] = (char)i; } unsigned long l = (a[0] << 18) | (a[1] << 12) | (a[2] << 6) | (a[3]); b[0] = (char)((l >> 16)& 0xFF); b[1] = (char)((l >> 8 )& 0xFF); b[2] = (char)((l )& 0xFF); if (a[2] == 64) // '=' return 1; else if (a[3] == 64) // '=' return 2; return 3; } static void FromBase64(const unsigned char * inStr, unsigned char * outStr, unsigned int * outStrSize) { if(!inStr || !outStr) return; unsigned int i, j; unsigned int size = 0; unsigned char a[4], *p=outStr, c; char bChars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; char aChars[256]; memset(aChars, 0xff, 256); for(i=0; i 0) { delete[] data; data = NULL; } len = other.len; if (len > 0) { data = new unsigned char[len]; memcpy(data, other.data, len); } return *this; } void XMLTypeConverter::StringToType(const string& str, int& t) { if(!StringToInteger(str, t)) { throw XMLTypeConvertionException(string("The string ").append(str).append(" could not be converted to type int.").c_str()); } } string XMLTypeConverter::TypeToString(const int& str) { return IntegerToString(str); } void XMLTypeConverter::StringToType(const string& str, unsigned int& t) { if(!StringToUInteger(str, t)) { throw XMLTypeConvertionException(string("The string ").append(str).append(" could not be converted to type unsigned int.").c_str()); } } string XMLTypeConverter::TypeToString(const unsigned int& str) { return UIntegerToString(str); } void XMLTypeConverter::StringToType(const string& str, char& t) { if(!StringToInteger(str, t)) { throw XMLTypeConvertionException(string("The string ").append(str).append(" could not be converted to type char.").c_str()); } } string XMLTypeConverter::TypeToString(const char& str) { return IntegerToString(str); } void XMLTypeConverter::StringToType(const string& str, unsigned char& t) { if(!StringToUInteger(str, t)) { throw XMLTypeConvertionException(string("The string ").append(str).append(" could not be converted to type unsigned char.").c_str()); } } string XMLTypeConverter::TypeToString(const unsigned char& str) { return UIntegerToString(str); } void XMLTypeConverter::StringToType(const string& str, short& t) { if(!StringToInteger(str, t)) { throw XMLTypeConvertionException(string("The string ").append(str).append(" could not be converted to type short.").c_str()); } } string XMLTypeConverter::TypeToString(const short& str) { return IntegerToString(str); } void XMLTypeConverter::StringToType(const string& str, unsigned short& t) { if(!StringToUInteger(str, t)) { throw XMLTypeConvertionException(string("The string ").append(str).append(" could not be converted to type unsigned short.").c_str()); } } string XMLTypeConverter::TypeToString(const unsigned short& str) { return UIntegerToString(str); } void XMLTypeConverter::StringToType(const string& str, Int64& t) { #ifdef _WIN32 t= _atoi64(str.c_str()); #else t= strtoll(str.c_str(),NULL,BASE_10); #endif } string XMLTypeConverter::TypeToString(const Int64& str) { char buffer[MAX_STRING_SIZE]; #ifdef _WIN32 _i64toa_s(str, buffer, MAX_STRING_SIZE, BASE_10); #else sprintf(buffer, "%lld",str); #endif return string(buffer); } void XMLTypeConverter::StringToType(const string& str, Uint64& t) { #ifdef _WIN32 t = _strtoui64(str.c_str(), 0,0); #else sscanf(str.c_str(),"%llu", &t); #endif } string XMLTypeConverter::TypeToString(const Uint64& str) { char buffer[MAX_STRING_SIZE]; #ifdef _WIN32 _ui64toa_s(str, buffer, MAX_STRING_SIZE, BASE_10); #else sprintf(buffer, "%llu",str); #endif return buffer; } void XMLTypeConverter::StringToType(const string& str, bool& t) { if(!str.compare("true") || !str.compare("1")) { t = true; } else if(!str.compare("false") || !str.compare("0")) { t = false; } else { throw XMLTypeConvertionException(string("The string ").append(str).append(" could not be converted to type boolean.").c_str()); } } string XMLTypeConverter::TypeToString(const bool& str) { return (str ? "true" : "false"); } void XMLTypeConverter::StringToType(const string& str, Base64& t) { t.SetData(str); } string XMLTypeConverter::TypeToString(const Base64& buf) { return buf.ToString(); } void XMLTypeConverter::StringToType(const string& str, double& t) { // check the string unsigned int i = (str.length() > 0 && str.at(0) == CHAR_MINUS) ? 1 : 0; bool pointFound = false; bool eFound = false; bool allZeros = true; char c; bool stat = true; for(; i < str.length(); i++) { c = str.at(i); if(c == '.') { if(pointFound) { stat = false; break; } pointFound = true; continue; } if(c == 'e' || c == 'E') { eFound = true; break; } if (c < CHAR_0 || c > CHAR_9) { stat = false; } if(c != CHAR_0) { allZeros = false; } } if(stat && eFound) { i++; c = str.at(i); if(c == '-' || c== '+') { i++; } for(; i < str.length(); i++) { c = str.at(i); if (c < CHAR_0 || c > CHAR_9) { stat = false; } } } if(stat && allZeros) { t = 0.0; return; } if(stat) { t = atof(str.c_str()); if(t == 0.0) { stat = false; } } if(!stat) { throw XMLTypeConvertionException(string("The string ").append(str).append(" could not be converted to type double.").c_str()); } } string XMLTypeConverter::TypeToString(const double& str) { if(str == 0) { return "0"; } return ToString(str); } void XMLTypeConverter::StringToType(const string& str, string& t) { t = str; } string XMLTypeConverter::TypeToString(const string& str) { return str; } UNS-3.2.0.24/WSMAN_Common/Src/XMLUtils_XRCS.cpp0000644012402100775320000005512210746077321021467 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include "XMLUtils.h" #include "RWLock.h" #include #include #include #include #include #include #include #include #include #include #include #include XERCES_CPP_NAMESPACE_USE namespace CimXMLUtilsNamespace { static bool _CimXMLUtilsInitialized = false; static Semaphore _initializationLock; static Semaphore _xmlStringLock; // local utility function string CIMXMLCreateErrMsg(const string& msg, const char* what = NULL) { string ret = msg; if(what) { ret.append(": \n").append(what); } return ret; } // the following utility class was copied from xerces "CreateDomDocument" sample code // --------------------------------------------------------------------------- // This is a simple class that lets us do easy (though not terribly efficient) // trancoding of char* data to XMLCh data. // --------------------------------------------------------------------------- class XStr { public : // ----------------------------------------------------------------------- // Constructors and Destructor // ----------------------------------------------------------------------- XStr(const char* const toTranscode) { // Call the private transcoding method _xmlStringLock.acquire(); fUnicodeForm = XMLString::transcode(toTranscode); _xmlStringLock.release(); } ~XStr() { _xmlStringLock.acquire(); XMLString::release(&fUnicodeForm); _xmlStringLock.release(); } // ----------------------------------------------------------------------- // Getter methods // ----------------------------------------------------------------------- const XMLCh* unicodeForm() const { return fUnicodeForm; } private : // ----------------------------------------------------------------------- // Private data members // // fUnicodeForm // This is the Unicode XMLCh format of the string. // ----------------------------------------------------------------------- XMLCh* fUnicodeForm; }; #define X(str) XStr(str).unicodeForm() // --------------------------------------------------------------------------- // This is a simple class that lets us do easy (though not terribly efficient) // trancoding of to XMLCh data to char* data. // --------------------------------------------------------------------------- class YStr { public : // ----------------------------------------------------------------------- // Constructors and Destructor // ----------------------------------------------------------------------- YStr(const XMLCh* const toTranscode) { // Call the private transcoding method _xmlStringLock.acquire(); fMultibyteForm = XMLString::transcode(toTranscode); _xmlStringLock.release(); } ~YStr() { _xmlStringLock.acquire(); XMLString::release(&fMultibyteForm); _xmlStringLock.release(); } // ----------------------------------------------------------------------- // Getter methods // ----------------------------------------------------------------------- const char* multibyteForm() const { return fMultibyteForm; } private : // ----------------------------------------------------------------------- // Private data members // // fMultibyteForm // This is the multibyteForm format of the string. // ----------------------------------------------------------------------- char* fMultibyteForm; }; #define Y(str) YStr(str).multibyteForm() class XMLElementImpl { friend class XMLDocImpl; private: DOMElement* domElement; xercesc_2_7::DOMDocument* domDoc; public: XMLElementImpl(DOMElement* element) { if (element == NULL) { throw CIMXMLException("Failed to create XMLElement. Malformed XML\n"); } domElement = element; try { domDoc = domDoc = domElement->getOwnerDocument(); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create XMLElement", Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create XMLElement",Y(e.getMessage())).c_str()); } } XMLElementImpl(const XMLElementImpl& element) { domElement = element.domElement; domDoc = element.domDoc; } ~XMLElementImpl() { domElement = NULL; domDoc = NULL; } XMLElementImpl& operator=(const XMLElementImpl &other ) { domElement = other.domElement; domDoc = other.domDoc; return *this; } XMLElementImpl* CreateChildNode(const string& nodeName, const string& ns, const string& prefix, const string* text = NULL) { try { string qn = !prefix.empty() ? prefix + ":" + nodeName : nodeName; DOMElement* elem = domDoc->createElementNS( !ns.empty() ? X(ns.c_str()) : NULL, X(qn.c_str())); domElement->appendChild(elem); if(text) { DOMText* val = domDoc->createTextNode(X(text->c_str())); elem->appendChild(val); } return new XMLElementImpl(elem); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create XMLElement",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create XMLElement",Y(e.getMessage())).c_str()); } } void CreateLeafNode(const string& nodeName, const string& ns, const string& prefix, const string& nodeValue) { try { string qn = !prefix.empty() ? prefix + ":" + nodeName : nodeName; DOMElement* elem = domDoc->createElementNS( !ns.empty() ? X(ns.c_str()) : NULL, X(qn.c_str())); domElement->appendChild(elem); DOMText* val = domDoc->createTextNode(X(nodeValue.c_str())); elem->appendChild(val); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create XMLElement",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create XMLElement",Y(e.getMessage())).c_str()); } } void AddText(const string& nodeValue) { try { DOMText* val = domDoc->createTextNode(X(nodeValue.c_str())); domElement->appendChild(val); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to add text node",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to add text node",Y(e.getMessage())).c_str()); } } bool HasNextSibling() const { try { DOMNode* tmp = domElement->getNextSibling(); while(tmp != NULL && tmp->getNodeType() != DOMNode::ELEMENT_NODE) { tmp = tmp->getNextSibling(); } return (tmp != NULL); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve sibling",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve sibling",Y(e.getMessage())).c_str()); } } XMLElementImpl* GetNextSibling() const { try { DOMNode* tmp = domElement->getNextSibling(); while(tmp != NULL && tmp->getNodeType() != DOMNode::ELEMENT_NODE) { tmp = tmp->getNextSibling(); } return new XMLElementImpl((DOMElement*)tmp); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve sibling",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve sibling",Y(e.getMessage())).c_str()); } } bool HasChildren() const { try { if(!domElement->hasChildNodes()) { return false; } DOMNode* child = domElement->getFirstChild(); while(child && child->getNodeType() != DOMNode::ELEMENT_NODE) { child = child->getNextSibling(); } return (child != NULL); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve children",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve children",Y(e.getMessage())).c_str()); } } bool IsLeafNode() const { return !HasChildren(); } XMLElementImpl* GetFirstChild() const { try { DOMNode* child = domElement->getFirstChild(); while(child && child->getNodeType() != DOMNode::ELEMENT_NODE) { child = child->getNextSibling(); } return new XMLElementImpl((DOMElement*)child); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve children",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve children",Y(e.getMessage())).c_str()); } } string GetNodeName() const { try { return Y(domElement->getLocalName()); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve name",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve name",Y(e.getMessage())).c_str()); } } string GetNSUri() const { try { return Y(domElement->getNamespaceURI()); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve value",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve value",Y(e.getMessage())).c_str()); } } string GetTextValue() const { try { return Y(domElement->getTextContent()); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve value",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve value",Y(e.getMessage())).c_str()); } } string ToString(bool incRoot = false) const { if(!incRoot && IsLeafNode()) { return GetTextValue(); } string xml = ""; DOMWriter* writer = NULL; XMLFormatTarget* dest = NULL; try { DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation(X("LS")); writer = ((DOMImplementationLS*)impl)->createDOMWriter(); dest = new MemBufFormatTarget(); writer->setEncoding(X("UTF-8")); if(incRoot) { writer->writeNode(dest, *domElement); xml = (char*)((MemBufFormatTarget*)dest)->getRawBuffer(); } else { for(DOMNode* child = domElement->getFirstChild(); child != NULL; child = child->getNextSibling()) { if(child->getNodeType() == DOMNode::ELEMENT_NODE) { writer->writeNode(dest, *child); } } xml += (char*)((MemBufFormatTarget*)dest)->getRawBuffer(); } } catch (XMLException& e) { if(writer) { writer->release(); } if(dest) { delete dest; } throw CIMXMLException(CIMXMLCreateErrMsg("Failed to serialize element",Y(e.getMessage())).c_str()); } catch (DOMException& e) { if(writer) { writer->release(); } if(dest) { delete dest; } throw CIMXMLException(CIMXMLCreateErrMsg("Failed to serialize element",Y(e.getMessage())).c_str()); } if(writer) { writer->release(); } if(dest) { delete dest; } return xml; } void GetAttributes(map& attribs) const { try { if(domElement->hasAttributes()) { DOMNamedNodeMap* NodeMap = domElement->getAttributes(); for (XMLSize_t i=0; i < NodeMap->getLength(); ++i) { attribs[Y(NodeMap->item(i)->getNodeName())] = Y(NodeMap->item(i)->getNodeValue()); } } } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve attributes",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve attributes",Y(e.getMessage())).c_str()); } } string GetAttribValue(const string& name) const { try { string ret = ""; if(domElement->hasAttributes()) { DOMNamedNodeMap* NodeMap = domElement->getAttributes(); for (XMLSize_t i=0; i < NodeMap->getLength(); ++i) { if(name.compare(Y(NodeMap->item(i)->getNodeName())) == 0) { ret = Y(NodeMap->item(i)->getNodeValue()); break; } } } return ret; } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve attributes",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve attributes",Y(e.getMessage())).c_str()); } } void AddAttribValue(const string& name, const string& value) { try { domElement->setAttribute(X(name.c_str()), X(value.c_str())); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to add attribute",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to add attribute",Y(e.getMessage())).c_str()); } } void AddNSDefinition(const string& ns, const string* prefix = NULL) { string qn = "xmlns"; if(prefix && !prefix->empty()) { qn.append(":").append(*prefix); } try { DOMAttr* att = domDoc->createAttributeNS(X("http://www.w3.org/2000/xmlns/"), X(qn.c_str())); att->setNodeValue(X(ns.c_str())); domElement->setAttributeNode(att); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to add attribute",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to add attribute",Y(e.getMessage())).c_str()); } } }; class XMLDocImpl { private: DOMDocument* doc; XercesDOMParser *parser; bool parsed; public: XMLDocImpl(const string& xml):doc(NULL), parser(NULL) { try { parsed = true; MemBufInputSource source((const XMLByte*) xml.c_str(), xml.length(),"ID"); parser = new XercesDOMParser; parser->setDoNamespaces(true); parser->parse(source); doc = parser->getDocument(); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create xml document",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create xml document",Y(e.getMessage())).c_str()); } } XMLDocImpl(const char* rootName, const char* uri, const char* prefix):doc(NULL), parser(NULL) { parsed = false; try { const char* ln = (rootName && strcmp(rootName, "") != 0) ? rootName : "root"; string qn = prefix && strcmp(prefix, "") != 0 ? string(prefix).append(":").append(ln) : string(ln); DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation(X("LS")); doc = impl->createDocument(uri && strcmp(uri, "") ? X(uri) : NULL, X(qn.c_str()), 0); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create xml document",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to create xml document",Y(e.getMessage())).c_str()); } } ~XMLDocImpl() { if(parsed && parser) { delete parser; parser = NULL; } else if(doc) { doc->release(); doc = NULL; } } XMLElement GetRootNode() { try { DOMElement* rootElem = doc->getDocumentElement(); return XMLElement(new XMLElementImpl(rootElem)); } catch (XMLException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve root element",Y(e.getMessage())).c_str()); } catch (DOMException& e) { throw CIMXMLException(CIMXMLCreateErrMsg("Failed to retrieve root element",Y(e.getMessage())).c_str()); } } string ToString(bool incVersionStr = false) { string xml; DOMWriter* writer = NULL; XMLFormatTarget* dest = NULL; try { DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation(X("LS")); writer = ((DOMImplementationLS*)impl)->createDOMWriter(); dest = new MemBufFormatTarget(); writer->setEncoding(X("UTF-8")); if(incVersionStr) { writer->writeNode(dest, *doc); } else { writer->writeNode(dest, *(doc->getDocumentElement())); } xml = (char*)((MemBufFormatTarget*)dest)->getRawBuffer(); } catch (XMLException& e) { if(writer) { writer->release(); } if(dest) { delete dest; } throw CIMXMLException(CIMXMLCreateErrMsg("Failed to serialize XML document",Y(e.getMessage())).c_str()); } catch (DOMException& e) { if(writer) { writer->release(); } if(dest) { delete dest; } throw CIMXMLException(CIMXMLCreateErrMsg("Failed to serialize XML document",Y(e.getMessage())).c_str()); } if(writer) { writer->release(); } if(dest) { delete dest; } return xml; } }; }; // CimXMLUtilsNamespace; using namespace CimXMLUtilsNamespace; void CimXMLUtilsNamespace::InitXMLLibrary() { // threadsafety!!! if (_CimXMLUtilsInitialized) return; _initializationLock.acquire(); if (!_CimXMLUtilsInitialized) { XMLPlatformUtils::Initialize(); _CimXMLUtilsInitialized = true; } _initializationLock.release(); } void CimXMLUtilsNamespace::TerminateXMLLibrary() { XMLPlatformUtils::Terminate(); } CimXMLUtilsNamespace::XMLElement::XMLElement(XMLElementImpl* i) { impl = i; } CimXMLUtilsNamespace::XMLElement::XMLElement(const XMLElement& other) { impl = new XMLElementImpl(*(other.impl)); } CimXMLUtilsNamespace::XMLElement& XMLElement::operator=(const XMLElement &other) { delete impl; impl = new XMLElementImpl(*(other.impl)); return *this; } CimXMLUtilsNamespace::XMLElement::~XMLElement() { delete impl; impl = NULL; } XMLElement CimXMLUtilsNamespace::XMLElement::CreateChildNode(const string& nodeName, const string& ns, const string& prefix, const string* text) { return XMLElement(impl->CreateChildNode(nodeName, ns, prefix, text)); } void CimXMLUtilsNamespace::XMLElement::CreateLeafNode(const string& nodeName, const string& ns, const string& prefix, const string& nodeValue) { impl->CreateLeafNode(nodeName, ns, prefix, nodeValue); } void CimXMLUtilsNamespace::XMLElement::AddText(const string& nodeValue) { impl->AddText(nodeValue); } bool CimXMLUtilsNamespace::XMLElement::HasNextSibling() const { return impl->HasNextSibling(); } XMLElement CimXMLUtilsNamespace::XMLElement::GetNextSibling() const { return XMLElement(impl->GetNextSibling()); } bool CimXMLUtilsNamespace::XMLElement::HasChildren() const { return impl->HasChildren(); } bool CimXMLUtilsNamespace::XMLElement::IsLeafNode() const { return impl->IsLeafNode(); } XMLElement CimXMLUtilsNamespace::XMLElement::GetFirstChild() const { return XMLElement(impl->GetFirstChild()); } string CimXMLUtilsNamespace::XMLElement::GetNodeName() const { return impl->GetNodeName(); } string CimXMLUtilsNamespace::XMLElement::GetTextValue() const { return impl->GetTextValue(); } string CimXMLUtilsNamespace::XMLElement::ToString(bool incRoot) const { return impl->ToString(incRoot); } string CimXMLUtilsNamespace::XMLElement::GetNSUri() const { return impl->GetNSUri(); } void CimXMLUtilsNamespace::XMLElement::GetAttributes(map& attribs) const { impl->GetAttributes(attribs); } string CimXMLUtilsNamespace::XMLElement::GetAttribValue(const string& name) const { return impl->GetAttribValue(name); } void CimXMLUtilsNamespace::XMLElement::AddAttribValue(const string& name, const string& value) { impl->AddAttribValue(name, value); } void CimXMLUtilsNamespace::XMLElement::AddNSDefinition(const string& ns, const string* prefix) { impl->AddNSDefinition(ns, prefix); } // XMLDoc function implementations CimXMLUtilsNamespace::XMLDoc::XMLDoc(const string& xml) { impl = new XMLDocImpl(xml); } CimXMLUtilsNamespace::XMLDoc::XMLDoc(const char* rootName, const char* uri, const char* prefix) { impl = new XMLDocImpl(rootName, uri, prefix); } CimXMLUtilsNamespace::XMLDoc::~XMLDoc() { delete impl; } XMLElement CimXMLUtilsNamespace::XMLDoc::GetRootNode() { return impl->GetRootNode(); } string CimXMLUtilsNamespace::XMLDoc::ToString(bool incVersionStr) { return impl->ToString(incVersionStr); } UNS-3.2.0.24/PostureRetrievalThread.cpp0000644012402100775320000001642110746077322020672 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "PostureRetrievalThread.h" #include "Credentials.h" #include "AMTPPSharedData.h" #include "AMTPPDefs.h" #include "UNSEventLogger.h" #include "UNSConfig.h" // Set the static constants values. const unsigned long PostureRetrievalThread::DEFAULT_RETRIEVAL_INTERVAL = 5 * MINUTE; const unsigned long PostureRetrievalThread::HECI_DOWNTIME_ON_RESUME = 10 * SECOND; const unsigned long PostureRetrievalThread::MIN_GET_POSTURE_INTERVAL = 1 * SECOND; const unsigned long PostureRetrievalThread::MAX_GET_POSTURE_INTERVAL = 24 * 60 * MINUTE; PostureRetrievalThread::PostureRetrievalThread(UNSEventLogger *pLogger/*=NULL*/) : PeriodicActionThread("PostureRetrieval", DEFAULT_RETRIEVAL_INTERVAL, HECI_DOWNTIME_ON_RESUME) { m_pLogger = pLogger; m_EACWsmanClient.SetLogger(pLogger); m_State = INITIAL_CLEANUP_STATE; } void PostureRetrievalThread::SetLogger(UNSEventLogger *pLogger) { m_pLogger = pLogger; m_EACWsmanClient.SetLogger(pLogger); } bool PostureRetrievalThread::init(const UNSConfig &Config) { unsigned long nGetPostureInterval = Config.GetPostureInterval(); if (nGetPostureInterval < MIN_GET_POSTURE_INTERVAL) { char logMsg[512]; sprintf(logMsg, "GetPostureInterval was too low, %lu. Setting it to %lu.\n", nGetPostureInterval, MIN_GET_POSTURE_INTERVAL); m_pLogger->WarningLog(logMsg); nGetPostureInterval = MIN_GET_POSTURE_INTERVAL; } else if (nGetPostureInterval > MAX_GET_POSTURE_INTERVAL) { char logMsg[512]; sprintf(logMsg, "GetPostureInterval was too high, %lu. Setting it to %lu.\n", nGetPostureInterval, MAX_GET_POSTURE_INTERVAL); m_pLogger->WarningLog(logMsg); nGetPostureInterval = MAX_GET_POSTURE_INTERVAL; } setActionInterval(nGetPostureInterval); return true; } void PostureRetrievalThread::SetCredentials(const Credentials &cred) { m_EACWsmanClient.SetCredentials(cred); } void PostureRetrievalThread::cleanup() { AMTPPSharedData SharedPosture(AMT_PP_REG_POSTURE); AMTPPSharedData SharedHash(AMT_PP_REG_POSTURE_HASH); if (SharedPosture.Remove()) printf("Cleanup: Shared posture was removed\n"); if (SharedHash.Remove()) printf("Cleanup: Shared hash was removed\n"); m_pLogger = NULL; } /*InitialCleanup is intended for a case that the service was killed, and we didn't have a chance to remove the shared data.*/ PostureRetrievalThread::State PostureRetrievalThread::InitialCleanup() { cleanup(); return CheckEACEnablement(); //Proceed to check if EAC is enabled } PostureRetrievalThread::State PostureRetrievalThread::CheckEACEnablementFailure() { return CheckEACEnablement(false); } PostureRetrievalThread::State PostureRetrievalThread::CheckEACEnablement(bool bLogFailure /*= true*/) { bool bEACEnabled = false; if (!m_EACWsmanClient.IsEACEnabled(bEACEnabled)) { //We couldn't get EAC status - next time we'll try again. if (bLogFailure && m_pLogger) { //Only log this message once before going into failure state m_pLogger->GetEACStatusFailedError(); } return CHECK_EAC_ENABLEMENT_FAILURE_STATE; } if (bEACEnabled) { printf("EAC is enabled - trying to get posture.\n"); //EAC is enabled - try to get posture now. return GetPosture(); } else { printf("EAC is disabled - will check again if enabled next time.\n"); //EAC is not enabled - next time we'll check again if it's enabled. return CHECK_EAC_ENABLEMENT_STATE; } } void PostureRetrievalThread::SetIP(const string &ip) { m_EACWsmanClient.SetIP(ip); return; } PostureRetrievalThread::State PostureRetrievalThread::GetPosture() { AMTPPSharedData SharedPosture(AMT_PP_REG_POSTURE, true, true); AMTPPSharedData SharedHash(AMT_PP_REG_POSTURE_HASH, true, true); /* Read Posture */ unsigned char *pPosture = NULL; unsigned char *pHash = NULL; unsigned int nPostureLen = 0; unsigned int nHashLen = 0; if (!m_EACWsmanClient.GetPosture(&pPosture, nPostureLen, &pHash, nHashLen)) { if (m_pLogger) m_pLogger->GetPostureFailedError(); //Get posture failed - next time we'll check if EAC is enabled. return CHECK_EAC_ENABLEMENT_STATE; } /*Write Posture and Hash to registry*/ if (!SharedPosture.Write(pPosture, nPostureLen, true)) { printf("SharedPosture.Write failed. lastError=%d.\n", SharedPosture.LastError()); if (m_pLogger) m_pLogger->WriteSharedDataError(); return GETTING_POSTURE_STATE; //Stay in this state } printf("Shared Posture was written\n"); if (!SharedHash.Write(pHash, nHashLen, true)) { printf("SharedHash.Write failed. lastError=%d.\n", SharedHash.LastError()); if (m_pLogger) m_pLogger->WriteSharedDataError(); return GETTING_POSTURE_STATE; //Stay in this state } printf("Shared Hash was written\n"); /*Hash and posture were successfully written, so we can release ownership of them, and allow them to not be removed.*/ SharedPosture.ReleaseOwnership(); SharedHash.ReleaseOwnership(); return GETTING_POSTURE_STATE; } void PostureRetrievalThread::action() { switch (m_State) { case INITIAL_CLEANUP_STATE: m_State = InitialCleanup(); break; case CHECK_EAC_ENABLEMENT_STATE: m_State = CheckEACEnablement(); break; case CHECK_EAC_ENABLEMENT_FAILURE_STATE: m_State = CheckEACEnablementFailure(); break; case GETTING_POSTURE_STATE: m_State = GetPosture(); break; } } UNS-3.2.0.24/aclocal.m40000644012402100775320000101252610746077321015361 0ustar00gkbld_amtccigk00000000000000# 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 </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 < #endif #include #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.so # instead of lib.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 if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 DLLs AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- # set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognise shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognise a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix3*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # it is assumed to be `libltdl'. LIBLTDL will be prefixed with # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' # (note the single quotes!). If your package is not flat and you're not # using automake, define top_builddir and top_srcdir appropriately in # the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # and an installed libltdl is not found, it is assumed to be `libltdl'. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and top_srcdir # appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # ------------------ AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP fi ])# _LT_AC_PROG_CXXCPP # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # ------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' ;; *) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix3*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) # ------------------------------------ # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # 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 # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # 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 EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux*) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc*) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac # # Check to make sure the static flag actually works. # wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; interix3*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi[[45]]*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; *) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_MSG_RESULT([$SED]) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [$4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 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. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 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. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 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. # serial 4 # This was merged into AC_PROG_CC in Autoconf. AU_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC AC_DIAGNOSE([obsolete], [$0: your code should no longer depend upon `am_cv_prog_cc_stdc', but upon `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when you adjust the code. You can also remove the above call to AC_PROG_CC if you already called it elsewhere.]) am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ]) AU_DEFUN([fp_PROG_CC_STDC]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 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. # serial 7 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE]) AC_SUBST([$1_FALSE]) if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 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. # serial 8 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 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. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- 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. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 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. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 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. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 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. # serial 4 AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 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. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 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. # serial 4 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 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. # AM_PROG_MKDIR_P # --------------- # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 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. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 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. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 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. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 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. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR UNS-3.2.0.24/AMTPPDefs.h0000644012402100775320000000543310746077321015353 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _AMT_POSTURE_DEFS_H #define _AMT_POSTURE_DEFS_H #define AMT_PP_REG_POSTURE ("Posture") #define AMT_PP_REG_POSTURE_HASH ("PostureHash") #define AMT_PP_REG_OLD_POSTURE_HASH ("OldPostureHash") #ifdef _WIN32 #define AMT_PP_REG_BASE ("SOFTWARE\\Intel") // Registry location for AMT specific information #else #define AMT_PP_REG_BASE ("etc/Intel") #endif #define AMT_PP_REG_KEY ("IntelAMTPP") #define AMT_PP_REG_DONT_REMOVE ("DONT_REMOVE") #define AMT_PP_REG_CERT_NAME ("CertificateName") #define AMT_PP_REG_HOST_NAME ("HostName") // If the AMT hostname is different from the computer name #define AMT_PP_REG_TLS ("TLS") #define AMT_PP_REG_POSTURE_HASH ("PostureHash") #endif UNS-3.2.0.24/AMTPPSharedData.cpp0000644012402100775320000001320010746077321017014 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ // Defines the entry point for the console application. // #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "AMTPPSharedData.h" #include "AMTPPDefs.h" #ifdef _WIN32 #include #include #include #endif #include #include #include #include #include "CryptUtils.h" AMTPPSharedData::AMTPPSharedData(const char * name, bool bOwner /*= false*/, bool bPublic /*= false*/) : _name(name), m_bOwner(bOwner), m_bPublic(bPublic) { _lastError = 0; } AMTPPSharedData::~AMTPPSharedData() { if (m_bOwner) Remove(); } bool AMTPPSharedData::Read(unsigned char * buff,unsigned int &length, bool decrypt){ UNSREG_DATATYPE valueSize; UNSREG_DATATYPE type; bool res = true; // //data to read is encrypted // if(true == decrypt){ if (true == GetRegistryData(NULL, &valueSize, &type, AMT_PP_REG_BASE, AMT_PP_REG_KEY, const_cast(_name))) { if (valueSize > 0) { char * decBuf = new char[valueSize]; char * tmpBuff = NULL; if (false == GetRegistryData(decBuf, &valueSize, &type, AMT_PP_REG_BASE, AMT_PP_REG_KEY,const_cast (_name))) { #ifdef _WIN32 _lastError = GetLastError(); #endif res = false; } else{ if(false == Decrypt(decBuf, (unsigned long*)&valueSize, (void**)&tmpBuff)){ res = false; } else{ if (buff == NULL || valueSize > length) { #ifdef _WIN32 _lastError = ERROR_BAD_LENGTH; #endif length = valueSize; res = false; } else{ memcpy(buff,tmpBuff,valueSize); } if(NULL != tmpBuff) #ifdef _WIN32 if( NULL != LocalFree(tmpBuff)){ //could not free memory } #else delete [] tmpBuff; #endif } } delete [] decBuf; } else{ //could not read from registry #ifdef _WIN32 _lastError = GetLastError(); #endif length = 0; res=false; } } } // //data to read is not encrypted // else{ if (true == GetRegistryData(NULL, &valueSize, &type, AMT_PP_REG_BASE, AMT_PP_REG_KEY, const_cast(_name))) { if (valueSize > 0) { if (buff == NULL || valueSize > length) { //_lastError = ERROR_BAD_LENGTH; length = valueSize; res = false; } else{ if (false == GetRegistryData(buff, &valueSize, &type, AMT_PP_REG_BASE, AMT_PP_REG_KEY,const_cast (_name))) { //_lastError = GetLastError(); res = false; } } } } } return res; } bool AMTPPSharedData::Write(const unsigned char *buff,unsigned int length, bool encrypt){ if(true == encrypt){ char * encBuf = NULL; unsigned long llength = length; Encrypt(buff, (unsigned long*)&llength, (void**)&encBuf); if (false == SetRegistryData( encBuf, (UNSREG_DATATYPE)llength, REG_BINARY, AMT_PP_REG_BASE, AMT_PP_REG_KEY, const_cast(_name), m_bPublic)) { //_lastError = GetLastError(); return false; } if(NULL != encBuf){ #ifdef _WIN32 if( NULL != LocalFree(encBuf)){ //could not free memory } #else delete [] encBuf; #endif } } else{ if(false == SetRegistryData( buff, (UNSREG_DATATYPE)length, REG_BINARY, AMT_PP_REG_BASE, AMT_PP_REG_KEY, const_cast(_name), m_bPublic)){ //_lastError = GetLastError(); return false; } } return true; } bool AMTPPSharedData::Remove(){ if(true == DeleteRegistryVal(AMT_PP_REG_BASE, AMT_PP_REG_KEY,const_cast(_name))){ return true; } return false; } void AMTPPSharedData::ReleaseOwnership() { m_bOwner = false; } int AMTPPSharedData::LastError(){ return _lastError; } UNS-3.2.0.24/AMTPPSharedData.h0000644012402100775320000001130110746077321016461 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: AMTPPSharedData.h // // Notes: Definition of Class AMTPPSharedData used to read/write Posture // Plugin values from/to the registry (or another shared resource // in other OS's). // //---------------------------------------------------------------------------- #ifndef _AMT_PP_SHARED_DATA_H_ #define _AMT_PP_SHARED_DATA_H_ #include "registryWrapper.h" class AMTPPSharedData { public: //********************************************* //AMTPPSharedData: //Ctor to AMTPPSharedData object //params: //@name - name of shared data object //********************************************* AMTPPSharedData(const char * name, bool bOwner = false, bool bPublic = false); //********************************************* //~AMTPPSharedData: //Dtor to AMTPPSharedData object //********************************************* ~AMTPPSharedData(); //********************************************* //Read: //will read the PPRegKey to buff, buff must be large enough to receive //the PPRegKey if length is smaller than the value to be read the function //will fail and length will contain the length needed //params: //@buff - buffer to read data to //@length - length of buffer //@decrypt - true to decrypt data, false otherwise //********************************************* bool Read(unsigned char * buff,unsigned int &length, bool decrypt); //********************************************* //Write: //will write the buff to the PPRegKey //params: //@buff - buffer to write //@length - length of buffer //@encrypt - true to encrypt data, false otherwise //********************************************* bool Write(const unsigned char* buff,unsigned int length, bool encrypt); //********************************************* //Remove: //will remove the key from the registry //********************************************* bool Remove(); //********************************************* //ReleaseOwnership: //Release ownership of the shared data by this instance, causing the data to //not be removed automatically upon instance destruction. //********************************************* void ReleaseOwnership(); //********************************************* //LastError: //will return the last error //********************************************* int LastError(); private: const char * _name; //registry data int _lastError; //last error bool m_bOwner; //Should the data be removed by this instance bool m_bPublic; //Public data (give read access to every user) }; #endif UNS-3.2.0.24/BaseEventLog.h0000644012402100775320000000732410746077321016207 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: BaseEventLog.h // // Notes: Definistion of Abstract Class BaseEventLog used to set an Event to the log // //---------------------------------------------------------------------------- #ifndef _BASE_LOG_H #define _BASE_LOG_H #include #define ERROR_EVENT 0 #define DEBUG_EVENT 1 #define WARNING_EVENT 2 class BaseEventLog { public: //********************************************* //BaseEventLog: //Ctor to BaseEventLog object //********************************************* BaseEventLog(){} //********************************************* //~BaseEventLog: //Dtor to BaseEventLog object //********************************************* virtual ~BaseEventLog(){}; //********************************************* //LogEvent: //Record Events for debugging. //params: //@categoryID - category ID //@eventID - event ID //********************************************* virtual void LogEvent(unsigned short CategoryID, unsigned long EventID, unsigned long EventType) = 0; //********************************************* //LogEvent: //Record Events for debugging. //params: //@categoryID - category ID //@eventID - event ID //@EventType //@ArrayOfStrings //@NumOfArrayStr //@RawData //@RawDataSize //********************************************* virtual void LogEvent(unsigned short CategoryID,unsigned long EventID , unsigned long EventType,const char * ArrayOfStrings[], unsigned int NumOfArrayStr, void * RawData=NULL, unsigned long RawDataSize=0)=0; }; #endif //_BASE_LOG_H UNS-3.2.0.24/BaseWSManClient.cpp0000644012402100775320000002461710746077321017147 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "BaseWSManClient.h" #include "UNSCommonDefs.h" #include "UNSEventLogger.h" #include "UNSStatus.h" #include "Credentials.h" #ifdef _WIN32 #include #else #include #include #endif #include #define WSMAN_PATH "/wsman" #define WSMAN_HTTPS_SCHEME "https" #define WSMAN_HTTP_SCHEME "http" #define WSMAN_AUTH_DIGEST "digest" using namespace std; const string BaseWSManClient::IP_LOCALHOST = "127.0.0.1"; //************************************************************************ // Default Constructor. //************************************************************************ BaseWSManClient::BaseWSManClient(const CredentialsRegInfo &CredRegInfo, const std::string &defaultUser, const std::string &defaultPass): m_CredRegInfo(CredRegInfo), m_defaultUser(defaultUser), m_defaultPass(defaultPass) { Init(); } //************************************************************************ // Name : BaseWSManClient // Description : Destructor. //************************************************************************ BaseWSManClient::~BaseWSManClient() { delete m_client; delete m_ClientCred; } //************************************************************************ // Name: BaseWSManClient::SetLogger // Description: Set a pointer to an event logger. //************************************************************************ void BaseWSManClient::SetLogger (UNSEventLogger *logger) { m_Logger = logger; } //************************************************************************ // Name: BaseWSManClient::Init // Description: Get AMT FQDN, and set wsman endpoint. //************************************************************************ void BaseWSManClient::Init() { m_ip = IP_LOCALHOST; //Default ip is local host - 127.0.0.1 // Retreive credentials if failed set the default. if ((m_ClientCred = RetrieveCredentials(m_CredRegInfo)) == NULL) { SetCredentials(Credentials(m_defaultUser, m_defaultPass, "")); } if (m_ClientCred->username.empty()) m_ClientCred->username = m_defaultUser; if (m_ClientCred->password.empty()) m_ClientCred->password = m_defaultPass; // Init some flags. m_endpoint = false; // Endpoint not resolved yet. m_client = NULL; // Set certificate if given } //************************************************************************ // Name : SetEndpoint. // Description : Set soap endpoint //************************************************************************ int BaseWSManClient::SetEndpoint(bool secure) { int status; char fqdn[FQDN_MAX_SIZE]; // Get FQDN of local host if (m_fqdn.empty() && secure) { // First try to get the FQDN from the hosts file. status = FindHostsFileFQDN(fqdn); if (status < 0) { if (m_Logger) { m_Logger->DebugLog("Error while reading hosts file"); } } // If FQDN wasn't found, try to get the local host FQDN. if (status != 1) { status = GetNetworkFQDN(fqdn); } // IF both failed return ERROR. if (status != 1) { if (m_Logger) { m_Logger->GetFqdnFailure(); } return UNS_STATUS_SUBSCRIPTION_ERROR; } m_fqdn = fqdn; } if (secure) { if(m_client != NULL) delete m_client; m_client = new OpenWsmanClient(m_fqdn.c_str(), AMT_SECURE_PORT, WSMAN_PATH, WSMAN_HTTPS_SCHEME, WSMAN_AUTH_DIGEST, m_ClientCred->username.c_str(), m_ClientCred->password.c_str()); m_client->SetServerCert(m_ClientCred->cainfo.empty() ? NULL : m_ClientCred->cainfo.c_str(), m_ClientCred->capath.empty() ? NULL : m_ClientCred->capath.c_str()); m_client->SetClientCert(m_ClientCred->certificate.empty() ? NULL : m_ClientCred->certificate.c_str(), m_ClientCred->certificate.empty() ? NULL : m_ClientCred->sslkey.c_str()); } else if (!secure){ if(m_client != NULL) delete m_client; m_client = new OpenWsmanClient(m_ip.c_str(), AMT_NON_SECURE_PORT, WSMAN_PATH, WSMAN_HTTP_SCHEME, WSMAN_AUTH_DIGEST, m_ClientCred->username.c_str(), m_ClientCred->password.c_str()); } return UNS_STATUS_SUCCESS; } //************************************************************************ // Name : FindHostsFileFQDN // Description : Find the LMS inserted FQDN in the hosts file. // Params : fqdn - A pointer to a buffer at least FQDN_MAX_SIZE in length // // Returns : 1 if FQDN was found (it is placed in @fqdn) // 0 if FQDN wasn't found // < 0 on error. //************************************************************************ int BaseWSManClient::FindHostsFileFQDN (char *fqdn) { #define LMS_LINE_SIG_FIRST_WORDS "# LMS GENERATED " #define LMS_LINE_SIG_LAST_WORD "LINE" #define LMS_LINE_SIG_LAST_WORD_LEN 4 #define LMS_LINE_SIG LMS_LINE_SIG_FIRST_WORDS LMS_LINE_SIG_LAST_WORD #define lmsstr(s) lmsname(s) #define lmsname(s) #s #define LMS_LINE_FORMAT "127.0.0.1 %s %s " LMS_LINE_SIG #define LMS_LINE_SCAN_FORMAT "127.0.0.1 %" lmsstr(FQDN_MAX_SIZE) "s %" lmsstr(FQDN_MAX_SIZE) "s " LMS_LINE_SIG_FIRST_WORDS "%" lmsstr(LMS_LINE_SIG_LAST_WORD_LEN) "c" bool hasFqdn = false; char tmpFqdn[FQDN_MAX_SIZE + 1]; char tmphost[FQDN_MAX_SIZE + 1]; char tmpsige[LMS_LINE_SIG_LAST_WORD_LEN]; char line[1024]; #ifdef _WIN32 char *sysDrive; char *dir = "\\system32\\drivers\\etc\\"; char *hostFile = "hosts"; char inFileName[1024]; #else char *inFileName = "/etc/hosts"; #endif // NUL-terminate the FQDN string before doing anything *fqdn = '\0'; #ifdef _WIN32 sysDrive = getenv("SystemRoot"); if (NULL == sysDrive) { // Can't find hosts file return -1; } // sanity check before string copying if (1024 < (strlen(sysDrive) + strlen(dir) + strlen(hostFile) + 1)) { return -1; } strcpy(inFileName, sysDrive); strcat(inFileName, dir); strcat(inFileName, hostFile); #endif FILE *ifp = fopen(inFileName, "r"); if (NULL == ifp) { // Can't open hosts file return -1; } // Go over each line and check for LMS signature while (fgets(line, sizeof(line), ifp)) { memset(tmpFqdn, 0, sizeof(tmpFqdn)); memset(tmpsige, 0, sizeof(tmpsige)); if (0 == ( (3 == sscanf(line, LMS_LINE_SCAN_FORMAT, tmpFqdn, tmphost, tmpsige)) ? strncmp(tmpsige, LMS_LINE_SIG_LAST_WORD, LMS_LINE_SIG_LAST_WORD_LEN) : (-2)) ) { strncpy(fqdn, tmpFqdn, FQDN_MAX_SIZE); hasFqdn = true; break; } // Badly formatted line, even though it has LMS sig; ignore it. } fclose(ifp); return (hasFqdn) ? 1 : 0; } //************************************************************************ // Name : GetNetworkFQDN. // Description : Use the GetNetworkParams to query the local fqdn. // Params : fqdn - A pointer to a buffer at least FQDN_MAX_SIZE in length // Returns : 1 if FQDN was found (it is placed in @fqdn) // <= 0 on error //************************************************************************ int BaseWSManClient::GetNetworkFQDN (char *fqdn) { #ifdef _WIN32 FIXED_INFO *FixedInfo; ULONG ulOutBufLen; DWORD dwRetVal; // NUL-terminate the FQDN string before doing anything *fqdn = '\0'; // Allocate memory. FixedInfo = (FIXED_INFO *) GlobalAlloc( GPTR, sizeof( FIXED_INFO ) ); ulOutBufLen = sizeof( FIXED_INFO ); // If GetNetworkParams returns ERROR_BUFFER_OVERFLOW, realloc the required memory. if( ERROR_BUFFER_OVERFLOW == GetNetworkParams( FixedInfo, &ulOutBufLen ) ) { GlobalFree( FixedInfo ); FixedInfo = (FIXED_INFO *) GlobalAlloc( GPTR, ulOutBufLen ); } if ( dwRetVal = GetNetworkParams( FixedInfo, &ulOutBufLen ) ) { printf("Call to GetNetworkParams failed. Return Value: %08x\n", dwRetVal ); return -1; } if ((strlen(FixedInfo -> HostName) + strlen(FixedInfo -> DomainName) + 2) > FQDN_MAX_SIZE){ printf ("FQDN too long: %s.%s\n", FixedInfo -> HostName, FixedInfo -> DomainName); return -1; } wsprintf(fqdn, "%s.%s", FixedInfo -> HostName, FixedInfo -> DomainName); #else // LINUX char hostname[HOST_NAME_MAX]; if (gethostname(hostname, HOST_NAME_MAX) != 0) { return -1; } struct hostent *ent = gethostbyname(hostname); if (ent == NULL) { return -1; } strncpy(fqdn, ent->h_name, FQDN_MAX_SIZE); #endif return 1; } void BaseWSManClient::SetCredentials(const Credentials &creds) { if (m_ClientCred == NULL) m_ClientCred = new Credentials; *m_ClientCred = creds; } UNS-3.2.0.24/BaseWSManClient.h0000644012402100775320000000754210746077321016612 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _BASE_WSMAN_CLIENT_H #define _BASE_WSMAN_CLIENT_H #include #include #define FQDN_MAX_SIZE 256 #define OID_LOCAL "2.16.840.1.113741.1.2.2" using namespace WsmanClientNamespace; // Constants for the common use static const int TIMEOUT = 5; static const int AMT_NON_SECURE_PORT = 16992; static const int AMT_SECURE_PORT = 16993; class UNSEventLogger; struct Credentials; struct CredentialsRegInfo; class BaseWSManClient { public: // Contructors and Destructor. BaseWSManClient(const CredentialsRegInfo &CredRegInfo, const std::string &defaultUser, const std::string &defaultPass); virtual ~BaseWSManClient(); void SetLogger(UNSEventLogger *logger); // Set a pointer to an event logger. void SetCredentials(const Credentials &creds); const std::string &GetIP() const {return m_ip;} void SetIP(const std::string &ip) {m_ip = ip;} protected: int SetEndpoint (bool secure); // Set endpoint for wsman request. // Data members std::string endpoint; bool m_endpoint; // True iff endpoint is correct. UNSEventLogger *m_Logger; // Used for log events. private: void Init(); // Initialize soap client. int FindHostsFileFQDN (char *fqdn); // Find the LMS inserted FQDN in the hosts file int GetNetworkFQDN (char *fqdn); // Use GetNetworkParams to get local FQDN static const std::string IP_LOCALHOST; // Data members protected: OpenWsmanClient *m_client; // WSMan client. Credentials *m_ClientCred; // Credentials used for soap client std::string m_fqdn; // FQDN of the server. std::string m_ip; const CredentialsRegInfo &m_CredRegInfo; private: std::string m_defaultUser; std::string m_defaultPass; }; #endif //_BASE_WSMAN_CLIENT_H UNS-3.2.0.24/compile0000755012402100775320000000717310746077321015100 0ustar00gkbld_amtccigk00000000000000#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2005-05-14.22 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand `-c -o'. Remove `-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file `INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; esac ofile= cfile= eat= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as `compile cc -o foo foo.c'. # So we strip `-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no `-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # `.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` # Create the lock directory. # Note: use `[/.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: UNS-3.2.0.24/config.guess0000755012402100775320000012512310746077321016036 0ustar00gkbld_amtccigk00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2005-07-08' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_MACHINE}" in i?86) test -z "$VENDOR" && VENDOR=pc ;; *) test -z "$VENDOR" && VENDOR=unknown ;; esac test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerppc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; x86:Interix*:[34]*) echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit ;; cris:Linux:*:*) echo cris-axis-linux exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux exit ;; frv:Linux:*:*) echo frv-${VENDOR}-linux exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux"; exit; } ;; ppc:Linux:*:*) echo powerpc-${VENDOR}-linux exit ;; ppc64:Linux:*:*) echo powerpc64-${VENDOR}-linux exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-${VENDOR}-linux ;; PA8*) echo hppa2.0-${VENDOR}-linux ;; *) echo hppa-${VENDOR}-linux ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-${VENDOR}-linux exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit ;; x86_64:Linux:*:*) echo x86_64-${VENDOR}-linux exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-${VENDOR}-linuxaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff" exit ;; "") # Either a pre-BFD a.out linker (linuxoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #ifdef __INTEL_COMPILER LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in *86) UNAME_PROCESSOR=i686 ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: UNS-3.2.0.24/config.h.in0000644012402100775320000001427310746077321015544 0ustar00gkbld_amtccigk00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* run as daemon */ #undef DAEMON /* debug mode */ #undef DEBUG /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `pthread' library (-lpthread). */ #undef HAVE_LIBPTHREAD /* Define to 1 if you have the `rt' library (-lrt). */ #undef HAVE_LIBRT /* Define to 1 if you have the `xerces-c' library (-lxerces-c). */ #undef HAVE_LIBXERCES_C /* Define to 1 if you have the `xerces-depdom' library (-lxerces-depdom). */ #undef HAVE_LIBXERCES_DEPDOM /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the `mkdir' function. */ #undef HAVE_MKDIR /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* openssl headers present */ #undef HAVE_OPENSSL_SSL_H /* Define to 1 if you have the header file. */ #undef HAVE_PTHREAD_H /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Defined if you have SSL support */ #undef HAVE_SSL /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL /* Define to 1 if you have the `strtoull' function. */ #undef HAVE_STRTOULL /* Define to 1 if you have the header file. */ #undef HAVE_SYSLOG_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_FILE_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SELECT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_DOM_DOMIMPLEMENTATIONLS_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_DOM_DOMIMPLEMENTATIONREGISTRY_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_DOM_DOMIMPLEMENTATION_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_DOM_DOMWRITER_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_DOM_DOM_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_FRAMEWORK_MEMBUFFORMATTARGET_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_FRAMEWORK_MEMBUFINPUTSOURCE_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_PARSERS_XERCESDOMPARSER_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_UTIL_OUTOFMEMORYEXCEPTION_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_UTIL_PLATFORMUTILS_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_UTIL_XMLSTRING_HPP /* Define to 1 if you have the header file. */ #undef HAVE_XERCESC_UTIL_XMLUNI_HPP /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* do not log debug infos to stdout */ #undef NO_STDOUT_DEBUG_LOG /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to the type of arg 1 for `select'. */ #undef SELECT_TYPE_ARG1 /* Define to the type of args 2, 3 and 4 for `select'. */ #undef SELECT_TYPE_ARG234 /* Define to the type of arg 5 for `select'. */ #undef SELECT_TYPE_ARG5 /* soap debug mode */ #undef SOAP_DEBUG /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Version number of package */ #undef VERSION /* UNS debug mode */ #undef _DEBUG /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to `unsigned' if does not define. */ #undef size_t /* Define to `int' if does not define. */ #undef ssize_t /* Define to empty if the keyword `volatile' does not work. Warning: valid code using `volatile' can become incorrect without. Disable with care. */ #undef volatile UNS-3.2.0.24/config.sub0000755012402100775320000007567610746077321015522 0ustar00gkbld_amtccigk00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2005-07-08' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | ms1 \ | msp430 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m32c) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | ms1-* \ | msp430-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; m32c-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: UNS-3.2.0.24/ConfigFile.cpp0000644012402100775320000001205510746077321016226 0ustar00gkbld_amtccigk00000000000000// ConfigFile.cpp // Class for reading named values from configuration files // Richard J. Wagner v2.1 24 May 2004 wagnerr@umich.edu // Copyright (c) 2004 Richard J. Wagner // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. // Typical usage // ------------- // // Given a configuration file "settings.inp": // atoms = 25 // length = 8.0 # nanometers // name = Reece Surcher // // Named values are read in various ways, with or without default values: // ConfigFile config( "settings.inp" ); // int atoms = config.read( "atoms" ); // double length = config.read( "length", 10.0 ); // string author, title; // config.readInto( author, "name" ); // config.readInto( title, "title", string("Untitled") ); // // See file example.cpp for more examples. #include "ConfigFile.h" using std::string; ConfigFile::ConfigFile( string filename, string delimiter, string comment, string sentry ) : myDelimiter(delimiter), myComment(comment), mySentry(sentry) { // Construct a ConfigFile, getting keys and values from given file std::ifstream in( filename.c_str() ); if( !in ) throw file_not_found( filename ); in >> (*this); } ConfigFile::ConfigFile() : myDelimiter( string(1,'=') ), myComment( string(1,'#') ) { // Construct a ConfigFile without a file; empty } void ConfigFile::remove( const string& key ) { // Remove key and its value myContents.erase( myContents.find( key ) ); return; } bool ConfigFile::keyExists( const string& key ) const { // Indicate whether key is found mapci p = myContents.find( key ); return ( p != myContents.end() ); } /* static */ void ConfigFile::trim( string& s ) { // Remove leading and trailing whitespace static const char whitespace[] = " \n\t\v\r\f"; s.erase( 0, s.find_first_not_of(whitespace) ); s.erase( s.find_last_not_of(whitespace) + 1U ); } std::ostream& operator<<( std::ostream& os, const ConfigFile& cf ) { // Save a ConfigFile to os for( ConfigFile::mapci p = cf.myContents.begin(); p != cf.myContents.end(); ++p ) { os << p->first << " " << cf.myDelimiter << " "; os << p->second << std::endl; } return os; } std::istream& operator>>( std::istream& is, ConfigFile& cf ) { // Load a ConfigFile from is // Read in keys and values, keeping internal whitespace typedef string::size_type pos; const string& delim = cf.myDelimiter; // separator const string& comm = cf.myComment; // comment const string& sentry = cf.mySentry; // end of file sentry const pos skip = delim.length(); // length of separator string nextline = ""; // might need to read ahead to see where value ends while( is || nextline.length() > 0 ) { // Read an entire line at a time string line; if( nextline.length() > 0 ) { line = nextline; // we read ahead; use it now nextline = ""; } else { std::getline( is, line ); } // Ignore comments line = line.substr( 0, line.find(comm) ); // Check for end of file sentry if( sentry != "" && line.find(sentry) != string::npos ) return is; // Parse the line if it contains a delimiter pos delimPos = line.find( delim ); if( delimPos < string::npos ) { // Extract the key string key = line.substr( 0, delimPos ); line.replace( 0, delimPos+skip, "" ); // See if value continues on the next line // Stop at blank line, next line with a key, end of stream, // or end of file sentry bool terminate = false; while( !terminate && is ) { std::getline( is, nextline ); terminate = true; string nlcopy = nextline; ConfigFile::trim(nlcopy); if( nlcopy == "" ) continue; nextline = nextline.substr( 0, nextline.find(comm) ); if( nextline.find(delim) != string::npos ) continue; if( sentry != "" && nextline.find(sentry) != string::npos ) continue; nlcopy = nextline; ConfigFile::trim(nlcopy); if( nlcopy != "" ) line += "\n"; line += nextline; terminate = false; } // Store key and value ConfigFile::trim(key); ConfigFile::trim(line); cf.myContents[key] = line; // overwrites if key is repeated } } return is; } UNS-3.2.0.24/ConfigFile.h0000644012402100775320000001660310746077321015676 0ustar00gkbld_amtccigk00000000000000// ConfigFile.h // Class for reading named values from configuration files // Richard J. Wagner v2.1 24 May 2004 wagnerr@umich.edu // Copyright (c) 2004 Richard J. Wagner // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. // Typical usage // ------------- // // Given a configuration file "settings.inp": // atoms = 25 // length = 8.0 # nanometers // name = Reece Surcher // // Named values are read in various ways, with or without default values: // ConfigFile config( "settings.inp" ); // int atoms = config.read( "atoms" ); // double length = config.read( "length", 10.0 ); // string author, title; // config.readInto( author, "name" ); // config.readInto( title, "title", string("Untitled") ); // // See file example.cpp for more examples. #ifndef CONFIGFILE_H #define CONFIGFILE_H #include #include #include #include #include using std::string; class ConfigFile { // Data protected: string myDelimiter; // separator between key and value string myComment; // separator between value and comments string mySentry; // optional string to signal end of file std::map myContents; // extracted keys and values typedef std::map::iterator mapi; typedef std::map::const_iterator mapci; // Methods public: ConfigFile( string filename, string delimiter = "=", string comment = "#", string sentry = "EndConfigFile" ); ConfigFile(); // Search for key and read value or optional default value template T read( const string& key ) const; // call as read template T read( const string& key, const T& value ) const; template bool readInto( T& var, const string& key ) const; template bool readInto( T& var, const string& key, const T& value ) const; // Modify keys and values template void add( string key, const T& value ); void remove( const string& key ); // Check whether key exists in configuration bool keyExists( const string& key ) const; // Check or change configuration syntax string getDelimiter() const { return myDelimiter; } string getComment() const { return myComment; } string getSentry() const { return mySentry; } string setDelimiter( const string& s ) { string old = myDelimiter; myDelimiter = s; return old; } string setComment( const string& s ) { string old = myComment; myComment = s; return old; } // Write or read configuration friend std::ostream& operator<<( std::ostream& os, const ConfigFile& cf ); friend std::istream& operator>>( std::istream& is, ConfigFile& cf ); protected: template static string T_as_string( const T& t ); template static T string_as_T( const string& s ); static void trim( string& s ); // Exception types public: struct file_not_found { string filename; file_not_found( const string& filename_ = string() ) : filename(filename_) {} }; struct key_not_found { // thrown only by T read(key) variant of read() string key; key_not_found( const string& key_ = string() ) : key(key_) {} }; }; /* static */ template string ConfigFile::T_as_string( const T& t ) { // Convert from a T to a string // Type T must support << operator std::ostringstream ost; ost << t; return ost.str(); } /* static */ template T ConfigFile::string_as_T( const string& s ) { // Convert from a string to a T // Type T must support >> operator T t; std::istringstream ist(s); ist >> t; return t; } /* static */ template<> inline string ConfigFile::string_as_T( const string& s ) { // Convert from a string to a string // In other words, do nothing return s; } /* static */ template<> inline bool ConfigFile::string_as_T( const string& s ) { // Convert from a string to a bool // Interpret "false", "F", "no", "n", "0" as false // Interpret "true", "T", "yes", "y", "1", "-1", or anything else as true bool b = true; string sup = s; for( string::iterator p = sup.begin(); p != sup.end(); ++p ) *p = toupper(*p); // make string all caps if( sup==string("FALSE") || sup==string("F") || sup==string("NO") || sup==string("N") || sup==string("0") || sup==string("NONE") ) b = false; return b; } template T ConfigFile::read( const string& key ) const { // Read the value corresponding to key mapci p = myContents.find(key); if( p == myContents.end() ) throw key_not_found(key); return string_as_T( p->second ); } template T ConfigFile::read( const string& key, const T& value ) const { // Return the value corresponding to key or given default value // if key is not found mapci p = myContents.find(key); if( p == myContents.end() ) return value; return string_as_T( p->second ); } template bool ConfigFile::readInto( T& var, const string& key ) const { // Get the value corresponding to key and store in var // Return true if key is found // Otherwise leave var untouched mapci p = myContents.find(key); bool found = ( p != myContents.end() ); if( found ) var = string_as_T( p->second ); return found; } template bool ConfigFile::readInto( T& var, const string& key, const T& value ) const { // Get the value corresponding to key and store in var // Return true if key is found // Otherwise set var to given default mapci p = myContents.find(key); bool found = ( p != myContents.end() ); if( found ) var = string_as_T( p->second ); else var = value; return found; } template void ConfigFile::add( string key, const T& value ) { // Add a key with given value string v = T_as_string( value ); trim(key); trim(v); myContents[key] = v; return; } #endif // CONFIGFILE_H // Release notes: // v1.0 21 May 1999 // + First release // + Template read() access only through non-member readConfigFile() // + ConfigurationFileBool is only built-in helper class // // v2.0 3 May 2002 // + Shortened name from ConfigurationFile to ConfigFile // + Implemented template member functions // + Changed default comment separator from % to # // + Enabled reading of multiple-line values // // v2.1 24 May 2004 // + Made template specializations inline to avoid compiler-dependent linkage // + Allowed comments within multiple-line values // + Enabled blank line termination for multiple-line values // + Added optional sentry to detect end of configuration file // + Rewrote messy trimWhitespace() function as elegant trim() UNS-3.2.0.24/ConfigLinuxInfo.cpp0000644012402100775320000000511110746077321017255 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "ConfigLinuxInfo.h" #include std::string ConfigLinuxInfo::MachineConfigPrefix() const { return "/etc/"; } std::string ConfigLinuxInfo::UserConfigPrefix() const { std::string UserConfigPrefix; char *homeDir = getenv("HOME"); //Get home dir of current user if (homeDir) { UserConfigPrefix = homeDir; UserConfigPrefix += "/."; //Add '/' for dir and '.' for file to be hidden } return UserConfigPrefix; } UNS-3.2.0.24/ConfigLinuxInfo.h0000644012402100775320000000457610746077321016740 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef CONFIG_LINUX_INFO #define CONFIG_LINUX_INFO #include #include "ConfigOSInfo.h" class ConfigLinuxInfo : public ConfigOSInfo { public: virtual std::string MachineConfigPrefix() const; virtual std::string UserConfigPrefix() const; }; #endif //CONFIG_LINUX_INFO UNS-3.2.0.24/ConfigOSInfo.h0000644012402100775320000000466510746077321016161 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef CONFIG_OS_INFO #define CONFIG_OS_INFO #include //ConfigOSInfo: Abstract class that describes information about configuration files //that is OS specific. class ConfigOSInfo { public: virtual std::string MachineConfigPrefix() const = 0; virtual std::string UserConfigPrefix() const = 0; }; #endif //CONFIG_OS_INFO UNS-3.2.0.24/configure0000755012402100775320000301076410746077321015434 0ustar00gkbld_amtccigk00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for uns 3.2. # # Report bugs to . # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # 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 </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 tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME='uns' PACKAGE_TARNAME='uns' PACKAGE_VERSION='3.2' PACKAGE_STRING='uns 3.2' PACKAGE_BUGREPORT='www.intel.com' ac_unique_file="UNSMainLinux.cpp" # Factoring default headers for most tests. ac_includes_default="\ #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #endif #if HAVE_STRINGS_H # include #endif #if HAVE_INTTYPES_H # include #else # if HAVE_STDINT_H # include # endif #endif #if HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS DAEMON_TRUE DAEMON_FALSE PKG_CONFIG ac_pt_PKG_CONFIG OPENWSMAN_CFLAGS OPENWSMAN_LIBS XML_CFLAGS XML_LIBS GSOAP_CFLAGS GSOAP_LIBS OPENSSL_CFLAGS OPENSSL_LIBS CURL_CONFIG CURL_CFLAGS CURL_LIBS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CXX_set=${CXX+set} ac_env_CXX_value=$CXX ac_cv_env_CXX_set=${CXX+set} ac_cv_env_CXX_value=$CXX ac_env_CXXFLAGS_set=${CXXFLAGS+set} ac_env_CXXFLAGS_value=$CXXFLAGS ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} ac_cv_env_CXXFLAGS_value=$CXXFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_CPP_set=${CPP+set} ac_env_CPP_value=$CPP ac_cv_env_CPP_set=${CPP+set} ac_cv_env_CPP_value=$CPP ac_env_CXXCPP_set=${CXXCPP+set} ac_env_CXXCPP_value=$CXXCPP ac_cv_env_CXXCPP_set=${CXXCPP+set} ac_cv_env_CXXCPP_value=$CXXCPP ac_env_F77_set=${F77+set} ac_env_F77_value=$F77 ac_cv_env_F77_set=${F77+set} ac_cv_env_F77_value=$F77 ac_env_FFLAGS_set=${FFLAGS+set} ac_env_FFLAGS_value=$FFLAGS ac_cv_env_FFLAGS_set=${FFLAGS+set} ac_cv_env_FFLAGS_value=$FFLAGS ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} ac_env_PKG_CONFIG_value=$PKG_CONFIG ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG ac_env_OPENWSMAN_CFLAGS_set=${OPENWSMAN_CFLAGS+set} ac_env_OPENWSMAN_CFLAGS_value=$OPENWSMAN_CFLAGS ac_cv_env_OPENWSMAN_CFLAGS_set=${OPENWSMAN_CFLAGS+set} ac_cv_env_OPENWSMAN_CFLAGS_value=$OPENWSMAN_CFLAGS ac_env_OPENWSMAN_LIBS_set=${OPENWSMAN_LIBS+set} ac_env_OPENWSMAN_LIBS_value=$OPENWSMAN_LIBS ac_cv_env_OPENWSMAN_LIBS_set=${OPENWSMAN_LIBS+set} ac_cv_env_OPENWSMAN_LIBS_value=$OPENWSMAN_LIBS ac_env_XML_CFLAGS_set=${XML_CFLAGS+set} ac_env_XML_CFLAGS_value=$XML_CFLAGS ac_cv_env_XML_CFLAGS_set=${XML_CFLAGS+set} ac_cv_env_XML_CFLAGS_value=$XML_CFLAGS ac_env_XML_LIBS_set=${XML_LIBS+set} ac_env_XML_LIBS_value=$XML_LIBS ac_cv_env_XML_LIBS_set=${XML_LIBS+set} ac_cv_env_XML_LIBS_value=$XML_LIBS ac_env_GSOAP_CFLAGS_set=${GSOAP_CFLAGS+set} ac_env_GSOAP_CFLAGS_value=$GSOAP_CFLAGS ac_cv_env_GSOAP_CFLAGS_set=${GSOAP_CFLAGS+set} ac_cv_env_GSOAP_CFLAGS_value=$GSOAP_CFLAGS ac_env_GSOAP_LIBS_set=${GSOAP_LIBS+set} ac_env_GSOAP_LIBS_value=$GSOAP_LIBS ac_cv_env_GSOAP_LIBS_set=${GSOAP_LIBS+set} ac_cv_env_GSOAP_LIBS_value=$GSOAP_LIBS ac_env_OPENSSL_CFLAGS_set=${OPENSSL_CFLAGS+set} ac_env_OPENSSL_CFLAGS_value=$OPENSSL_CFLAGS ac_cv_env_OPENSSL_CFLAGS_set=${OPENSSL_CFLAGS+set} ac_cv_env_OPENSSL_CFLAGS_value=$OPENSSL_CFLAGS ac_env_OPENSSL_LIBS_set=${OPENSSL_LIBS+set} ac_env_OPENSSL_LIBS_value=$OPENSSL_LIBS ac_cv_env_OPENSSL_LIBS_set=${OPENSSL_LIBS+set} ac_cv_env_OPENSSL_LIBS_value=$OPENSSL_LIBS # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures uns 3.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of uns 3.2:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-shared[=PKGS] build shared libraries [default=no] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-debug=no/yes/max turn on debugging default=$debug_default --enable-daemon=no/yes turn on non daemon mode default=$daemon_default --disable-more-warnings Inhibit compiler warnings Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CC C compiler command CFLAGS C compiler flags CPP C preprocessor CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags PKG_CONFIG path to pkg-config utility OPENWSMAN_CFLAGS C compiler flags for OPENWSMAN, overriding pkg-config OPENWSMAN_LIBS linker flags for OPENWSMAN, overriding pkg-config XML_CFLAGS C compiler flags for XML, overriding pkg-config XML_LIBS linker flags for XML, overriding pkg-config GSOAP_CFLAGS C compiler flags for GSOAP, overriding pkg-config GSOAP_LIBS linker flags for GSOAP, overriding pkg-config OPENSSL_CFLAGS C compiler flags for OPENSSL, overriding pkg-config OPENSSL_LIBS linker flags for OPENSSL, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd $ac_popdir done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF uns configure 3.2 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by uns $as_me 3.2, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------- ## ## Output files. ## ## ------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" am__api_version="1.9" ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f $ac_dir/shtool; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} { (exit 1); exit 1; }; } fi ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 test "$program_prefix" != NONE && program_transform_name="s,^,$program_prefix,;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s,\$,$program_suffix,;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$AWK" && break done echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='uns' VERSION='3.2' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi STRIP=$ac_ct_STRIP else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi; echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then enableval="$enable_shared" p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=no fi; # Checks for programs. ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CXX" && break done test -n "$ac_ct_CXX" || ac_ct_CXX="g++" CXX=$ac_ct_CXX fi # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # resort. # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ac_cv_exeext= # b.out is created by i960 compilers. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; conftest.$ac_ext ) # This is the source file. ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool, # but it would be cool to find out if it's true. Does anybody # maintain Libtool? --akim. export ac_cv_exeext break;; * ) break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C++ compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6 # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS CXXFLAGS="-g" echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cxx_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6 rm -f confinc confmf # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval="$enable_dependency_tracking" fi; if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CXX" am_compiler_list= echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std1. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std1. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Check whether --enable-static or --disable-static was given. if test "${enable_static+set}" = set; then enableval="$enable_static" p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi; # Check whether --enable-fast-install or --disable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval="$enable_fast_install" p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi; # Make sure we can run config.sub. $ac_config_sub sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 echo "$as_me: error: cannot run $ac_config_sub" >&2;} { (exit 1); exit 1; }; } echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6 if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_build_alias=$build_alias test -z "$ac_cv_build_alias" && ac_cv_build_alias=`$ac_config_guess` test -z "$ac_cv_build_alias" && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6 build=$ac_cv_build build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6 if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_host_alias=$host_alias test -z "$ac_cv_host_alias" && ac_cv_host_alias=$ac_cv_build_alias ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6 host=$ac_cv_host host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done fi SED=$lt_cv_path_SED echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6 echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 if test "${ac_cv_prog_egrep+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi fi echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 EGREP=$ac_cv_prog_egrep # Check whether --with-gnu-ld or --without-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval="$with_gnu_ld" test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi; ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 else echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 with_gnu_ld=$lt_cv_prog_gnu_ld echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6 NM="$lt_cv_path_NM" echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6 fi echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix4* | aix5*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump'. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | kfreebsd*-gnu | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix3*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown # 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 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval="$enable_libtool_lock" fi; 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 5171 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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" echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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* ;; esac need_locks="$enable_libtool_lock" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6 ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ---------------------------- ## ## Report this to www.intel.com ## ## ---------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6 ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_F77" && break done F77=$ac_ct_F77 fi # Provide some information about the compiler. echo "$as_me:6306:" \ "checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else 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 fi if test -n $lt_cv_sys_max_cmd_len ; then echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 else echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6 fi # Check for command to grab the raw symbol name followed by C symbol from nm. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux*) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6 else echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6 fi echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else 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 fi echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6 objdir=$lt_cv_objdir 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" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi AR=$ac_ct_AR else AR="$ac_cv_prog_AR" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi RANLIB=$ac_ct_RANLIB else RANLIB="$ac_cv_prog_RANLIB" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi STRIP=$ac_ct_STRIP else STRIP="$ac_cv_prog_STRIP" fi 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 for cc_temp in $compiler""; 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-%%"` # 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 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi else MAGIC_CMD=: fi fi fi ;; esac enable_dlopen=no enable_win32_dll=no # Check whether --enable-libtool-lock or --disable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval="$enable_libtool_lock" fi; test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic or --without-pic was given. if test "${with_pic+set}" = set; then withval="$with_pic" pic_mode="$withval" else pic_mode=default fi; test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' # 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 # save warnings/boilerplate of simple test code 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* 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_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # 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:7369: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7373: \$? = $ac_status" >&5 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 lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # 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:7637: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7641: \$? = $ac_status" >&5 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 lt_prog_compiler_pic_works=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 if test x"$lt_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 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>&5 $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 lt_prog_compiler_static_works=yes fi else lt_prog_compiler_static_works=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 if test x"$lt_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=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:7741: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:7745: \$? = $ac_status" >&5 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_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $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* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 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 echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; 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-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix3*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_libdir_separator=':' link_all_deplibs=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then 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 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then 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 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; openbsd*) hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6 test "$ld_shlibs" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 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.so # instead of lib.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 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct" != 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, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6 if test "$hardcode_action" = 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 striplib= old_striplib= echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; *) echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; esac fi 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 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shl_load) || defined (__stub___shl_load) choke me #else char (*f) () = shl_load; #endif #ifdef __cplusplus } #endif int main () { return f != shl_load; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); int main () { shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_dlopen) || defined (__stub___dlopen) choke me #else char (*f) () = dlopen; #endif #ifdef __cplusplus } #endif int main () { return f != dlopen; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dld_link (); int main () { dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; 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" echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 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 # Report which library types will actually be built echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # 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 # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # 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 EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" # Check whether --with-tags or --without-tags was given. if test "${with_tags+set}" = set; then withval="$with_tags" tagnames="$withval" fi; if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # 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 # save warnings/boilerplate of simple test code 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* 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* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; 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-%%"` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld or --without-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval="$with_gnu_ld" test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi; ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 else echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_CXX=yes else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then 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 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then 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 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_CXX='+b $libdir' ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix3*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6 test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext # PORTME: override above test on systems where it is broken case $host_os in interix3*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; solaris*) case $cc_basename in CC*) # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. postdeps_CXX='-lCstd -lCrun' ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # 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:12526: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:12530: \$? = $ac_status" >&5 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 lt_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 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>&5 $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 lt_prog_compiler_static_works_CXX=yes fi else lt_prog_compiler_static_works_CXX=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=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:12630: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:12634: \$? = $ac_status" >&5 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_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $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* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 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 echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6 test "$ld_shlibs_CXX" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 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.so # instead of lib.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 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != 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, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6 if test "$hardcode_action_CXX" = 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 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_CXX" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # Code to be used in simple compile tests lt_simple_compile_test_code=" subroutine t\n return\n end\n" # Code to be used in simple link tests lt_simple_link_test_code=" program t\n end\n" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # 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 # save warnings/boilerplate of simple test code 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* 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* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; 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-%%"` echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6 GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # 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:14200: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:14204: \$? = $ac_status" >&5 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 lt_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_F77=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 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>&5 $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 lt_prog_compiler_static_works_F77=yes fi else lt_prog_compiler_static_works_F77=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 if test x"$lt_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= fi echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=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:14304: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:14308: \$? = $ac_status" >&5 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_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . 2>&5 $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* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 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 echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; 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-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_F77=no fi ;; interix3*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_F77=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_F77=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_F77=yes else # We have old collect2 hardcode_direct_F77=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then 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 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then 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 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6 test "$ld_shlibs_F77" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 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.so # instead of lib.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 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var_F77" || \ test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != 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, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6 if test "$hardcode_action_F77" = 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 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_F77" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}\n" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # 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 # save warnings/boilerplate of simple test code 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* 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* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; 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-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # 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:16507: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16511: \$? = $ac_status" >&5 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 lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-Bstatic' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # 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:16775: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16779: \$? = $ac_status" >&5 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 lt_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_GCJ=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 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>&5 $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 lt_prog_compiler_static_works_GCJ=yes fi else lt_prog_compiler_static_works_GCJ=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then : else lt_prog_compiler_static_GCJ= fi echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=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:16879: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:16883: \$? = $ac_status" >&5 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_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . 2>&5 $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* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 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 echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; 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-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_GCJ=no fi ;; interix3*) hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_GCJ=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_GCJ=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_GCJ=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_GCJ=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_GCJ=yes else # We have old collect2 hardcode_direct_GCJ=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_GCJ=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then 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 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then 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 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ='$convenience' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi[45]*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; *) hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs_GCJ=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag_GCJ='${wl}-z,text' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_GCJ='${wl}-z,text' allow_undefined_flag_GCJ='${wl}-z,nodefs' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 test "$ld_shlibs_GCJ" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ pic_flag=$lt_prog_compiler_pic_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 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.so # instead of lib.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 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var_GCJ" || \ test "X$hardcode_automatic_GCJ" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != 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, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6 if test "$hardcode_action_GCJ" = 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 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_GCJ" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # 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 # save warnings/boilerplate of simple test code 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* 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* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; 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_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_RC" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # 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' # Prevent multiple expansion echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6 fi # Checks for libraries. echo "$as_me:$LINENO: checking for aio_write in -lrt" >&5 echo $ECHO_N "checking for aio_write in -lrt... $ECHO_C" >&6 if test "${ac_cv_lib_rt_aio_write+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char aio_write (); int main () { aio_write (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_rt_aio_write=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_rt_aio_write=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_write" >&5 echo "${ECHO_T}$ac_cv_lib_rt_aio_write" >&6 if test $ac_cv_lib_rt_aio_write = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBRT 1 _ACEOF LIBS="-lrt $LIBS" else { { echo "$as_me:$LINENO: error: Cannot find librt" >&5 echo "$as_me: error: Cannot find librt" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char pthread_mutex_lock (); int main () { pthread_mutex_lock (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_pthread_pthread_mutex_lock=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pthread_pthread_mutex_lock=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_lock" >&6 if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBPTHREAD 1 _ACEOF LIBS="-lpthread $LIBS" else { { echo "$as_me:$LINENO: error: Thread support not present or cannot find libpthread" >&5 echo "$as_me: error: Thread support not present or cannot find libpthread" >&2;} { (exit 1); exit 1; }; } fi # Checks for header files. echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 if test "${ac_cv_header_sys_wait_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_sys_wait_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_sys_wait_h=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 if test $ac_cv_header_sys_wait_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_SYS_WAIT_H 1 _ACEOF fi for ac_header in fcntl.h memory.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ---------------------------- ## ## Report this to www.intel.com ## ## ---------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in pthread.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ---------------------------- ## ## Report this to www.intel.com ## ## ---------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else { { echo "$as_me:$LINENO: error: pthread headers not found" >&5 echo "$as_me: error: pthread headers not found" >&2;} { (exit 1); exit 1; }; } fi done # Checks for library functions. echo "$as_me:$LINENO: checking for error_at_line" >&5 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6 if test "${ac_cv_lib_error_at_line+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { error_at_line (0, 0, "", 0, ""); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_error_at_line=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_error_at_line=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6 if test $ac_cv_lib_error_at_line = no; then case $LIBOBJS in "error.$ac_objext" | \ *" error.$ac_objext" | \ "error.$ac_objext "* | \ *" error.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; esac fi if test $ac_cv_c_compiler_gnu = yes; then echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 if test "${ac_cv_prog_gcc_traditional+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_pattern="Autoconf.*'x'" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then ac_cv_prog_gcc_traditional=yes else ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi for ac_header in stdlib.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ---------------------------- ## ## Report this to www.intel.com ## ## ---------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_malloc_0_nonnull=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if STDC_HEADERS || HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { exit (malloc (0) ? 0 : 1); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_malloc_0_nonnull=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 if test $ac_cv_func_malloc_0_nonnull = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_MALLOC 1 _ACEOF else cat >>confdefs.h <<\_ACEOF #define HAVE_MALLOC 0 _ACEOF case $LIBOBJS in "malloc.$ac_objext" | \ *" malloc.$ac_objext" | \ "malloc.$ac_objext "* | \ *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac cat >>confdefs.h <<\_ACEOF #define malloc rpl_malloc _ACEOF fi for ac_header in sys/select.h sys/socket.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ---------------------------- ## ## Report this to www.intel.com ## ## ---------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done echo "$as_me:$LINENO: checking types of arguments for select" >&5 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 if test "${ac_cv_func_select_args+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else for ac_arg234 in 'fd_set *' 'int *' 'void *'; do for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #if HAVE_SYS_SELECT_H # include #endif #if HAVE_SYS_SOCKET_H # include #endif int main () { extern int select ($ac_arg1, $ac_arg234, $ac_arg234, $ac_arg234, $ac_arg5); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done done done # Provide a safe default value. : ${ac_cv_func_select_args='int,int *,struct timeval *'} fi echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 echo "${ECHO_T}$ac_cv_func_select_args" >&6 ac_save_IFS=$IFS; IFS=',' set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` IFS=$ac_save_IFS shift cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG1 $1 _ACEOF cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG234 ($2) _ACEOF cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG5 ($3) _ACEOF rm -f conftest* for ac_func in gettimeofday memset mkdir select strtoul strtoull do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 if test "${ac_cv_header_stdbool_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifndef bool # error bool is not defined #endif #ifndef false # error false is not defined #endif #if false # error false is not 0 #endif #ifndef true # error true is not defined #endif #if true != 1 # error true is not 1 #endif #ifndef __bool_true_false_are_defined # error __bool_true_false_are_defined is not defined #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) -0.5 == true ? 1 : -1]; bool e = &s; char f[(_Bool) -0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; int main () { return !a + !b + !c + !d + !e + !f + !g + !h + !i; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdbool_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdbool_h=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 echo "$as_me:$LINENO: checking for _Bool" >&5 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 if test "${ac_cv_type__Bool+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((_Bool *) 0) return 0; if (sizeof (_Bool)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type__Bool=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type__Bool=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 echo "${ECHO_T}$ac_cv_type__Bool" >&6 if test $ac_cv_type__Bool = yes; then cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi if test $ac_cv_header_stdbool_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_STDBOOL_H 1 _ACEOF fi echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset x; /* SunOS 4.1.1 cc rejects this. */ char const *const *ccp; char **p; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; ccp = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++ccp; p = (char**) ccp; ccp = (char const *const *) p; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; } #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6 if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi echo "$as_me:$LINENO: checking for inline" >&5 echo $ECHO_N "checking for inline... $ECHO_C" >&6 if test "${ac_cv_c_inline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_inline=$ac_kw; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done fi echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 echo "${ECHO_T}$ac_cv_c_inline" >&6 case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((size_t *) 0) return 0; if (sizeof (size_t)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6 if test $ac_cv_type_size_t = yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned _ACEOF fi echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 if test "${ac_cv_header_time+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_time=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_time=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 echo "${ECHO_T}$ac_cv_header_time" >&6 if test $ac_cv_header_time = yes; then cat >>confdefs.h <<\_ACEOF #define TIME_WITH_SYS_TIME 1 _ACEOF fi echo "$as_me:$LINENO: checking for working volatile" >&5 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 if test "${ac_cv_c_volatile+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { volatile int x; int * volatile y; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_volatile=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_volatile=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 echo "${ECHO_T}$ac_cv_c_volatile" >&6 if test $ac_cv_c_volatile = no; then cat >>confdefs.h <<\_ACEOF #define volatile _ACEOF fi debug_default=no daemon_default=yes # Declare --enable-* args and collect ac_help strings # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" else enable_debug=$debug_default fi; # Set the debug flags if test "x$enable_debug" != "xno"; then cat >>confdefs.h <<\_ACEOF #define _DEBUG 1 _ACEOF if test "x$enable_debug" = "xmax"; then cat >>confdefs.h <<\_ACEOF #define DEBUG 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define SOAP_DEBUG 1 _ACEOF fi daemon_default=no fi #set daemon # Check whether --enable-daemon or --disable-daemon was given. if test "${enable_daemon+set}" = set; then enableval="$enable_daemon" else enable_daemon=$daemon_default fi; if test "x$enable_daemon" = "xyes"; then cat >>confdefs.h <<\_ACEOF #define NO_STDOUT_DEBUG_LOG 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define DAEMON 1 _ACEOF fi if test x$enable_daemon = xyes; then DAEMON_TRUE= DAEMON_FALSE='#' else DAEMON_TRUE='#' DAEMON_FALSE= fi # check for ssize_t echo "$as_me:$LINENO: checking for ssize_t" >&5 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 if test "${ac_cv_type_ssize_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((ssize_t *) 0) return 0; if (sizeof (ssize_t)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_ssize_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_ssize_t=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 if test $ac_cv_type_ssize_t = yes; then : else cat >>confdefs.h <<_ACEOF #define ssize_t int _ACEOF fi export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig" if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi PKG_CONFIG=$ac_pt_PKG_CONFIG else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 PKG_CONFIG="" fi fi pkg_failed=no echo "$as_me:$LINENO: checking for OPENWSMAN" >&5 echo $ECHO_N "checking for OPENWSMAN... $ECHO_C" >&6 if test -n "$PKG_CONFIG"; then if test -n "$OPENWSMAN_CFLAGS"; then pkg_cv_OPENWSMAN_CFLAGS="$OPENWSMAN_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openwsman++ >= 1.1.0\"") >&5 ($PKG_CONFIG --exists --print-errors "openwsman++ >= 1.1.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_OPENWSMAN_CFLAGS=`$PKG_CONFIG --cflags "openwsman++ >= 1.1.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$OPENWSMAN_LIBS"; then pkg_cv_OPENWSMAN_LIBS="$OPENWSMAN_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openwsman++ >= 1.1.0\"") >&5 ($PKG_CONFIG --exists --print-errors "openwsman++ >= 1.1.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_OPENWSMAN_LIBS=`$PKG_CONFIG --libs "openwsman++ >= 1.1.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then OPENWSMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openwsman++ >= 1.1.0"` else OPENWSMAN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openwsman++ >= 1.1.0"` fi # Put the nasty error message in config.log where it belongs echo "$OPENWSMAN_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (openwsman++ >= 1.1.0) were not met: $OPENWSMAN_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables OPENWSMAN_CFLAGS and OPENWSMAN_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (openwsman++ >= 1.1.0) were not met: $OPENWSMAN_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables OPENWSMAN_CFLAGS and OPENWSMAN_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables OPENWSMAN_CFLAGS and OPENWSMAN_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&5 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables OPENWSMAN_CFLAGS and OPENWSMAN_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else OPENWSMAN_CFLAGS=$pkg_cv_OPENWSMAN_CFLAGS OPENWSMAN_LIBS=$pkg_cv_OPENWSMAN_LIBS echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 : fi pkg_failed=no echo "$as_me:$LINENO: checking for XML" >&5 echo $ECHO_N "checking for XML... $ECHO_C" >&6 if test -n "$PKG_CONFIG"; then if test -n "$XML_CFLAGS"; then pkg_cv_XML_CFLAGS="$XML_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$XML_LIBS"; then pkg_cv_XML_LIBS="$XML_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"` else XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"` fi # Put the nasty error message in config.log where it belongs echo "$XML_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0) were not met: $XML_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (libxml-2.0) were not met: $XML_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&5 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else XML_CFLAGS=$pkg_cv_XML_CFLAGS XML_LIBS=$pkg_cv_XML_LIBS echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 : fi pkg_failed=no echo "$as_me:$LINENO: checking for GSOAP" >&5 echo $ECHO_N "checking for GSOAP... $ECHO_C" >&6 if test -n "$PKG_CONFIG"; then if test -n "$GSOAP_CFLAGS"; then pkg_cv_GSOAP_CFLAGS="$GSOAP_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gsoapssl++\"") >&5 ($PKG_CONFIG --exists --print-errors "gsoapssl++") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GSOAP_CFLAGS=`$PKG_CONFIG --cflags "gsoapssl++" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GSOAP_LIBS"; then pkg_cv_GSOAP_LIBS="$GSOAP_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gsoapssl++\"") >&5 ($PKG_CONFIG --exists --print-errors "gsoapssl++") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GSOAP_LIBS=`$PKG_CONFIG --libs "gsoapssl++" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GSOAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gsoapssl++"` else GSOAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gsoapssl++"` fi # Put the nasty error message in config.log where it belongs echo "$GSOAP_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (gsoapssl++) were not met: $GSOAP_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GSOAP_CFLAGS and GSOAP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (gsoapssl++) were not met: $GSOAP_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GSOAP_CFLAGS and GSOAP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GSOAP_CFLAGS and GSOAP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&5 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GSOAP_CFLAGS and GSOAP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else GSOAP_CFLAGS=$pkg_cv_GSOAP_CFLAGS GSOAP_LIBS=$pkg_cv_GSOAP_LIBS echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 : fi pkg_failed=no echo "$as_me:$LINENO: checking for OPENSSL" >&5 echo $ECHO_N "checking for OPENSSL... $ECHO_C" >&6 if test -n "$PKG_CONFIG"; then if test -n "$OPENSSL_CFLAGS"; then pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$OPENSSL_LIBS"; then pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl\"") >&5 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl"` else OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"` fi # Put the nasty error message in config.log where it belongs echo "$OPENSSL_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (openssl) were not met: $OPENSSL_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables OPENSSL_CFLAGS and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (openssl) were not met: $OPENSSL_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables OPENSSL_CFLAGS and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables OPENSSL_CFLAGS and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&5 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables OPENSSL_CFLAGS and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 : fi cat >>confdefs.h <<\_ACEOF #define HAVE_SSL 1 _ACEOF if test "${ac_cv_header_openssl_ssl_h+set}" = set; then echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ---------------------------- ## ## Report this to www.intel.com ## ## ---------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_openssl_ssl_h=$ac_header_preproc fi echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 fi if test $ac_cv_header_openssl_ssl_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_OPENSSL_SSL_H 1 _ACEOF fi # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $CURL_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_CURL_CONFIG" && ac_cv_path_CURL_CONFIG="no" ;; esac fi CURL_CONFIG=$ac_cv_path_CURL_CONFIG if test -n "$CURL_CONFIG"; then echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5 echo "${ECHO_T}$CURL_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "$CURL_CONFIG" = "no" ; then { { echo "$as_me:$LINENO: error: the curl-config script installed by libcurl could not be found. libcurl is required for tests." >&5 echo "$as_me: error: the curl-config script installed by libcurl could not be found. libcurl is required for tests." >&2;} { (exit 1); exit 1; }; } fi CURL_CFLAGS=`curl-config --cflags` CURL_LIBS=`curl-config --libs` echo "$as_me:$LINENO: checking for _init in -lxerces-c" >&5 echo $ECHO_N "checking for _init in -lxerces-c... $ECHO_C" >&6 if test "${ac_cv_lib_xerces_c__init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lxerces-c $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char _init (); int main () { _init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_xerces_c__init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_xerces_c__init=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_xerces_c__init" >&5 echo "${ECHO_T}$ac_cv_lib_xerces_c__init" >&6 if test $ac_cv_lib_xerces_c__init = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBXERCES_C 1 _ACEOF LIBS="-lxerces-c $LIBS" else { { echo "$as_me:$LINENO: error: Cannot find libxerces-c" >&5 echo "$as_me: error: Cannot find libxerces-c" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: checking for _init in -lxerces-depdom" >&5 echo $ECHO_N "checking for _init in -lxerces-depdom... $ECHO_C" >&6 if test "${ac_cv_lib_xerces_depdom__init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lxerces-depdom $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char _init (); int main () { _init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_xerces_depdom__init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_xerces_depdom__init=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_xerces_depdom__init" >&5 echo "${ECHO_T}$ac_cv_lib_xerces_depdom__init" >&6 if test $ac_cv_lib_xerces_depdom__init = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBXERCES_DEPDOM 1 _ACEOF LIBS="-lxerces-depdom $LIBS" else { { echo "$as_me:$LINENO: error: Cannot find libxeces-depdom" >&5 echo "$as_me: error: Cannot find libxeces-depdom" >&2;} { (exit 1); exit 1; }; } fi ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu for ac_header in xercesc/dom/DOM.hpp xercesc/dom/DOMImplementation.hpp xercesc/dom/DOMImplementationLS.hpp xercesc/dom/DOMImplementationRegistry.hpp xercesc/dom/DOMWriter.hpp xercesc/framework/MemBufFormatTarget.hpp xercesc/framework/MemBufInputSource.hpp xercesc/parsers/XercesDOMParser.hpp xercesc/util/OutOfMemoryException.hpp xercesc/util/PlatformUtils.hpp xercesc/util/XMLString.hpp xercesc/util/XMLUni.hpp do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ---------------------------- ## ## Report this to www.intel.com ## ## ---------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else { { echo "$as_me:$LINENO: error: xerces-c headers not found" >&5 echo "$as_me: error: xerces-c headers not found" >&2;} { (exit 1); exit 1; }; } fi done ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS="$CFLAGS $GSOAP_CFLAGS -D_REENTRANT -D_LINUX -fPIC" CPPFLAGS="$CPPFLAGS $GSOAP_CFLAGS -D_LINUX -fPIC" # Check whether --enable-more-warnings or --disable-more-warnings was given. if test "${enable_more_warnings+set}" = set; then enableval="$enable_more_warnings" set_more_warnings=no fi; if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then CFLAGS="$CFLAGS \ -Wall -Wstrict-prototypes -Wmissing-declarations \ -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ -Wunused -Werror" fi LIBS="$LIBS $XML_LIBS $CURL_LIBS $GSOAP_LIBS $OPENWSMAN_LIBS $OPENSSL_LIBS" ac_config_files="$ac_config_files Makefile SyncLib/Makefile SoapServer/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${DAEMON_TRUE}" && test -z "${DAEMON_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"DAEMON\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"DAEMON\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by uns $as_me 3.2, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ uns config.status 3.2 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir INSTALL="$INSTALL" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS section. # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "SyncLib/Makefile" ) CONFIG_FILES="$CONFIG_FILES SyncLib/Makefile" ;; "SoapServer/Makefile" ) CONFIG_FILES="$CONFIG_FILES SoapServer/Makefile" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@CYGPATH_W@,$CYGPATH_W,;t t s,@PACKAGE@,$PACKAGE,;t t s,@VERSION@,$VERSION,;t t s,@ACLOCAL@,$ACLOCAL,;t t s,@AUTOCONF@,$AUTOCONF,;t t s,@AUTOMAKE@,$AUTOMAKE,;t t s,@AUTOHEADER@,$AUTOHEADER,;t t s,@MAKEINFO@,$MAKEINFO,;t t s,@install_sh@,$install_sh,;t t s,@STRIP@,$STRIP,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t s,@mkdir_p@,$mkdir_p,;t t s,@AWK@,$AWK,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@am__leading_dot@,$am__leading_dot,;t t s,@AMTAR@,$AMTAR,;t t s,@am__tar@,$am__tar,;t t s,@am__untar@,$am__untar,;t t s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t s,@MAINT@,$MAINT,;t t s,@CXX@,$CXX,;t t s,@CXXFLAGS@,$CXXFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CXX@,$ac_ct_CXX,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@DEPDIR@,$DEPDIR,;t t s,@am__include@,$am__include,;t t s,@am__quote@,$am__quote,;t t s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t s,@CXXDEPMODE@,$CXXDEPMODE,;t t s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t s,@build@,$build,;t t s,@build_cpu@,$build_cpu,;t t s,@build_vendor@,$build_vendor,;t t s,@build_os@,$build_os,;t t s,@host@,$host,;t t s,@host_cpu@,$host_cpu,;t t s,@host_vendor@,$host_vendor,;t t s,@host_os@,$host_os,;t t s,@EGREP@,$EGREP,;t t s,@LN_S@,$LN_S,;t t s,@ECHO@,$ECHO,;t t s,@AR@,$AR,;t t s,@ac_ct_AR@,$ac_ct_AR,;t t s,@RANLIB@,$RANLIB,;t t s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t s,@CPP@,$CPP,;t t s,@CXXCPP@,$CXXCPP,;t t s,@F77@,$F77,;t t s,@FFLAGS@,$FFLAGS,;t t s,@ac_ct_F77@,$ac_ct_F77,;t t s,@LIBTOOL@,$LIBTOOL,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@DAEMON_TRUE@,$DAEMON_TRUE,;t t s,@DAEMON_FALSE@,$DAEMON_FALSE,;t t s,@PKG_CONFIG@,$PKG_CONFIG,;t t s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t s,@OPENWSMAN_CFLAGS@,$OPENWSMAN_CFLAGS,;t t s,@OPENWSMAN_LIBS@,$OPENWSMAN_LIBS,;t t s,@XML_CFLAGS@,$XML_CFLAGS,;t t s,@XML_LIBS@,$XML_LIBS,;t t s,@GSOAP_CFLAGS@,$GSOAP_CFLAGS,;t t s,@GSOAP_LIBS@,$GSOAP_LIBS,;t t s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t s,@CURL_CONFIG@,$CURL_CONFIG,;t t s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t s,@CURL_LIBS@,$CURL_LIBS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } # Do quote $f, to prevent DOS paths from being IFS'd. echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in _ACEOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # in config.status. rm -f conftest.defines conftest.undefs # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. cat >confdef2sed.sed <<\_ACEOF s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp t end s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end _ACEOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC-DEFINE to be honored. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f confdef2sed.sed # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >>conftest.undefs <<\_ACEOF s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, _ACEOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # grep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\_ACEOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then if diff $ac_file $tmp/config.h >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'`/stamp-h$_am_stamp_count done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_COMMANDS section. # for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_dir=`(dirname "$ac_dest") 2>/dev/null || $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_dest" : 'X\(//\)[^/]' \| \ X"$ac_dest" : 'X\(//\)$' \| \ X"$ac_dest" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_dest" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`(dirname "$mf") 2>/dev/null || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`(dirname "$file") 2>/dev/null || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p $dirpart/$fdir else as_dir=$dirpart/$fdir as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi UNS-3.2.0.24/configure.ac0000644012402100775320000001114310746077321016000 0ustar00gkbld_amtccigk00000000000000 AC_PREREQ(2.59) AC_INIT([uns], [3.2], [www.intel.com]) AC_CONFIG_SRCDIR([UNSMainLinux.cpp]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE([1.9 foreign]) AM_MAINTAINER_MODE AC_PROG_MAKE_SET AC_DISABLE_SHARED # Checks for programs. AC_PROG_CXX AC_PROG_CC AM_PROG_CC_STDC AC_PROG_INSTALL AC_PROG_LIBTOOL AC_PROG_LN_S # Checks for libraries. AC_CHECK_LIB([rt], [aio_write], [], [AC_MSG_ERROR([Cannot find librt])]) AC_CHECK_LIB([pthread], [pthread_mutex_lock], [], [AC_MSG_ERROR([Thread support not present or cannot find libpthread])]) # Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([fcntl.h memory.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h]) AC_CHECK_HEADERS([pthread.h], [], [AC_MSG_ERROR([pthread headers not found])]) # Checks for library functions. AC_FUNC_ERROR_AT_LINE AC_PROG_GCC_TRADITIONAL AC_FUNC_MALLOC AC_FUNC_SELECT_ARGTYPES AC_CHECK_FUNCS([gettimeofday memset mkdir select strtoul strtoull]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T AC_HEADER_TIME AC_C_VOLATILE dnl *************************** dnl *** Set debugging flags *** dnl *************************** debug_default=no daemon_default=yes # Declare --enable-* args and collect ac_help strings AH_TEMPLATE(DEBUG, [debug mode]) AH_TEMPLATE(_DEBUG, [UNS debug mode]) AH_TEMPLATE(SOAP_DEBUG, [soap debug mode]) AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes/max] turn on debugging [default=$debug_default]],, enable_debug=$debug_default) # Set the debug flags if test "x$enable_debug" != "xno"; then AC_DEFINE(_DEBUG) if test "x$enable_debug" = "xmax"; then AC_DEFINE(DEBUG) AC_DEFINE(SOAP_DEBUG) fi daemon_default=no fi #set daemon AH_TEMPLATE(NO_STDOUT_DEBUG_LOG, [do not log debug infos to stdout]) AH_TEMPLATE(DAEMON, [run as daemon]) AC_ARG_ENABLE(daemon, [ --enable-daemon=[no/yes] turn on non daemon mode [default=$daemon_default]],, enable_daemon=$daemon_default) if test "x$enable_daemon" = "xyes"; then AC_DEFINE(NO_STDOUT_DEBUG_LOG) AC_DEFINE(DAEMON) fi AM_CONDITIONAL([DAEMON], [test x$enable_daemon = xyes]) # check for ssize_t AC_CHECK_TYPE(ssize_t, int) export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig" PKG_CHECK_MODULES([OPENWSMAN], [openwsman++ >= 1.1.0]) AC_SUBST(OPENWSMAN_CFLAGS) AC_SUBST(OPENWSMAN_LIBS) PKG_CHECK_MODULES([XML], [libxml-2.0]) AC_SUBST(XML_CFLAGS) AC_SUBST(XML_LIBS) PKG_CHECK_MODULES([GSOAP], [gsoapssl++]) AC_SUBST(GSOAP_CFLAGS) AC_SUBST(GSOAP_LIBS) PKG_CHECK_MODULES([OPENSSL], [openssl]) AC_SUBST(OPENSSL_CFLAGS) AC_SUBST(OPENSSL_LIBS) AH_TEMPLATE(HAVE_OPENSSL_SSL_H, [openssl headers present]) AC_DEFINE(HAVE_SSL, 1, [Defined if you have SSL support]) AC_CHECK_HEADER([openssl/ssl.h], [AC_DEFINE(HAVE_OPENSSL_SSL_H)]) AC_PATH_PROG(CURL_CONFIG, curl-config, no) if test "$CURL_CONFIG" = "no" ; then AC_MSG_ERROR([the curl-config script installed by libcurl could not be found. libcurl is required for tests.]) fi CURL_CFLAGS=`curl-config --cflags` CURL_LIBS=`curl-config --libs` AC_SUBST(CURL_CFLAGS) AC_SUBST(CURL_LIBS) AC_CHECK_LIB([xerces-c], [_init], [], [AC_MSG_ERROR([Cannot find libxerces-c])]) AC_CHECK_LIB([xerces-depdom], [_init], [], [AC_MSG_ERROR([Cannot find libxeces-depdom])]) AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CHECK_HEADERS([xercesc/dom/DOM.hpp xercesc/dom/DOMImplementation.hpp xercesc/dom/DOMImplementationLS.hpp xercesc/dom/DOMImplementationRegistry.hpp xercesc/dom/DOMWriter.hpp xercesc/framework/MemBufFormatTarget.hpp xercesc/framework/MemBufInputSource.hpp xercesc/parsers/XercesDOMParser.hpp xercesc/util/OutOfMemoryException.hpp xercesc/util/PlatformUtils.hpp xercesc/util/XMLString.hpp xercesc/util/XMLUni.hpp], [], [AC_MSG_ERROR([xerces-c headers not found])]) AC_LANG_RESTORE CFLAGS="$CFLAGS $GSOAP_CFLAGS -D_REENTRANT -D_LINUX -fPIC" CPPFLAGS="$CPPFLAGS $GSOAP_CFLAGS -D_LINUX -fPIC" dnl ************************************* dnl *** Warnings to show if using GCC *** dnl ************************************* AC_ARG_ENABLE(more-warnings, [ --disable-more-warnings Inhibit compiler warnings], set_more_warnings=no) if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then CFLAGS="$CFLAGS \ -Wall -Wstrict-prototypes -Wmissing-declarations \ -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ -Wunused -Werror" fi LIBS="$LIBS $XML_LIBS $CURL_LIBS $GSOAP_LIBS $OPENWSMAN_LIBS $OPENSSL_LIBS" AC_CONFIG_FILES([Makefile SyncLib/Makefile SoapServer/Makefile]) AC_OUTPUT UNS-3.2.0.24/COPYING0000644012402100775320000000353110746077322014550 0ustar00gkbld_amtccigk00000000000000Part of "Intel(R) Active Management Technology (Intel(R) AMT) User Notification Service (UNS)" Copyright (c) 2007 Intel Corp. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer, without modification. 2. Redistributions in binary form must reproduce at minimum a disclaimer substantially similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any redistribution must be conditioned upon including a substantially similar Disclaimer requirement for further binary redistribution. 3. Neither the names of the above-listed copyright holders nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission. Alternatively, this software may be distributed under the terms of the GNU General Public License ("GPL") version 2 as published by the Free Software Foundation. NO WARRANTY 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. UNS-3.2.0.24/Credentials.cpp0000644012402100775320000001743610746077322016467 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: Credentials.cpp // // Notes: code to retrieve AMT credentials // //---------------------------------------------------------------------------- #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "Credentials.h" #include "registryWrapper.h" #include "CryptUtils.h" #include using namespace std; string GetRegistryValue(const char* regBase, const char* regKey, const char* val); CredentialsRegInfo::CredentialsRegInfo(const std::string &base, const std::string &key, const std::string &user, const std::string &pass, const std::string &cert, const std::string &cainfo, const std::string &capath, const std::string &sslKey) : regBase(base), regKey(key), regUser(user), regPass(pass), regCert(cert),regCainfo(cainfo), regCapath(capath), regSSLkey(sslKey) { } template void EraseString(T &string, size_t size) { for (size_t i = 0; i < size; i++) { string[i] = '\0'; } } Credentials *RetrieveCredentials(const CredentialsRegInfo &credRegInfo) { Credentials *cred = new Credentials; const char* regBase = credRegInfo.regBase.c_str(); const char* regKey = credRegInfo.regKey.c_str(); cred->username = GetRegistryValue(regBase, regKey, credRegInfo.regUser.c_str()); cred->password = GetRegistryValue(regBase, regKey, credRegInfo.regPass.c_str()); cred->certificate= GetRegistryValue(regBase, regKey, credRegInfo.regCert.c_str()); cred->cainfo = GetRegistryValue(regBase, regKey, credRegInfo.regCainfo.c_str()); cred->capath = GetRegistryValue(regBase, regKey, credRegInfo.regCapath.c_str()); cred->sslkey = GetRegistryValue(regBase, regKey, credRegInfo.regSSLkey.c_str()); return cred; } string GetRegistryValue(const char* regBase, const char* regKey, const char* val) { string retVal = ""; UNSREG_DATATYPE type; unsigned char *encryptedVal = NULL; unsigned long encryptedValLen = 0; UNSREG_DATATYPE regEncryptedValLen = 0; unsigned char *value = NULL; if (!GetRegistryData(NULL, ®EncryptedValLen, &type, regBase, regKey, val)) { goto err; } if (regEncryptedValLen > 0) { encryptedVal = new unsigned char[regEncryptedValLen]; if (encryptedVal == NULL) { goto err; } if (!GetRegistryData(encryptedVal, ®EncryptedValLen, &type, regBase, regKey, val)) { goto err; } } encryptedValLen = (unsigned long)regEncryptedValLen; if (!Decrypt(encryptedVal, &encryptedValLen, (void **)&value)) { goto err; } if (value) retVal = string((char *)value, encryptedValLen); err: delete []encryptedVal; #ifdef _WIN32 LocalFree(value); #else delete []value; #endif return string(retVal); } bool StoreCredentials(Credentials *cred, const CredentialsRegInfo &credRegInfo) { unsigned char *encryptedUser = NULL; unsigned char *encryptedPass = NULL; unsigned char *encryptedCert = NULL; unsigned char *encryptedSSLKey = NULL; unsigned char *encryptedCainfo = NULL; unsigned char *encryptedCapath = NULL; bool res = false; const char* regBase = credRegInfo.regBase.c_str(); const char* regKey = credRegInfo.regKey.c_str(); const char* regUser = credRegInfo.regUser.c_str(); const char* regPass = credRegInfo.regPass.c_str(); const char* regCert = credRegInfo.regCert.c_str(); const char* regCainfo = credRegInfo.regCainfo.c_str(); const char* regCapath = credRegInfo.regCapath.c_str(); const char* regSSLKey = credRegInfo.regSSLkey.c_str(); unsigned long encryptedUserLen = (unsigned long)cred->username.size(); unsigned long encryptedPassLen = (unsigned long)cred->password.size(); unsigned long encryptedCertLen = (unsigned long)cred->certificate.size(); unsigned long encryptedCapathLen = (unsigned long)cred->capath.size(); unsigned long encryptedCainfoLen = (unsigned long)cred->cainfo.size(); unsigned long encryptedSSLKeyLen = (unsigned long)cred->sslkey.size(); if (!Encrypt(cred->username.c_str(), &encryptedUserLen, (void **)&encryptedUser) || !Encrypt(cred->password.c_str(), &encryptedPassLen, (void **)&encryptedPass) || !Encrypt(cred->certificate.c_str(), &encryptedCertLen, (void**)&encryptedCert) || !Encrypt(cred->capath.c_str(), &encryptedCapathLen, (void**)&encryptedCapath) || !Encrypt(cred->cainfo.c_str(), &encryptedCainfoLen, (void**)&encryptedCainfo) || !Encrypt(cred->sslkey.c_str(), &encryptedSSLKeyLen, (void**)&encryptedSSLKey)) { goto out; } if (!SetRegistryData(encryptedUser, (UNSREG_DATATYPE)encryptedUserLen, REG_BINARY, regBase, regKey, regUser, false)) { goto out; } if (!SetRegistryData(encryptedPass, (UNSREG_DATATYPE)encryptedPassLen, REG_BINARY, regBase, regKey, regPass, false)) { goto out; } if (!SetRegistryData(encryptedCert, (UNSREG_DATATYPE)encryptedCertLen, REG_BINARY, regBase, regKey, regCert, false)) { goto out; } if (!SetRegistryData(encryptedCapath, (UNSREG_DATATYPE)encryptedCapathLen, REG_BINARY, regBase, regKey, regCapath, false)) { goto out; } if (!SetRegistryData(encryptedCainfo, (UNSREG_DATATYPE)encryptedCainfoLen, REG_BINARY, regBase, regKey, regCainfo, false)) { goto out; } if (!SetRegistryData(encryptedSSLKey, (UNSREG_DATATYPE)encryptedSSLKeyLen, REG_BINARY, regBase, regKey, regSSLKey, false)) { goto out; } res = true; out: #ifdef _WIN32 LocalFree(encryptedUser); LocalFree(encryptedPass); LocalFree(encryptedCert); LocalFree(encryptedCapath); LocalFree(encryptedCainfo); LocalFree(encryptedSSLKey); #else delete []encryptedUser; delete []encryptedPass; delete []encryptedCert; delete []encryptedCapath; delete []encryptedCainfo; delete []encryptedSSLKey; #endif return res; } UNS-3.2.0.24/Credentials.h0000644012402100775320000000720610746077322016126 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: Credentials.h // // Contents: definitions to retrieve AMT credentials // //---------------------------------------------------------------------------- #ifndef _CREDENTIALS_H #define _CREDENTIALS_H #include struct Credentials { Credentials(const std::string &user, const std::string &pass, const std::string &cert, const std::string &_cainfo = "", const std::string &_capath = "", const std::string &_sslkey = "") : username(user), password(pass), certificate(cert), cainfo(_cainfo), capath(_capath), sslkey(_sslkey){} Credentials() {} std::string username; std::string password; std::string certificate; std::string cainfo; std::string capath; std::string sslkey; }; struct CredentialsRegInfo { CredentialsRegInfo(const std::string &base, const std::string &key, const std::string &user, const std::string &pass, const std::string &cert, const std::string &cainfo, const std::string &capath, const std::string &sslKey); std::string regBase; std::string regKey; std::string regUser; std::string regPass; std::string regCert; std::string regCainfo; std::string regCapath; std::string regSSLkey; }; Credentials* RetrieveCredentials(const CredentialsRegInfo &credRegInfo); std::string RetrieveCertificate(const CredentialsRegInfo &credRegInfo); bool StoreCredentials(Credentials *cred, const CredentialsRegInfo &credRegInfo); #endif // _CREDENTIALS_H UNS-3.2.0.24/CryptUtils.cpp0000644012402100775320000000653410746077322016351 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: CryptUtils.cpp // // Notes: Implemintation of Crypt utils //---------------------------------------------------------------------------- #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "CryptUtils.h" #include #ifdef _WIN32 #include #include #include #endif bool Crypt(bool encrypt, const void *data, unsigned long *size, void **out) { #ifdef _WIN32 DATA_BLOB DataIn, DataOut; BOOL res; if ((data == NULL) || (*size == 0)) { *out = NULL; return true; } DataIn.pbData = (BYTE*)data; DataIn.cbData = *size; if (encrypt) { res = CryptProtectData(&DataIn, L"DONT_REMOVE", NULL, NULL, NULL, 0, &DataOut); } else { res = CryptUnprotectData(&DataIn, NULL, NULL, NULL, NULL, 0, &DataOut); } if (!res) { return false; } *out = DataOut.pbData; *size = DataOut.cbData; #else //no encryption in linux *out = new char[*size]; memcpy(*out,data,*size); #endif return true; } bool Decrypt(const void *data, unsigned long *size, void **out) { return Crypt(false, data, size, out); } bool Encrypt(const void *data, unsigned long *size, void **out) { return Crypt(true, data, size, out); } UNS-3.2.0.24/CryptUtils.h0000644012402100775320000000514310746077322016011 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: CryptUtils.cpp // // Notes: Implemintation of Crypt utils //---------------------------------------------------------------------------- #ifndef _CRYPT_UTILS_H #define _CRYPT_UTILS_H bool Crypt(bool encrypt, const void *data, unsigned long *size, void **out) ; bool Decrypt(const void *data, unsigned long *size, void **out) ; bool Encrypt(const void *data, unsigned long *size, void **out) ; #endif UNS-3.2.0.24/depcomp0000755012402100775320000003710010746077322015071 0ustar00gkbld_amtccigk00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2005-07-09.11 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mecanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: UNS-3.2.0.24/EACWSManClient.cpp0000644012402100775320000001405510746077322016661 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "EACWSManClient.h" #include "UNSCommonDefs.h" const std::string EACWSManClient::DEFAULT_USER = "$$eac"; const std::string EACWSManClient::DEFAULT_PASS = "$$eac"; EACWSManClient::EACWSManClient() : BaseWSManClient(CRED_REG_INFO::EAC, DEFAULT_USER, DEFAULT_PASS) { m_pPosture = NULL; m_pChangeHash = NULL; m_pHash = NULL; m_nPostureLen = 0; m_nChangeHashLen = 0; m_nHashLen = 0; m_isInit = false; } EACWSManClient::~EACWSManClient() { delete []m_pPosture; delete []m_pChangeHash; delete []m_pHash; } bool EACWSManClient::SaveData(int nNewLength, int &nOldLength, unsigned char **ppDest, unsigned char *pSource) { if (nNewLength != nOldLength) { //New size is different - reallocate delete [](*ppDest); *ppDest = new unsigned char[nNewLength]; if (*ppDest == NULL) return false; nOldLength = nNewLength; } memcpy(*ppDest, pSource, nNewLength); return true; } bool EACWSManClient::GetPosture(unsigned char **ppPosture, unsigned int &nPostureLen, unsigned char **ppChangeHash, unsigned int &nChangeHashLen) { if (!Init()) return false; AMT_EndpointAccessControlService::GetPosture_INPUT request; request.PostureType = 0; // Use enum/typedef AMT_EndpointAccessControlService::GetPosture_OUTPUT response; printf ("\nGetting Posture... (%s).\n", endpoint.c_str()); try { m_service.InvokeGetPosture( request, response, m_client); } catch (GeneralWsmanException& e) { printf("\nError: failed while calling InvokeGetPosture routine\n"); printf("%s\n", e.what()); return false; } catch (exception& e) { printf("\nError: failed while calling InvokeGetPosture routine\n"); printf("%s\n", e.what()); return false; } printf ("\nPosture received successfuly.\n"); nPostureLen = response.SignedPosture.len; nChangeHashLen = response.PostureChangeHash.len; if (!SaveData(nPostureLen, m_nPostureLen, &m_pPosture, response.SignedPosture.data)) return false; if (!SaveData(nChangeHashLen, m_nChangeHashLen, &m_pChangeHash, response.PostureChangeHash.data)) return false; *ppPosture = m_pPosture; *ppChangeHash = m_pChangeHash; return true; } bool EACWSManClient::GetPostureHash(unsigned char **ppHash, unsigned int &nHashLen) { if (!Init()) return false; AMT_EndpointAccessControlService::GetPostureHash_INPUT request; request.PostureType = 0; // Use enum/typedef AMT_EndpointAccessControlService::GetPostureHash_OUTPUT response; try { m_service.InvokeGetPostureHash(request, response,m_client); } catch (GeneralWsmanException& e) { printf("\nError: failed while calling InvokeGetPosture routine\n"); printf("%s\n", e.what()); return false; } catch (exception& e) { printf("\nError: failed while calling InvokeGetPostureHash routine\n"); printf("%s\n", e.what()); return false; } nHashLen = response.PostureChangeHash.len; if (!SaveData(nHashLen, m_nHashLen, &m_pHash, response.PostureChangeHash.data)) return false; *ppHash = m_pHash; return true; } bool EACWSManClient::IsEACEnabled(bool &bEACEnabled) { if (!Init(true)) return false; bEACEnabled = (m_service.EnabledState == 2); // use enum/typedef return true; } bool EACWSManClient::Init(bool forceGet) { if (!forceGet && m_isInit) return true; for(int i = 0; i < 2; i++) { if (!m_endpoint) SetEndpoint(i == 0 ? false : true); try { m_service.Get(NULL,m_client); } catch (GeneralWsmanException& e) { printf("\nError: failed while calling InvokeGetPosture routine\n"); printf("%s\n", e.what()); m_endpoint = false; continue; } catch (exception& e) { printf("\nError: failed while calling get AMT_EndpointAccessControlService\n"); printf("%s\n", e.what()); m_endpoint = false; continue; } m_endpoint = true; m_isInit = true; return true; } return false; } UNS-3.2.0.24/EACWSManClient.h0000644012402100775320000000655010746077322016327 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _EAC_WSMAN_CLIENT_H #define _EAC_WSMAN_CLIENT_H #include "AMT_EndpointAccessControlService.h" #include "BaseWSManClient.h" #include "UNSStatus.h" #include using namespace CimClassNamespace; class EACWSManClient : public BaseWSManClient { public: EACWSManClient(); virtual ~EACWSManClient(); /*Actual soap actions!*/ /*Note: The pointers set in ppPosture and ppChangeHash are only valid as long as the EACSoapClient object lives.*/ bool GetPosture(unsigned char **ppPosture, unsigned int &nPostureLen, unsigned char **ppChangeHash, unsigned int &nChangeHashLen); /*Note: The pointer set in ppHash is only valid as long as the EACSoapClient object lives.*/ bool GetPostureHash(unsigned char **ppHash, unsigned int &nHashLen); bool IsEACEnabled(bool &bEACEnabled); bool Init(bool forceGet = false); private: bool SaveData(int nNewLength, int &nOldLength, unsigned char **ppDest, unsigned char *pSource); unsigned char *m_pPosture; unsigned char *m_pChangeHash; unsigned char *m_pHash; int m_nPostureLen; int m_nChangeHashLen; int m_nHashLen; bool m_isInit; static const std::string DEFAULT_USER; static const std::string DEFAULT_PASS; AMT_EndpointAccessControlService m_service; }; #endif //_EAC_SOAP_CLIENT_H UNS-3.2.0.24/EventMessages.cpp0000644012402100775320000001043210746077322016770 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "EventMessages.h" #include #include "UNSMessageFileLinux.h" EventMessages::EventMessages() { // Initializing categories _categories.resize(4); _categories[UNS_WLAN] = "WLAN"; _categories[UNS_REMOTE_DIAGNOSTIC] = "Remote Diagnostics"; _categories[UNS_GENERAL] = "UNS"; _categories[UNS_CIRCUIT_BREAKER] = "System Defense"; // Initializing events _events.resize(15); _events[NETWORK_TRAFFIC_TX_CEASED] = SingleEvent( LOG_INFO, 1001, "Security policy invoked. Some or all network traffic (TX) was stopped."); _events[NETWORK_CONNECTIVITY_TX_REDUCED] = SingleEvent( LOG_INFO, 1002, "Security policy invoked. TX Network connectivity was reduced."); _events[NETWORK_TRAFFIC_RX_CEASED] = SingleEvent( LOG_INFO, 1003, "Security policy invoked. Some or all network traffic (RX) was stopped."); _events[NETWORK_CONNECTIVITY_RX_REDUCED] = SingleEvent( LOG_INFO, 1004, "Security policy invoked. RX Network connectivity was reduced."); _events[WLAN_PROFILE_INSUFFICIENT] = SingleEvent( LOG_INFO, 1102, "WLAN Profile insufficient for management session over WLAN interface. "); _events[WLAN_SECURITY_INSUFFICIENT] = SingleEvent( LOG_INFO, 1103, "Security parameters insufficient for management session over WLAN interface."); _events[WLAN_SESSION_ESTABLISHED] = SingleEvent( LOG_INFO, 1104, "Management session was established over WLAN interface."); _events[WLAN_SESSION_ENDED] = SingleEvent( LOG_INFO, 1105, "Management session over WLAN interface has finished."); _events[REMOTE_SOL_STARTED] = SingleEvent( LOG_INFO, 1201, "A remote Serial Over LAN session was established."); _events[REMOTE_SOL_ENDED] = SingleEvent( LOG_INFO, 1202, "Remote Serial Over LAN session finished. User control was restored."); _events[REMOTE_IDER_STARTED] = SingleEvent( LOG_INFO, 1203, "A remote IDE-Redirection session was established."); _events[REMOTE_IDER_ENDED] = SingleEvent( LOG_INFO, 1204, "Remote IDE-Redirection session finished. User control was restored."); _events[TEXT_MESSAGE] = SingleEvent( LOG_INFO, 2000, "%1"); _events[UNS_WARNING_MESSAGE] = SingleEvent( LOG_WARNING, 2001, "%1"); _events[UNS_ERROR_MESSAGE] = SingleEvent( LOG_ERR, 2002, "%1"); } UNS-3.2.0.24/EventMessages.h0000644012402100775320000000705510746077322016444 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: EventMessages.h // // Contents: Linux Event Messages. //---------------------------------------------------------------------------- #ifndef EVENT_MESSAGES_H #define EVENT_MESSAGES_H #include #include using namespace std; // This class holds a single event message. class SingleEvent { private: int _priority; // corresponding to the syslog priority unsigned long _eventid; string _message; public: SingleEvent() {}; SingleEvent( const int priority, const unsigned long eventid, const string &message): _priority(priority), _eventid(eventid), _message(message) {} const string& getMessage () {return _message;} int getEventid () {return _eventid;} int getPriority () {return _priority;} }; // Singleton class, user cannot create instance of it. class EventMessages { private: vector _events; vector _categories; EventMessages(); public: // Use this method to get the single instance of this class. static EventMessages& instance() { static EventMessages _instance; return _instance;} const string& getMessage (int eventid) { return _events[eventid].getMessage();} int getPriority (int eventid) { return _events[eventid].getPriority();} int getEventid (int eventid) { return _events[eventid].getEventid();} string& getCategory (int category) { return _categories[category];} }; #endif UNS-3.2.0.24/INSTALL0000644012402100775320000000012510746077322014542 0ustar00gkbld_amtccigk00000000000000Installation Instructions ************************* ./configure make make install UNS-3.2.0.24/install-sh0000755012402100775320000002202110746077322015514 0ustar00gkbld_amtccigk00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2005-05-14.22 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" chmodcmd="$chmodprog 0755" chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= no_target_directory= usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: -c (ignored) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test -n "$1"; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit $?;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit $?;; *) # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. test -n "$dir_arg$dstarg" && break # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done break;; esac done if test -z "$1"; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then mkdircmd=: chmodcmd= else mkdircmd=$mkdirprog fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` shift IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test -d "$pathcomp" || exit fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $mkdircmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else dstfile=`basename "$dst"` # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. $doit $cpprog "$src" "$dsttmp" && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { if test -f "$dstdir/$dstfile"; then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit 1; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit 0 } # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: UNS-3.2.0.24/LinuxEventLog.cpp0000644012402100775320000001001610746077322016760 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "LinuxEventLog.h" #include "EventMessages.h" #include #include #include #include //ctor LinuxEventLog::LinuxEventLog(const char * eventLogSourceName) { msgId = 1; openlog(eventLogSourceName, LOG_CONS, LOG_DAEMON); } //dtor LinuxEventLog::~LinuxEventLog() { closelog(); } // Record Events for void LinuxEventLog::LogEvent( unsigned short CategoryID, unsigned long EventID, unsigned long EventType) { //get string from EventMessages //EventMessages msg; char msg[1024]; snprintf(msg, 1024, "Category=%s:EventId=%d:Message=(%u)%s", EventMessages::instance().getCategory(CategoryID).c_str(), EventMessages::instance().getEventid(EventID), msgId++, EventMessages::instance().getMessage(EventID).c_str()); std::string str = std::string(msg); syslog(EventMessages::instance().getPriority(EventID), "%s", str.c_str()); } void LinuxEventLog::LogEvent( unsigned short CategoryID, unsigned long EventID, unsigned long EventType, const char * ArrayOfStrings[], unsigned int NumOfArrayStr, void * RawData, unsigned long RawDataSize){ // sanity check: replace algorithm only works for array length below 10 if (NumOfArrayStr > 9){ return; } //get string from EventMessages //EventMessages msg; char msg[1024]; snprintf(msg, 1024, "Category=%s:EventId=%d:Message=(%u)%s", EventMessages::instance().getCategory(CategoryID).c_str(), EventMessages::instance().getEventid(EventID), msgId++, EventMessages::instance().getMessage(EventID).c_str()); std::string str = std::string(msg); //replace '%i' with ArrayOfStrings[i] for(unsigned int i=0; i #include "LinuxRegistryInfo.h" #include "BaseEventLog.h" //Event types #define EVENTLOG_SUCCESS LOG_INFO #define EVENTLOG_ERROR_TYPE LOG_ERR #define EVENTLOG_WARNING_TYPE LOG_WARNING #define EVENTLOG_INFORMATION_TYPE LOG_INFO class LinuxEventLog : public BaseEventLog{ private: unsigned int msgId; public: //********************************************* //LinuxEventLog: //Ctor to LinuxEventLog object //params: //@eventLogSourceName - source name of event log //********************************************* LinuxEventLog(const char * eventLogSourceName); //********************************************* //~LinuxEventLog: //Dtor to LinuxEventLog object //********************************************* ~LinuxEventLog(); //********************************************* //LogEvent: //Record Events for debugging. //params: //@categoryID - category ID //@eventID - event ID //********************************************* void LogEvent(unsigned short CategoryID, unsigned long EventID, unsigned long EventType); //********************************************* //LogEvent: //Record Events for debugging. //params: //@categoryID - category ID //@eventID - event ID //@EventType //@ArrayOfStrings //@NumOfArrayStr //@RawData //@RawDataSize //********************************************* void LogEvent(unsigned short CategoryID,unsigned long EventID , unsigned long EventType,const char * ArrayOfStrings[], unsigned int NumOfArrayStr, void * RawData=NULL, unsigned long RawDataSize=0); }; #endif //_LINUX_EVENT_LOG_H UNS-3.2.0.24/LinuxRegistry.cpp0000644012402100775320000001557110746077322017060 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: LinuxRegistry.cpp // // Notes: code to linux registry simulation // //---------------------------------------------------------------------------- #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #include #include #include #include #include "AMTPPDefs.h" #include "registryWrapper.h" #define MAX_PATH 100 #define MAX_DATA 4096 #define UNSREG_VAL_ACCESS_MODE_PUBLIC (S_IRUSR | S_IWUSR | S_IROTH | S_IRGRP) #define UNSREG_VAL_ACCESS_MODE (S_IRUSR | S_IWUSR) #define UNSREG_KEY_ACCESS_MODE (S_IRWXU | S_IXOTH | S_IXGRP) bool DeleteRegistryKey(const char *base0, const char *key) { char path[MAX_PATH]; if (MAX_PATH < (strnlen("/usr/", MAX_PATH) + strnlen(base0, MAX_PATH) + strnlen("/", MAX_PATH) + strnlen(key, MAX_PATH) + 1)) { return false; } strncpy(path,"/usr/", strnlen("/usr/", MAX_PATH - 1) + 1); strncat(path,base0, strnlen(base0, MAX_PATH - 1)); strncat(path,("/"), strnlen("/", MAX_PATH - 1)); strncat(path,key, strnlen(key, MAX_PATH - 1)); if(-1 == unlink(path)) { return false; } return true; } bool DeleteRegistryVal(const char *base0, const char *key, const char *valuename) { char path[MAX_PATH*2]; // sanity check before string copying if (MAX_PATH*2 < (strnlen("/usr/", 2*MAX_PATH) + strnlen(base0, 2*MAX_PATH) + strnlen("/", 2*MAX_PATH) + strnlen(key, 2*MAX_PATH) + strnlen("/", 2*MAX_PATH) + strnlen(valuename, 2*MAX_PATH) + 1)) { return false; } strncpy(path,"/usr/", strnlen("/usr/", 2*MAX_PATH - 1) + 1); strncat(path,base0, strnlen(base0, 2*MAX_PATH - 1)); strncat(path,("/"), strnlen("/", 2*MAX_PATH - 1)); strncat(path,key, strnlen(key, 2*MAX_PATH - 1)); strncat(path,("/"), strnlen("/", 2*MAX_PATH - 1)); strncat(path,valuename, strnlen(valuename, 2*MAX_PATH - 1)); if(-1 == unlink(path)) { return false; } return true; } bool GetRegistryData(void *value, UNSREG_DATATYPE *valsz, UNSREG_DATATYPE *type, const char *base0, const char *key, const char *valuename) { int fd; bool ret = true; int size; char path[MAX_PATH*2]; char tmpval[MAX_DATA]; // sanity check before string copying if (MAX_PATH*2 < (strnlen("/usr/", 2*MAX_PATH) + strnlen(base0, 2*MAX_PATH) + strnlen("/", 2*MAX_PATH) + strnlen(key, 2*MAX_PATH) + strnlen("/", 2*MAX_PATH) + strnlen(valuename, 2*MAX_PATH) + 1)) { return false; } strncpy(path,"/usr/", strnlen("/usr/", 2*MAX_PATH - 1) + 1); strncat(path,base0, strnlen(base0, 2*MAX_PATH - 1)); strncat(path,("/"), strnlen("/", 2*MAX_PATH - 1)); strncat(path,key, strnlen(key, 2*MAX_PATH - 1)); strncat(path,("/"), strnlen("/", 2*MAX_PATH - 1)); strncat(path,valuename, strnlen(valuename, 2*MAX_PATH - 1)); //open file for read if(-1 == (fd = open(path, O_RDONLY, S_IRWXU))) { return false; } if(-1 == (size = read(fd, type, sizeof(UNSREG_DATATYPE)))) { ret = false; } //read value from file if(-1 == (size = read(fd, tmpval, sizeof(tmpval)))) { ret = false; } if( (NULL == value) || ((int)*valsz < size)) { *valsz = size; } else { memcpy(value, tmpval, (size_t)size); } //close file if(-1 == close(fd)) { ret = false; } return ret; } bool SetRegistryData(const void* value, UNSREG_DATATYPE valsz, UNSREG_DATATYPE type,const char *base0,const char *key, const char *valuename, bool bPublic) { int fd; int wrote; bool ret = true; char path[MAX_PATH*2]; // sanity check before string copying if (MAX_PATH*2 < (strnlen("/usr/", 2*MAX_PATH) + strnlen(base0, 2*MAX_PATH) + strnlen("/", 2*MAX_PATH) + strnlen(key, 2*MAX_PATH) + strnlen("/", 2*MAX_PATH) + strnlen(valuename, 2*MAX_PATH) + 1)) { return false; } strncpy(path,"/usr/", strnlen("/usr/", 2*MAX_PATH - 1) + 1); strncat(path,base0, strnlen(base0, 2*MAX_PATH - 1)); //create path mkdir(path, UNSREG_KEY_ACCESS_MODE); strncat(path,("/"), strnlen("/", 2*MAX_PATH - 1)); strncat(path,key, strnlen(key, 2*MAX_PATH - 1)); //create path mkdir(path, UNSREG_KEY_ACCESS_MODE); strncat(path,("/"), strnlen("/", 2*MAX_PATH - 1)); strncat(path,valuename, strnlen(valuename, 2*MAX_PATH - 1)); //open file for writing if(-1 == (fd = open(path, O_RDWR|O_CREAT|O_TRUNC, (bPublic == true)?UNSREG_VAL_ACCESS_MODE_PUBLIC:UNSREG_VAL_ACCESS_MODE))) { return false; } if(-1 == (wrote = write(fd, &type, sizeof(UNSREG_DATATYPE)))) { ret = false; } // check write integrity if (wrote != sizeof(UNSREG_DATATYPE)) { ret = false; } if(-1 == (wrote = write(fd, value, (size_t)valsz))) { ret = false; } // check write integrity if (wrote != valsz) { ret = false; } if(-1 == close(fd)) { ret = false; } return ret; } UNS-3.2.0.24/LinuxRegistryInfo.h0000644012402100775320000000460310746077322017333 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _LINUX_REGISTRY_INFO_H #define _LINUX_REGISTRY_INFO_H #ifndef _WIN32 #include typedef uint32_t UNSREG_DATATYPE; typedef enum _REG_VAL{ REG_BINARY = (UNSREG_DATATYPE)0, REG_DWORD = (UNSREG_DATATYPE)1, REG_SZ = (UNSREG_DATATYPE)2 }REG_VAL; #endif #endif UNS-3.2.0.24/ltmain.sh0000644012402100775320000057753010746077322015354 0ustar00gkbld_amtccigk00000000000000# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION=1.5.22 TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Check that we have a working $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, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xdir="$my_gentop/$my_xlib" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" $echo $echo "Copyright (C) 2005 Free Software Foundation, Inc." $echo "This is free software; see the source for copying conditions. There is NO" $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.f90) xform=f90 ;; *.for) xform=for ;; *.java) xform=java ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes else if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built fi build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -pg pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ -t[45]*|-txscale*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # The PATH hackery in wrapper scripts is required on Windows # in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor - 1` age="$number_minor" revision="$number_minor" ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) major=`expr $current - $age + 1` case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. for path in $notinst_path; do lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` else compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` fi ;; * ) compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # 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='$sed_quote_subst' # 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 relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables if test "${save_LC_ALL+set}" = set; then LC_ALL="$save_LC_ALL"; export LC_ALL fi if test "${save_LANG+set}" = set; then LANG="$save_LANG"; export LANG fi # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: UNS-3.2.0.24/Makefile.am0000644012402100775320000000251610746077322015553 0ustar00gkbld_amtccigk00000000000000SUBDIRS=SyncLib SoapServer . rootsbindir=/sbin rootsbin_PROGRAMS=uns rootinitddir=/etc/init.d dist_rootinitd_SCRIPTS=scripts/uns WSMAN_PATH=WSMAN_Common WSMANMCPP_PATH=$(WSMAN_PATH)/MofCppFiles SYNCLIB_PATH=SyncLib AMT_STATUS_PATH=AMTStatus AMT_HECI_PATH=$(AMT_STATUS_PATH)/heci/Linux GSOAP_PATH=SoapServer GSOAP_PLUGINS=$(GSOAP_PATH)/gSOAP/plugin GSOAP_GCODE=SoapServer/gSoapGeneratedCode include Makefile.inc if DAEMON uns_SOURCES+=daemonize.cpp noinst_HEADERS+=daemonize.h endif uns_HEADERDIRS=-I. -I$(srcdir) \ -I$(srcdir)/$(SYNCLIB_PATH)/Include \ -I$(srcdir)/$(WSMANMCPP_PATH)/Include \ -I$(srcdir)/$(WSMAN_PATH)/Include \ -I$(srcdir)/$(AMT_STATUS_PATH) \ -I$(srcdir)/$(AMT_STATUS_PATH)/heci/StatusStrings \ -I$(srcdir)/$(AMT_HECI_PATH) \ -I$(srcdir)/$(GSOAP_PATH) \ -I$(srcdir)/$(GSOAP_PLUGINS) \ -I$(srcdir)/$(GSOAP_GCODE) uns_CPPFLAGS=$(uns_HEADERDIRS) -D_SYS_SYSMACROS_H=1 uns_CLAGS=$(uns_HEADERDIRS) -D_SYS_SYSMACROS_H=1 uns_LDADD=$(SYNCLIB_PATH)/libSyncLib.la mc: mc.pl UNSMessageFile.mc perl mc.pl 4 UNSMessageFile.mc wsdls: cd SoapServer && make wsdls #install-data-hook: # @if [ "x$(DESTDIR)" = "x" ] ; then \ # echo "chkconfig --add uns" ; \ # chkconfig --add uns ; \ # echo "service uns start" ; \ # service uns start ; \ # else \ # echo "[!] chkconfig --add uns NOT EXECUTED: uns installed outside /etc/init.d" ; \ # fi UNS-3.2.0.24/Makefile.in0000644012402100775320000044210510746077322015566 0ustar00gkbld_amtccigk00000000000000# 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@ rootsbin_PROGRAMS = uns$(EXEEXT) DIST_COMMON = README $(am__configure_deps) $(am__noinst_HEADERS_DIST) \ $(dist_noinst_DATA) $(dist_noinst_SCRIPTS) \ $(dist_rootinitd_SCRIPTS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/Makefile.inc \ $(srcdir)/config.h.in $(top_srcdir)/configure COPYING INSTALL \ compile config.guess config.sub depcomp install-sh ltmain.sh \ missing @DAEMON_TRUE@am__append_1 = daemonize.cpp @DAEMON_TRUE@am__append_2 = daemonize.h 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 = am__installdirs = "$(DESTDIR)$(rootsbindir)" \ "$(DESTDIR)$(rootinitddir)" rootsbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(rootsbin_PROGRAMS) am__uns_SOURCES_DIST = UNSMainLinux.cpp AMTPPSharedData.cpp \ BaseWSManClient.cpp ConfigFile.cpp ConfigLinuxInfo.cpp \ Credentials.cpp CryptUtils.cpp EACWSManClient.cpp \ EventMessages.cpp LinuxEventLog.cpp LinuxRegistry.cpp \ Options.cpp PeriodicActionThread.cpp \ PostureRetrievalThread.cpp UNSCommonDefs.cpp UNSConfig.cpp \ UNSEventLogger.cpp UNSSoapServer.cpp UNSWSManClient.cpp \ UserNotificationServiceLinux.cpp UserNotificationThread.cpp \ $(WSMAN_PATH)/Src/CimClass.cpp \ $(WSMAN_PATH)/Src/Deserializable.cpp \ $(WSMAN_PATH)/Src/EndpointReference.cpp \ $(WSMAN_PATH)/Src/Serializable.cpp \ $(WSMAN_PATH)/Src/XMLTypes.cpp \ $(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp \ $(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp \ $(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp \ $(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp \ $(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp \ $(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp \ $(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp \ $(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp \ $(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp \ $(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp \ $(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp \ $(WSMANMCPP_PATH)/Src/CIM_Service.cpp \ $(AMT_STATUS_PATH)/AMTStatusThread.cpp \ $(AMT_STATUS_PATH)/IPCAMTStatus.cpp \ $(AMT_STATUS_PATH)/IPCBufferLinux.cpp \ $(AMT_HECI_PATH)/HECILinux.cpp \ $(AMT_HECI_PATH)/PTHICommand.cpp $(GSOAP_PATH)/SoapBinding.cpp \ $(GSOAP_GCODE)/soapC.cpp $(GSOAP_GCODE)/soapServer.cpp \ $(GSOAP_PLUGINS)/httpda.c $(GSOAP_PLUGINS)/md5evp.c \ daemonize.cpp am__objects_1 = uns-AMTPPSharedData.$(OBJEXT) \ uns-BaseWSManClient.$(OBJEXT) uns-ConfigFile.$(OBJEXT) \ uns-ConfigLinuxInfo.$(OBJEXT) uns-Credentials.$(OBJEXT) \ uns-CryptUtils.$(OBJEXT) uns-EACWSManClient.$(OBJEXT) \ uns-EventMessages.$(OBJEXT) uns-LinuxEventLog.$(OBJEXT) \ uns-LinuxRegistry.$(OBJEXT) uns-Options.$(OBJEXT) \ uns-PeriodicActionThread.$(OBJEXT) \ uns-PostureRetrievalThread.$(OBJEXT) \ uns-UNSCommonDefs.$(OBJEXT) uns-UNSConfig.$(OBJEXT) \ uns-UNSEventLogger.$(OBJEXT) uns-UNSSoapServer.$(OBJEXT) \ uns-UNSWSManClient.$(OBJEXT) \ uns-UserNotificationServiceLinux.$(OBJEXT) \ uns-UserNotificationThread.$(OBJEXT) am__objects_2 = uns-CimClass.$(OBJEXT) uns-Deserializable.$(OBJEXT) \ uns-EndpointReference.$(OBJEXT) uns-Serializable.$(OBJEXT) \ uns-XMLTypes.$(OBJEXT) uns-XMLUtils_XRCS.$(OBJEXT) \ uns-AMT_EndpointAccessControlService.$(OBJEXT) \ uns-AMT_SOAPEventSubscriber.$(OBJEXT) \ uns-AMT_EventSubscriber.$(OBJEXT) uns-CIM_RemotePort.$(OBJEXT) \ uns-CIM_RemoteServiceAccessPoint.$(OBJEXT) \ uns-CIM_ServiceAccessPoint.$(OBJEXT) \ uns-CIM_EnabledLogicalElement.$(OBJEXT) \ uns-CIM_LogicalElement.$(OBJEXT) \ uns-CIM_ManagedSystemElement.$(OBJEXT) \ uns-CIM_ManagedElement.$(OBJEXT) uns-CIM_Service.$(OBJEXT) am__objects_3 = uns-AMTStatusThread.$(OBJEXT) \ uns-IPCAMTStatus.$(OBJEXT) uns-IPCBufferLinux.$(OBJEXT) \ uns-HECILinux.$(OBJEXT) uns-PTHICommand.$(OBJEXT) am__objects_4 = uns-soapC.$(OBJEXT) uns-soapServer.$(OBJEXT) am__objects_5 = uns-httpda.$(OBJEXT) uns-md5evp.$(OBJEXT) am__objects_6 = uns-SoapBinding.$(OBJEXT) $(am__objects_4) \ $(am__objects_5) @DAEMON_TRUE@am__objects_7 = uns-daemonize.$(OBJEXT) am_uns_OBJECTS = uns-UNSMainLinux.$(OBJEXT) $(am__objects_1) \ $(am__objects_2) $(am__objects_3) $(am__objects_6) \ $(am__objects_7) uns_OBJECTS = $(am_uns_OBJECTS) uns_DEPENDENCIES = $(SYNCLIB_PATH)/libSyncLib.la dist_rootinitdSCRIPT_INSTALL = $(INSTALL_SCRIPT) SCRIPTS = $(dist_noinst_SCRIPTS) $(dist_rootinitd_SCRIPTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I. 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 $@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(uns_SOURCES) DIST_SOURCES = $(am__uns_SOURCES_DIST) 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 DATA = $(dist_noinst_DATA) am__noinst_HEADERS_DIST = AMTPPDefs.h AMTPPSharedData.h BaseEventLog.h \ BaseWSManClient.h ConfigFile.h ConfigLinuxInfo.h \ ConfigOSInfo.h Credentials.h CryptUtils.h EACWSManClient.h \ EventMessages.h LinuxEventLog.h LinuxRegistryInfo.h Options.h \ PeriodicActionThread.h PostureRetrievalThread.h \ registryWrapper.h UNSCommonDefs.h UNSConfig.h UNSEventLogger.h \ UNSMessageFileLinux.h UNSSoapServer.h UNSStatus.h \ UNSWSManClient.h UserNotificationServiceLinux.h \ UserNotificationThread.h $(WSMAN_PATH)/Include/CimClass.h \ $(WSMAN_PATH)/Include/Deserializable.h \ $(WSMAN_PATH)/Include/EndpointReference.h \ $(WSMAN_PATH)/Include/Serializable.h \ $(WSMAN_PATH)/Include/XMLTypes.h \ $(WSMAN_PATH)/Include/XMLUtils.h \ $(WSMANMCPP_PATH)/Include/AMT_EndpointAccessControlService.h \ $(WSMANMCPP_PATH)/Include/AMT_EventSubscriber.h \ $(WSMANMCPP_PATH)/Include/AMT_SOAPEventSubscriber.h \ $(WSMANMCPP_PATH)/Include/CIM_EnabledLogicalElement.h \ $(WSMANMCPP_PATH)/Include/CIM_LogicalElement.h \ $(WSMANMCPP_PATH)/Include/CIM_ManagedElement.h \ $(WSMANMCPP_PATH)/Include/CIM_ManagedSystemElement.h \ $(WSMANMCPP_PATH)/Include/CIM_RemotePort.h \ $(WSMANMCPP_PATH)/Include/CIM_RemoteServiceAccessPoint.h \ $(WSMANMCPP_PATH)/Include/CIM_ServiceAccessPoint.h \ $(WSMANMCPP_PATH)/Include/CIM_Service.h \ $(AMT_STATUS_PATH)/AMTStatusThread.h \ $(AMT_STATUS_PATH)/IPCAMTStatus.h \ $(AMT_STATUS_PATH)/IPCBuffer.h $(AMT_HECI_PATH)/AMTVersn.h \ $(AMT_HECI_PATH)/heci.h $(AMT_HECI_PATH)/HECI_if.h \ $(AMT_HECI_PATH)/HECILinux.h $(AMT_HECI_PATH)/PTHICommand.h \ $(AMT_STATUS_PATH)/heci/StatusStrings/StatusCodeDefinitions.h \ $(GSOAP_PATH)/SoapBinding.h \ $(GSOAP_GCODE)/soapEventManagerClientSoapBindingObject.h \ $(GSOAP_GCODE)/soapH.h $(GSOAP_GCODE)/SoapInterfaceTmp.h \ $(GSOAP_GCODE)/soapStub.h $(GSOAP_GCODE)/cmn.nsmap \ $(GSOAP_GCODE)/emi.nsmap \ $(GSOAP_GCODE)/EventManagerClientSoapBinding.nsmap \ $(GSOAP_GCODE)/sai.nsmap $(GSOAP_GCODE)/SoapBinding.nsmap \ $(GSOAP_PLUGINS)/httpda.h $(GSOAP_PLUGINS)/md5evp.h \ $(GSOAP_PLUGINS)/threads.h daemonize.h HEADERS = $(noinst_HEADERS) 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@ 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@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURL_CFLAGS = @CURL_CFLAGS@ CURL_CONFIG = @CURL_CONFIG@ CURL_LIBS = @CURL_LIBS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DAEMON_FALSE = @DAEMON_FALSE@ DAEMON_TRUE = @DAEMON_TRUE@ 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@ GSOAP_CFLAGS = @GSOAP_CFLAGS@ GSOAP_LIBS = @GSOAP_LIBS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ OPENSSL_LIBS = @OPENSSL_LIBS@ OPENWSMAN_CFLAGS = @OPENWSMAN_CFLAGS@ OPENWSMAN_LIBS = @OPENWSMAN_LIBS@ 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@ PKG_CONFIG = @PKG_CONFIG@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ 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@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ SUBDIRS = SyncLib SoapServer . rootsbindir = /sbin rootinitddir = /etc/init.d dist_rootinitd_SCRIPTS = scripts/uns WSMAN_PATH = WSMAN_Common WSMANMCPP_PATH = $(WSMAN_PATH)/MofCppFiles SYNCLIB_PATH = SyncLib AMT_STATUS_PATH = AMTStatus AMT_HECI_PATH = $(AMT_STATUS_PATH)/heci/Linux GSOAP_PATH = SoapServer GSOAP_PLUGINS = $(GSOAP_PATH)/gSOAP/plugin GSOAP_GCODE = SoapServer/gSoapGeneratedCode SYNCLIB_SRC_PATH = $(SYNCLIB_PATH)/src SYNCLIB_SRCS = $(SYNCLIB_SRC_PATH)/EventLinux.cpp \ $(SYNCLIB_SRC_PATH)/RWLock.cpp \ $(SYNCLIB_SRC_PATH)/SemaphoreLinux.cpp \ $(SYNCLIB_SRC_PATH)/ThreadLinux.cpp SYNCLIB_INC_PATH = $(SYNCLIB_PATH)/Include SYNCLIB_HDRS = $(SYNCLIB_INC_PATH)/Event.h \ $(SYNCLIB_INC_PATH)/Lock.h \ $(SYNCLIB_INC_PATH)/RWLock.h \ $(SYNCLIB_INC_PATH)/Semaphore.h \ $(SYNCLIB_INC_PATH)/SPtr.h \ $(SYNCLIB_INC_PATH)/Thread.h AMTSTATUS_SRCS = $(AMT_STATUS_PATH)/AMTStatusThread.cpp \ $(AMT_STATUS_PATH)/IPCAMTStatus.cpp \ $(AMT_STATUS_PATH)/IPCBufferLinux.cpp \ $(AMT_HECI_PATH)/HECILinux.cpp \ $(AMT_HECI_PATH)/PTHICommand.cpp AMTSTATUS_HDRS = $(AMT_STATUS_PATH)/AMTStatusThread.h \ $(AMT_STATUS_PATH)/IPCAMTStatus.h \ $(AMT_STATUS_PATH)/IPCBuffer.h \ $(AMT_HECI_PATH)/AMTVersn.h \ $(AMT_HECI_PATH)/heci.h \ $(AMT_HECI_PATH)/HECI_if.h \ $(AMT_HECI_PATH)/HECILinux.h \ $(AMT_HECI_PATH)/PTHICommand.h \ $(AMT_STATUS_PATH)/heci/StatusStrings/StatusCodeDefinitions.h SOAP_GENERATED_SRCS = \ $(GSOAP_GCODE)/soapC.cpp \ $(GSOAP_GCODE)/soapServer.cpp SOAP_GENERATED_HDRS = $(GSOAP_GCODE)/soapEventManagerClientSoapBindingObject.h \ $(GSOAP_GCODE)/soapH.h \ $(GSOAP_GCODE)/SoapInterfaceTmp.h \ $(GSOAP_GCODE)/soapStub.h \ $(GSOAP_GCODE)/cmn.nsmap \ $(GSOAP_GCODE)/emi.nsmap \ $(GSOAP_GCODE)/EventManagerClientSoapBinding.nsmap \ $(GSOAP_GCODE)/sai.nsmap \ $(GSOAP_GCODE)/SoapBinding.nsmap SOAP_PLUGIN_SRCS = \ $(GSOAP_PLUGINS)/httpda.c \ $(GSOAP_PLUGINS)/md5evp.c SOAP_PLUGIN_HDRS = \ $(GSOAP_PLUGINS)/httpda.h \ $(GSOAP_PLUGINS)/md5evp.h \ $(GSOAP_PLUGINS)/threads.h SOAP_SRCS = $(GSOAP_PATH)/SoapBinding.cpp \ $(SOAP_GENERATED_SRCS) \ $(SOAP_PLUGIN_SRCS) SOAP_HDRS = $(GSOAP_PATH)/SoapBinding.h \ $(SOAP_GENERATED_HDRS) \ $(SOAP_PLUGIN_HDRS) NOTIFTHREAD_SRCS = AMTPPSharedData.cpp \ BaseWSManClient.cpp \ ConfigFile.cpp \ ConfigLinuxInfo.cpp \ Credentials.cpp \ CryptUtils.cpp \ EACWSManClient.cpp \ EventMessages.cpp \ LinuxEventLog.cpp \ LinuxRegistry.cpp \ Options.cpp \ PeriodicActionThread.cpp \ PostureRetrievalThread.cpp \ UNSCommonDefs.cpp \ UNSConfig.cpp \ UNSEventLogger.cpp \ UNSSoapServer.cpp \ UNSWSManClient.cpp \ UserNotificationServiceLinux.cpp \ UserNotificationThread.cpp NOTIFTHREAD_HDRS = AMTPPDefs.h \ AMTPPSharedData.h \ BaseEventLog.h \ BaseWSManClient.h \ ConfigFile.h \ ConfigLinuxInfo.h \ ConfigOSInfo.h \ Credentials.h \ CryptUtils.h \ EACWSManClient.h \ EventMessages.h \ LinuxEventLog.h \ LinuxRegistryInfo.h \ Options.h \ PeriodicActionThread.h \ PostureRetrievalThread.h \ registryWrapper.h \ UNSCommonDefs.h \ UNSConfig.h \ UNSEventLogger.h \ UNSMessageFileLinux.h \ UNSSoapServer.h \ UNSStatus.h \ UNSWSManClient.h \ UserNotificationServiceLinux.h \ UserNotificationThread.h WSMAN_SRCS = $(WSMAN_PATH)/Src/CimClass.cpp \ $(WSMAN_PATH)/Src/Deserializable.cpp \ $(WSMAN_PATH)/Src/EndpointReference.cpp \ $(WSMAN_PATH)/Src/Serializable.cpp \ $(WSMAN_PATH)/Src/XMLTypes.cpp \ $(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp \ $(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp \ $(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp \ $(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp \ $(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp \ $(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp \ $(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp \ $(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp \ $(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp \ $(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp \ $(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp \ $(WSMANMCPP_PATH)/Src/CIM_Service.cpp WSMAN_HDRS = $(WSMAN_PATH)/Include/CimClass.h \ $(WSMAN_PATH)/Include/Deserializable.h \ $(WSMAN_PATH)/Include/EndpointReference.h \ $(WSMAN_PATH)/Include/Serializable.h \ $(WSMAN_PATH)/Include/XMLTypes.h \ $(WSMAN_PATH)/Include/XMLUtils.h \ $(WSMANMCPP_PATH)/Include/AMT_EndpointAccessControlService.h \ $(WSMANMCPP_PATH)/Include/AMT_EventSubscriber.h \ $(WSMANMCPP_PATH)/Include/AMT_SOAPEventSubscriber.h \ $(WSMANMCPP_PATH)/Include/CIM_EnabledLogicalElement.h \ $(WSMANMCPP_PATH)/Include/CIM_LogicalElement.h \ $(WSMANMCPP_PATH)/Include/CIM_ManagedElement.h \ $(WSMANMCPP_PATH)/Include/CIM_ManagedSystemElement.h \ $(WSMANMCPP_PATH)/Include/CIM_RemotePort.h \ $(WSMANMCPP_PATH)/Include/CIM_RemoteServiceAccessPoint.h \ $(WSMANMCPP_PATH)/Include/CIM_ServiceAccessPoint.h \ $(WSMANMCPP_PATH)/Include/CIM_Service.h uns_SOURCES = UNSMainLinux.cpp $(NOTIFTHREAD_SRCS) $(WSMAN_SRCS) \ $(AMTSTATUS_SRCS) $(SOAP_SRCS) $(am__append_1) noinst_HEADERS = $(NOTIFTHREAD_HDRS) $(WSMAN_HDRS) $(AMTSTATUS_HDRS) \ $(SOAP_HDRS) $(am__append_2) dist_noinst_SCRIPTS = mc.pl dist_noinst_DATA = UNSMessageFile.mc uns_HEADERDIRS = -I. -I$(srcdir) \ -I$(srcdir)/$(SYNCLIB_PATH)/Include \ -I$(srcdir)/$(WSMANMCPP_PATH)/Include \ -I$(srcdir)/$(WSMAN_PATH)/Include \ -I$(srcdir)/$(AMT_STATUS_PATH) \ -I$(srcdir)/$(AMT_STATUS_PATH)/heci/StatusStrings \ -I$(srcdir)/$(AMT_HECI_PATH) \ -I$(srcdir)/$(GSOAP_PATH) \ -I$(srcdir)/$(GSOAP_PLUGINS) \ -I$(srcdir)/$(GSOAP_GCODE) uns_CPPFLAGS = $(uns_HEADERDIRS) -D_SYS_SYSMACROS_H=1 uns_CLAGS = $(uns_HEADERDIRS) -D_SYS_SYSMACROS_H=1 uns_LDADD = $(SYNCLIB_PATH)/libSyncLib.la all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .cpp .lo .o .obj am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/Makefile.inc $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ cd $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign 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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 install-rootsbinPROGRAMS: $(rootsbin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(rootsbindir)" || $(mkdir_p) "$(DESTDIR)$(rootsbindir)" @list='$(rootsbin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(rootsbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(rootsbindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(rootsbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(rootsbindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-rootsbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(rootsbin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(rootsbindir)/$$f'"; \ rm -f "$(DESTDIR)$(rootsbindir)/$$f"; \ done clean-rootsbinPROGRAMS: @list='$(rootsbin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done uns$(EXEEXT): $(uns_OBJECTS) $(uns_DEPENDENCIES) @rm -f uns$(EXEEXT) $(CXXLINK) $(uns_LDFLAGS) $(uns_OBJECTS) $(uns_LDADD) $(LIBS) install-dist_rootinitdSCRIPTS: $(dist_rootinitd_SCRIPTS) @$(NORMAL_INSTALL) test -z "$(rootinitddir)" || $(mkdir_p) "$(DESTDIR)$(rootinitddir)" @list='$(dist_rootinitd_SCRIPTS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f $$d$$p; then \ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ echo " $(dist_rootinitdSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(rootinitddir)/$$f'"; \ $(dist_rootinitdSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(rootinitddir)/$$f"; \ else :; fi; \ done uninstall-dist_rootinitdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(dist_rootinitd_SCRIPTS)'; for p in $$list; do \ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ echo " rm -f '$(DESTDIR)$(rootinitddir)/$$f'"; \ rm -f "$(DESTDIR)$(rootinitddir)/$$f"; \ done mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-AMTPPSharedData.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-AMTStatusThread.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-AMT_EndpointAccessControlService.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-AMT_EventSubscriber.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-AMT_SOAPEventSubscriber.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-BaseWSManClient.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CIM_EnabledLogicalElement.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CIM_LogicalElement.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CIM_ManagedElement.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CIM_ManagedSystemElement.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CIM_RemotePort.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CIM_RemoteServiceAccessPoint.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CIM_Service.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CIM_ServiceAccessPoint.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CimClass.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-ConfigFile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-ConfigLinuxInfo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-Credentials.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-CryptUtils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-Deserializable.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-EACWSManClient.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-EndpointReference.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-EventMessages.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-HECILinux.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-IPCAMTStatus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-IPCBufferLinux.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-LinuxEventLog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-LinuxRegistry.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-Options.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-PTHICommand.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-PeriodicActionThread.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-PostureRetrievalThread.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-Serializable.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-SoapBinding.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-UNSCommonDefs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-UNSConfig.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-UNSEventLogger.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-UNSMainLinux.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-UNSSoapServer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-UNSWSManClient.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-UserNotificationServiceLinux.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-UserNotificationThread.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-XMLTypes.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-XMLUtils_XRCS.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-daemonize.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-httpda.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-md5evp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-soapC.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uns-soapServer.Po@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 $@ $< uns-httpda.o: $(GSOAP_PLUGINS)/httpda.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT uns-httpda.o -MD -MP -MF "$(DEPDIR)/uns-httpda.Tpo" -c -o uns-httpda.o `test -f '$(GSOAP_PLUGINS)/httpda.c' || echo '$(srcdir)/'`$(GSOAP_PLUGINS)/httpda.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/uns-httpda.Tpo" "$(DEPDIR)/uns-httpda.Po"; else rm -f "$(DEPDIR)/uns-httpda.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(GSOAP_PLUGINS)/httpda.c' object='uns-httpda.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o uns-httpda.o `test -f '$(GSOAP_PLUGINS)/httpda.c' || echo '$(srcdir)/'`$(GSOAP_PLUGINS)/httpda.c uns-httpda.obj: $(GSOAP_PLUGINS)/httpda.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT uns-httpda.obj -MD -MP -MF "$(DEPDIR)/uns-httpda.Tpo" -c -o uns-httpda.obj `if test -f '$(GSOAP_PLUGINS)/httpda.c'; then $(CYGPATH_W) '$(GSOAP_PLUGINS)/httpda.c'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_PLUGINS)/httpda.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/uns-httpda.Tpo" "$(DEPDIR)/uns-httpda.Po"; else rm -f "$(DEPDIR)/uns-httpda.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(GSOAP_PLUGINS)/httpda.c' object='uns-httpda.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o uns-httpda.obj `if test -f '$(GSOAP_PLUGINS)/httpda.c'; then $(CYGPATH_W) '$(GSOAP_PLUGINS)/httpda.c'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_PLUGINS)/httpda.c'; fi` uns-md5evp.o: $(GSOAP_PLUGINS)/md5evp.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT uns-md5evp.o -MD -MP -MF "$(DEPDIR)/uns-md5evp.Tpo" -c -o uns-md5evp.o `test -f '$(GSOAP_PLUGINS)/md5evp.c' || echo '$(srcdir)/'`$(GSOAP_PLUGINS)/md5evp.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/uns-md5evp.Tpo" "$(DEPDIR)/uns-md5evp.Po"; else rm -f "$(DEPDIR)/uns-md5evp.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(GSOAP_PLUGINS)/md5evp.c' object='uns-md5evp.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o uns-md5evp.o `test -f '$(GSOAP_PLUGINS)/md5evp.c' || echo '$(srcdir)/'`$(GSOAP_PLUGINS)/md5evp.c uns-md5evp.obj: $(GSOAP_PLUGINS)/md5evp.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT uns-md5evp.obj -MD -MP -MF "$(DEPDIR)/uns-md5evp.Tpo" -c -o uns-md5evp.obj `if test -f '$(GSOAP_PLUGINS)/md5evp.c'; then $(CYGPATH_W) '$(GSOAP_PLUGINS)/md5evp.c'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_PLUGINS)/md5evp.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/uns-md5evp.Tpo" "$(DEPDIR)/uns-md5evp.Po"; else rm -f "$(DEPDIR)/uns-md5evp.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(GSOAP_PLUGINS)/md5evp.c' object='uns-md5evp.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o uns-md5evp.obj `if test -f '$(GSOAP_PLUGINS)/md5evp.c'; then $(CYGPATH_W) '$(GSOAP_PLUGINS)/md5evp.c'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_PLUGINS)/md5evp.c'; fi` .cpp.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< uns-UNSMainLinux.o: UNSMainLinux.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSMainLinux.o -MD -MP -MF "$(DEPDIR)/uns-UNSMainLinux.Tpo" -c -o uns-UNSMainLinux.o `test -f 'UNSMainLinux.cpp' || echo '$(srcdir)/'`UNSMainLinux.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSMainLinux.Tpo" "$(DEPDIR)/uns-UNSMainLinux.Po"; else rm -f "$(DEPDIR)/uns-UNSMainLinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSMainLinux.cpp' object='uns-UNSMainLinux.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSMainLinux.o `test -f 'UNSMainLinux.cpp' || echo '$(srcdir)/'`UNSMainLinux.cpp uns-UNSMainLinux.obj: UNSMainLinux.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSMainLinux.obj -MD -MP -MF "$(DEPDIR)/uns-UNSMainLinux.Tpo" -c -o uns-UNSMainLinux.obj `if test -f 'UNSMainLinux.cpp'; then $(CYGPATH_W) 'UNSMainLinux.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSMainLinux.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSMainLinux.Tpo" "$(DEPDIR)/uns-UNSMainLinux.Po"; else rm -f "$(DEPDIR)/uns-UNSMainLinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSMainLinux.cpp' object='uns-UNSMainLinux.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSMainLinux.obj `if test -f 'UNSMainLinux.cpp'; then $(CYGPATH_W) 'UNSMainLinux.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSMainLinux.cpp'; fi` uns-AMTPPSharedData.o: AMTPPSharedData.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMTPPSharedData.o -MD -MP -MF "$(DEPDIR)/uns-AMTPPSharedData.Tpo" -c -o uns-AMTPPSharedData.o `test -f 'AMTPPSharedData.cpp' || echo '$(srcdir)/'`AMTPPSharedData.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMTPPSharedData.Tpo" "$(DEPDIR)/uns-AMTPPSharedData.Po"; else rm -f "$(DEPDIR)/uns-AMTPPSharedData.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='AMTPPSharedData.cpp' object='uns-AMTPPSharedData.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMTPPSharedData.o `test -f 'AMTPPSharedData.cpp' || echo '$(srcdir)/'`AMTPPSharedData.cpp uns-AMTPPSharedData.obj: AMTPPSharedData.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMTPPSharedData.obj -MD -MP -MF "$(DEPDIR)/uns-AMTPPSharedData.Tpo" -c -o uns-AMTPPSharedData.obj `if test -f 'AMTPPSharedData.cpp'; then $(CYGPATH_W) 'AMTPPSharedData.cpp'; else $(CYGPATH_W) '$(srcdir)/AMTPPSharedData.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMTPPSharedData.Tpo" "$(DEPDIR)/uns-AMTPPSharedData.Po"; else rm -f "$(DEPDIR)/uns-AMTPPSharedData.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='AMTPPSharedData.cpp' object='uns-AMTPPSharedData.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMTPPSharedData.obj `if test -f 'AMTPPSharedData.cpp'; then $(CYGPATH_W) 'AMTPPSharedData.cpp'; else $(CYGPATH_W) '$(srcdir)/AMTPPSharedData.cpp'; fi` uns-BaseWSManClient.o: BaseWSManClient.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-BaseWSManClient.o -MD -MP -MF "$(DEPDIR)/uns-BaseWSManClient.Tpo" -c -o uns-BaseWSManClient.o `test -f 'BaseWSManClient.cpp' || echo '$(srcdir)/'`BaseWSManClient.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-BaseWSManClient.Tpo" "$(DEPDIR)/uns-BaseWSManClient.Po"; else rm -f "$(DEPDIR)/uns-BaseWSManClient.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BaseWSManClient.cpp' object='uns-BaseWSManClient.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-BaseWSManClient.o `test -f 'BaseWSManClient.cpp' || echo '$(srcdir)/'`BaseWSManClient.cpp uns-BaseWSManClient.obj: BaseWSManClient.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-BaseWSManClient.obj -MD -MP -MF "$(DEPDIR)/uns-BaseWSManClient.Tpo" -c -o uns-BaseWSManClient.obj `if test -f 'BaseWSManClient.cpp'; then $(CYGPATH_W) 'BaseWSManClient.cpp'; else $(CYGPATH_W) '$(srcdir)/BaseWSManClient.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-BaseWSManClient.Tpo" "$(DEPDIR)/uns-BaseWSManClient.Po"; else rm -f "$(DEPDIR)/uns-BaseWSManClient.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='BaseWSManClient.cpp' object='uns-BaseWSManClient.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-BaseWSManClient.obj `if test -f 'BaseWSManClient.cpp'; then $(CYGPATH_W) 'BaseWSManClient.cpp'; else $(CYGPATH_W) '$(srcdir)/BaseWSManClient.cpp'; fi` uns-ConfigFile.o: ConfigFile.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-ConfigFile.o -MD -MP -MF "$(DEPDIR)/uns-ConfigFile.Tpo" -c -o uns-ConfigFile.o `test -f 'ConfigFile.cpp' || echo '$(srcdir)/'`ConfigFile.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-ConfigFile.Tpo" "$(DEPDIR)/uns-ConfigFile.Po"; else rm -f "$(DEPDIR)/uns-ConfigFile.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ConfigFile.cpp' object='uns-ConfigFile.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-ConfigFile.o `test -f 'ConfigFile.cpp' || echo '$(srcdir)/'`ConfigFile.cpp uns-ConfigFile.obj: ConfigFile.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-ConfigFile.obj -MD -MP -MF "$(DEPDIR)/uns-ConfigFile.Tpo" -c -o uns-ConfigFile.obj `if test -f 'ConfigFile.cpp'; then $(CYGPATH_W) 'ConfigFile.cpp'; else $(CYGPATH_W) '$(srcdir)/ConfigFile.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-ConfigFile.Tpo" "$(DEPDIR)/uns-ConfigFile.Po"; else rm -f "$(DEPDIR)/uns-ConfigFile.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ConfigFile.cpp' object='uns-ConfigFile.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-ConfigFile.obj `if test -f 'ConfigFile.cpp'; then $(CYGPATH_W) 'ConfigFile.cpp'; else $(CYGPATH_W) '$(srcdir)/ConfigFile.cpp'; fi` uns-ConfigLinuxInfo.o: ConfigLinuxInfo.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-ConfigLinuxInfo.o -MD -MP -MF "$(DEPDIR)/uns-ConfigLinuxInfo.Tpo" -c -o uns-ConfigLinuxInfo.o `test -f 'ConfigLinuxInfo.cpp' || echo '$(srcdir)/'`ConfigLinuxInfo.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-ConfigLinuxInfo.Tpo" "$(DEPDIR)/uns-ConfigLinuxInfo.Po"; else rm -f "$(DEPDIR)/uns-ConfigLinuxInfo.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ConfigLinuxInfo.cpp' object='uns-ConfigLinuxInfo.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-ConfigLinuxInfo.o `test -f 'ConfigLinuxInfo.cpp' || echo '$(srcdir)/'`ConfigLinuxInfo.cpp uns-ConfigLinuxInfo.obj: ConfigLinuxInfo.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-ConfigLinuxInfo.obj -MD -MP -MF "$(DEPDIR)/uns-ConfigLinuxInfo.Tpo" -c -o uns-ConfigLinuxInfo.obj `if test -f 'ConfigLinuxInfo.cpp'; then $(CYGPATH_W) 'ConfigLinuxInfo.cpp'; else $(CYGPATH_W) '$(srcdir)/ConfigLinuxInfo.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-ConfigLinuxInfo.Tpo" "$(DEPDIR)/uns-ConfigLinuxInfo.Po"; else rm -f "$(DEPDIR)/uns-ConfigLinuxInfo.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ConfigLinuxInfo.cpp' object='uns-ConfigLinuxInfo.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-ConfigLinuxInfo.obj `if test -f 'ConfigLinuxInfo.cpp'; then $(CYGPATH_W) 'ConfigLinuxInfo.cpp'; else $(CYGPATH_W) '$(srcdir)/ConfigLinuxInfo.cpp'; fi` uns-Credentials.o: Credentials.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-Credentials.o -MD -MP -MF "$(DEPDIR)/uns-Credentials.Tpo" -c -o uns-Credentials.o `test -f 'Credentials.cpp' || echo '$(srcdir)/'`Credentials.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-Credentials.Tpo" "$(DEPDIR)/uns-Credentials.Po"; else rm -f "$(DEPDIR)/uns-Credentials.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Credentials.cpp' object='uns-Credentials.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-Credentials.o `test -f 'Credentials.cpp' || echo '$(srcdir)/'`Credentials.cpp uns-Credentials.obj: Credentials.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-Credentials.obj -MD -MP -MF "$(DEPDIR)/uns-Credentials.Tpo" -c -o uns-Credentials.obj `if test -f 'Credentials.cpp'; then $(CYGPATH_W) 'Credentials.cpp'; else $(CYGPATH_W) '$(srcdir)/Credentials.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-Credentials.Tpo" "$(DEPDIR)/uns-Credentials.Po"; else rm -f "$(DEPDIR)/uns-Credentials.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Credentials.cpp' object='uns-Credentials.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-Credentials.obj `if test -f 'Credentials.cpp'; then $(CYGPATH_W) 'Credentials.cpp'; else $(CYGPATH_W) '$(srcdir)/Credentials.cpp'; fi` uns-CryptUtils.o: CryptUtils.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CryptUtils.o -MD -MP -MF "$(DEPDIR)/uns-CryptUtils.Tpo" -c -o uns-CryptUtils.o `test -f 'CryptUtils.cpp' || echo '$(srcdir)/'`CryptUtils.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CryptUtils.Tpo" "$(DEPDIR)/uns-CryptUtils.Po"; else rm -f "$(DEPDIR)/uns-CryptUtils.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='CryptUtils.cpp' object='uns-CryptUtils.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CryptUtils.o `test -f 'CryptUtils.cpp' || echo '$(srcdir)/'`CryptUtils.cpp uns-CryptUtils.obj: CryptUtils.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CryptUtils.obj -MD -MP -MF "$(DEPDIR)/uns-CryptUtils.Tpo" -c -o uns-CryptUtils.obj `if test -f 'CryptUtils.cpp'; then $(CYGPATH_W) 'CryptUtils.cpp'; else $(CYGPATH_W) '$(srcdir)/CryptUtils.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CryptUtils.Tpo" "$(DEPDIR)/uns-CryptUtils.Po"; else rm -f "$(DEPDIR)/uns-CryptUtils.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='CryptUtils.cpp' object='uns-CryptUtils.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CryptUtils.obj `if test -f 'CryptUtils.cpp'; then $(CYGPATH_W) 'CryptUtils.cpp'; else $(CYGPATH_W) '$(srcdir)/CryptUtils.cpp'; fi` uns-EACWSManClient.o: EACWSManClient.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-EACWSManClient.o -MD -MP -MF "$(DEPDIR)/uns-EACWSManClient.Tpo" -c -o uns-EACWSManClient.o `test -f 'EACWSManClient.cpp' || echo '$(srcdir)/'`EACWSManClient.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-EACWSManClient.Tpo" "$(DEPDIR)/uns-EACWSManClient.Po"; else rm -f "$(DEPDIR)/uns-EACWSManClient.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='EACWSManClient.cpp' object='uns-EACWSManClient.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-EACWSManClient.o `test -f 'EACWSManClient.cpp' || echo '$(srcdir)/'`EACWSManClient.cpp uns-EACWSManClient.obj: EACWSManClient.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-EACWSManClient.obj -MD -MP -MF "$(DEPDIR)/uns-EACWSManClient.Tpo" -c -o uns-EACWSManClient.obj `if test -f 'EACWSManClient.cpp'; then $(CYGPATH_W) 'EACWSManClient.cpp'; else $(CYGPATH_W) '$(srcdir)/EACWSManClient.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-EACWSManClient.Tpo" "$(DEPDIR)/uns-EACWSManClient.Po"; else rm -f "$(DEPDIR)/uns-EACWSManClient.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='EACWSManClient.cpp' object='uns-EACWSManClient.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-EACWSManClient.obj `if test -f 'EACWSManClient.cpp'; then $(CYGPATH_W) 'EACWSManClient.cpp'; else $(CYGPATH_W) '$(srcdir)/EACWSManClient.cpp'; fi` uns-EventMessages.o: EventMessages.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-EventMessages.o -MD -MP -MF "$(DEPDIR)/uns-EventMessages.Tpo" -c -o uns-EventMessages.o `test -f 'EventMessages.cpp' || echo '$(srcdir)/'`EventMessages.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-EventMessages.Tpo" "$(DEPDIR)/uns-EventMessages.Po"; else rm -f "$(DEPDIR)/uns-EventMessages.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='EventMessages.cpp' object='uns-EventMessages.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-EventMessages.o `test -f 'EventMessages.cpp' || echo '$(srcdir)/'`EventMessages.cpp uns-EventMessages.obj: EventMessages.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-EventMessages.obj -MD -MP -MF "$(DEPDIR)/uns-EventMessages.Tpo" -c -o uns-EventMessages.obj `if test -f 'EventMessages.cpp'; then $(CYGPATH_W) 'EventMessages.cpp'; else $(CYGPATH_W) '$(srcdir)/EventMessages.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-EventMessages.Tpo" "$(DEPDIR)/uns-EventMessages.Po"; else rm -f "$(DEPDIR)/uns-EventMessages.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='EventMessages.cpp' object='uns-EventMessages.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-EventMessages.obj `if test -f 'EventMessages.cpp'; then $(CYGPATH_W) 'EventMessages.cpp'; else $(CYGPATH_W) '$(srcdir)/EventMessages.cpp'; fi` uns-LinuxEventLog.o: LinuxEventLog.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-LinuxEventLog.o -MD -MP -MF "$(DEPDIR)/uns-LinuxEventLog.Tpo" -c -o uns-LinuxEventLog.o `test -f 'LinuxEventLog.cpp' || echo '$(srcdir)/'`LinuxEventLog.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-LinuxEventLog.Tpo" "$(DEPDIR)/uns-LinuxEventLog.Po"; else rm -f "$(DEPDIR)/uns-LinuxEventLog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='LinuxEventLog.cpp' object='uns-LinuxEventLog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-LinuxEventLog.o `test -f 'LinuxEventLog.cpp' || echo '$(srcdir)/'`LinuxEventLog.cpp uns-LinuxEventLog.obj: LinuxEventLog.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-LinuxEventLog.obj -MD -MP -MF "$(DEPDIR)/uns-LinuxEventLog.Tpo" -c -o uns-LinuxEventLog.obj `if test -f 'LinuxEventLog.cpp'; then $(CYGPATH_W) 'LinuxEventLog.cpp'; else $(CYGPATH_W) '$(srcdir)/LinuxEventLog.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-LinuxEventLog.Tpo" "$(DEPDIR)/uns-LinuxEventLog.Po"; else rm -f "$(DEPDIR)/uns-LinuxEventLog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='LinuxEventLog.cpp' object='uns-LinuxEventLog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-LinuxEventLog.obj `if test -f 'LinuxEventLog.cpp'; then $(CYGPATH_W) 'LinuxEventLog.cpp'; else $(CYGPATH_W) '$(srcdir)/LinuxEventLog.cpp'; fi` uns-LinuxRegistry.o: LinuxRegistry.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-LinuxRegistry.o -MD -MP -MF "$(DEPDIR)/uns-LinuxRegistry.Tpo" -c -o uns-LinuxRegistry.o `test -f 'LinuxRegistry.cpp' || echo '$(srcdir)/'`LinuxRegistry.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-LinuxRegistry.Tpo" "$(DEPDIR)/uns-LinuxRegistry.Po"; else rm -f "$(DEPDIR)/uns-LinuxRegistry.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='LinuxRegistry.cpp' object='uns-LinuxRegistry.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-LinuxRegistry.o `test -f 'LinuxRegistry.cpp' || echo '$(srcdir)/'`LinuxRegistry.cpp uns-LinuxRegistry.obj: LinuxRegistry.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-LinuxRegistry.obj -MD -MP -MF "$(DEPDIR)/uns-LinuxRegistry.Tpo" -c -o uns-LinuxRegistry.obj `if test -f 'LinuxRegistry.cpp'; then $(CYGPATH_W) 'LinuxRegistry.cpp'; else $(CYGPATH_W) '$(srcdir)/LinuxRegistry.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-LinuxRegistry.Tpo" "$(DEPDIR)/uns-LinuxRegistry.Po"; else rm -f "$(DEPDIR)/uns-LinuxRegistry.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='LinuxRegistry.cpp' object='uns-LinuxRegistry.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-LinuxRegistry.obj `if test -f 'LinuxRegistry.cpp'; then $(CYGPATH_W) 'LinuxRegistry.cpp'; else $(CYGPATH_W) '$(srcdir)/LinuxRegistry.cpp'; fi` uns-Options.o: Options.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-Options.o -MD -MP -MF "$(DEPDIR)/uns-Options.Tpo" -c -o uns-Options.o `test -f 'Options.cpp' || echo '$(srcdir)/'`Options.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-Options.Tpo" "$(DEPDIR)/uns-Options.Po"; else rm -f "$(DEPDIR)/uns-Options.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Options.cpp' object='uns-Options.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-Options.o `test -f 'Options.cpp' || echo '$(srcdir)/'`Options.cpp uns-Options.obj: Options.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-Options.obj -MD -MP -MF "$(DEPDIR)/uns-Options.Tpo" -c -o uns-Options.obj `if test -f 'Options.cpp'; then $(CYGPATH_W) 'Options.cpp'; else $(CYGPATH_W) '$(srcdir)/Options.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-Options.Tpo" "$(DEPDIR)/uns-Options.Po"; else rm -f "$(DEPDIR)/uns-Options.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Options.cpp' object='uns-Options.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-Options.obj `if test -f 'Options.cpp'; then $(CYGPATH_W) 'Options.cpp'; else $(CYGPATH_W) '$(srcdir)/Options.cpp'; fi` uns-PeriodicActionThread.o: PeriodicActionThread.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-PeriodicActionThread.o -MD -MP -MF "$(DEPDIR)/uns-PeriodicActionThread.Tpo" -c -o uns-PeriodicActionThread.o `test -f 'PeriodicActionThread.cpp' || echo '$(srcdir)/'`PeriodicActionThread.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-PeriodicActionThread.Tpo" "$(DEPDIR)/uns-PeriodicActionThread.Po"; else rm -f "$(DEPDIR)/uns-PeriodicActionThread.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PeriodicActionThread.cpp' object='uns-PeriodicActionThread.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-PeriodicActionThread.o `test -f 'PeriodicActionThread.cpp' || echo '$(srcdir)/'`PeriodicActionThread.cpp uns-PeriodicActionThread.obj: PeriodicActionThread.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-PeriodicActionThread.obj -MD -MP -MF "$(DEPDIR)/uns-PeriodicActionThread.Tpo" -c -o uns-PeriodicActionThread.obj `if test -f 'PeriodicActionThread.cpp'; then $(CYGPATH_W) 'PeriodicActionThread.cpp'; else $(CYGPATH_W) '$(srcdir)/PeriodicActionThread.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-PeriodicActionThread.Tpo" "$(DEPDIR)/uns-PeriodicActionThread.Po"; else rm -f "$(DEPDIR)/uns-PeriodicActionThread.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PeriodicActionThread.cpp' object='uns-PeriodicActionThread.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-PeriodicActionThread.obj `if test -f 'PeriodicActionThread.cpp'; then $(CYGPATH_W) 'PeriodicActionThread.cpp'; else $(CYGPATH_W) '$(srcdir)/PeriodicActionThread.cpp'; fi` uns-PostureRetrievalThread.o: PostureRetrievalThread.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-PostureRetrievalThread.o -MD -MP -MF "$(DEPDIR)/uns-PostureRetrievalThread.Tpo" -c -o uns-PostureRetrievalThread.o `test -f 'PostureRetrievalThread.cpp' || echo '$(srcdir)/'`PostureRetrievalThread.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-PostureRetrievalThread.Tpo" "$(DEPDIR)/uns-PostureRetrievalThread.Po"; else rm -f "$(DEPDIR)/uns-PostureRetrievalThread.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PostureRetrievalThread.cpp' object='uns-PostureRetrievalThread.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-PostureRetrievalThread.o `test -f 'PostureRetrievalThread.cpp' || echo '$(srcdir)/'`PostureRetrievalThread.cpp uns-PostureRetrievalThread.obj: PostureRetrievalThread.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-PostureRetrievalThread.obj -MD -MP -MF "$(DEPDIR)/uns-PostureRetrievalThread.Tpo" -c -o uns-PostureRetrievalThread.obj `if test -f 'PostureRetrievalThread.cpp'; then $(CYGPATH_W) 'PostureRetrievalThread.cpp'; else $(CYGPATH_W) '$(srcdir)/PostureRetrievalThread.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-PostureRetrievalThread.Tpo" "$(DEPDIR)/uns-PostureRetrievalThread.Po"; else rm -f "$(DEPDIR)/uns-PostureRetrievalThread.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PostureRetrievalThread.cpp' object='uns-PostureRetrievalThread.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-PostureRetrievalThread.obj `if test -f 'PostureRetrievalThread.cpp'; then $(CYGPATH_W) 'PostureRetrievalThread.cpp'; else $(CYGPATH_W) '$(srcdir)/PostureRetrievalThread.cpp'; fi` uns-UNSCommonDefs.o: UNSCommonDefs.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSCommonDefs.o -MD -MP -MF "$(DEPDIR)/uns-UNSCommonDefs.Tpo" -c -o uns-UNSCommonDefs.o `test -f 'UNSCommonDefs.cpp' || echo '$(srcdir)/'`UNSCommonDefs.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSCommonDefs.Tpo" "$(DEPDIR)/uns-UNSCommonDefs.Po"; else rm -f "$(DEPDIR)/uns-UNSCommonDefs.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSCommonDefs.cpp' object='uns-UNSCommonDefs.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSCommonDefs.o `test -f 'UNSCommonDefs.cpp' || echo '$(srcdir)/'`UNSCommonDefs.cpp uns-UNSCommonDefs.obj: UNSCommonDefs.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSCommonDefs.obj -MD -MP -MF "$(DEPDIR)/uns-UNSCommonDefs.Tpo" -c -o uns-UNSCommonDefs.obj `if test -f 'UNSCommonDefs.cpp'; then $(CYGPATH_W) 'UNSCommonDefs.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSCommonDefs.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSCommonDefs.Tpo" "$(DEPDIR)/uns-UNSCommonDefs.Po"; else rm -f "$(DEPDIR)/uns-UNSCommonDefs.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSCommonDefs.cpp' object='uns-UNSCommonDefs.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSCommonDefs.obj `if test -f 'UNSCommonDefs.cpp'; then $(CYGPATH_W) 'UNSCommonDefs.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSCommonDefs.cpp'; fi` uns-UNSConfig.o: UNSConfig.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSConfig.o -MD -MP -MF "$(DEPDIR)/uns-UNSConfig.Tpo" -c -o uns-UNSConfig.o `test -f 'UNSConfig.cpp' || echo '$(srcdir)/'`UNSConfig.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSConfig.Tpo" "$(DEPDIR)/uns-UNSConfig.Po"; else rm -f "$(DEPDIR)/uns-UNSConfig.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSConfig.cpp' object='uns-UNSConfig.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSConfig.o `test -f 'UNSConfig.cpp' || echo '$(srcdir)/'`UNSConfig.cpp uns-UNSConfig.obj: UNSConfig.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSConfig.obj -MD -MP -MF "$(DEPDIR)/uns-UNSConfig.Tpo" -c -o uns-UNSConfig.obj `if test -f 'UNSConfig.cpp'; then $(CYGPATH_W) 'UNSConfig.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSConfig.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSConfig.Tpo" "$(DEPDIR)/uns-UNSConfig.Po"; else rm -f "$(DEPDIR)/uns-UNSConfig.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSConfig.cpp' object='uns-UNSConfig.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSConfig.obj `if test -f 'UNSConfig.cpp'; then $(CYGPATH_W) 'UNSConfig.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSConfig.cpp'; fi` uns-UNSEventLogger.o: UNSEventLogger.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSEventLogger.o -MD -MP -MF "$(DEPDIR)/uns-UNSEventLogger.Tpo" -c -o uns-UNSEventLogger.o `test -f 'UNSEventLogger.cpp' || echo '$(srcdir)/'`UNSEventLogger.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSEventLogger.Tpo" "$(DEPDIR)/uns-UNSEventLogger.Po"; else rm -f "$(DEPDIR)/uns-UNSEventLogger.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSEventLogger.cpp' object='uns-UNSEventLogger.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSEventLogger.o `test -f 'UNSEventLogger.cpp' || echo '$(srcdir)/'`UNSEventLogger.cpp uns-UNSEventLogger.obj: UNSEventLogger.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSEventLogger.obj -MD -MP -MF "$(DEPDIR)/uns-UNSEventLogger.Tpo" -c -o uns-UNSEventLogger.obj `if test -f 'UNSEventLogger.cpp'; then $(CYGPATH_W) 'UNSEventLogger.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSEventLogger.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSEventLogger.Tpo" "$(DEPDIR)/uns-UNSEventLogger.Po"; else rm -f "$(DEPDIR)/uns-UNSEventLogger.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSEventLogger.cpp' object='uns-UNSEventLogger.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSEventLogger.obj `if test -f 'UNSEventLogger.cpp'; then $(CYGPATH_W) 'UNSEventLogger.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSEventLogger.cpp'; fi` uns-UNSSoapServer.o: UNSSoapServer.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSSoapServer.o -MD -MP -MF "$(DEPDIR)/uns-UNSSoapServer.Tpo" -c -o uns-UNSSoapServer.o `test -f 'UNSSoapServer.cpp' || echo '$(srcdir)/'`UNSSoapServer.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSSoapServer.Tpo" "$(DEPDIR)/uns-UNSSoapServer.Po"; else rm -f "$(DEPDIR)/uns-UNSSoapServer.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSSoapServer.cpp' object='uns-UNSSoapServer.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSSoapServer.o `test -f 'UNSSoapServer.cpp' || echo '$(srcdir)/'`UNSSoapServer.cpp uns-UNSSoapServer.obj: UNSSoapServer.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSSoapServer.obj -MD -MP -MF "$(DEPDIR)/uns-UNSSoapServer.Tpo" -c -o uns-UNSSoapServer.obj `if test -f 'UNSSoapServer.cpp'; then $(CYGPATH_W) 'UNSSoapServer.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSSoapServer.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSSoapServer.Tpo" "$(DEPDIR)/uns-UNSSoapServer.Po"; else rm -f "$(DEPDIR)/uns-UNSSoapServer.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSSoapServer.cpp' object='uns-UNSSoapServer.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSSoapServer.obj `if test -f 'UNSSoapServer.cpp'; then $(CYGPATH_W) 'UNSSoapServer.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSSoapServer.cpp'; fi` uns-UNSWSManClient.o: UNSWSManClient.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSWSManClient.o -MD -MP -MF "$(DEPDIR)/uns-UNSWSManClient.Tpo" -c -o uns-UNSWSManClient.o `test -f 'UNSWSManClient.cpp' || echo '$(srcdir)/'`UNSWSManClient.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSWSManClient.Tpo" "$(DEPDIR)/uns-UNSWSManClient.Po"; else rm -f "$(DEPDIR)/uns-UNSWSManClient.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSWSManClient.cpp' object='uns-UNSWSManClient.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSWSManClient.o `test -f 'UNSWSManClient.cpp' || echo '$(srcdir)/'`UNSWSManClient.cpp uns-UNSWSManClient.obj: UNSWSManClient.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UNSWSManClient.obj -MD -MP -MF "$(DEPDIR)/uns-UNSWSManClient.Tpo" -c -o uns-UNSWSManClient.obj `if test -f 'UNSWSManClient.cpp'; then $(CYGPATH_W) 'UNSWSManClient.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSWSManClient.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UNSWSManClient.Tpo" "$(DEPDIR)/uns-UNSWSManClient.Po"; else rm -f "$(DEPDIR)/uns-UNSWSManClient.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UNSWSManClient.cpp' object='uns-UNSWSManClient.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UNSWSManClient.obj `if test -f 'UNSWSManClient.cpp'; then $(CYGPATH_W) 'UNSWSManClient.cpp'; else $(CYGPATH_W) '$(srcdir)/UNSWSManClient.cpp'; fi` uns-UserNotificationServiceLinux.o: UserNotificationServiceLinux.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UserNotificationServiceLinux.o -MD -MP -MF "$(DEPDIR)/uns-UserNotificationServiceLinux.Tpo" -c -o uns-UserNotificationServiceLinux.o `test -f 'UserNotificationServiceLinux.cpp' || echo '$(srcdir)/'`UserNotificationServiceLinux.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UserNotificationServiceLinux.Tpo" "$(DEPDIR)/uns-UserNotificationServiceLinux.Po"; else rm -f "$(DEPDIR)/uns-UserNotificationServiceLinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UserNotificationServiceLinux.cpp' object='uns-UserNotificationServiceLinux.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UserNotificationServiceLinux.o `test -f 'UserNotificationServiceLinux.cpp' || echo '$(srcdir)/'`UserNotificationServiceLinux.cpp uns-UserNotificationServiceLinux.obj: UserNotificationServiceLinux.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UserNotificationServiceLinux.obj -MD -MP -MF "$(DEPDIR)/uns-UserNotificationServiceLinux.Tpo" -c -o uns-UserNotificationServiceLinux.obj `if test -f 'UserNotificationServiceLinux.cpp'; then $(CYGPATH_W) 'UserNotificationServiceLinux.cpp'; else $(CYGPATH_W) '$(srcdir)/UserNotificationServiceLinux.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UserNotificationServiceLinux.Tpo" "$(DEPDIR)/uns-UserNotificationServiceLinux.Po"; else rm -f "$(DEPDIR)/uns-UserNotificationServiceLinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UserNotificationServiceLinux.cpp' object='uns-UserNotificationServiceLinux.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UserNotificationServiceLinux.obj `if test -f 'UserNotificationServiceLinux.cpp'; then $(CYGPATH_W) 'UserNotificationServiceLinux.cpp'; else $(CYGPATH_W) '$(srcdir)/UserNotificationServiceLinux.cpp'; fi` uns-UserNotificationThread.o: UserNotificationThread.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UserNotificationThread.o -MD -MP -MF "$(DEPDIR)/uns-UserNotificationThread.Tpo" -c -o uns-UserNotificationThread.o `test -f 'UserNotificationThread.cpp' || echo '$(srcdir)/'`UserNotificationThread.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UserNotificationThread.Tpo" "$(DEPDIR)/uns-UserNotificationThread.Po"; else rm -f "$(DEPDIR)/uns-UserNotificationThread.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UserNotificationThread.cpp' object='uns-UserNotificationThread.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UserNotificationThread.o `test -f 'UserNotificationThread.cpp' || echo '$(srcdir)/'`UserNotificationThread.cpp uns-UserNotificationThread.obj: UserNotificationThread.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-UserNotificationThread.obj -MD -MP -MF "$(DEPDIR)/uns-UserNotificationThread.Tpo" -c -o uns-UserNotificationThread.obj `if test -f 'UserNotificationThread.cpp'; then $(CYGPATH_W) 'UserNotificationThread.cpp'; else $(CYGPATH_W) '$(srcdir)/UserNotificationThread.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-UserNotificationThread.Tpo" "$(DEPDIR)/uns-UserNotificationThread.Po"; else rm -f "$(DEPDIR)/uns-UserNotificationThread.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='UserNotificationThread.cpp' object='uns-UserNotificationThread.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-UserNotificationThread.obj `if test -f 'UserNotificationThread.cpp'; then $(CYGPATH_W) 'UserNotificationThread.cpp'; else $(CYGPATH_W) '$(srcdir)/UserNotificationThread.cpp'; fi` uns-CimClass.o: $(WSMAN_PATH)/Src/CimClass.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CimClass.o -MD -MP -MF "$(DEPDIR)/uns-CimClass.Tpo" -c -o uns-CimClass.o `test -f '$(WSMAN_PATH)/Src/CimClass.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/CimClass.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CimClass.Tpo" "$(DEPDIR)/uns-CimClass.Po"; else rm -f "$(DEPDIR)/uns-CimClass.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/CimClass.cpp' object='uns-CimClass.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CimClass.o `test -f '$(WSMAN_PATH)/Src/CimClass.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/CimClass.cpp uns-CimClass.obj: $(WSMAN_PATH)/Src/CimClass.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CimClass.obj -MD -MP -MF "$(DEPDIR)/uns-CimClass.Tpo" -c -o uns-CimClass.obj `if test -f '$(WSMAN_PATH)/Src/CimClass.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/CimClass.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/CimClass.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CimClass.Tpo" "$(DEPDIR)/uns-CimClass.Po"; else rm -f "$(DEPDIR)/uns-CimClass.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/CimClass.cpp' object='uns-CimClass.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CimClass.obj `if test -f '$(WSMAN_PATH)/Src/CimClass.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/CimClass.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/CimClass.cpp'; fi` uns-Deserializable.o: $(WSMAN_PATH)/Src/Deserializable.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-Deserializable.o -MD -MP -MF "$(DEPDIR)/uns-Deserializable.Tpo" -c -o uns-Deserializable.o `test -f '$(WSMAN_PATH)/Src/Deserializable.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/Deserializable.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-Deserializable.Tpo" "$(DEPDIR)/uns-Deserializable.Po"; else rm -f "$(DEPDIR)/uns-Deserializable.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/Deserializable.cpp' object='uns-Deserializable.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-Deserializable.o `test -f '$(WSMAN_PATH)/Src/Deserializable.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/Deserializable.cpp uns-Deserializable.obj: $(WSMAN_PATH)/Src/Deserializable.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-Deserializable.obj -MD -MP -MF "$(DEPDIR)/uns-Deserializable.Tpo" -c -o uns-Deserializable.obj `if test -f '$(WSMAN_PATH)/Src/Deserializable.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/Deserializable.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/Deserializable.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-Deserializable.Tpo" "$(DEPDIR)/uns-Deserializable.Po"; else rm -f "$(DEPDIR)/uns-Deserializable.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/Deserializable.cpp' object='uns-Deserializable.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-Deserializable.obj `if test -f '$(WSMAN_PATH)/Src/Deserializable.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/Deserializable.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/Deserializable.cpp'; fi` uns-EndpointReference.o: $(WSMAN_PATH)/Src/EndpointReference.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-EndpointReference.o -MD -MP -MF "$(DEPDIR)/uns-EndpointReference.Tpo" -c -o uns-EndpointReference.o `test -f '$(WSMAN_PATH)/Src/EndpointReference.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/EndpointReference.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-EndpointReference.Tpo" "$(DEPDIR)/uns-EndpointReference.Po"; else rm -f "$(DEPDIR)/uns-EndpointReference.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/EndpointReference.cpp' object='uns-EndpointReference.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-EndpointReference.o `test -f '$(WSMAN_PATH)/Src/EndpointReference.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/EndpointReference.cpp uns-EndpointReference.obj: $(WSMAN_PATH)/Src/EndpointReference.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-EndpointReference.obj -MD -MP -MF "$(DEPDIR)/uns-EndpointReference.Tpo" -c -o uns-EndpointReference.obj `if test -f '$(WSMAN_PATH)/Src/EndpointReference.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/EndpointReference.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/EndpointReference.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-EndpointReference.Tpo" "$(DEPDIR)/uns-EndpointReference.Po"; else rm -f "$(DEPDIR)/uns-EndpointReference.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/EndpointReference.cpp' object='uns-EndpointReference.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-EndpointReference.obj `if test -f '$(WSMAN_PATH)/Src/EndpointReference.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/EndpointReference.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/EndpointReference.cpp'; fi` uns-Serializable.o: $(WSMAN_PATH)/Src/Serializable.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-Serializable.o -MD -MP -MF "$(DEPDIR)/uns-Serializable.Tpo" -c -o uns-Serializable.o `test -f '$(WSMAN_PATH)/Src/Serializable.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/Serializable.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-Serializable.Tpo" "$(DEPDIR)/uns-Serializable.Po"; else rm -f "$(DEPDIR)/uns-Serializable.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/Serializable.cpp' object='uns-Serializable.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-Serializable.o `test -f '$(WSMAN_PATH)/Src/Serializable.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/Serializable.cpp uns-Serializable.obj: $(WSMAN_PATH)/Src/Serializable.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-Serializable.obj -MD -MP -MF "$(DEPDIR)/uns-Serializable.Tpo" -c -o uns-Serializable.obj `if test -f '$(WSMAN_PATH)/Src/Serializable.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/Serializable.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/Serializable.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-Serializable.Tpo" "$(DEPDIR)/uns-Serializable.Po"; else rm -f "$(DEPDIR)/uns-Serializable.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/Serializable.cpp' object='uns-Serializable.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-Serializable.obj `if test -f '$(WSMAN_PATH)/Src/Serializable.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/Serializable.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/Serializable.cpp'; fi` uns-XMLTypes.o: $(WSMAN_PATH)/Src/XMLTypes.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-XMLTypes.o -MD -MP -MF "$(DEPDIR)/uns-XMLTypes.Tpo" -c -o uns-XMLTypes.o `test -f '$(WSMAN_PATH)/Src/XMLTypes.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/XMLTypes.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-XMLTypes.Tpo" "$(DEPDIR)/uns-XMLTypes.Po"; else rm -f "$(DEPDIR)/uns-XMLTypes.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/XMLTypes.cpp' object='uns-XMLTypes.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-XMLTypes.o `test -f '$(WSMAN_PATH)/Src/XMLTypes.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/XMLTypes.cpp uns-XMLTypes.obj: $(WSMAN_PATH)/Src/XMLTypes.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-XMLTypes.obj -MD -MP -MF "$(DEPDIR)/uns-XMLTypes.Tpo" -c -o uns-XMLTypes.obj `if test -f '$(WSMAN_PATH)/Src/XMLTypes.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/XMLTypes.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/XMLTypes.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-XMLTypes.Tpo" "$(DEPDIR)/uns-XMLTypes.Po"; else rm -f "$(DEPDIR)/uns-XMLTypes.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/XMLTypes.cpp' object='uns-XMLTypes.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-XMLTypes.obj `if test -f '$(WSMAN_PATH)/Src/XMLTypes.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/XMLTypes.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/XMLTypes.cpp'; fi` uns-XMLUtils_XRCS.o: $(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-XMLUtils_XRCS.o -MD -MP -MF "$(DEPDIR)/uns-XMLUtils_XRCS.Tpo" -c -o uns-XMLUtils_XRCS.o `test -f '$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-XMLUtils_XRCS.Tpo" "$(DEPDIR)/uns-XMLUtils_XRCS.Po"; else rm -f "$(DEPDIR)/uns-XMLUtils_XRCS.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp' object='uns-XMLUtils_XRCS.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-XMLUtils_XRCS.o `test -f '$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp' || echo '$(srcdir)/'`$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp uns-XMLUtils_XRCS.obj: $(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-XMLUtils_XRCS.obj -MD -MP -MF "$(DEPDIR)/uns-XMLUtils_XRCS.Tpo" -c -o uns-XMLUtils_XRCS.obj `if test -f '$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-XMLUtils_XRCS.Tpo" "$(DEPDIR)/uns-XMLUtils_XRCS.Po"; else rm -f "$(DEPDIR)/uns-XMLUtils_XRCS.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp' object='uns-XMLUtils_XRCS.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-XMLUtils_XRCS.obj `if test -f '$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp'; then $(CYGPATH_W) '$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp'; fi` uns-AMT_EndpointAccessControlService.o: $(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMT_EndpointAccessControlService.o -MD -MP -MF "$(DEPDIR)/uns-AMT_EndpointAccessControlService.Tpo" -c -o uns-AMT_EndpointAccessControlService.o `test -f '$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMT_EndpointAccessControlService.Tpo" "$(DEPDIR)/uns-AMT_EndpointAccessControlService.Po"; else rm -f "$(DEPDIR)/uns-AMT_EndpointAccessControlService.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp' object='uns-AMT_EndpointAccessControlService.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMT_EndpointAccessControlService.o `test -f '$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp uns-AMT_EndpointAccessControlService.obj: $(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMT_EndpointAccessControlService.obj -MD -MP -MF "$(DEPDIR)/uns-AMT_EndpointAccessControlService.Tpo" -c -o uns-AMT_EndpointAccessControlService.obj `if test -f '$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMT_EndpointAccessControlService.Tpo" "$(DEPDIR)/uns-AMT_EndpointAccessControlService.Po"; else rm -f "$(DEPDIR)/uns-AMT_EndpointAccessControlService.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp' object='uns-AMT_EndpointAccessControlService.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMT_EndpointAccessControlService.obj `if test -f '$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp'; fi` uns-AMT_SOAPEventSubscriber.o: $(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMT_SOAPEventSubscriber.o -MD -MP -MF "$(DEPDIR)/uns-AMT_SOAPEventSubscriber.Tpo" -c -o uns-AMT_SOAPEventSubscriber.o `test -f '$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMT_SOAPEventSubscriber.Tpo" "$(DEPDIR)/uns-AMT_SOAPEventSubscriber.Po"; else rm -f "$(DEPDIR)/uns-AMT_SOAPEventSubscriber.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp' object='uns-AMT_SOAPEventSubscriber.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMT_SOAPEventSubscriber.o `test -f '$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp uns-AMT_SOAPEventSubscriber.obj: $(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMT_SOAPEventSubscriber.obj -MD -MP -MF "$(DEPDIR)/uns-AMT_SOAPEventSubscriber.Tpo" -c -o uns-AMT_SOAPEventSubscriber.obj `if test -f '$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMT_SOAPEventSubscriber.Tpo" "$(DEPDIR)/uns-AMT_SOAPEventSubscriber.Po"; else rm -f "$(DEPDIR)/uns-AMT_SOAPEventSubscriber.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp' object='uns-AMT_SOAPEventSubscriber.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMT_SOAPEventSubscriber.obj `if test -f '$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp'; fi` uns-AMT_EventSubscriber.o: $(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMT_EventSubscriber.o -MD -MP -MF "$(DEPDIR)/uns-AMT_EventSubscriber.Tpo" -c -o uns-AMT_EventSubscriber.o `test -f '$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMT_EventSubscriber.Tpo" "$(DEPDIR)/uns-AMT_EventSubscriber.Po"; else rm -f "$(DEPDIR)/uns-AMT_EventSubscriber.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp' object='uns-AMT_EventSubscriber.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMT_EventSubscriber.o `test -f '$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp uns-AMT_EventSubscriber.obj: $(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMT_EventSubscriber.obj -MD -MP -MF "$(DEPDIR)/uns-AMT_EventSubscriber.Tpo" -c -o uns-AMT_EventSubscriber.obj `if test -f '$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMT_EventSubscriber.Tpo" "$(DEPDIR)/uns-AMT_EventSubscriber.Po"; else rm -f "$(DEPDIR)/uns-AMT_EventSubscriber.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp' object='uns-AMT_EventSubscriber.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMT_EventSubscriber.obj `if test -f '$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp'; fi` uns-CIM_RemotePort.o: $(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_RemotePort.o -MD -MP -MF "$(DEPDIR)/uns-CIM_RemotePort.Tpo" -c -o uns-CIM_RemotePort.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_RemotePort.Tpo" "$(DEPDIR)/uns-CIM_RemotePort.Po"; else rm -f "$(DEPDIR)/uns-CIM_RemotePort.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp' object='uns-CIM_RemotePort.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_RemotePort.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp uns-CIM_RemotePort.obj: $(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_RemotePort.obj -MD -MP -MF "$(DEPDIR)/uns-CIM_RemotePort.Tpo" -c -o uns-CIM_RemotePort.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_RemotePort.Tpo" "$(DEPDIR)/uns-CIM_RemotePort.Po"; else rm -f "$(DEPDIR)/uns-CIM_RemotePort.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp' object='uns-CIM_RemotePort.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_RemotePort.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp'; fi` uns-CIM_RemoteServiceAccessPoint.o: $(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_RemoteServiceAccessPoint.o -MD -MP -MF "$(DEPDIR)/uns-CIM_RemoteServiceAccessPoint.Tpo" -c -o uns-CIM_RemoteServiceAccessPoint.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_RemoteServiceAccessPoint.Tpo" "$(DEPDIR)/uns-CIM_RemoteServiceAccessPoint.Po"; else rm -f "$(DEPDIR)/uns-CIM_RemoteServiceAccessPoint.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp' object='uns-CIM_RemoteServiceAccessPoint.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_RemoteServiceAccessPoint.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp uns-CIM_RemoteServiceAccessPoint.obj: $(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_RemoteServiceAccessPoint.obj -MD -MP -MF "$(DEPDIR)/uns-CIM_RemoteServiceAccessPoint.Tpo" -c -o uns-CIM_RemoteServiceAccessPoint.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_RemoteServiceAccessPoint.Tpo" "$(DEPDIR)/uns-CIM_RemoteServiceAccessPoint.Po"; else rm -f "$(DEPDIR)/uns-CIM_RemoteServiceAccessPoint.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp' object='uns-CIM_RemoteServiceAccessPoint.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_RemoteServiceAccessPoint.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp'; fi` uns-CIM_ServiceAccessPoint.o: $(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_ServiceAccessPoint.o -MD -MP -MF "$(DEPDIR)/uns-CIM_ServiceAccessPoint.Tpo" -c -o uns-CIM_ServiceAccessPoint.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_ServiceAccessPoint.Tpo" "$(DEPDIR)/uns-CIM_ServiceAccessPoint.Po"; else rm -f "$(DEPDIR)/uns-CIM_ServiceAccessPoint.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp' object='uns-CIM_ServiceAccessPoint.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_ServiceAccessPoint.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp uns-CIM_ServiceAccessPoint.obj: $(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_ServiceAccessPoint.obj -MD -MP -MF "$(DEPDIR)/uns-CIM_ServiceAccessPoint.Tpo" -c -o uns-CIM_ServiceAccessPoint.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_ServiceAccessPoint.Tpo" "$(DEPDIR)/uns-CIM_ServiceAccessPoint.Po"; else rm -f "$(DEPDIR)/uns-CIM_ServiceAccessPoint.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp' object='uns-CIM_ServiceAccessPoint.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_ServiceAccessPoint.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp'; fi` uns-CIM_EnabledLogicalElement.o: $(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_EnabledLogicalElement.o -MD -MP -MF "$(DEPDIR)/uns-CIM_EnabledLogicalElement.Tpo" -c -o uns-CIM_EnabledLogicalElement.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_EnabledLogicalElement.Tpo" "$(DEPDIR)/uns-CIM_EnabledLogicalElement.Po"; else rm -f "$(DEPDIR)/uns-CIM_EnabledLogicalElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp' object='uns-CIM_EnabledLogicalElement.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_EnabledLogicalElement.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp uns-CIM_EnabledLogicalElement.obj: $(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_EnabledLogicalElement.obj -MD -MP -MF "$(DEPDIR)/uns-CIM_EnabledLogicalElement.Tpo" -c -o uns-CIM_EnabledLogicalElement.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_EnabledLogicalElement.Tpo" "$(DEPDIR)/uns-CIM_EnabledLogicalElement.Po"; else rm -f "$(DEPDIR)/uns-CIM_EnabledLogicalElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp' object='uns-CIM_EnabledLogicalElement.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_EnabledLogicalElement.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp'; fi` uns-CIM_LogicalElement.o: $(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_LogicalElement.o -MD -MP -MF "$(DEPDIR)/uns-CIM_LogicalElement.Tpo" -c -o uns-CIM_LogicalElement.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_LogicalElement.Tpo" "$(DEPDIR)/uns-CIM_LogicalElement.Po"; else rm -f "$(DEPDIR)/uns-CIM_LogicalElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp' object='uns-CIM_LogicalElement.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_LogicalElement.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp uns-CIM_LogicalElement.obj: $(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_LogicalElement.obj -MD -MP -MF "$(DEPDIR)/uns-CIM_LogicalElement.Tpo" -c -o uns-CIM_LogicalElement.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_LogicalElement.Tpo" "$(DEPDIR)/uns-CIM_LogicalElement.Po"; else rm -f "$(DEPDIR)/uns-CIM_LogicalElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp' object='uns-CIM_LogicalElement.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_LogicalElement.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp'; fi` uns-CIM_ManagedSystemElement.o: $(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_ManagedSystemElement.o -MD -MP -MF "$(DEPDIR)/uns-CIM_ManagedSystemElement.Tpo" -c -o uns-CIM_ManagedSystemElement.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_ManagedSystemElement.Tpo" "$(DEPDIR)/uns-CIM_ManagedSystemElement.Po"; else rm -f "$(DEPDIR)/uns-CIM_ManagedSystemElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp' object='uns-CIM_ManagedSystemElement.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_ManagedSystemElement.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp uns-CIM_ManagedSystemElement.obj: $(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_ManagedSystemElement.obj -MD -MP -MF "$(DEPDIR)/uns-CIM_ManagedSystemElement.Tpo" -c -o uns-CIM_ManagedSystemElement.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_ManagedSystemElement.Tpo" "$(DEPDIR)/uns-CIM_ManagedSystemElement.Po"; else rm -f "$(DEPDIR)/uns-CIM_ManagedSystemElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp' object='uns-CIM_ManagedSystemElement.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_ManagedSystemElement.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp'; fi` uns-CIM_ManagedElement.o: $(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_ManagedElement.o -MD -MP -MF "$(DEPDIR)/uns-CIM_ManagedElement.Tpo" -c -o uns-CIM_ManagedElement.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_ManagedElement.Tpo" "$(DEPDIR)/uns-CIM_ManagedElement.Po"; else rm -f "$(DEPDIR)/uns-CIM_ManagedElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp' object='uns-CIM_ManagedElement.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_ManagedElement.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp uns-CIM_ManagedElement.obj: $(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_ManagedElement.obj -MD -MP -MF "$(DEPDIR)/uns-CIM_ManagedElement.Tpo" -c -o uns-CIM_ManagedElement.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_ManagedElement.Tpo" "$(DEPDIR)/uns-CIM_ManagedElement.Po"; else rm -f "$(DEPDIR)/uns-CIM_ManagedElement.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp' object='uns-CIM_ManagedElement.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_ManagedElement.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp'; fi` uns-CIM_Service.o: $(WSMANMCPP_PATH)/Src/CIM_Service.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_Service.o -MD -MP -MF "$(DEPDIR)/uns-CIM_Service.Tpo" -c -o uns-CIM_Service.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_Service.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_Service.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_Service.Tpo" "$(DEPDIR)/uns-CIM_Service.Po"; else rm -f "$(DEPDIR)/uns-CIM_Service.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_Service.cpp' object='uns-CIM_Service.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_Service.o `test -f '$(WSMANMCPP_PATH)/Src/CIM_Service.cpp' || echo '$(srcdir)/'`$(WSMANMCPP_PATH)/Src/CIM_Service.cpp uns-CIM_Service.obj: $(WSMANMCPP_PATH)/Src/CIM_Service.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-CIM_Service.obj -MD -MP -MF "$(DEPDIR)/uns-CIM_Service.Tpo" -c -o uns-CIM_Service.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_Service.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_Service.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_Service.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-CIM_Service.Tpo" "$(DEPDIR)/uns-CIM_Service.Po"; else rm -f "$(DEPDIR)/uns-CIM_Service.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(WSMANMCPP_PATH)/Src/CIM_Service.cpp' object='uns-CIM_Service.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-CIM_Service.obj `if test -f '$(WSMANMCPP_PATH)/Src/CIM_Service.cpp'; then $(CYGPATH_W) '$(WSMANMCPP_PATH)/Src/CIM_Service.cpp'; else $(CYGPATH_W) '$(srcdir)/$(WSMANMCPP_PATH)/Src/CIM_Service.cpp'; fi` uns-AMTStatusThread.o: $(AMT_STATUS_PATH)/AMTStatusThread.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMTStatusThread.o -MD -MP -MF "$(DEPDIR)/uns-AMTStatusThread.Tpo" -c -o uns-AMTStatusThread.o `test -f '$(AMT_STATUS_PATH)/AMTStatusThread.cpp' || echo '$(srcdir)/'`$(AMT_STATUS_PATH)/AMTStatusThread.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMTStatusThread.Tpo" "$(DEPDIR)/uns-AMTStatusThread.Po"; else rm -f "$(DEPDIR)/uns-AMTStatusThread.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_STATUS_PATH)/AMTStatusThread.cpp' object='uns-AMTStatusThread.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMTStatusThread.o `test -f '$(AMT_STATUS_PATH)/AMTStatusThread.cpp' || echo '$(srcdir)/'`$(AMT_STATUS_PATH)/AMTStatusThread.cpp uns-AMTStatusThread.obj: $(AMT_STATUS_PATH)/AMTStatusThread.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-AMTStatusThread.obj -MD -MP -MF "$(DEPDIR)/uns-AMTStatusThread.Tpo" -c -o uns-AMTStatusThread.obj `if test -f '$(AMT_STATUS_PATH)/AMTStatusThread.cpp'; then $(CYGPATH_W) '$(AMT_STATUS_PATH)/AMTStatusThread.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_STATUS_PATH)/AMTStatusThread.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-AMTStatusThread.Tpo" "$(DEPDIR)/uns-AMTStatusThread.Po"; else rm -f "$(DEPDIR)/uns-AMTStatusThread.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_STATUS_PATH)/AMTStatusThread.cpp' object='uns-AMTStatusThread.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-AMTStatusThread.obj `if test -f '$(AMT_STATUS_PATH)/AMTStatusThread.cpp'; then $(CYGPATH_W) '$(AMT_STATUS_PATH)/AMTStatusThread.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_STATUS_PATH)/AMTStatusThread.cpp'; fi` uns-IPCAMTStatus.o: $(AMT_STATUS_PATH)/IPCAMTStatus.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-IPCAMTStatus.o -MD -MP -MF "$(DEPDIR)/uns-IPCAMTStatus.Tpo" -c -o uns-IPCAMTStatus.o `test -f '$(AMT_STATUS_PATH)/IPCAMTStatus.cpp' || echo '$(srcdir)/'`$(AMT_STATUS_PATH)/IPCAMTStatus.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-IPCAMTStatus.Tpo" "$(DEPDIR)/uns-IPCAMTStatus.Po"; else rm -f "$(DEPDIR)/uns-IPCAMTStatus.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_STATUS_PATH)/IPCAMTStatus.cpp' object='uns-IPCAMTStatus.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-IPCAMTStatus.o `test -f '$(AMT_STATUS_PATH)/IPCAMTStatus.cpp' || echo '$(srcdir)/'`$(AMT_STATUS_PATH)/IPCAMTStatus.cpp uns-IPCAMTStatus.obj: $(AMT_STATUS_PATH)/IPCAMTStatus.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-IPCAMTStatus.obj -MD -MP -MF "$(DEPDIR)/uns-IPCAMTStatus.Tpo" -c -o uns-IPCAMTStatus.obj `if test -f '$(AMT_STATUS_PATH)/IPCAMTStatus.cpp'; then $(CYGPATH_W) '$(AMT_STATUS_PATH)/IPCAMTStatus.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_STATUS_PATH)/IPCAMTStatus.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-IPCAMTStatus.Tpo" "$(DEPDIR)/uns-IPCAMTStatus.Po"; else rm -f "$(DEPDIR)/uns-IPCAMTStatus.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_STATUS_PATH)/IPCAMTStatus.cpp' object='uns-IPCAMTStatus.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-IPCAMTStatus.obj `if test -f '$(AMT_STATUS_PATH)/IPCAMTStatus.cpp'; then $(CYGPATH_W) '$(AMT_STATUS_PATH)/IPCAMTStatus.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_STATUS_PATH)/IPCAMTStatus.cpp'; fi` uns-IPCBufferLinux.o: $(AMT_STATUS_PATH)/IPCBufferLinux.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-IPCBufferLinux.o -MD -MP -MF "$(DEPDIR)/uns-IPCBufferLinux.Tpo" -c -o uns-IPCBufferLinux.o `test -f '$(AMT_STATUS_PATH)/IPCBufferLinux.cpp' || echo '$(srcdir)/'`$(AMT_STATUS_PATH)/IPCBufferLinux.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-IPCBufferLinux.Tpo" "$(DEPDIR)/uns-IPCBufferLinux.Po"; else rm -f "$(DEPDIR)/uns-IPCBufferLinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_STATUS_PATH)/IPCBufferLinux.cpp' object='uns-IPCBufferLinux.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-IPCBufferLinux.o `test -f '$(AMT_STATUS_PATH)/IPCBufferLinux.cpp' || echo '$(srcdir)/'`$(AMT_STATUS_PATH)/IPCBufferLinux.cpp uns-IPCBufferLinux.obj: $(AMT_STATUS_PATH)/IPCBufferLinux.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-IPCBufferLinux.obj -MD -MP -MF "$(DEPDIR)/uns-IPCBufferLinux.Tpo" -c -o uns-IPCBufferLinux.obj `if test -f '$(AMT_STATUS_PATH)/IPCBufferLinux.cpp'; then $(CYGPATH_W) '$(AMT_STATUS_PATH)/IPCBufferLinux.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_STATUS_PATH)/IPCBufferLinux.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-IPCBufferLinux.Tpo" "$(DEPDIR)/uns-IPCBufferLinux.Po"; else rm -f "$(DEPDIR)/uns-IPCBufferLinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_STATUS_PATH)/IPCBufferLinux.cpp' object='uns-IPCBufferLinux.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-IPCBufferLinux.obj `if test -f '$(AMT_STATUS_PATH)/IPCBufferLinux.cpp'; then $(CYGPATH_W) '$(AMT_STATUS_PATH)/IPCBufferLinux.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_STATUS_PATH)/IPCBufferLinux.cpp'; fi` uns-HECILinux.o: $(AMT_HECI_PATH)/HECILinux.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-HECILinux.o -MD -MP -MF "$(DEPDIR)/uns-HECILinux.Tpo" -c -o uns-HECILinux.o `test -f '$(AMT_HECI_PATH)/HECILinux.cpp' || echo '$(srcdir)/'`$(AMT_HECI_PATH)/HECILinux.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-HECILinux.Tpo" "$(DEPDIR)/uns-HECILinux.Po"; else rm -f "$(DEPDIR)/uns-HECILinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_HECI_PATH)/HECILinux.cpp' object='uns-HECILinux.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-HECILinux.o `test -f '$(AMT_HECI_PATH)/HECILinux.cpp' || echo '$(srcdir)/'`$(AMT_HECI_PATH)/HECILinux.cpp uns-HECILinux.obj: $(AMT_HECI_PATH)/HECILinux.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-HECILinux.obj -MD -MP -MF "$(DEPDIR)/uns-HECILinux.Tpo" -c -o uns-HECILinux.obj `if test -f '$(AMT_HECI_PATH)/HECILinux.cpp'; then $(CYGPATH_W) '$(AMT_HECI_PATH)/HECILinux.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_HECI_PATH)/HECILinux.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-HECILinux.Tpo" "$(DEPDIR)/uns-HECILinux.Po"; else rm -f "$(DEPDIR)/uns-HECILinux.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_HECI_PATH)/HECILinux.cpp' object='uns-HECILinux.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-HECILinux.obj `if test -f '$(AMT_HECI_PATH)/HECILinux.cpp'; then $(CYGPATH_W) '$(AMT_HECI_PATH)/HECILinux.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_HECI_PATH)/HECILinux.cpp'; fi` uns-PTHICommand.o: $(AMT_HECI_PATH)/PTHICommand.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-PTHICommand.o -MD -MP -MF "$(DEPDIR)/uns-PTHICommand.Tpo" -c -o uns-PTHICommand.o `test -f '$(AMT_HECI_PATH)/PTHICommand.cpp' || echo '$(srcdir)/'`$(AMT_HECI_PATH)/PTHICommand.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-PTHICommand.Tpo" "$(DEPDIR)/uns-PTHICommand.Po"; else rm -f "$(DEPDIR)/uns-PTHICommand.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_HECI_PATH)/PTHICommand.cpp' object='uns-PTHICommand.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-PTHICommand.o `test -f '$(AMT_HECI_PATH)/PTHICommand.cpp' || echo '$(srcdir)/'`$(AMT_HECI_PATH)/PTHICommand.cpp uns-PTHICommand.obj: $(AMT_HECI_PATH)/PTHICommand.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-PTHICommand.obj -MD -MP -MF "$(DEPDIR)/uns-PTHICommand.Tpo" -c -o uns-PTHICommand.obj `if test -f '$(AMT_HECI_PATH)/PTHICommand.cpp'; then $(CYGPATH_W) '$(AMT_HECI_PATH)/PTHICommand.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_HECI_PATH)/PTHICommand.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-PTHICommand.Tpo" "$(DEPDIR)/uns-PTHICommand.Po"; else rm -f "$(DEPDIR)/uns-PTHICommand.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(AMT_HECI_PATH)/PTHICommand.cpp' object='uns-PTHICommand.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-PTHICommand.obj `if test -f '$(AMT_HECI_PATH)/PTHICommand.cpp'; then $(CYGPATH_W) '$(AMT_HECI_PATH)/PTHICommand.cpp'; else $(CYGPATH_W) '$(srcdir)/$(AMT_HECI_PATH)/PTHICommand.cpp'; fi` uns-SoapBinding.o: $(GSOAP_PATH)/SoapBinding.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-SoapBinding.o -MD -MP -MF "$(DEPDIR)/uns-SoapBinding.Tpo" -c -o uns-SoapBinding.o `test -f '$(GSOAP_PATH)/SoapBinding.cpp' || echo '$(srcdir)/'`$(GSOAP_PATH)/SoapBinding.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-SoapBinding.Tpo" "$(DEPDIR)/uns-SoapBinding.Po"; else rm -f "$(DEPDIR)/uns-SoapBinding.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(GSOAP_PATH)/SoapBinding.cpp' object='uns-SoapBinding.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-SoapBinding.o `test -f '$(GSOAP_PATH)/SoapBinding.cpp' || echo '$(srcdir)/'`$(GSOAP_PATH)/SoapBinding.cpp uns-SoapBinding.obj: $(GSOAP_PATH)/SoapBinding.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-SoapBinding.obj -MD -MP -MF "$(DEPDIR)/uns-SoapBinding.Tpo" -c -o uns-SoapBinding.obj `if test -f '$(GSOAP_PATH)/SoapBinding.cpp'; then $(CYGPATH_W) '$(GSOAP_PATH)/SoapBinding.cpp'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_PATH)/SoapBinding.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-SoapBinding.Tpo" "$(DEPDIR)/uns-SoapBinding.Po"; else rm -f "$(DEPDIR)/uns-SoapBinding.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(GSOAP_PATH)/SoapBinding.cpp' object='uns-SoapBinding.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-SoapBinding.obj `if test -f '$(GSOAP_PATH)/SoapBinding.cpp'; then $(CYGPATH_W) '$(GSOAP_PATH)/SoapBinding.cpp'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_PATH)/SoapBinding.cpp'; fi` uns-soapC.o: $(GSOAP_GCODE)/soapC.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-soapC.o -MD -MP -MF "$(DEPDIR)/uns-soapC.Tpo" -c -o uns-soapC.o `test -f '$(GSOAP_GCODE)/soapC.cpp' || echo '$(srcdir)/'`$(GSOAP_GCODE)/soapC.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-soapC.Tpo" "$(DEPDIR)/uns-soapC.Po"; else rm -f "$(DEPDIR)/uns-soapC.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(GSOAP_GCODE)/soapC.cpp' object='uns-soapC.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-soapC.o `test -f '$(GSOAP_GCODE)/soapC.cpp' || echo '$(srcdir)/'`$(GSOAP_GCODE)/soapC.cpp uns-soapC.obj: $(GSOAP_GCODE)/soapC.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-soapC.obj -MD -MP -MF "$(DEPDIR)/uns-soapC.Tpo" -c -o uns-soapC.obj `if test -f '$(GSOAP_GCODE)/soapC.cpp'; then $(CYGPATH_W) '$(GSOAP_GCODE)/soapC.cpp'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_GCODE)/soapC.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-soapC.Tpo" "$(DEPDIR)/uns-soapC.Po"; else rm -f "$(DEPDIR)/uns-soapC.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(GSOAP_GCODE)/soapC.cpp' object='uns-soapC.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-soapC.obj `if test -f '$(GSOAP_GCODE)/soapC.cpp'; then $(CYGPATH_W) '$(GSOAP_GCODE)/soapC.cpp'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_GCODE)/soapC.cpp'; fi` uns-soapServer.o: $(GSOAP_GCODE)/soapServer.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-soapServer.o -MD -MP -MF "$(DEPDIR)/uns-soapServer.Tpo" -c -o uns-soapServer.o `test -f '$(GSOAP_GCODE)/soapServer.cpp' || echo '$(srcdir)/'`$(GSOAP_GCODE)/soapServer.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-soapServer.Tpo" "$(DEPDIR)/uns-soapServer.Po"; else rm -f "$(DEPDIR)/uns-soapServer.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(GSOAP_GCODE)/soapServer.cpp' object='uns-soapServer.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-soapServer.o `test -f '$(GSOAP_GCODE)/soapServer.cpp' || echo '$(srcdir)/'`$(GSOAP_GCODE)/soapServer.cpp uns-soapServer.obj: $(GSOAP_GCODE)/soapServer.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-soapServer.obj -MD -MP -MF "$(DEPDIR)/uns-soapServer.Tpo" -c -o uns-soapServer.obj `if test -f '$(GSOAP_GCODE)/soapServer.cpp'; then $(CYGPATH_W) '$(GSOAP_GCODE)/soapServer.cpp'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_GCODE)/soapServer.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-soapServer.Tpo" "$(DEPDIR)/uns-soapServer.Po"; else rm -f "$(DEPDIR)/uns-soapServer.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(GSOAP_GCODE)/soapServer.cpp' object='uns-soapServer.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-soapServer.obj `if test -f '$(GSOAP_GCODE)/soapServer.cpp'; then $(CYGPATH_W) '$(GSOAP_GCODE)/soapServer.cpp'; else $(CYGPATH_W) '$(srcdir)/$(GSOAP_GCODE)/soapServer.cpp'; fi` uns-daemonize.o: daemonize.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-daemonize.o -MD -MP -MF "$(DEPDIR)/uns-daemonize.Tpo" -c -o uns-daemonize.o `test -f 'daemonize.cpp' || echo '$(srcdir)/'`daemonize.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-daemonize.Tpo" "$(DEPDIR)/uns-daemonize.Po"; else rm -f "$(DEPDIR)/uns-daemonize.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='daemonize.cpp' object='uns-daemonize.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-daemonize.o `test -f 'daemonize.cpp' || echo '$(srcdir)/'`daemonize.cpp uns-daemonize.obj: daemonize.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT uns-daemonize.obj -MD -MP -MF "$(DEPDIR)/uns-daemonize.Tpo" -c -o uns-daemonize.obj `if test -f 'daemonize.cpp'; then $(CYGPATH_W) 'daemonize.cpp'; else $(CYGPATH_W) '$(srcdir)/daemonize.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/uns-daemonize.Tpo" "$(DEPDIR)/uns-daemonize.Po"; else rm -f "$(DEPDIR)/uns-daemonize.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='daemonize.cpp' object='uns-daemonize.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uns_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o uns-daemonize.obj `if test -f 'daemonize.cpp'; then $(CYGPATH_W) 'daemonize.cpp'; else $(CYGPATH_W) '$(srcdir)/daemonize.cpp'; fi` 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) $(mkdir_p) $(distdir)/$(AMT_HECI_PATH) $(distdir)/$(AMT_STATUS_PATH) $(distdir)/$(AMT_STATUS_PATH)/heci/StatusStrings $(distdir)/$(GSOAP_GCODE) $(distdir)/$(GSOAP_PATH) $(distdir)/$(GSOAP_PLUGINS) $(distdir)/$(WSMANMCPP_PATH)/Include $(distdir)/$(WSMAN_PATH)/Include $(distdir)/scripts @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 $(PROGRAMS) $(SCRIPTS) $(DATA) $(HEADERS) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(rootsbindir)" "$(DESTDIR)$(rootinitddir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done 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 clean-rootsbinPROGRAMS \ mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile 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-dist_rootinitdSCRIPTS \ install-rootsbinPROGRAMS 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 -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-dist_rootinitdSCRIPTS uninstall-info-am \ uninstall-rootsbinPROGRAMS 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 \ clean-rootsbinPROGRAMS ctags ctags-recursive dist dist-all \ dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip distcheck \ distclean distclean-compile 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-dist_rootinitdSCRIPTS install-exec \ install-exec-am install-info install-info-am install-man \ install-rootsbinPROGRAMS install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-dist_rootinitdSCRIPTS uninstall-info-am \ uninstall-rootsbinPROGRAMS mc: mc.pl UNSMessageFile.mc perl mc.pl 4 UNSMessageFile.mc wsdls: cd SoapServer && make wsdls #install-data-hook: # @if [ "x$(DESTDIR)" = "x" ] ; then \ # echo "chkconfig --add uns" ; \ # chkconfig --add uns ; \ # echo "service uns start" ; \ # service uns start ; \ # else \ # echo "[!] chkconfig --add uns NOT EXECUTED: uns installed outside /etc/init.d" ; \ # fi # 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: UNS-3.2.0.24/Makefile.inc0000644012402100775320000001153310746077322015726 0ustar00gkbld_amtccigk00000000000000SYNCLIB_SRC_PATH = $(SYNCLIB_PATH)/src SYNCLIB_SRCS=$(SYNCLIB_SRC_PATH)/EventLinux.cpp \ $(SYNCLIB_SRC_PATH)/RWLock.cpp \ $(SYNCLIB_SRC_PATH)/SemaphoreLinux.cpp \ $(SYNCLIB_SRC_PATH)/ThreadLinux.cpp SYNCLIB_INC_PATH = $(SYNCLIB_PATH)/Include SYNCLIB_HDRS=$(SYNCLIB_INC_PATH)/Event.h \ $(SYNCLIB_INC_PATH)/Lock.h \ $(SYNCLIB_INC_PATH)/RWLock.h \ $(SYNCLIB_INC_PATH)/Semaphore.h \ $(SYNCLIB_INC_PATH)/SPtr.h \ $(SYNCLIB_INC_PATH)/Thread.h AMTSTATUS_SRCS=$(AMT_STATUS_PATH)/AMTStatusThread.cpp \ $(AMT_STATUS_PATH)/IPCAMTStatus.cpp \ $(AMT_STATUS_PATH)/IPCBufferLinux.cpp \ $(AMT_HECI_PATH)/HECILinux.cpp \ $(AMT_HECI_PATH)/PTHICommand.cpp AMTSTATUS_HDRS=$(AMT_STATUS_PATH)/AMTStatusThread.h \ $(AMT_STATUS_PATH)/IPCAMTStatus.h \ $(AMT_STATUS_PATH)/IPCBuffer.h \ $(AMT_HECI_PATH)/AMTVersn.h \ $(AMT_HECI_PATH)/heci.h \ $(AMT_HECI_PATH)/HECI_if.h \ $(AMT_HECI_PATH)/HECILinux.h \ $(AMT_HECI_PATH)/PTHICommand.h \ $(AMT_STATUS_PATH)/heci/StatusStrings/StatusCodeDefinitions.h SOAP_GENERATED_SRCS=\ $(GSOAP_GCODE)/soapC.cpp \ $(GSOAP_GCODE)/soapServer.cpp SOAP_GENERATED_HDRS=$(GSOAP_GCODE)/soapEventManagerClientSoapBindingObject.h \ $(GSOAP_GCODE)/soapH.h \ $(GSOAP_GCODE)/SoapInterfaceTmp.h \ $(GSOAP_GCODE)/soapStub.h \ $(GSOAP_GCODE)/cmn.nsmap \ $(GSOAP_GCODE)/emi.nsmap \ $(GSOAP_GCODE)/EventManagerClientSoapBinding.nsmap \ $(GSOAP_GCODE)/sai.nsmap \ $(GSOAP_GCODE)/SoapBinding.nsmap SOAP_PLUGIN_SRCS=\ $(GSOAP_PLUGINS)/httpda.c \ $(GSOAP_PLUGINS)/md5evp.c SOAP_PLUGIN_HDRS=\ $(GSOAP_PLUGINS)/httpda.h \ $(GSOAP_PLUGINS)/md5evp.h \ $(GSOAP_PLUGINS)/threads.h SOAP_SRCS=$(GSOAP_PATH)/SoapBinding.cpp \ $(SOAP_GENERATED_SRCS) \ $(SOAP_PLUGIN_SRCS) SOAP_HDRS=$(GSOAP_PATH)/SoapBinding.h \ $(SOAP_GENERATED_HDRS) \ $(SOAP_PLUGIN_HDRS) NOTIFTHREAD_SRCS=AMTPPSharedData.cpp \ BaseWSManClient.cpp \ ConfigFile.cpp \ ConfigLinuxInfo.cpp \ Credentials.cpp \ CryptUtils.cpp \ EACWSManClient.cpp \ EventMessages.cpp \ LinuxEventLog.cpp \ LinuxRegistry.cpp \ Options.cpp \ PeriodicActionThread.cpp \ PostureRetrievalThread.cpp \ UNSCommonDefs.cpp \ UNSConfig.cpp \ UNSEventLogger.cpp \ UNSSoapServer.cpp \ UNSWSManClient.cpp \ UserNotificationServiceLinux.cpp \ UserNotificationThread.cpp NOTIFTHREAD_HDRS=AMTPPDefs.h \ AMTPPSharedData.h \ BaseEventLog.h \ BaseWSManClient.h \ ConfigFile.h \ ConfigLinuxInfo.h \ ConfigOSInfo.h \ Credentials.h \ CryptUtils.h \ EACWSManClient.h \ EventMessages.h \ LinuxEventLog.h \ LinuxRegistryInfo.h \ Options.h \ PeriodicActionThread.h \ PostureRetrievalThread.h \ registryWrapper.h \ UNSCommonDefs.h \ UNSConfig.h \ UNSEventLogger.h \ UNSMessageFileLinux.h \ UNSSoapServer.h \ UNSStatus.h \ UNSWSManClient.h \ UserNotificationServiceLinux.h \ UserNotificationThread.h WSMAN_SRCS = $(WSMAN_PATH)/Src/CimClass.cpp WSMAN_SRCS += $(WSMAN_PATH)/Src/Deserializable.cpp WSMAN_SRCS += $(WSMAN_PATH)/Src/EndpointReference.cpp WSMAN_SRCS += $(WSMAN_PATH)/Src/Serializable.cpp WSMAN_SRCS += $(WSMAN_PATH)/Src/XMLTypes.cpp WSMAN_SRCS += $(WSMAN_PATH)/Src/XMLUtils_XRCS.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/AMT_EndpointAccessControlService.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/AMT_SOAPEventSubscriber.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/AMT_EventSubscriber.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/CIM_RemotePort.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/CIM_RemoteServiceAccessPoint.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/CIM_ServiceAccessPoint.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/CIM_EnabledLogicalElement.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/CIM_LogicalElement.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/CIM_ManagedSystemElement.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/CIM_ManagedElement.cpp WSMAN_SRCS += $(WSMANMCPP_PATH)/Src/CIM_Service.cpp WSMAN_HDRS = $(WSMAN_PATH)/Include/CimClass.h WSMAN_HDRS += $(WSMAN_PATH)/Include/Deserializable.h WSMAN_HDRS += $(WSMAN_PATH)/Include/EndpointReference.h WSMAN_HDRS += $(WSMAN_PATH)/Include/Serializable.h WSMAN_HDRS += $(WSMAN_PATH)/Include/XMLTypes.h WSMAN_HDRS += $(WSMAN_PATH)/Include/XMLUtils.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/AMT_EndpointAccessControlService.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/AMT_EventSubscriber.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/AMT_SOAPEventSubscriber.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/CIM_EnabledLogicalElement.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/CIM_LogicalElement.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/CIM_ManagedElement.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/CIM_ManagedSystemElement.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/CIM_RemotePort.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/CIM_RemoteServiceAccessPoint.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/CIM_ServiceAccessPoint.h WSMAN_HDRS += $(WSMANMCPP_PATH)/Include/CIM_Service.h uns_SOURCES=UNSMainLinux.cpp \ $(NOTIFTHREAD_SRCS) \ $(WSMAN_SRCS) \ $(AMTSTATUS_SRCS) \ $(SOAP_SRCS) noinst_HEADERS=\ $(NOTIFTHREAD_HDRS) \ $(WSMAN_HDRS) \ $(AMTSTATUS_HDRS) \ $(SOAP_HDRS) dist_noinst_SCRIPTS=mc.pl dist_noinst_DATA=UNSMessageFile.mc UNS-3.2.0.24/mc.pl0000644012402100775320000001604610746077322014456 0ustar00gkbld_amtccigk00000000000000#!/usr/bin/perl -w ############################################################################## # File : mc.pl # Description: Message Text File translator # Copyright (C) Intel Corporation, 2006 - 2007. ############################################################################## use strict; # Define command type constants my ( $TYPE_COMMENT, $TYPE_HEADER, $TYPE_MESSAGE) = (1,2,3); my ( $CATEGORY, $EVENT) = (1,2); # Read arguments from the command line. usage() unless ($#ARGV == 1); my ($fullFileName, $fileName); my $CATEGORY_CNT = $ARGV[0]; #taking the file name without the mc extension if ($ARGV[1] =~ m/(.*)\.mc/) { $fullFileName = $ARGV[1]; $fileName = $1; } else { print "Input must have mc extension\n"; usage(); } ############################################################################### # Main starts here ############################################################################### # Open the mc file for reading open(FILE, "$fullFileName") || die "Failed to open: $fullFileName"; # First pass: Read the file into the memory, Remove comment, empty lines my ($command, @commands); while () { chomp; $command = $_; # Ignore if empty line next if ($command =~ m/^\s*$/); push(@commands, $command); } close(FILE); my @headerOutput; # Here we write the compiled file. my @srcOutput; # Second pass: Go over each command, and parse each line. my ($catCounter, $evtCounter)=(0,0); my (@events, @categories); my ($type, $jump) = (undef, 1); my $i=0; while ($i <= $#commands){ # Parse the current line $type = parseLine($commands[$i]); $jump = 1; if (! defined $type) { $i++; next; } if ($type == $TYPE_COMMENT) { if ($commands[$i] =~ m/^\s*;(.*)\s*$/i) { push(@headerOutput, $1); } } elsif ($type == $TYPE_MESSAGE) { my %curMsg; ($jump, %curMsg) = parseMsg($i, @commands); if ( $catCounter < $CATEGORY_CNT) { push @headerOutput, writeMsgHeader(\%curMsg, $CATEGORY); push @categories, {%curMsg}; $catCounter++; } else { push @headerOutput, writeMsgHeader(\%curMsg, $EVENT); push @events, { %curMsg}; $evtCounter++; } } $i += $jump; } # write the src file. push @srcOutput, "// Copyright (C) Intel Corporation, 2005 - 2007"; push @srcOutput, "// Auto generated Linux Event Messages\n\n"; push @srcOutput, "#include \"EventMessages.h\""; push @srcOutput, "#include "; push @srcOutput, "#include \"" . $fileName . "Linux.h\"\n"; push @srcOutput, "EventMessages::EventMessages() {"; push @srcOutput, "\n\t// Initializing categories"; my $ncat = $#categories + 1; push @srcOutput, "\t_categories.resize($ncat);"; for (my $i=0; $i <= $#categories ; $i++) { push @srcOutput, writeCatagory($categories[$i]); } my $nevt = $#events + 1; push @srcOutput, "\n\t// Initializing events"; push @srcOutput, " _events.resize($nevt);"; for (my $i=0; $i <= $#events ; $i++) { push @srcOutput, writeEvent( $events[$i]); } push @srcOutput, "}"; # Open output files and write the hack code. open(HEAD_OUT_FILE,">$fileName"."Linux.h") || die "Can't open output $fileName.h"; print HEAD_OUT_FILE join("\n",@headerOutput); print HEAD_OUT_FILE "\n"; close(HEAD_OUT_FILE); open(SRC_OUT_FILE,">EventMessages.cpp") || die "Can't open output EventMessages.cpp"; print SRC_OUT_FILE join("\n",@srcOutput); print SRC_OUT_FILE "\n"; close(SRC_OUT_FILE); ############################################################################### # Sub : parseLine # Description: Decide if the line is comment or message. ############################################################################### sub parseLine { my $command = shift; # Check for comment return $TYPE_COMMENT if ($command =~ m/^\s*;(.*)\s*$/i); # Check for message return $TYPE_MESSAGE if ($command =~ m/^\s*MessageId=.*$/i); # Error wrong syntax return (undef, undef); } ############################################################################### # Sub : parseMsg # Description: Get the msg. # Return : The message, and the jump for i ############################################################################### sub parseMsg { my $index = shift; my @commands = @_; my %msg = ( Severity => "Success", Facility => "Application", Language => "English", Text => "" ); my $j = 0; while (1) { my $c = $commands[$index+$j]; die "MessageId=[+number] is not supportes" if ($c =~ m/^\s*MessageId=\+.*$/i); if ($c =~ m/^\s*MessageId=(\d*)\s*$/i) { $msg{"MessageId"} = $1; } elsif ($c =~ m/^\s*Severity=(.*)\s*$/i) { $msg{"Severity"} = $1; } elsif ($c =~ m/^\s*Facility=(.*)\s*$/i) { $msg{"Facility"} = $1; } elsif ($c =~ m/^\s*SymbolicName=(.*)\s*$/i) { $msg{"SymbolicName"} = $1; } elsif ($c =~ m/^\s*OutputBase=(.*)\s*$/i) { # ignore output base, work with decimal only. } elsif ($c =~ m/^\s*Language=(.*)\s*$/i) { # Support only English print "Language $1 is not supported.\n" if ($1 ne "English"); } elsif ($c =~ m/^\s*\./i) { last; } else { $msg{"Text"} .= $c; } $j++; } return ($j,%msg); } ############################################################################### # Sub : writeMsgHeader # Description: Write the header defines of the message ############################################################################### sub writeMsgHeader { my $msg = shift; my $type = shift; if ($type == $CATEGORY) { return "#define\t$msg->{SymbolicName}\t((unsigned short)$catCounter)\n"; } elsif ($type == $EVENT) { return "#define\t$msg->{SymbolicName}\t((unsigned long)$evtCounter)\n"; } } ############################################################################### # Sub : writeCatagory # Description: Add the category to the categories. ############################################################################### sub writeCatagory { my $m = shift; return "\t_categories[$m->{SymbolicName}] = \"$m->{Text}\";"; } ############################################################################### # Sub : writeEvent # Description: Add event. ############################################################################### sub writeEvent { my $m = shift; my $priority = "LOG_INFO"; $priority = "LOG_NOTICE" if ($m->{Severity} =~ m/Success/i); $priority = "LOG_INFO" if ($m->{Severity} =~ m/Information/i); $priority = "LOG_WARNING" if ($m->{Severity} =~ m/Warning/i); $priority = "LOG_ERR" if ($m->{Severity} =~ m/Error/i); my $message = $m->{Text}; $message =~ s/%%/%/g; $message =~ s/%\./\./g; return "\t_events[$m->{SymbolicName}] = SingleEvent( $priority, $m->{MessageId}, \"$message\");"; } ############################################################################### # Sub : usage # Description: Print a usage message. ############################################################################### sub usage { print "Usage: mc.pl file_name.mc\n"; exit; } UNS-3.2.0.24/missing0000755012402100775320000002540610746077322015121 0ustar00gkbld_amtccigk00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2005-06-08.21 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case "$1" in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: UNS-3.2.0.24/Options.cpp0000644012402100775320000002263010746077322015655 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: Options.cpp // // contents: This file contains the implementation of a generic class for command line options // parsing. // //---------------------------------------------------------------------------- #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "Options.h" #include #include #ifndef _WIN32 #include #define stricmp strcasecmp #endif using namespace std; const char Options::DEFAULT_SWITCH_CHAR = '-'; bool Options::StrLess::operator()(const char* left, const char* right) const { return (stricmp(left, right) < 0); } Options::Format::Format(const Options::FormatNode rawFormat[], int rawFormatSize, std::size_t numMandatoryParams, char switchChar) { for (int i=0; isecond; } bool Options::Format::optionShouldRead(const char* option) const { FormatMap::const_iterator it = m_inputMap.find(option); if (it == m_inputMap.end()) { //Option not found - so it doesn't have a parameter. return false; } return it->second; } bool Options::optionExists(const char* option) const { return m_optionsMap.find(option) != m_optionsMap.end(); } bool Options::setError(Error err) const { m_error = err; return (m_error == ERROR_NONE); } /* This parsing function goes over the command line, looking for words that begin with the switch char ('-' by default). When the switch char is found, we check if this is a valid option. If it is, and it has a parameter, the next word in the command line is assumed to be its value. */ bool Options::parse(int argc, const char* argv[], const Format &format) { const char* optionName = NULL; const char* optionVal = NULL; MandatoryParamsVector mandatoryParams; if ((argv == NULL) || (argc < 0)) return setError(ERROR_ARGC_ARGV); //We start from the second parameter, since the first is the program name. for (int i=1; i= argc) { //This option should have a parameter. return setError(ERROR_NO_OPTION_PARAM); } optionVal = argv[i]; } else { if (format.optionShouldRead(optionName)) { #define MAX_USER_INPUT 32 char *option = new char[MAX_USER_INPUT]; char *newline = NULL; while (newline == NULL) { printf("Please provide value for option '%s':\n", optionName); fgets(option, MAX_USER_INPUT, stdin); if (option == NULL) { printf("Invalid value. Try again.\n"); continue; } newline = strchr(option, '\n'); if (newline == NULL) { printf("Option string too long. Upper bound is %d characters.\n", MAX_USER_INPUT-1); // clear buffer until EOL while (newline == NULL) { fgets(option, MAX_USER_INPUT, stdin); if (option == NULL) { break; } newline = strchr(option, '\n'); }; // while // set marker to continue outer while loop newline = NULL; } else { *newline = '\0'; } } optionVal = option; #undef MAX_USER_INPUT } else { optionVal = ""; } } m_optionsMap[optionName] = optionVal; } else // if (argv[i][0] == format.switchChar()) { //This is assumed to be a mandatory parameter if (mandatoryParams.size() == format.numMandatoryParams()) { /*Too many 'mandatory' parameters found - this is an error. Note that if 0 mandatory params was specified (the default), only options (i.e. words that start with the switch char) can appear in the command line.*/ return setError(ERROR_TOO_MANY_PARAMS); } //if mandatoryParams.push_back(argv[i]); } //else } //for if (mandatoryParams.size() < format.numMandatoryParams()) { /*Not enough mandatory parameters found - error.*/ return setError(ERROR_NOT_ENOUGH_PARAMS); } /*We only set the m_MandatoryParams member in the end so that we'll have a transaction, and we won't mess this member up in case of errors.*/ m_MandatoryParams = mandatoryParams; m_parsed = true; return setError(ERROR_NONE); } bool Options::parse(int argc, const char* argv[], const FormatNode rawFormat[], int rawFormatSize, std::size_t numMandatoryParams, char switchChar) { return parse(argc, argv, Format(rawFormat, rawFormatSize, numMandatoryParams, switchChar)); } Options::Options(int argc, const char* argv[], const Format &format) { reset(); parse(argc, argv, format); } Options::Options(int argc, const char* argv[], const FormatNode rawFormat[], int rawFormatSize, std::size_t numMandatoryParams, char switchChar) { reset(); parse(argc, argv, rawFormat, rawFormatSize, numMandatoryParams, switchChar); } Options::Options() { reset(); } void Options::reset() { setError(ERROR_NONE); m_parsed = false; } const char* Options::getOption(const char* option) const { OptionsMap::const_iterator it = m_optionsMap.find(option); if (it == m_optionsMap.end()) { setError(ERROR_INVALID_OPTION); return NULL; } else { setError(ERROR_NONE); return it->second; } } std::size_t Options::numMandatoryParams() const { return m_MandatoryParams.size(); } const char* Options::getMandatoryParam(unsigned int index) const { if (index > m_MandatoryParams.size()) { setError(ERROR_NOT_ENOUGH_PARAMS); return NULL; } else { setError(ERROR_NONE); return m_MandatoryParams[index]; } } const char* Options::errorStr() const { return errorToStr(error()); } const char* Options::errorToStr(Error err) { switch (err) { case ERROR_NONE: return "No error"; case ERROR_ARGC_ARGV: return "Internal error in argc or argv"; case ERROR_OPTION_ALREADY_SPECIFIED: return "An option was specified more than once"; case ERROR_INVALID_OPTION: return "Invalid option"; case ERROR_NO_OPTION_PARAM: return "An option was not given a parameter"; case ERROR_TOO_MANY_PARAMS: return "Too many non-option parameters"; case ERROR_NOT_ENOUGH_PARAMS: return "Not enough non-option parameters"; default: return "Unknown"; } } UNS-3.2.0.24/Options.h0000644012402100775320000002046110746077322015322 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ //---------------------------------------------------------------------------- // // File: Options.h // // Notes: This file contains the definition of a generic class for command line options // parsing. // //---------------------------------------------------------------------------- #ifndef _OPTIONS_H #define _OPTIONS_H #include #include /* Options is a generic class for parsing command line arguments. The command line is expected to be of the form: progname.exe -opt1 val1 -opt2 val2... where opt1 is the option name, and val1 is the value for this option. The option names are specified in advance, and the ones specified are the only valid ones: any other option name is considered an error. The values of the parameters are optional, but it must be specified in advance whether each parameter has a value. Any other parameter in the command line, that doesn't start with '-' is ignored, and would not cause errors. */ class Options { private: //internal function object for comparing strings in map (case insensitive) struct StrLess { bool operator()(const char* left, const char* right) const; }; public: enum Error { ERROR_NONE = 0, ERROR_ARGC_ARGV, ERROR_OPTION_ALREADY_SPECIFIED, ERROR_INVALID_OPTION, ERROR_NO_OPTION_PARAM, ERROR_TOO_MANY_PARAMS, ERROR_NOT_ENOUGH_PARAMS}; static const char DEFAULT_SWITCH_CHAR; //One node in the format list of the options. struct FormatNode { const char* option; //Name of option bool bHasParam; //Indication whether this option has a parameter bool bShouldRead; //Indication whether this option should read value from stdin }; //class that represents the entire format of the options. class Format { public: //ctor to build Format from a list of FormatNode's Format(const FormatNode rawFormat[], int rawFormatSize, std::size_t numMandatoryParams = 0, char switchChar = Options::DEFAULT_SWITCH_CHAR); //default ctor Format(); //Add one option to the format, with option name and parameter indication. void addOption(const char* option, bool bHasParam, bool shouldRead); //returns true iff a certain option exists in the format. bool optionExists(const char *option) const; //returns true iff a certain option has a parameter indicated by the //format. Sets error to ERROR_INVALID_OPTION if option is invalid. //clears error on success. bool optionHasParam(const char* option) const; //returns true if a certain option should read value from stdin //Sets error to ERROR_INVALID_OPTION if option is invalid. //clears error on success. bool optionShouldRead(const char* option) const; //set the number of mandatory parameters void setNumMandatoryParams(std::size_t num) {m_numMandatoryParams = num;} //returns the number of mandatory parameters std::size_t numMandatoryParams() const {return m_numMandatoryParams;} //set the switch char (the character that indicates an option) void setSwitchChar(char switchChar) {m_switchChar = switchChar;} //returns the switch char (the character that indicates an option) char switchChar() const {return m_switchChar;} private: typedef std::map FormatMap; //Map that holds the association between option name and parameter indication. FormatMap m_formatMap; //Map that holds the association between option name and read input indication. FormatMap m_inputMap; std::size_t m_numMandatoryParams; char m_switchChar; }; //ctor to build Options by parsing a command line, with a given Format object. Options(int argc, const char* argv[], const Format &format); //ctor to build Options by parsing a command line, with a given array of FormatNode's Options(int argc, const char* argv[], const FormatNode rawFormat[], int rawFormatSize, std::size_t numMandatoryParams = 0, char switchChar = DEFAULT_SWITCH_CHAR); //default ctor. parse() should be used after using it. Options(); //Reset this Options object (clears error and isParsed status) void reset(); //return the value of a given option. //Returns NULL if option doesn't exist, "" if option has no value. //If option doesn't exist, sets error to ERROR_INVALID_OPTION. //Clears error on success. const char* getOption(const char* option) const; //returns true iff a certain option exists in the Options object. bool optionExists(const char* option) const; //returns true iff parse was called - either directly or by a ctor. //Will return false if parsing wasn't done or if it failed. bool isParsed() const {return m_parsed;} //parse a command line according to Format object, and store results in this //Options object. //Returns true on success, false otherwise. On failure, using the error() //member function tells you the specific error. clears error on success. bool parse(int argc, const char* argv[], const Format &format); //parse a command line according to array of FormatNode's, and store results //in this Options object. //Returns true on success, false otherwise. On failure, using the error() //member function tells you the specific error. clears error on success. bool parse(int argc, const char* argv[], const FormatNode rawFormat[], int rawFormatSize, std::size_t numMandatoryParams = 0, char switchChar = DEFAULT_SWITCH_CHAR); //Returns the number of mandatory parameters in this options object std::size_t numMandatoryParams() const; //Returns the mandatory parameter of the specified index, or NULL //if the index is illegal. In this case, error() will return //ERROR_NOT_ENOUGH_PARAMS. clears error on success. const char* getMandatoryParam(unsigned int index) const; //Returns the error code of the last operation Error error() const {return m_error;} //Returns the string representation of the error code of the last operation. const char* errorStr() const; //Returns the string representation of a specified error code static const char* errorToStr(Error err); private: bool setError(Error err) const; typedef std::map OptionsMap; OptionsMap m_optionsMap; //map that associates option names with their values. bool m_parsed; //was parse() called typedef std::vector MandatoryParamsVector; MandatoryParamsVector m_MandatoryParams; mutable Error m_error; }; #endif //#ifndef _OPTIONS_H UNS-3.2.0.24/PeriodicActionThread.h0000644012402100775320000001026210746077322017711 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _PERIODIC_ACTION_THREAD_H #define _PERIODIC_ACTION_THREAD_H #include "Thread.h" #include "Event.h" #include "Semaphore.h" #define SECOND 1000 #define MINUTE (60 * SECOND) class PeriodicActionThread : public Thread { public: //ctor. nResumeDelay is the delay after calling resume() and before doing the next action. PeriodicActionThread(const char *pName, unsigned long nActionInterval = UNDEFINED_INTERVAL, unsigned long nResumeDelay = 0); //dtor virtual ~PeriodicActionThread(); //Stop the periodic action thread virtual bool stop(); //Suspend the thread and wait until resume() is called. void suspend(); //Resume the suspended thread after suspend() was called. void resume(); //Stop waiting for the next periodic action, and do the action now. void actNow(); //Set the action interval void setActionInterval(unsigned long nActionInterval) { m_nActionInterval = nActionInterval; } //Get the action interval unsigned long getActionInterval() const { return m_nActionInterval; } protected: //The action to be performed. To be implemented by derived class. virtual void action() = 0; //The actual function that runs the thread. virtual void run(); //Stop the periodic action thread from within itself. Can be used by derived classes. void internalStop(); //Cleanup function, called when stopping thread. To be implemented by derived class. virtual void cleanup() = 0; private: //How long we wait for the thread to terminate when stop() is called. static const unsigned long WAIT_STOP_TIMEOUT; static const unsigned long UNDEFINED_INTERVAL; const char *m_pName; unsigned long m_nActionInterval; unsigned long m_nResumeDelay; Event m_ChangeStateEvent; Semaphore m_StateSemaphore; enum State {STATE_RUNNING, STATE_SUSPENDED, STATE_RESUMING, STATE_STOPPING}; //Change the internal state of the periodic action thread's state machine void ChangeState(State newState); //Get the internal state of the periodic action thread's state machine State GetState(); State m_CurrentState; bool m_bRunning; }; #endif //_PERIODIC_ACTION_THREAD_H UNS-3.2.0.24/PostureRetrievalThread.h0000644012402100775320000000723610746077322020343 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef _POSTURE_RETRIEVAL_THREAD_H #define _POSTURE_RETRIEVAL_THREAD_H #include #include "PeriodicActionThread.h" #include "EACWSManClient.h" // Forward declaration of the Credentials structure struct Credentials; // Forward declaration of the UNSEventLogger. class UNSEventLogger; class UNSConfig; class PostureRetrievalThread : public PeriodicActionThread { public: // Constructor and Destructor. PostureRetrievalThread(UNSEventLogger *pLogger = NULL); // Initialize this thread with a given action interval time. bool init(const UNSConfig &Config); // Set the cresentials to be used to connect to AMT. void SetCredentials(const Credentials &cred); // Set IP void SetIP(const string &ip); // For debug only // Set a pointer to the Logger. void SetLogger(UNSEventLogger *pLogger); protected: virtual void action(); private: enum State { INITIAL_CLEANUP_STATE, CHECK_EAC_ENABLEMENT_STATE, CHECK_EAC_ENABLEMENT_FAILURE_STATE, GETTING_POSTURE_STATE}; /*These functions return the next state into which we should go.*/ void cleanup(); State InitialCleanup(); State CheckEACEnablement(bool bLogFailure = true); State CheckEACEnablementFailure(); State GetPosture(); // Data members. State m_State; EACWSManClient m_EACWsmanClient; UNSEventLogger *m_pLogger; // Static constants. static const unsigned long DEFAULT_RETRIEVAL_INTERVAL; static const unsigned long HECI_DOWNTIME_ON_RESUME; static const unsigned long MIN_GET_POSTURE_INTERVAL; static const unsigned long MAX_GET_POSTURE_INTERVAL; }; #endif //_POSTURE_RETRIEVAL_THREAD_H UNS-3.2.0.24/PeriodicActionThread.cpp0000644012402100775320000001277410746077322020256 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "PeriodicActionThread.h" #include #include "Lock.h" #ifdef _LINUX #define __max(a,b) (((a)>(b))?(a):(b)) #endif //How long we wait for the thread to terminate when stop() is called. const unsigned long PeriodicActionThread::WAIT_STOP_TIMEOUT = 100 * SECOND; const unsigned long PeriodicActionThread::UNDEFINED_INTERVAL = 0; //ctor. nResumeDelay is the delay after calling resume() and before doing the next action. PeriodicActionThread::PeriodicActionThread(const char *pName, unsigned long nActionInterval, /*= UNDEFINED_INTERVAL*/ unsigned long nResumeDelay /*= 0*/) { m_pName = (pName != NULL) ? pName : "Action"; m_nActionInterval = nActionInterval; m_nResumeDelay = nResumeDelay; m_bRunning = false; m_CurrentState = STATE_RUNNING; } //dtor PeriodicActionThread::~PeriodicActionThread() { m_bRunning = false; //Cause thread to stop } //Stop the periodic action thread bool PeriodicActionThread::stop() { if (GetState() == STATE_STOPPING) return false; //Already stopping ChangeState(STATE_STOPPING); return wait(WAIT_STOP_TIMEOUT); } //Suspend the thread and wait until resume() is called. void PeriodicActionThread::suspend() { ChangeState(STATE_SUSPENDED); } //Resume the suspended thread after suspend() was called. void PeriodicActionThread::resume() { ChangeState(STATE_RESUMING); } //Stop waiting for the next periodic action, and do the action now. void PeriodicActionThread::actNow() { /*All we need to do is signal the state machine the state has changed (even though it didn't really change) and it will stop waiting and do the action. After this, it will go back to doing the action periodically as always.*/ ChangeState(STATE_RUNNING); } //The actual function that runs the thread. void PeriodicActionThread::run() { State state = GetState(); unsigned long nDelay = 0; m_bRunning = true; do { switch (state) { case STATE_RUNNING: { long nTimeBeforeAction = elapsedTime(); action(); long nActionElapsedTime = elapsedTime() - nTimeBeforeAction; //nActionElapsedTime milliseconds have passed already. We deduct //this time from our delay. If too much time passed, we don't //wait at all. nDelay = __max((signed long)(m_nActionInterval - nActionElapsedTime), 0); break; } case STATE_SUSPENDED: nDelay = WAIT_INFINITE; break; case STATE_RESUMING: nDelay = m_nResumeDelay; //Next time we wait, the timeout will bring us into the running //state - we return to normally performing the periodic action. state = STATE_RUNNING; break; case STATE_STOPPING: cleanup(); m_bRunning = false; break; } if (m_bRunning && m_ChangeStateEvent.wait(nDelay)) { //Event was set - this means the state has changed. state = GetState(); } } while (m_bRunning); } //Stop the periodic action thread from within itself. Can be used by derived classes. void PeriodicActionThread::internalStop() { m_bRunning = false; } //Change the internal state of the periodic action thread's state machine void PeriodicActionThread::ChangeState(State newState) { Lock lock(m_StateSemaphore); m_CurrentState = newState; m_ChangeStateEvent.set(); } //Get the internal state of the periodic action thread's state machine PeriodicActionThread::State PeriodicActionThread::GetState() { Lock lock(m_StateSemaphore); return m_CurrentState; } UNS-3.2.0.24/daemonize.cpp0000644012402100775320000001053410746077322016175 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #include #include #include #include #include #include #include #include #include #include #include "daemonize.h" static void child_handler(int signum) { switch (signum) { case SIGALRM: exit(EXIT_FAILURE); break; case SIGUSR1: exit(EXIT_SUCCESS); break; case SIGCHLD: exit(EXIT_FAILURE); break; } } void daemonize() { pid_t pid, sid, parent; /* Drop user if there is one, and we were run as root */ if (getuid() == 0 || geteuid() == 0) { struct passwd *pw = getpwnam(RUN_AS_USER); if (pw) { //syslog(LOG_NOTICE, "setting user to " RUN_AS_USER); setuid(pw->pw_uid); } } /* Trap signals that we expect to recieve */ signal(SIGCHLD, child_handler); signal(SIGUSR1, child_handler); signal(SIGALRM, child_handler); /* Fork off the parent process */ pid = fork(); if (pid < 0) { /* syslog(LOG_ERR, "unable to fork daemon, code=%d (%s)", errno, strerror(errno)); */ exit(EXIT_FAILURE); } /* If we got a good PID, then we can exit the parent process. */ if (pid > 0) { /* Wait for confirmation from the child via SIGTERM or SIGCHLD, or for two seconds to elapse (SIGALRM). pause() should not return. */ alarm(2); pause(); exit(EXIT_FAILURE); } /* At this point we are executing as the child process */ parent = getppid(); signal(SIGCHLD, SIG_DFL); signal(SIGUSR1, SIG_DFL); signal(SIGALRM, SIG_DFL); /* Change the file mode mask */ umask(0); /* Create a new SID for the child process */ sid = setsid(); if (sid < 0) { /* syslog(LOG_ERR, "unable to create a new session, code %d (%s)", errno, strerror(errno)); */ exit(EXIT_FAILURE); } /* Change the current working directory. This prevents the current directory from being locked; hence not being able to remove it. */ if ((chdir("/")) < 0) { /* syslog(LOG_ERR, "unable to change directory to %s, code %d (%s)", "/", errno, strerror(errno)); */ exit(EXIT_FAILURE); } /* Redirect standard files to /dev/null */ freopen("/dev/null", "r", stdin); freopen("/dev/null", "w", stdout); freopen("/dev/null", "w", stderr); /* Tell the parent process that we are A-okay */ kill(parent, SIGUSR1); } UNS-3.2.0.24/daemonize.h0000644012402100775320000000437610746077322015651 0ustar00gkbld_amtccigk00000000000000/******************************************************************************* * Part of "Intel(R) Active Management Technology (Intel(R) AMT) * User Notification Service (UNS)" * * Copyright (c) 2007 Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * 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 MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR 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 DAMAGES. *******************************************************************************/ #ifndef __DAEMONIZE_H__ #define __DAEMONIZE_H__ /* Change this to the user under which to run */ #define RUN_AS_USER "root" void daemonize(); #endif