diff --git a/ChangeLog~ b/ChangeLog~ deleted file mode 100644 index c5d2c3612..000000000 --- a/ChangeLog~ +++ /dev/null @@ -1,445 +0,0 @@ -/*********************************************************************** -* -* Copyright (C) 2013 InfiniDB Corp -* All Rights Reserved -* -***********************************************************************/ - -July 7, 2014 -Version 4.6 - - -ENHANCEMENTS INCLUDED IN THIS RELEASE -------------------------------------- -Enh # Short Description -1505 Implement temp file based LargeHashJoin for tuple joins -3683 Allow function(column) = function(column) join -5308 Improve performance of load data infile and insert into select from - - -ISSUES RESOLVED IN THIS RELEASE -------------------------------- -Bug # Short Description - -3858 While "load data infile" is in progress, PrimProc fails to read compressed chunk and retries for more than a minute -4295 CPimport Mode 2: Should check for input files on all PMs before starting loading -4737 Distributed cpimport does not support a list of import files to a single table -4789 InfiniDB came up normally after encountering an critical sessionManager::rollback() error -5134 Source package: After compilation and installation, InfiniDB reported lib not found error during startup -5140 second and subsequent load data infiles have 30 second delay with auto increment -5523 Mysql is resetting when running a query on a information_schema.table and an InfiniDB table. -5727 Improve logging around controllernode start up -5756 After a failed addModule command movePmDbrootConfig did not fail -5758 when amazon UM modules are removed, their associated EBS storages are not removed -5761 Support additional versions of Java for Hadoop installations -5762 Need a method to handle MySQL port conflict on a multi-server install -5773 Startsystem is failing when shutdown has not completed. -5847 IDB-2021 on query using multiple pseudo column functions against same column and aggregation -5848 No CP elimination from idbPartition(col) in the where clause -5865 ERROR 138 (HY000): IDB-1000: 'orders' and 'sub-query' are not joined on a query with an or condition and not in condition -5891 getsystemdisk reporting minus value -5894 Performance issue when inserting a value in an autoincrement column -5930 Not in group by error on query grouping by idbPm and idbDbRoot functions -5931 current builds do not support a non-root / hdfs install -5946 load data infile error: ERROR 122 (HY000): CAL0006: Error verifying compression headers -5947 calonlinealter always creates non compressed columns -5950 getModuleHostNames command on AWS returned a segmentation fault error -5954 calpontSupport for Windows does not recognize options -5958 Query with a subselect is getting an assertion error -5963 configxml.sh fails to set CrossEngineSupport Password from the default setting -5978 crash with prepared statements -5987 hadoop test failed on install, hadoop not install where setenv was looking and not a parcel -5992 Bulk load fails on long schema name, long table name, and long column name combination. -5993 IDB-2016: Non supported item 'c2' on the GROUP BY list. -5996 Table reporting errors after a LDI -5997 standard mysql and infinidb mysql incorrectly starting/stopping each other -6000 New MySQL port test is insufficient -6001 cpimport performance improvement for tables with many dictionary columns -6005 addModule command failed to add an UM -6010 InfiniDB mysql replication doesn't work when UM mysql Port address is not 3306 -6013 HW 2.1 testing with 4.5.1-2 - different JAVA_HOME's are setup -6017 Queries with "where date(col) in (select dtCol)" not finding rows -6026 Prevent potential infinite loops reading input in postConfigure -6027 post-install message for a non-root hadoop install is incorrect.. -6029 when autocommit off, batchinsert set hwm of dictionary store file to 0 -6041 When loading 4160825419 rows cpimport reported as -134141877 rows -6044 'union all' query generates tupleconstantstep.cpp@731: assertion 'fRowConst.getSize() == fRowOut.getSize()' failed -6061 window function returned incorrect results -6066 query with alias is returning IDB-3009: Unknown column error. -6073 setenv scripts issues on Ubuntu - -/*********************************************************************** -* -* Copyright (C) 2013 InfiniDB Corp -* All Rights Reserved -* -***********************************************************************/ - -June 23, 2014 -Version 4.5.1 - - -ENHANCEMENTS INCLUDED IN THIS RELEASE -------------------------------------- -Enh # Short Description - - - -ISSUES RESOLVED IN THIS RELEASE -------------------------------- -Bug # Short Description - -4438 Implement -j option with simple usage to create a specific job log file -4638 Update from 2.2.x to 3.0 is not supported with multiple dbroots -5501 update with subquery using a view with an order by receives an error when using infinidb tables -5523 Mysql is resetting when running a query on a information_schema.table and an InfiniDB table. -5739 install-infinidb.sh script should be removed -5756 After a failed addModule command movePmDbrootConfig did not fail -5758 when amazon UM modules are removed, their associated EBS storages aren't -5761 Add support for additional Java versions with installation on HDFS -5762 Need a method to handle MySQL port conflict on a multi-server install -5785 While running a complex query a Control C aborts the query but may not clear ExeMgr memory -5804 mysql reset occurring following an install when /dev/shm permissions were not set correctly -5838 no prompt postConfigure does not work when mysql password is required. -5873 install failure - No Calpont.xml: failed to be written in config api -5881 with replication, delete with idbpm(colname) in where clause failed with an error. -5884 query returns incorrect results when using an on clause filter involving a table not directly involved in the outer join -5887 " Incorrect results of Is Null " -5891 getsystemdisk returns minus value -5893 Pseudo column functions return an "BPS not created 1" error when used as the 2nd expression in a where clause -5896 getConfig has no linefeed after returning value -5900 PrimProc crashes if NumBlocksPct has '%' in value -5903 startsystem reported successful system start when mysqld aborted -5904 Changing dbroot-to-pm assignment during postConfigure causes double-mounted storage devices -5906 Diagnostic messages logged in the err.log file during new installation -5907 After installation, a rsync error was report in UM1 but the stack seems to be in working state -5908 4.5 non-root install problems -5909 On a stack with replication and local query enabled, rerunning postConfigure caused the two features to become disabled -5910 Object names > 64 cause replication errors -5913 Renaming an autoincrement column is resetting the next value -5915 On hadoop system, SYSTABLE's update was not flushed to disk when implementing split dbroots for systables -5916 query using a view on a view causes ERROR 2013 (HY000): Lost connection to MySQL server during query -5917 non-root gluster / hadoop installs fail - storage types not being offered in postConfigure -5919 Warning of future deprecated "default-character-set" setting on Windows install -5923 ERROR 122 (HY000): Lost connection to DDLProc -5925 Add the two new options to postConfigure -h -5932 Queries with limits sometimes set the extent map min / max incorrectly -5943 mysql daemon fails to start on pm2 of a non-root install local-query configured system -5944 Incorrect schema name in error message -5946 load data infile error: ERROR 122 (HY000): CAL0006: Error verifying compression headers -5947 calonlinealter always creates non compressed columns -5956 Error Code: 138 IDB-2015: Sorting length exceeded when using a view -5958 Query with a subselect is getting an assertion error -5973 large system (1um-30pm) failing to start, ProcMgr incorrect stopping with ProcMons not active -5981 postconfigure upgrade when enabling local-query fails -5983 all the hdfs settings are not in the .bashrc file after install -5993 IDB-2016: Non supported item 'c2' on the GROUP BY list. -5996 Table reporting errors after a LDI -6001 cpimport performance improvement for tables with many dictionary columns -6029 with autocommit off, batchinsert set hwm of dictionary store file to 0 - -/*********************************************************************** -* -* Copyright (C) 2013 InfiniDB Corp -* All Rights Reserved -* -***********************************************************************/ - -March 31, 2014 -Version 4.5 - - -ENHANCEMENTS INCLUDED IN THIS RELEASE -------------------------------------- -Enh # Short Description - -4021 Selectable pseudo columns for row/PM identification -4578 Upgrade to latest MySQL 5.1.73 -5572 Optimizations to cpimport with Hadoop -5634 Optimization: Project only the necessary columns from views with union all or union -5635 Optimization: Use partition elimination for from clause sub queries and views with union / union all -5657 Local PM query interface -5660 Local PM Sqoop Import -5740 Enable use of MySQL Replication on UMs with InfiniDB -5799 Enhancement request to not provide information when performing a non-hadoop install on a system with hadoop - - -ISSUES RESOLVED IN THIS RELEASE -------------------------------- -Bug # Short Description - -5443 An error is not issued when changing a column's datatype -5444 alter table will not allow an autoincrement column to be renamed. -5611 Windows MySQL doesn't build out of github -5640 Hadoop: dumpcol and eval returned a java error with stack trace when non-existing file is supplied -5647 cpimport -i option doesn't work with modes 1 and 2 -5745 hadoop: unknown bulk rollback error on 4PM stack -5748 startsystem failure when user-module is disabled -5805 Query with avg windowing function returning the average at the wrong decimal scale -5806 cpimport loads data incorrectly on a multi-server stack when the table has a mix of compressed and non-compressed columns -5807 concat producing an incorrect count when using a view -5808 colxml error reported on Windows system. -5811 selecting from a view which has a cross engine join produces an ERROR 122 (HY000): fatal error executing query in crossengine client lib(17)(17) -5817 addModule / altersystem-enablemodule fails on amazon with InfiniDB 4.x -5819 Calpont.xml and Calpont.xml.singleserver do not have the same parameters. -5820 Inconsistent rounding on percentile_cont windowing function -5861 post-install reported to have run the setenv-hdfs-12 script on a CDH 4 install -5864 Include calpontSupport in the standard edition -5874 Reset of ProcessMonitor on PM2 on a combo system left mysqld as man_offline - - - - -/*********************************************************************** -* -* Copyright (C) 2014 InfiniDB Corp -* All Rights Reserved -* -***********************************************************************/ - -April 14, 2014 -Version 4.0.3 - - -ENHANCEMENTS INCLUDED IN THIS RELEASE -------------------------------------- -Enh # Short Description - - - -ISSUES RESOLVED IN THIS RELEASE -------------------------------- -Bug # Short Description - -4638 Update from 2.2.x to 3.0 is not supported with multiple dbroots -5610 The MySQL front end no longer outputs a descriptive messages when version buffer is full -5748 startsystem failure when user-module is disabled -5778 Distributed import error message for auto increment overflow is not friendly -5793 Remove O/S version checking in glusterconf -5801 Queries with string comparison in where clause occasionally causes a PM to hang -5805 Query with avg windowing function returning the average at the wrong decimal scale -5806 cpimport loads data incorrectly on a multi-server stack when the table has a mix of compressed and non-compressed columns -5807 concat producing an incorrect count when using a view -5808 colxml error reported on Windows system. -5810 update doesn't flush string file with table oid 3000 -5811 selecting from a view which has a cross engine join produces an ERROR 122 (HY000): fatal error executing query in crossengine client lib(17)(17) -5817 addModule / altersystem-enablemodule fails on amazon 4.x -5820 Inconsistent rounding on percentile_cont windowing function -5821 PM join with F & E in-join filter + a UM join will crash ExeMgr -5823 System hung when running concurrent queries with autocommit off -5838 no prompt postConfigure does not work when mysql password is required. -5874 Reset of ProcessMonitor on PM2 on a combo system left mysqld as man_offline -5877 After loading 1 extent worth of data into a table, select count(*) failed. -5882 cleartablelock fails on a multi server system. -5884 query returns incorrect results when using an on clause filter involving a table not directly involved in the outer join -5887 " Incorrect results of Is Null " -5870 select following delete statement is encountering a rid error. -5896 getConfig has no linefeed after returning value -5900 PrimProc crashes if NumBlocksPct has '%' in value -5904 Changing dbroot-to-pm assignment during postConfigure causes double-mounted storage devices -5915 On hadoop system, SYSTABLE's update was not flushed to disk when implementing split dbroots for systables -5916 query using a view on a view causes ERROR 2013 (HY000): Lost connection to MySQL server during query -5917 non-root gluster / hadoop installs fail - storage types not being offered in postConfigure -5932 Queries with limits sometimes set the extent map min / max incorrectly - - - - -/*********************************************************************** -* -* Copyright (C) 2013 Calpont Corp -* All Rights Reserved -* -***********************************************************************/ - -February 10, 2014 -Version 4.0.2 - - -ENHANCEMENTS INCLUDED IN THIS RELEASE -------------------------------------- -Enh # Short Description - -5760 Hadoop with Cloudera parcel-based install -5769 Optimization to not preallocate database column files in HDFS -5732 Add ability to report compressed bytes used rather than file size on disk - - -ISSUES RESOLVED IN THIS RELEASE -------------------------------- -Bug # Short Description - -2437 When expression results in data overflow, no error or warning was returned -4930 no prompt install on AWS had an error when it did not use the volume information. -5363 HAVING statement regression on 4.0 with COUNT DISTINCT -5383 NOT NULL constraint cpimport issues -5604 cpimport jobs hanging on HDFS installs -5617 Invalid Package error reported during the running of calpontSupport - incorrect error message -5636 query gives ERROR 1054 (42S22): Unknown column -5678 ERROR 138 (HY000): 'date_last_update_tk' isn't in tuple. -5682 HDFS updating a row that was inserted sometimes does not update the row -5687 TIMESTAMPADD(SECOND,2147483647, returns incorrect information. -5696 insert statement not providing a warning for truncated data -5697 IDB produces different results for equivalent calculations -5705 hadoop: HdfsFileSystem::listDirectory() not returning all files in directory; bulk rollback not deleting db files -5712 left('unsigned int',6) provides incorrect result -5715 incorrect calculation provided in result set -5716 union sql statement not displaying correct result -5717 create table with invalid Infinidb option does not provide an error or warning -5718 cross engine join results in ERROR 122 (HY000): InetStreamSocket::readToMagic: Remote is closed -5721 amazon upgrade 4.0.0 to 4.0.1 issues -5722 cpimport failing on table to PM17; not handling a boundary case where 2 DBRoots have partial HWM extents -5726 amazon 3.6.3 to 4.0.1 upgrade issue - the ebs storage data not given in postConfigure -5728 update Server cpu-info and disk scheduler in calpontSupport output -5733 databaseSizeReport doesn't report the size of dictionary string files in calpontsys tables -5735 Launching simultaneous databaseSizeReports at virtually the same time can sometimes yield incorrect results -5749 addModule for failed on Amazon system - user_installer password error -5750 dbrm halt/resumes need to be put around the load of dbrm files -5752 ERROR 138 (HY000) at line 2: Sub-query failed: error code 2003 error for query that exceeded TotalUmMemory -5753 When PrimProc restarts, DML statement didn't reset the connections to PrimProc in connector -5757 addModule for UM failed on Amazon system - remote_command error -5759 Must use -p option for hadoop fs -mkdir when creating /usr/local/Calpont -5764 select count(*) from a complex view is returning an incorrect answer. -5765 truncate statement does not show schema in the debug.log -5767 'create table' creates table in front end when spaces are in the table name. -5775 Windows does not log when PrimProc goes down or restarts -5777 LAG function returns invalid answer on a float column - - - - -/*********************************************************************** -* -* Copyright (C) 2013 Calpont Corp -* All Rights Reserved -* -***********************************************************************/ - -December 2, 2013 -Version 4.0.1 - - -ENHANCEMENTS INCLUDED IN THIS RELEASE -------------------------------------- -Enh # Short Description - -5619 Support VPC environment with AMI - - -ISSUES RESOLVED IN THIS RELEASE -------------------------------- -Bug # Short Description - -4996 removeDbroot should be disabled when GlusterFS is configured -5268 Incorrect date_format answer from infindb table -5402 OAM getSystemStatus message in Windows log -5429 LDI updated casual partitioning min/max values for an extent when where is no update to the actual column value. -5454 assignDbrootPmConfig needs to error out when the system is shutdown -5463 calpontSupport is not including the -c option when -a is selected. -5499 'Memory leak of ExeMgr' -5529 _CpNoTf_ is reported in results set -5549 update on two columns with an AND causes mysql reset -5555 HDFS tools installed on non-Hadoop system -5558 Issuing Ctrl-C on a repetitive OAM command will set terminal session to echo off -5566 hdfs error message printed to screen in calpontConsole - run before hdfs is up -5573 hadoop: update a string column is very slow. -5588 Delete statement left table locked. -5596 postConfigure/glusterconf is creating gluster brick directories owned by root user -5614 "hdfsCheck failed" message logged in crit.log when the stack came up normal -5621 can't create large (20+ pm) amazon systems using 4.0 AMI -5626 PrimProc crash running on HDFS -5628 Bug joining against unsigned tinyint data type -5631 After applying the row_number() function the table content is going to be lost. -5638 issue with using a constant in group by column -5642 system hung during distributed import -5646 Left outer join on varchar column and date datetime column to date column not returning all matching rows -5651 Query wrapped in a select * () returns invalid results. -5652 alter table add dictionary column doesn’t set Number of allocated blocks correctly -5667 Gluster Install with debian - 'glusterctl status' returns with NOTINSTALLED -5669 gluster install - dbroot setup in gluster was mismatched to OAM setup per pm -5670 DecomSrv is restarting after upgrade to 4.0 -5672 dbroot gets unmounted during upgrade when a softlink is used and disk type is internal -5681 cpimport sometimes fails during concurrent query / import test on HDFS -5683 HdfsRdwrMemBuffer: unable to write all bytes error in cpimport -5689 rename table leaves table inaccessible in HDFS - -/*********************************************************************** -* -* Copyright (C) 2013 Calpont Corp -* All Rights Reserved -* -***********************************************************************/ - -October 15, 2013 -Version 4.0 - - -ENHANCEMENTS INCLUDED IN THIS RELEASE -------------------------------------- -Enh # Short Description - -3581 Optimize Memory Utilization for wide string columns -4531 Add support for Windowing Functions -4568 Add ability to report database, schema, and table sizes -4901 Improve performance of concat function -4902 Improve performance of insert() and replace() string functions -4919 Improve performance of makedate() and maketime() functions -4920 Improve performance of adddate(), date_add(), subdate(), date_sub() functions. -5087 Enhance InfiniDB to support over 32 PMs. -5208 Change the Status Updates messages to have state show an ASCII value -5237 Remove restriction preventing user from dropping a logical partition (segment file) in the last physical partition for a DBRoot -5243 Add setting in Calpont.xml for enable/disable corefiles -5300 calpontSupport script performance improvement and additional features -5316 Include schema name in SQL statement debug log entries -5410 Add support for InfiniDB on Apache Hadoop -5414 Add Infinidb support for Apache Sqoop -5421 Add support for running InfiniDB under a Linux Control Group - - - -ISSUES RESOLVED IN THIS RELEASE -------------------------------- -Bug # Launchpad Short Description - -2871 Exceeding aggregation limits can block session -4208 'drop table' cannot delete files on NFS -4345 Specific SQL statements exhausts memory in seconds -4552 1025340 Load data infile and cpimport produce different results - 1025247 -4757 Incorrect results with correlated subquery -4774 Port Data Duplication to debian & Ubuntu -5160 Incorrect result on query with "DATE(IF(t1.`end_date` - INTERVAL 30 DAY < t1.`start_date`, t1.`start_date`, t1.`end_date` - INTERVAL 30 DAY))" expression -5222 Update errors out when dealing with out-of-range date and datetime values -5256 OAM ops returning without DDLProc fully up -5269 swap limit exceeded and not cleared by OAM restart of the system -5272 cast function returns incorrect result -5274 alter table add column returned "Constraints are currently not supported in InfiniDB" error -5287 system came up Active while a pm was disabled and dbroot was assigned to it -5299 stopsystem with Force Option is incorrectly resetting dbrm and save_brm too early -5301 startsystem command system status ended up in MAN_OFFLINE instead of ACTIVE -5304 Windows command prompt exit hangs after cpimport on upgraded database from 3.0.x and earlier -5321 Delete from table command fails when pm1 is down on a combo 2pm system -5322 query failed after disabling and enabling partitions -5323 Backup error opening column file for OID-3132 on a multi node cpimport -5331 select calshowpartitions not showing limits incorrectly for char fields in empty table -5332 shutdownSystem command incorrectly reported 'success' -5349 ERR : Backup error for column file error message occurred running cpimport -5356 Default syslog.conf to the asynchronous option -5374 Data mismatch occurred running query via view -5379 LPAD is not functioning correctly when using a Japanese character -5391 ERROR 138 (HY000): IDB-1000: 'c1, c2' and 'c3' are not joined error message on a query -5392 Reset invalid locale alarm when locale has been corrected -5426 calshowprocesslist issue hard-coded to look for host in first 13 bytes -5427 Distributed cpimport not handling connection failure with WriteEngineServer -5429 Load data infile cleared the min/max values for an extent that was not updated -5436 ERROR 122 (HY000): CAL0001: Alter table Failed: AlterTableProcessor::addColumn Failed to set offset in a compressed data file. -5438 query filters issue -5447 cpimport is reporting that -i is an invalid option -5448 Bug in date_add() with InfiniDB table -5455 PrimProc resets during a particular sql statement -5463 calpontSupport is not including the -c option when -a is selected. -5481 Maintain DBBC/NumThreads setting through upgrade -5488 PrimProc hangs when DecomSvr dies -5494 calpontSupport -a option is not capturing the logs from PM1 -5495 DB occasionally hangs querying old data loaded in 3.5.0 or prior release - diff --git a/INSTALL~ b/INSTALL~ deleted file mode 100644 index 0f12f143b..000000000 --- a/INSTALL~ +++ /dev/null @@ -1,306 +0,0 @@ -Installation Instructions -************************* - -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free -Software Foundation, Inc. - -Copyright (C) 2014 InfiniDB, Inc. - -This file is free documentation; the Free Software Foundation gives -unlimited permission to copy, distribute and modify it. - -InfiniDB, Inc. also gives unlimited permission to copy, distribute and -modify it. - -Basic Installation from source -============================== - -**** InfiniDB source build instructions **** - -Consult the generic installation instructions -that follow for detailed information. The short version is: - -cd $HOME -git clone http://github.com/infinidb/mysql -git clone http://github.com/infinidb/infinidb --- or -- -tar -zxf -cd mysql -./configure --prefix=$HOME -make -make install -cd ../infinidb -./configure --prefix=$HOME -make -make install - -This will create a directory called Calpont in $HOME which conatins -all the software you need. - -Install the InfiniDB software into /usr/local (for example) by copying -the entire Calpont directory tree there. - -After untaring the sofware or installing the RPM's, setup the software -to run (this script needs to run with root privileges). Check the Installation -Guide for addition details on using postConfigure: -/usr/local/Calpont/bin/postConfigure - -Setup some aliases: -. /usr/local/Calpont/bin/calpontAlias - -Connect to MySQL: -idbmysql - -A suggested test scenario: -create database calpont; -use calpont; -create table caltest (col1 int, col2 int) engine=infinidb; -show create table caltest; -set autocommit=0; -insert into caltest values (1, 2); -insert into caltest values (3, 4); -commit; -select * from caltest; - -To use bulk load: -1. A delimited import file should be created to match the table that - you want to import data to similar to the following. In this - example, the file will be saved as idbtest.tbl: - 100|1001| - 200|2002| -2. Save/place this file in a directory. -3. From that same directory, import the rows: - /usr/local/Calpont/bin/cpimport calpont caltest caltest.tbl - -And check the import: -calpontmysql calpont -select * from caltest; - - -That's it. Enjoy. - - -These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). - - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. (Caching is -disabled by default to prevent problems with accidental use of stale -cache files.) - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you -may remove or edit it. - - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You only need -`configure.ac' if you want to change it or regenerate `configure' using -a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package. - - 4. Type `make install' to install the programs and any data files and - documentation. - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Compilers and Options -===================== - -Some systems require unusual options for compilation or linking that the -`configure' script does not know about. Run `./configure --help' for -details on some of the pertinent environment variables. - - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: - - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix - - *Note Defining Variables::, for more details. - -Compiling For Multiple Architectures -==================================== - -You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not support the `VPATH' -variable, you have to compile the package for one architecture at a -time in the source code directory. After you have installed the -package for one architecture, use `make distclean' before reconfiguring -for another architecture. - -Installation Names -================== - -By default, `make install' installs the package's commands under -`/usr/local/bin', include files under `/usr/local/include', etc. You -can specify an installation prefix other than `/usr/local' by giving -`configure' the option `--prefix=PREFIX'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -pass the option `--exec-prefix=PREFIX' to `configure', the package uses -PREFIX as the prefix for installing programs and libraries. -Documentation and other data files still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=DIR' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Optional Features -================= - -Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - -Specifying the System Type -========================== - -There may be some features `configure' cannot figure out automatically, -but needs to determine by the type of machine the package will run on. -Usually, assuming the package is built to be run on the _same_ -architectures, `configure' can figure that out, but if it prints a -message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: - - CPU-COMPANY-SYSTEM - -where SYSTEM can have one of these forms: - - OS KERNEL-OS - - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the machine type. - - If you are _building_ compiler tools for cross-compiling, you should -use the option `--target=TYPE' to select the type of system they will -produce code for. - - If you want to _use_ a cross compiler, that generates code for a -platform different from the build platform, you should specify the -"host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. - -Sharing Defaults -================ - -If you want to set default values for `configure' scripts to share, you -can create a site shell script called `config.site' that gives default -values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Defining Variables -================== - -Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run -configure again during the build, and the customized values of these -variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: - - ./configure CC=/usr/local2/bin/gcc - -causes the specified `gcc' to be used as the C compiler (unless it is -overridden in the site shell script). Here is a another example: - - /bin/bash ./configure CONFIG_SHELL=/bin/bash - -Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent -configuration-related scripts to be executed by `/bin/bash'. - -`configure' Invocation -====================== - -`configure' recognizes the following options to control how it operates. - -`--help' -`-h' - Print a summary of the options to `configure', and exit. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--cache-file=FILE' - Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to - disable caching. - -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. - diff --git a/Makefile b/Makefile deleted file mode 100755 index 32f9bbf5a..000000000 --- a/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -# -# $Id$ -# - -include rules.mak - -.PHONY: export all full scratch compile clean dist - -all: compile - -# TODO: fix this! a compile step should not install anything -install: compile - -full: export - cd utils && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd snmpd && $(MAKE) -C../oam install && $(MAKE) && $(MAKE) install docs - cd versioning && $(MAKE) && $(MAKE) install docs - cd oam && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd dbcon/execplan && $(MAKE) && $(MAKE) install docs - cd dbcon/joblist && $(MAKE) && $(MAKE) install docs - cd versioning && $(MAKE) dbrm tools install_dbrm install_tools test test-dbrm coverage leakcheck - cd writeengine && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd dbcon && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd exemgr && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd ddlproc && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd dmlproc && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd procmon && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd procmgr && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd oamapps && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd primitives && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd decomsvr && $(MAKE) && $(MAKE) install test coverage leakcheck docs - cd tools && $(MAKE) && $(MAKE) install test coverage leakcheck docs - $(MAKE) -C writeengine/server install_server - $(MAKE) -C writeengine/bulk install_bulk - $(MAKE) -C writeengine/splitter install_splitter - echo $(CXXFLAGS) $(DEBUG_FLAGS) > buildFlags - -scratch: export - $(MAKE) clean all - -export: - build/bootstrap - -compile: export - cd utils && $(MAKE) && $(MAKE) install - cd snmpd && $(MAKE) -C../oam install && $(MAKE) && $(MAKE) install - cd versioning && $(MAKE) && $(MAKE) install - cd oam && $(MAKE) && $(MAKE) install - cd dbcon/execplan && $(MAKE) && $(MAKE) install - cd dbcon/joblist && $(MAKE) && $(MAKE) install - cd versioning && $(MAKE) dbrm tools && $(MAKE) install_dbrm install_tools - cd writeengine && $(MAKE) && $(MAKE) install - cd dbcon && $(MAKE) && $(MAKE) install - cd exemgr && $(MAKE) && $(MAKE) install - cd ddlproc && $(MAKE) && $(MAKE) install - cd dmlproc && $(MAKE) && $(MAKE) install - cd procmon && $(MAKE) && $(MAKE) install - cd procmgr && $(MAKE) && $(MAKE) install - cd oamapps && $(MAKE) && $(MAKE) install - cd primitives && $(MAKE) && $(MAKE) install - cd decomsvr && $(MAKE) && $(MAKE) install - cd tools && $(MAKE) && $(MAKE) install - cd versioning && $(MAKE) tools install_tools - $(MAKE) -C writeengine/server install_server - $(MAKE) -C writeengine/bulk install_bulk - $(MAKE) -C writeengine/splitter install_splitter - echo $(CXXFLAGS) $(DEBUG_FLAGS) > buildFlags - -clean: - build/clean - rm -rf export - -dist: - build/make_src_tar - diff --git a/README~ b/README~ deleted file mode 100644 index 2aa1663a5..000000000 --- a/README~ +++ /dev/null @@ -1,145 +0,0 @@ -To build the software from source, consult the file INSTALL. - -Brief Install Instructions: - -1. Install the 3 Calpont InfiniDB RPMs. -2. Install and start the software, run: /usr/local/Calpont/bin/postConfigure -3. Setup some aliases: . /usr/local/Calpont/bin/calpontAlias -4. Connect to MySQL: idbmysql -5. Try the test in step 12 below - - -Detailed Installation Instructions: - -1. Download the package calpont-2.2.0-2.x86_64.rpm.tar.gz (RHEL5 64-BIT) - to the server where you are installing Calpont. - -2. Obtain root user access. - -3. Unpack the tarball, which will generate 4 RPMs. - - tar xvf calpont-2.2.0-2.x86_64.rpm.tar.gz - -4. Install the 3 RPMs in this order, the Calpont InfiniDB software will be installed in - /usr/local/Calpont. - - rpm -ivh infinidb-libs-2.2.0-2.x86_64.rpm - rpm -ivh infinidb-platform-2.2.0-2.x86_64.rpm - rpm -ivh infinidb-mysql-2.2.0-2.x86_64.rpm - rpm -ivh infinidb-storage-engine-2.2.0-2.x86_64.rpm - -5a.To configure and run on a single server system utilizing local disk storage, - run install script: - - /usr/local/Calpont/bin/postConfigure - -5b.To configure and run on a multi-server system and/or to utilize a SAN storage - system, follow the instructions in the Calpont InfiniDB Installation Guide. - - /usr/local/Calpont/bin/postConfigure - -6. Ports utilized by the Calpont InfiniDB Software - - The Calpont MySQL daemon utilizes port 3306. To use a different port, update - the 2 locations in the following file: - - /usr/local/Calpont/mysql/my.cnf - - port = 3306 - port = 3306 - - You must reserve the following ports to run the Calpont InfiniDB Software: - - 8600 - 8622, 8700, and 8800 - -7. Setup some aliases: -. /usr/local/Calpont/bin/calpontAlias - -8. To manually start and stop the Calpont InfiniDB Software as the root user run: - - cc startSystem - - To stop the Calpont Software, run: - - cc stopSystem - -9. To start/stop the Calpont InfiniDB Software during system boot/shutdown use the - chkconfig command - - /sbin/chkconfig --add infinidb - /sbin/chkconfig infinidb on - -10. After the Calpont InfiniDB Software has been started, use the following command to - connect to the Calpont OAM Console and watch for the System to go to the - ACTIVE status. The follow will repeatedly run the OAM command getsysteminfo - every 5 seconds. - - calpontOAMconsole getsysteminfo -r - - Here is an example display from a Single Server Install: - - System and Module statuses - - Component Status Last Status Change - ------------ ---------------------- ------------------------ - System ACTIVE Mon Apr 6 18:07:14 2009 - - Module dm1 ACTIVE Mon Apr 6 18:07:12 2009 - - Calpont Process statuses - - Process Module Status Last Status Change Process ID - ------------------ ------ ------------ ------------------------ ---------- - ProcessMonitor dm1 ACTIVE Mon Apr 6 18:06:41 2009 12753 - ProcessManager dm1 ACTIVE Mon Apr 6 18:06:46 2009 12954 - SNMPTrapDaemon dm1 ACTIVE Mon Apr 6 18:06:41 2009 12963 - SNMPAgent dm1 ACTIVE Mon Apr 6 18:06:50 2009 13565 - ServerMonitor dm1 ACTIVE Mon Apr 6 18:06:55 2009 13635 - DBRMWorkerNode dm1 ACTIVE Mon Apr 6 18:06:51 2009 13640 - DBRMControllerNode dm1 ACTIVE Mon Apr 6 18:06:52 2009 13645 - ExeMgr dm1 ACTIVE Mon Apr 6 18:07:05 2009 14578 - PrimProc dm1 ACTIVE Mon Apr 6 18:07:03 2009 13842 - DDLProc dm1 ACTIVE Mon Apr 6 18:07:10 2009 14936 - DMLProc dm1 ACTIVE Mon Apr 6 18:07:13 2009 15114 - - Active Alarm Counts: Critical = 0, Major = 0, Minor = 0, Warning = 0, Info = 0 - - Once the System status is ACTIVE, enter the following to exit back to the - UNIX prompt: - - CNTR - - Or to get back Calpont OAM Console Prompt,enter the following: - - CNTR - -11. Use the following command to access the Calpont InfiniDB MySQL console: - - idbmysql - - Example output: - - Welcome to the Mysql monitor. Commands end with ; or \g. - Your Mysql connection id is 1 - Server version: 5.1.26-Calpont-log Source distribution - - Type 'help;' or '\h' for help. Type '\c' to clear the buffer. - - mysql> - -12. Run the following upgrade script to create calponsys schema and upgrade the syscolumn table: /usr/local/Calpont/bin/upgrade-infinidb.sh - -13. As an example to get you started, try this: - - create database calpont; - use calpont; - create table caltest (col1 int, col2 int) engine=infinidb; - show create table caltest; - insert into caltest values (1, 2); - insert into caltest values (3, 4); - commit; - select * from caltest; - -14. Consult the Admin Guide and Syntax Guide for additional information on how - to get started. - diff --git a/build/bootstrap~ b/build/bootstrap~ deleted file mode 100755 index df6bce7fd..000000000 --- a/build/bootstrap~ +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash -# -# $Id: bootstrap 1333 2011-01-18 17:25:26Z rdempsey $ -# -# This script is responsible for setting up a fresh development tree -# following a git checkout. It copies static files and shared include -# files to the export tree prior to building the software. - -mkdir -p export/{include,lib,etc,share,bin,sbin,post} -if [ ! $$ ]; then - exit 1 -fi - -cp build/gdb export/bin -cp build/libgcc_s.so.1 export/lib -cp build/libstdc++.so.6.0.14 export/lib - -cp build/files.lst $HOME/MariaDB_InfiniDB/export/mysql/. -cp dbcon/mysql/install_calpont_mysql.sh $HOME/MariaDB_InfiniDB/export/mysql/. -cp dbcon/mysql/my.cnf $HOME/MariaDB_InfiniDB/export/mysql/. -cp dbcon/mysql/mysql-Calpont $HOME/MariaDB_InfiniDB/export/mysql/. - -if [ ! $$ ]; then - exit 1 -fi - -cp -p -r utils/net-snmp export/include - -if [ `uname -m` == "x86_64" ]; then - cp -p utils/net-snmp-built-libs/lib64/* export/lib - cp -p utils/net-snmp-built-libs/bin64/* export/sbin -else - egrep -qs Constantine /etc/redhat-release - if [ $? -eq 0 ]; then - cp -p utils/net-snmp-built-libs/fc12lib/libnetsnmp*.so.* export/lib - cp -p utils/net-snmp-built-libs/fc12bin/* export/sbin - else - cp -p utils/net-snmp-built-libs/fc6lib/libnetsnmp*.so.* export/lib - cp -p utils/net-snmp-built-libs/fc6bin/* export/sbin - fi -fi - -pushd export/lib >/dev/null -for lib in libnetsnmpagent.so libnetsnmphelpers.so libnetsnmpmibs.so libnetsnmp.so libnetsnmptrapd.so; do - rm -f ${lib} ${lib}.5 - ln -s ${lib}.5.2.1 ${lib}.5 - ln -s ${lib}.5.2.1 ${lib} -done -popd >/dev/null - -./build/genVersion.sh - -for x in \ -$(find . -name '[mM]akefile' \ - | xargs grep -l ^bootstrap: \ - | cut -f 2 -d / \ - | sort -u) -do - echo bootstrapping $x - make BOOTSTRAP=1 -C $x bootstrap -done - diff --git a/build/build_rpms~ b/build/build_rpms~ deleted file mode 100755 index 4950f4582..000000000 --- a/build/build_rpms~ +++ /dev/null @@ -1,125 +0,0 @@ -#!/bin/bash -# -# $Id: build_rpms 1734 2012-10-25 18:07:16Z dhill $ -# - -verbose=0 -mysqldir=$HOME/MariaDB_InfiniDB/export/mysql - -usage() -{ -cat <&2 - fi -done - -#try to find project root -while [ ! -d dbcon ]; do - cd .. - curdir=$(pwd) - if [ $curdir = / -o $curdir = $HOME ]; then - echo "I could not find the project root directory: I can't continue!" - exit 1 - fi -done - -if [ ! -f ./build/releasenum ]; then - echo "I could not find the file 'releasesum' in the build directory: I can't continue!" - exit 1 -fi - -. ./build/releasenum - -# make the install package -buildroot=$HOME/rpm/BUILD/infinidb-$version-$release - -rm -rf $buildroot -mkdir -p $buildroot -echo -n "Writing binary files to $buildroot..." -tar -cf - --exclude 'export/include' --exclude 'export/*.tar' export | tar -C $buildroot -xf - -mv $buildroot/export $buildroot/Calpont - -#get mysql server files -pushd $mysqldir > /dev/null -mkdir -p $buildroot/Calpont/mysql -cpio -pdmu --quiet $buildroot/Calpont/mysql < files.lst -popd >/dev/null - -#clean up some files from buildroot -rm -f $buildroot/Calpont/etc/Doxyfile -for file in $buildroot/Calpont/lib/*; do - if [ -h $file ]; then - rm -f $file - fi -done - -#temporarily clean up these BRM thingies -for file in dbrm script-fcns; do - rm -f $buildroot/Calpont/bin/$file -done - -#clean up these bulkload scripts -for file in bulkload.sh cleanup.sh dbbuilder.sh dbload.sh cpimport.sh bulkloadp.sh; do - rm -f $buildroot/Calpont/bin/$file -done - -rm -f $buildroot/Calpont/lib/libidbboot.a -rm -f $buildroot/Calpont/lib/libiberty.a - -mkdir -p $HOME/rpm/BUILD $HOME/rpm/RPMS $HOME/rpm/SRPMS $HOME/rpm/SPECS $HOME/rpm/tmp - -if [ ! -f $HOME/.rpmmacros ]; then - cat > $HOME/.rpmmacros </tmp/rpmbuild.out.$$ 2>&1 -rc=$? -echo done. -if [ $verbose -gt 0 -o $rc -ne 0 ]; then - cat /tmp/rpmbuild.out.$$ -fi - -rm -f /tmp/*.$$ - -exit $rc - diff --git a/build/columnstore.spec.in~ b/build/columnstore.spec.in~ deleted file mode 100644 index e2776558e..000000000 --- a/build/columnstore.spec.in~ +++ /dev/null @@ -1,465 +0,0 @@ -# -# $Id$ -# -Summary: MariaDB-Columnstore software -Name: columnstore -@@VERSION@@ -@@RELEASE@@ -Vendor: MariaDB, Inc. -URL: http://www.mariadb.com/ -@@PACKAGER@@ -Group: Applications -License: Copyright (c) 2016 MariaDB, Inc., all rights reserved; redistributable under the terms of the GPL, see the file COPYING for details. -BuildRoot: %{_tmppath}/%{name}-%{release}-buildroot - -%description -MariaDB-Columnstore software meta-package - -%package platform -Summary: MariaDB-Columnstore software binaries -Group: Applications -Requires: expect, columnstore-libs - -%description platform -MariaDB-Columnstore binary files -@@BUILDINFO@@ - -%package libs -Summary: MariaDB-Columnstore software libraries -Group: Applications - -%description libs -MariaDB-Columnstore libraries - -%package enterprise -Summary: InfiniDB Enterprise software binaries -Group: Applications -Requires: columnstore-libs, columnstore-platform -License: Proprietary; Copyright (c) 2016 MariaDB, Inc., all rights reserved - -%description enterprise -InfiniDB Enterprise binary files - -%package storage-engine -Summary: MariaDB-Columnstore software MariaDB connector -Group: Applications -Obsoletes: columnstore-mysql -Requires: columnstore-libs - -%description storage-engine -MariaDB Columnstore connector binary files - -%prep -%define _use_internal_dependency_generator 0 -%define __find_requires %{nil} -%define __os_install_post %{nil} -%define debug_package %{nil} - -%build - -%install -mkdir -p %{buildroot}/usr/local -tar -C $RPM_BUILD_DIR/%{name}-%{version}-%{release} -cf - . | tar -C %{buildroot}/usr/local -xf - - -%clean -rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}-%{release} - -%changelog - -%files platform -%defattr(-, root, root) - -/usr/local/MariaDB/Columnstore/bin/DDLProc -/usr/local/MariaDB/Columnstore/bin/ExeMgr -/usr/local/MariaDB/Columnstore/bin/ProcMgr -/usr/local/MariaDB/Columnstore/bin/ProcMon -/usr/local/MariaDB/Columnstore/bin/DMLProc -/usr/local/MariaDB/Columnstore/bin/WriteEngineServer -/usr/local/MariaDB/Columnstore/bin/cpimport -/usr/local/MariaDB/Columnstore/bin/post-install -/usr/local/MariaDB/Columnstore/bin/post-mysql-install -/usr/local/MariaDB/Columnstore/bin/post-mysqld-install -/usr/local/MariaDB/Columnstore/bin/pre-uninstall -/usr/local/MariaDB/Columnstore/bin/PrimProc -/usr/local/MariaDB/Columnstore/bin/DecomSvr -/usr/local/MariaDB/Columnstore/bin/upgrade-columnstore.sh -/usr/local/MariaDB/Columnstore/bin/run.sh -/usr/local/MariaDB/Columnstore/bin/columnstore -/usr/local/MariaDB/Columnstore/bin/columnstoreSyslog -/usr/local/MariaDB/Columnstore/bin/columnstoreSyslog7 -/usr/local/MariaDB/Columnstore/bin/columnstoreSyslog-ng -/usr/local/MariaDB/Columnstore/bin/syslogSetup.sh -/usr/local/MariaDB/Columnstore/bin/cplogger -/usr/local/MariaDB/Columnstore/bin/columnstore.def -/usr/local/MariaDB/Columnstore/bin/dbbuilder -/usr/local/MariaDB/Columnstore/bin/cpimport.bin -/usr/local/MariaDB/Columnstore/bin/load_brm -/usr/local/MariaDB/Columnstore/bin/save_brm -/usr/local/MariaDB/Columnstore/bin/dbrmctl -/usr/local/MariaDB/Columnstore/bin/controllernode -/usr/local/MariaDB/Columnstore/bin/reset_locks -/usr/local/MariaDB/Columnstore/bin/workernode -/usr/local/MariaDB/Columnstore/bin/colxml -/usr/local/MariaDB/Columnstore/bin/clearShm -/usr/local/MariaDB/Columnstore/bin/viewtablelock -/usr/local/MariaDB/Columnstore/bin/cleartablelock -/usr/local/MariaDB/Columnstore/bin/mcsadmin -/usr/local/MariaDB/Columnstore/bin/trapHandler -/usr/local/MariaDB/Columnstore/bin/remote_command.sh -/usr/local/MariaDB/Columnstore/bin/postConfigure -/usr/local/MariaDB/Columnstore/bin/columnstoreLogRotate -/usr/local/MariaDB/Columnstore/bin/transactionLog -/usr/local/MariaDB/Columnstore/bin/columnstoreDBWrite -/usr/local/MariaDB/Columnstore/bin/transactionLogArchiver.sh -/usr/local/MariaDB/Columnstore/bin/system_installer.sh -/usr/local/MariaDB/Columnstore/bin/installer -/usr/local/MariaDB/Columnstore/bin/module_installer.sh -/usr/local/MariaDB/Columnstore/bin/patchInstaller -/usr/local/MariaDB/Columnstore/bin/user_installer.sh -/usr/local/MariaDB/Columnstore/bin/performance_installer.sh -/usr/local/MariaDB/Columnstore/bin/startupTests.sh -/usr/local/MariaDB/Columnstore/bin/os_check.sh -/usr/local/MariaDB/Columnstore/bin/sendtrap -/usr/local/MariaDB/Columnstore/bin/remote_scp_put.sh -/usr/local/MariaDB/Columnstore/bin/remotessh.exp -/usr/local/MariaDB/Columnstore/bin/ServerMonitor -/usr/local/MariaDB/Columnstore/bin/master-rep-columnstore.sh -/usr/local/MariaDB/Columnstore/bin/slave-rep-columnstore.sh -/usr/local/MariaDB/Columnstore/bin/rsync.sh -/usr/local/MariaDB/Columnstore/bin/columnstoreSupport -/usr/local/MariaDB/Columnstore/bin/hardwareReport.sh -/usr/local/MariaDB/Columnstore/bin/softwareReport.sh -/usr/local/MariaDB/Columnstore/bin/configReport.sh -/usr/local/MariaDB/Columnstore/bin/logReport.sh -/usr/local/MariaDB/Columnstore/bin/bulklogReport.sh -/usr/local/MariaDB/Columnstore/bin/resourceReport.sh -/usr/local/MariaDB/Columnstore/bin/hadoopReport.sh -/usr/local/MariaDB/Columnstore/bin/alarmReport.sh -/usr/local/MariaDB/Columnstore/bin/amazonInstaller -/usr/local/MariaDB/Columnstore/bin/remote_command_verify.sh -/usr/local/MariaDB/Columnstore/bin/disable-rep-columnstore.sh - - -# -%config /usr/local/MariaDB/Columnstore/etc/Calpont.xml -%config /usr/local/MariaDB/Columnstore/etc/ConsoleCmds.xml -%config /usr/local/MariaDB/Columnstore/etc/ProcessConfig.xml -%config /usr/local/MariaDB/Columnstore/etc/snmpd.conf -%config /usr/local/MariaDB/Columnstore/etc/snmptrapd.conf -%config /usr/local/MariaDB/Columnstore/etc/Calpont.xml.singleserver -%config /usr/local/MariaDB/Columnstore/etc/ProcessConfig.xml.singleserver -%config /usr/local/MariaDB/Columnstore/etc/snmpd.conf.singleserver -%config /usr/local/MariaDB/Columnstore/etc/snmptrapd.conf.singleserver -# -/usr/local/MariaDB/Columnstore/etc/MessageFile.txt -/usr/local/MariaDB/Columnstore/etc/ErrorMessage.txt -# -%attr(0666, root, root) /usr/local/MariaDB/Columnstore/local/module -# -/usr/local/MariaDB/Columnstore/releasenum - -# Tools... -/usr/local/MariaDB/Columnstore/bin/rollback -/usr/local/MariaDB/Columnstore/bin/editem -/usr/local/MariaDB/Columnstore/bin/getConfig -/usr/local/MariaDB/Columnstore/bin/setConfig -/usr/local/MariaDB/Columnstore/bin/setenv-hdfs-12 -/usr/local/MariaDB/Columnstore/bin/setenv-hdfs-20 -/usr/local/MariaDB/Columnstore/bin/hdfsCheck -/usr/local/MariaDB/Columnstore/bin/configxml.sh -/usr/local/MariaDB/Columnstore/bin/remote_scp_get.sh -/usr/local/MariaDB/Columnstore/bin/columnstoreAlias -/usr/local/MariaDB/Columnstore/bin/autoConfigure -/usr/local/MariaDB/Columnstore/bin/ddlcleanup -/usr/local/MariaDB/Columnstore/bin/idbmeminfo -/usr/local/MariaDB/Columnstore/bin/IDBInstanceCmds.sh -/usr/local/MariaDB/Columnstore/bin/IDBVolumeCmds.sh -/usr/local/MariaDB/Columnstore/bin/binary_installer.sh -/usr/local/MariaDB/Columnstore/bin/myCnf-include-args.text -/usr/local/MariaDB/Columnstore/bin/myCnf-exclude-args.text -/usr/local/MariaDB/Columnstore/bin/mycnfUpgrade -/usr/local/MariaDB/Columnstore/bin/getMySQLpw -/usr/local/MariaDB/Columnstore/bin/columnstore.conf - -/usr/local/MariaDB/Columnstore/sbin/snmpd -/usr/local/MariaDB/Columnstore/sbin/snmptrapd -%config %attr(0666, root, root) /usr/local/MariaDB/Columnstore/etc/AlarmConfig.xml -# -%config /usr/local/MariaDB/Columnstore/local/snmpdx.conf -%config /usr/local/MariaDB/Columnstore/local/snmpdx.conf.singleserver -# -/usr/local/MariaDB/Columnstore/share/snmp/mibs/AGENTX-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/CALPONT-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/DISMAN-EVENT-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/DISMAN-SCRIPT-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/EtherLike-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/HCNUM-TC.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/HOST-RESOURCES-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/HOST-RESOURCES-TYPES.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IANAifType-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IANA-LANGUAGE-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IANA-RTPROTO-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IF-INVERTED-STACK-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IF-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/INET-ADDRESS-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IP-FORWARD-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IP-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-ICMP-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-TCP-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-TC.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/IPV6-UDP-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-EXTEND-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/NET-SNMP-TC.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/NOTIFICATION-LOG-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/RFC1155-SMI.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/RFC1213-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/RFC-1215.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/RMON-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SMUX-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-COMMUNITY-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-FRAMEWORK-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-MPD-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-NOTIFICATION-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-PROXY-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-TARGET-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-USM-AES-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-USM-DH-OBJECTS-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-CONF.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-SMI.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-TC.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMPv2-TM.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/TCP-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/TRANSPORT-ADDRESS-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-DEMO-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-DISKIO-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-DLMOD-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-IPFWACC-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/UCD-SNMP-MIB.txt -/usr/local/MariaDB/Columnstore/share/snmp/mibs/UDP-MIB.txt -# -/usr/local/MariaDB/Columnstore/post/functions -/usr/local/MariaDB/Columnstore/post/test-001.sh -/usr/local/MariaDB/Columnstore/post/test-002.sh -/usr/local/MariaDB/Columnstore/post/test-003.sh -/usr/local/MariaDB/Columnstore/post/test-004.sh - -%files enterprise -%defattr(-, root, root) -/usr/local/MariaDB/Columnstore/bin/displayJobGraph.sh -/usr/local/MariaDB/Columnstore/bin/dbhealth.sh -/usr/local/MariaDB/Columnstore/bin/dbhealth.sql - -# Tools... -/usr/local/MariaDB/Columnstore/bin/dumpcol -/usr/local/MariaDB/Columnstore/bin/oid2file -/usr/local/MariaDB/Columnstore/bin/evalcol -/usr/local/MariaDB/Columnstore/bin/SesMgr -/usr/local/MariaDB/Columnstore/bin/dumpVss -/usr/local/MariaDB/Columnstore/bin/editTxn -/usr/local/MariaDB/Columnstore/bin/dbprof.pl -/usr/local/MariaDB/Columnstore/bin/dumpobm -/usr/local/MariaDB/Columnstore/bin/file2oid.pl -/usr/local/MariaDB/Columnstore/bin/print_journal -/usr/local/MariaDB/Columnstore/bin/healthcheck -/usr/local/MariaDB/Columnstore/bin/glusterctl -/usr/local/MariaDB/Columnstore/bin/glusteradd -/usr/local/MariaDB/Columnstore/bin/glusterconf -/usr/local/MariaDB/Columnstore/bin/redistributeDB -/usr/local/MariaDB/Columnstore/bin/databaseSizeReport -/usr/local/MariaDB/Columnstore/bin/gdb -# -/usr/local/MariaDB/Columnstore/tools/copy2here.sh -/usr/local/MariaDB/Columnstore/tools/getlogs.sh -/usr/local/MariaDB/Columnstore/tools/getmodules.sh -/usr/local/MariaDB/Columnstore/tools/getps.sh -/usr/local/MariaDB/Columnstore/tools/getsar.sh -/usr/local/MariaDB/Columnstore/tools/getuserinput.sh -/usr/local/MariaDB/Columnstore/tools/prat -/usr/local/MariaDB/Columnstore/tools/prat.sh -/usr/local/MariaDB/Columnstore/tools/ps -/usr/local/MariaDB/Columnstore/tools/pscollect -/usr/local/MariaDB/Columnstore/tools/README -/usr/local/MariaDB/Columnstore/tools/tarfiles.sh -# -%files libs -%defattr(-, root, root) - -/usr/local/MariaDB/Columnstore/lib/libconfigcpp.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libddlpackageproc.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libddlpackage.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libdmlpackageproc.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libdmlpackage.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libexecplan.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libfuncexp.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libudfsdk.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libjoblist.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libjoiner.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libloggingcpp.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libmessageqcpp.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libnetsnmpagent.so.5.2.1 -/usr/local/MariaDB/Columnstore/lib/libnetsnmphelpers.so.5.2.1 -/usr/local/MariaDB/Columnstore/lib/libnetsnmpmibs.so.5.2.1 -/usr/local/MariaDB/Columnstore/lib/libnetsnmp.so.5.2.1 -/usr/local/MariaDB/Columnstore/lib/libnetsnmptrapd.so.5.2.1 -/usr/local/MariaDB/Columnstore/lib/liboamcpp.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libsnmpmanager.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libthreadpool.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libwindowfunction.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libwriteengine.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libwriteengineclient.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libbrm.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/librwlock.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libdataconvert.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/librowgroup.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libcacheutils.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libcommon.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libboost_idb.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libcompress.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libddlcleanuputil.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libbatchloader.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libmysqlcl_idb.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libquerystats.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libwriteengineredistribute.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libjemalloc.so.3.3.0 -/usr/local/MariaDB/Columnstore/lib/libidbdatafile.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/hdfs-20.so -/usr/local/MariaDB/Columnstore/lib/hdfs-12.so -/usr/local/MariaDB/Columnstore/lib/libgcc_s.so.1 -/usr/local/MariaDB/Columnstore/lib/libstdc++.so.6.0.14 -/usr/local/MariaDB/Columnstore/lib/libthrift.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libquerytele.so.1.0.0 - -%files storage-engine -/usr/local/MariaDB/Columnstore/lib/libcalmysql.so.1.0.0 -/usr/local/MariaDB/Columnstore/lib/libudf_mysql.so.1.0.0 - -/usr/local/MariaDB/Columnstore/mysql/mysql-Calpont -/usr/local/MariaDB/Columnstore/mysql/install_calpont_mysql.sh -/usr/local/MariaDB/Columnstore/mysql/syscatalog_mysql.sql -/usr/local/MariaDB/Columnstore/mysql/dumpcat_mysql.sql -/usr/local/MariaDB/Columnstore/mysql/dumpcat.pl -/usr/local/MariaDB/Columnstore/mysql/calsetuserpriority.sql -/usr/local/MariaDB/Columnstore/mysql/calremoveuserpriority.sql -/usr/local/MariaDB/Columnstore/mysql/calshowprocesslist.sql - -%config /usr/local/MariaDB/Columnstore/mysql/my.cnf - -# -# Scriptlets -# for an install, pre & post run with $1 set to 1 -# for an erase, preun & postun run with $1 set to 0 -# for an upgrade, pre & post run first, with $1 set to 2 then the _old_ preun & postun run with $1 set to 1 - -%post platform -rpmmode=install -if [ "$1" -eq "$1" 2> /dev/null ]; then - if [ $1 -ne 1 ]; then - rpmmode=upgrade - fi -fi - -prefix=/usr/local - -test -x /usr/local/MariaDB/Columnstore/bin/post-install && /usr/local/MariaDB/Columnstore/bin/post-install --prefix=$prefix --rpmmode=$rpmmode - -echo "InfinIDB RPM install completed" - -%post libs -rpmmode=install -if [ "$1" -eq "$1" 2> /dev/null ]; then - if [ $1 -ne 1 ]; then - rpmmode=upgrade - fi -fi - -prefix=/usr/local - -echo "InfinIDB RPM install completed" - -%post storage-engine -rpmmode=install -if [ "$1" -eq "$1" 2> /dev/null ]; then - if [ $1 -ne 1 ]; then - rpmmode=upgrade - fi -fi - -prefix=/usr/local - -echo "InfinIDB RPM install completed" - - -%post enterprise -rpmmode=install -if [ "$1" -eq "$1" 2> /dev/null ]; then - if [ $1 -ne 1 ]; then - rpmmode=upgrade - fi -fi - -prefix=/usr/local - -echo "InfinIDB RPM install completed" - -%preun platform -rpmmode=upgrade -if [ "$1" -eq "$1" 2> /dev/null ]; then - if [ $1 -ne 1 ]; then - rpmmode=erase - fi -else - rpmmode=erase -fi - -if [ $rpmmode = erase ]; then - test -x /usr/local/MariaDB/Columnstore/bin/pre-uninstall && /usr/local/MariaDB/Columnstore/bin/pre-uninstall -fi - -exit 0 - -%preun libs -rpmmode=upgrade -if [ "$1" -eq "$1" 2> /dev/null ]; then - if [ $1 -ne 1 ]; then - rpmmode=erase - fi -else - rpmmode=erase -fi - -exit 0 - -%preun storage-engine -rpmmode=upgrade -if [ "$1" -eq "$1" 2> /dev/null ]; then - if [ $1 -ne 1 ]; then - rpmmode=erase - fi -else - rpmmode=erase -fi - -exit 0 - -%preun enterprise -rpmmode=upgrade -if [ "$1" -eq "$1" 2> /dev/null ]; then - if [ $1 -ne 1 ]; then - rpmmode=erase - fi -else - rpmmode=erase -fi - -exit 0 - - diff --git a/build/files.lst~ b/build/files.lst~ deleted file mode 100644 index 2a063ac54..000000000 --- a/build/files.lst~ +++ /dev/null @@ -1,3 +0,0 @@ -./my.cnf -./mysql-Calpont -./install_calpont_mysql.sh diff --git a/build/releasenum~ b/build/releasenum~ deleted file mode 100644 index 159b11e89..000000000 --- a/build/releasenum~ +++ /dev/null @@ -1,5 +0,0 @@ -# - -version=5.0 -release=0 - diff --git a/config.h b/config.h deleted file mode 100644 index 4e46cbd6e..000000000 --- a/config.h +++ /dev/null @@ -1,398 +0,0 @@ -/* config.h. Generated by configure. */ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP - systems. This function is required for `alloca.c' support on those systems. - */ -/* #undef CRAY_STACKSEG_END */ - -/* Define to 1 if using `alloca.c'. */ -/* #undef C_ALLOCA */ - -/* Define to 1 if you have the `alarm' function. */ -#define HAVE_ALARM 1 - -/* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 - -/* Define to 1 if you have and it should be used (not on Ultrix). - */ -#define HAVE_ALLOCA_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_ARPA_INET_H 1 - -/* Define to 1 if you have the `btowc' function. */ -/* #undef HAVE_BTOWC */ - -/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. - */ -/* #undef HAVE_DECL_GETENV */ - -/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you - don't. */ -#define HAVE_DECL_STRERROR_R 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_DLFCN_H 1 - -/* Define to 1 if you have the `dup2' function. */ -#define HAVE_DUP2 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_FCNTL_H 1 - -/* Define to 1 if you have the `floor' function. */ -#define HAVE_FLOOR 1 - -/* Define to 1 if you have the `fork' function. */ -#define HAVE_FORK 1 - -/* Define to 1 if you have the `ftime' function. */ -#define HAVE_FTIME 1 - -/* Define to 1 if you have the `ftruncate' function. */ -#define HAVE_FTRUNCATE 1 - -/* Define to 1 if you have the `gethostbyname' function. */ -#define HAVE_GETHOSTBYNAME 1 - -/* Define to 1 if you have the `getpagesize' function. */ -#define HAVE_GETPAGESIZE 1 - -/* Define to 1 if you have the `gettimeofday' function. */ -#define HAVE_GETTIMEOFDAY 1 - -/* Define to 1 if you have the `inet_ntoa' function. */ -#define HAVE_INET_NTOA 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_INTTYPES_H 1 - -/* Define to 1 if you have the `isascii' function. */ -#define HAVE_ISASCII 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_LIMITS_H 1 - -/* Define to 1 if you have the `localtime_r' function. */ -#define HAVE_LOCALTIME_R 1 - -/* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ -#define HAVE_MALLOC 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_MALLOC_H 1 - -/* Define to 1 if you have the `mbsrtowcs' function. */ -/* #undef HAVE_MBSRTOWCS */ - -/* Define to 1 if declares mbstate_t. */ -#define HAVE_MBSTATE_T 1 - -/* Define to 1 if you have the `memchr' function. */ -#define HAVE_MEMCHR 1 - -/* Define to 1 if you have the `memmove' function. */ -#define HAVE_MEMMOVE 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_MEMORY_H 1 - -/* Define to 1 if you have the `mempcpy' function. */ -/* #undef HAVE_MEMPCPY */ - -/* Define to 1 if you have the `memset' function. */ -#define HAVE_MEMSET 1 - -/* Define to 1 if you have the `mkdir' function. */ -#define HAVE_MKDIR 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_NCURSES_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_NETDB_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_NETINET_IN_H 1 - -/* Define to 1 if you have the `pow' function. */ -#define HAVE_POW 1 - -/* Define to 1 if the system has the type `ptrdiff_t'. */ -#define HAVE_PTRDIFF_T 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_READLINE_READLINE_H 1 - -/* Define to 1 if you have the `regcomp' function. */ -#define HAVE_REGCOMP 1 - -/* Define to 1 if you have the `rmdir' function. */ -#define HAVE_RMDIR 1 - -/* Define to 1 if you have the `select' function. */ -#define HAVE_SELECT 1 - -/* Define to 1 if you have the `setenv' function. */ -#define HAVE_SETENV 1 - -/* Define to 1 if you have the `setlocale' function. */ -#define HAVE_SETLOCALE 1 - -/* Define to 1 if you have the `socket' function. */ -#define HAVE_SOCKET 1 - -/* Define to 1 if `stat' has the bug that it succeeds when given the - zero-length file name argument. */ -/* #undef HAVE_STAT_EMPTY_STRING_BUG */ - -/* Define to 1 if stdbool.h conforms to C99. */ -#define HAVE_STDBOOL_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDDEF_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDINT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDLIB_H 1 - -/* Define to 1 if you have the `strcasecmp' function. */ -#define HAVE_STRCASECMP 1 - -/* Define to 1 if you have the `strchr' function. */ -#define HAVE_STRCHR 1 - -/* Define to 1 if you have the `strcspn' function. */ -#define HAVE_STRCSPN 1 - -/* Define to 1 if you have the `strdup' function. */ -#define HAVE_STRDUP 1 - -/* Define to 1 if you have the `strerror' function. */ -#define HAVE_STRERROR 1 - -/* Define to 1 if you have the `strerror_r' function. */ -#define HAVE_STRERROR_R 1 - -/* Define to 1 if you have the `strftime' function. */ -#define HAVE_STRFTIME 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRING_H 1 - -/* Define to 1 if you have the `strrchr' function. */ -#define HAVE_STRRCHR 1 - -/* Define to 1 if you have the `strspn' function. */ -#define HAVE_STRSPN 1 - -/* Define to 1 if you have the `strstr' function. */ -#define HAVE_STRSTR 1 - -/* Define to 1 if you have the `strtol' function. */ -#define HAVE_STRTOL 1 - -/* Define to 1 if you have the `strtoul' function. */ -#define HAVE_STRTOUL 1 - -/* Define to 1 if you have the `strtoull' function. */ -#define HAVE_STRTOULL 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYSLOG_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_FILE_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_MOUNT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_SELECT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_SOCKET_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_STATFS_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TIMEB_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TIME_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have that is POSIX.1 compatible. */ -#define HAVE_SYS_WAIT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_UNISTD_H 1 - -/* Define to 1 if you have the `utime' function. */ -#define HAVE_UTIME 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_UTIME_H 1 - -/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */ -/* #undef HAVE_UTIME_NULL */ - -/* Define to 1 if you have the header file. */ -#define HAVE_VALUES_H 1 - -/* Define to 1 if you have the `vfork' function. */ -#define HAVE_VFORK 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_VFORK_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_WCHAR_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_WCTYPE_H */ - -/* Define to 1 if you have the `wmempcpy' function. */ -/* #undef HAVE_WMEMPCPY */ - -/* Define to 1 if `fork' works. */ -/* #undef HAVE_WORKING_FORK */ - -/* Define to 1 if `vfork' works. */ -#define HAVE_WORKING_VFORK 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_ZLIB_H 1 - -/* Define to 1 if the system has the type `_Bool'. */ -/* #undef HAVE__BOOL */ - -/* Define to 1 if `lstat' dereferences a symlink specified with a trailing - slash. */ -#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 - -/* Name of package */ -#define PACKAGE "columnstore" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "jira.mariadb.org" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "columnstore" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "columnstore 1.0.1" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "columnstore" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "1.0.1" - -/* Define to 1 if the C compiler supports function prototypes. */ -#define PROTOTYPES 1 - -/* Define as the return type of signal handlers (`int' or `void'). */ -#define RETSIGTYPE void - -/* Define to the type of arg 1 for `select'. */ -#define SELECT_TYPE_ARG1 int - -/* Define to the type of args 2, 3 and 4 for `select'. */ -#define SELECT_TYPE_ARG234 (fd_set *) - -/* Define to the type of arg 5 for `select'. */ -#define SELECT_TYPE_ARG5 (struct timeval *) - -/* Define to 1 if the `setvbuf' function takes the buffering type as its - second argument and the buffer pointer as the third, as on System V before - release 3. */ -/* #undef SETVBUF_REVERSED */ - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown */ -/* #undef STACK_DIRECTION */ - -/* Define to 1 if the `S_IS*' macros in do not work properly. */ -/* #undef STAT_MACROS_BROKEN */ - -/* Define to 1 if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define to 1 if strerror_r returns char *. */ -#define STRERROR_R_CHAR_P 1 - -/* Define to 1 if you can safely include both and . */ -#define TIME_WITH_SYS_TIME 1 - -/* Define to 1 if your declares `struct tm'. */ -/* #undef TM_IN_SYS_TIME */ - -/* Version number of package */ -#define VERSION "4.6.1" - -/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a - `char[]'. */ -/* #undef YYTEXT_POINTER */ - -/* Define like PROTOTYPES; this can be used by system headers. */ -#define __PROTOTYPES 1 - -/* Define to empty if `const' does not conform to ANSI C. */ -/* #undef const */ - -/* Define to rpl_fnmatch if the replacement function should be used. */ -/* #undef fnmatch */ - -/* 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 a type if does not define. */ -/* #undef mbstate_t */ - -/* Define to `int' if does not define. */ -/* #undef mode_t */ - -/* Define to `long' if does not define. */ -/* #undef off_t */ - -/* Define to `int' if does not define. */ -/* #undef pid_t */ - -/* Define to equivalent of C99 restrict keyword, or to nothing if this is not - supported. Do not define if restrict is supported directly. */ -#define restrict __restrict - -/* Define to `unsigned' if does not define. */ -/* #undef size_t */ - -/* Define as `fork' if `vfork' does not work. */ -/* #undef vfork */ - -/* Define to empty if the keyword `volatile' does not work. Warning: valid - code using `volatile' can become incorrect without. Disable with care. */ -/* #undef volatile */ diff --git a/config.h.in~ b/config.h.in~ deleted file mode 100644 index b14d81050..000000000 --- a/config.h.in~ +++ /dev/null @@ -1,397 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP - systems. This function is required for `alloca.c' support on those systems. - */ -#undef CRAY_STACKSEG_END - -/* Define to 1 if using `alloca.c'. */ -#undef C_ALLOCA - -/* Define to 1 if you have the `alarm' function. */ -#undef HAVE_ALARM - -/* Define to 1 if you have `alloca', as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define to 1 if you have and it should be used (not on Ultrix). - */ -#undef HAVE_ALLOCA_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_ARPA_INET_H - -/* Define to 1 if you have the `btowc' function. */ -#undef HAVE_BTOWC - -/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. - */ -#undef HAVE_DECL_GETENV - -/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you - don't. */ -#undef HAVE_DECL_STRERROR_R - -/* Define to 1 if you have the header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the `dup2' function. */ -#undef HAVE_DUP2 - -/* Define to 1 if you have the header file. */ -#undef HAVE_FCNTL_H - -/* Define to 1 if you have the `floor' function. */ -#undef HAVE_FLOOR - -/* Define to 1 if you have the `fork' function. */ -#undef HAVE_FORK - -/* Define to 1 if you have the `ftime' function. */ -#undef HAVE_FTIME - -/* Define to 1 if you have the `ftruncate' function. */ -#undef HAVE_FTRUNCATE - -/* Define to 1 if you have the `gethostbyname' function. */ -#undef HAVE_GETHOSTBYNAME - -/* Define to 1 if you have the `getpagesize' function. */ -#undef HAVE_GETPAGESIZE - -/* Define to 1 if you have the `gettimeofday' function. */ -#undef HAVE_GETTIMEOFDAY - -/* Define to 1 if you have the `inet_ntoa' function. */ -#undef HAVE_INET_NTOA - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the `isascii' function. */ -#undef HAVE_ISASCII - -/* Define to 1 if you have the header file. */ -#undef HAVE_LIMITS_H - -/* Define to 1 if you have the `localtime_r' function. */ -#undef HAVE_LOCALTIME_R - -/* 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_MALLOC_H - -/* Define to 1 if you have the `mbsrtowcs' function. */ -#undef HAVE_MBSRTOWCS - -/* Define to 1 if declares mbstate_t. */ -#undef HAVE_MBSTATE_T - -/* Define to 1 if you have the `memchr' function. */ -#undef HAVE_MEMCHR - -/* Define to 1 if you have the `memmove' function. */ -#undef HAVE_MEMMOVE - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the `mempcpy' function. */ -#undef HAVE_MEMPCPY - -/* 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_NCURSES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NETDB_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NETINET_IN_H - -/* Define to 1 if you have the `pow' function. */ -#undef HAVE_POW - -/* Define to 1 if the system has the type `ptrdiff_t'. */ -#undef HAVE_PTRDIFF_T - -/* Define to 1 if you have the header file. */ -#undef HAVE_READLINE_READLINE_H - -/* Define to 1 if you have the `regcomp' function. */ -#undef HAVE_REGCOMP - -/* Define to 1 if you have the `rmdir' function. */ -#undef HAVE_RMDIR - -/* Define to 1 if you have the `select' function. */ -#undef HAVE_SELECT - -/* Define to 1 if you have the `setenv' function. */ -#undef HAVE_SETENV - -/* Define to 1 if you have the `setlocale' function. */ -#undef HAVE_SETLOCALE - -/* Define to 1 if you have the `socket' function. */ -#undef HAVE_SOCKET - -/* Define to 1 if `stat' has the bug that it succeeds when given the - zero-length file name argument. */ -#undef HAVE_STAT_EMPTY_STRING_BUG - -/* 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 `strcasecmp' function. */ -#undef HAVE_STRCASECMP - -/* Define to 1 if you have the `strchr' function. */ -#undef HAVE_STRCHR - -/* Define to 1 if you have the `strcspn' function. */ -#undef HAVE_STRCSPN - -/* Define to 1 if you have the `strdup' function. */ -#undef HAVE_STRDUP - -/* Define to 1 if you have the `strerror' function. */ -#undef HAVE_STRERROR - -/* Define to 1 if you have the `strerror_r' function. */ -#undef HAVE_STRERROR_R - -/* Define to 1 if you have the `strftime' function. */ -#undef HAVE_STRFTIME - -/* 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 `strrchr' function. */ -#undef HAVE_STRRCHR - -/* Define to 1 if you have the `strspn' function. */ -#undef HAVE_STRSPN - -/* Define to 1 if you have the `strstr' function. */ -#undef HAVE_STRSTR - -/* Define to 1 if you have the `strtol' function. */ -#undef HAVE_STRTOL - -/* 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_MOUNT_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_STATFS_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_TIMEB_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 `utime' function. */ -#undef HAVE_UTIME - -/* Define to 1 if you have the header file. */ -#undef HAVE_UTIME_H - -/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */ -#undef HAVE_UTIME_NULL - -/* Define to 1 if you have the header file. */ -#undef HAVE_VALUES_H - -/* Define to 1 if you have the `vfork' function. */ -#undef HAVE_VFORK - -/* Define to 1 if you have the header file. */ -#undef HAVE_VFORK_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_WCHAR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_WCTYPE_H - -/* Define to 1 if you have the `wmempcpy' function. */ -#undef HAVE_WMEMPCPY - -/* Define to 1 if `fork' works. */ -#undef HAVE_WORKING_FORK - -/* Define to 1 if `vfork' works. */ -#undef HAVE_WORKING_VFORK - -/* Define to 1 if you have the header file. */ -#undef HAVE_ZLIB_H - -/* Define to 1 if the system has the type `_Bool'. */ -#undef HAVE__BOOL - -/* Define to 1 if `lstat' dereferences a symlink specified with a trailing - slash. */ -#undef LSTAT_FOLLOWS_SLASHED_SYMLINK - -/* 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 1 if the C compiler supports function prototypes. */ -#undef PROTOTYPES - -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - -/* 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 - -/* Define to 1 if the `setvbuf' function takes the buffering type as its - second argument and the buffer pointer as the third, as on System V before - release 3. */ -#undef SETVBUF_REVERSED - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown */ -#undef STACK_DIRECTION - -/* Define to 1 if the `S_IS*' macros in do not work properly. */ -#undef STAT_MACROS_BROKEN - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if strerror_r returns char *. */ -#undef STRERROR_R_CHAR_P - -/* Define to 1 if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - -/* Define to 1 if your declares `struct tm'. */ -#undef TM_IN_SYS_TIME - -/* Version number of package */ -#undef VERSION - -/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a - `char[]'. */ -#undef YYTEXT_POINTER - -/* Define like PROTOTYPES; this can be used by system headers. */ -#undef __PROTOTYPES - -/* Define to empty if `const' does not conform to ANSI C. */ -#undef const - -/* Define to rpl_fnmatch if the replacement function should be used. */ -#undef fnmatch - -/* 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 a type if does not define. */ -#undef mbstate_t - -/* Define to `int' if does not define. */ -#undef mode_t - -/* Define to `long' if does not define. */ -#undef off_t - -/* Define to `int' if does not define. */ -#undef pid_t - -/* Define to equivalent of C99 restrict keyword, or to nothing if this is not - supported. Do not define if restrict is supported directly. */ -#undef restrict - -/* Define to `unsigned' if does not define. */ -#undef size_t - -/* Define as `fork' if `vfork' does not work. */ -#undef vfork - -/* Define to empty if the keyword `volatile' does not work. Warning: valid - code using `volatile' can become incorrect without. Disable with care. */ -#undef volatile diff --git a/config.log~ b/config.log~ deleted file mode 100644 index fb9a18023..000000000 --- a/config.log~ +++ /dev/null @@ -1,5068 +0,0 @@ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by infinidb configure 4.6.1, which was -generated by GNU Autoconf 2.59. Invocation command line was - - $ ./configure - -## --------- ## -## Platform. ## -## --------- ## - -hostname = srvhall03 -uname -m = x86_64 -uname -r = 2.6.32-431.29.2.el6.x86_64 -uname -s = Linux -uname -v = #1 SMP Tue Sep 9 21:36:05 UTC 2014 - -/usr/bin/uname -p = unknown -/bin/uname -X = unknown - -/bin/arch = x86_64 -/usr/bin/arch -k = unknown -/usr/convex/getsysinfo = unknown -hostinfo = unknown -/bin/machine = unknown -/usr/bin/oslevel = unknown -/bin/universe = unknown - -PATH: /usr/local/Calpont/bin -PATH: /home/calpont/bin -PATH: /usr/local/Calpont/bin -PATH: /home/calpont/bin -PATH: /usr/lib64/qt-3.3/bin -PATH: /usr/local/bin -PATH: /usr/bin -PATH: /bin -PATH: /usr/local/sbin -PATH: /usr/sbin -PATH: /sbin -PATH: /home/calpont/bin - - -## ----------- ## -## Core tests. ## -## ----------- ## - -configure:1567: checking for a BSD-compatible install -configure:1623: result: /usr/bin/install -p -configure:1634: checking whether build environment is sane -configure:1677: result: yes -configure:1742: checking for gawk -configure:1758: found /usr/bin/gawk -configure:1768: result: gawk -configure:1778: checking whether make sets $(MAKE) -configure:1798: result: yes -configure:2025: checking for gcc -configure:2041: found /usr/bin/gcc -configure:2051: result: gcc -configure:2295: checking for C compiler version -configure:2298: gcc --version &5 -gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11) -Copyright (C) 2010 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. - -configure:2301: $? = 0 -configure:2303: gcc -v &5 -Using built-in specs. -Target: x86_64-redhat-linux -Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux -Thread model: posix -gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) -configure:2306: $? = 0 -configure:2308: gcc -V &5 -gcc: '-V' option must have argument -configure:2311: $? = 1 -configure:2334: checking for C compiler default output file name -configure:2337: gcc conftest.c >&5 -configure:2340: $? = 0 -configure:2386: result: a.out -configure:2391: checking whether the C compiler works -configure:2397: ./a.out -configure:2400: $? = 0 -configure:2417: result: yes -configure:2424: checking whether we are cross compiling -configure:2426: result: no -configure:2429: checking for suffix of executables -configure:2431: gcc -o conftest conftest.c >&5 -configure:2434: $? = 0 -configure:2459: result: -configure:2465: checking for suffix of object files -configure:2486: gcc -c conftest.c >&5 -configure:2489: $? = 0 -configure:2511: result: o -configure:2515: checking whether we are using the GNU C compiler -configure:2539: gcc -c conftest.c >&5 -configure:2545: $? = 0 -configure:2549: test -z - || test ! -s conftest.err -configure:2552: $? = 0 -configure:2555: test -s conftest.o -configure:2558: $? = 0 -configure:2571: result: yes -configure:2577: checking whether gcc accepts -g -configure:2598: gcc -c -g conftest.c >&5 -configure:2604: $? = 0 -configure:2608: test -z - || test ! -s conftest.err -configure:2611: $? = 0 -configure:2614: test -s conftest.o -configure:2617: $? = 0 -configure:2628: result: yes -configure:2645: checking for gcc option to accept ANSI C -configure:2715: gcc -c conftest.c >&5 -configure:2721: $? = 0 -configure:2725: test -z - || test ! -s conftest.err -configure:2728: $? = 0 -configure:2731: test -s conftest.o -configure:2734: $? = 0 -configure:2752: result: none needed -configure:2770: gcc -c conftest.c >&5 -conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me' -configure:2776: $? = 1 -configure: failed program was: -| #ifndef __cplusplus -| choke me -| #endif -configure:2920: checking for style of include used by make -configure:2948: result: GNU -configure:2976: checking dependency style of gcc -configure:3066: result: gcc3 -configure:3140: checking for g++ -configure:3156: found /usr/bin/g++ -configure:3166: result: g++ -configure:3182: checking for C++ compiler version -configure:3185: g++ --version &5 -g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11) -Copyright (C) 2010 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. - -configure:3188: $? = 0 -configure:3190: g++ -v &5 -Using built-in specs. -Target: x86_64-redhat-linux -Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux -Thread model: posix -gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) -configure:3193: $? = 0 -configure:3195: g++ -V &5 -g++: '-V' option must have argument -configure:3198: $? = 1 -configure:3201: checking whether we are using the GNU C++ compiler -configure:3225: g++ -c conftest.cc >&5 -configure:3231: $? = 0 -configure:3235: test -z - || test ! -s conftest.err -configure:3238: $? = 0 -configure:3241: test -s conftest.o -configure:3244: $? = 0 -configure:3257: result: yes -configure:3263: checking whether g++ accepts -g -configure:3284: g++ -c -g conftest.cc >&5 -configure:3290: $? = 0 -configure:3294: test -z - || test ! -s conftest.err -configure:3297: $? = 0 -configure:3300: test -s conftest.o -configure:3303: $? = 0 -configure:3314: result: yes -configure:3356: g++ -c conftest.cc >&5 -configure:3362: $? = 0 -configure:3366: test -z - || test ! -s conftest.err -configure:3369: $? = 0 -configure:3372: test -s conftest.o -configure:3375: $? = 0 -configure:3401: g++ -c conftest.cc >&5 -conftest.cc: In function 'int main()': -conftest.cc:15: error: 'exit' was not declared in this scope -configure:3407: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| /* end confdefs.h. */ -| -| int -| main () -| { -| exit (42); -| ; -| return 0; -| } -configure:3356: g++ -c conftest.cc >&5 -conftest.cc:11: error: 'void std::exit(int)' should have been declared inside 'std' -configure:3362: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| /* end confdefs.h. */ -| extern "C" void std::exit (int) throw (); using std::exit; -| #include -| int -| main () -| { -| exit (42); -| ; -| return 0; -| } -configure:3356: g++ -c conftest.cc >&5 -conftest.cc:11: error: 'void std::exit(int)' should have been declared inside 'std' -In file included from conftest.cc:12: -/usr/include/stdlib.h:544: error: declaration of 'void std::exit(int) throw ()' throws different exceptions -conftest.cc:11: error: from previous declaration 'void std::exit(int)' -configure:3362: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| /* end confdefs.h. */ -| extern "C" void std::exit (int); using std::exit; -| #include -| int -| main () -| { -| exit (42); -| ; -| return 0; -| } -configure:3356: g++ -c conftest.cc >&5 -configure:3362: $? = 0 -configure:3366: test -z - || test ! -s conftest.err -configure:3369: $? = 0 -configure:3372: test -s conftest.o -configure:3375: $? = 0 -configure:3401: g++ -c conftest.cc >&5 -configure:3407: $? = 0 -configure:3411: test -z - || test ! -s conftest.err -configure:3414: $? = 0 -configure:3417: test -s conftest.o -configure:3420: $? = 0 -configure:3445: checking dependency style of g++ -configure:3535: result: gcc3 -configure:3635: checking build system type -configure:3653: result: x86_64-unknown-linux-gnu -configure:3661: checking host system type -configure:3675: result: x86_64-unknown-linux-gnu -configure:3683: checking for a sed that does not truncate output -configure:3739: result: /bin/sed -configure:3742: checking for egrep -configure:3752: result: grep -E -configure:3768: checking for ld used by gcc -configure:3835: result: /usr/bin/ld -configure:3844: checking if the linker (/usr/bin/ld) is GNU ld -configure:3859: result: yes -configure:3864: checking for /usr/bin/ld option to reload object files -configure:3871: result: -r -configure:3889: checking for BSD-compatible nm -configure:3938: result: /usr/bin/nm -B -configure:3942: checking whether ln -s works -configure:3946: result: yes -configure:3953: checking how to recognise dependent libraries -configure:4129: result: pass_all -configure:4217: g++ -c conftest.cc >&5 -configure:4220: $? = 0 -configure:4366: checking how to run the C preprocessor -configure:4401: gcc -E conftest.c -configure:4407: $? = 0 -configure:4439: gcc -E conftest.c -conftest.c:14:28: error: ac_nonexistent.h: No such file or directory -configure:4445: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| /* end confdefs.h. */ -| #include -configure:4484: result: gcc -E -configure:4508: gcc -E conftest.c -configure:4514: $? = 0 -configure:4546: gcc -E conftest.c -conftest.c:14:28: error: ac_nonexistent.h: No such file or directory -configure:4552: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| /* end confdefs.h. */ -| #include -configure:4596: checking for ANSI C header files -configure:4621: gcc -c conftest.c >&5 -configure:4627: $? = 0 -configure:4631: test -z - || test ! -s conftest.err -configure:4634: $? = 0 -configure:4637: test -s conftest.o -configure:4640: $? = 0 -configure:4729: gcc -o conftest conftest.c >&5 -conftest.c: In function 'main': -conftest.c:31: warning: incompatible implicit declaration of built-in function 'exit' -configure:4732: $? = 0 -configure:4734: ./conftest -configure:4737: $? = 0 -configure:4752: result: yes -configure:4776: checking for sys/types.h -configure:4792: gcc -c conftest.c >&5 -configure:4798: $? = 0 -configure:4802: test -z - || test ! -s conftest.err -configure:4805: $? = 0 -configure:4808: test -s conftest.o -configure:4811: $? = 0 -configure:4822: result: yes -configure:4776: checking for sys/stat.h -configure:4792: gcc -c conftest.c >&5 -configure:4798: $? = 0 -configure:4802: test -z - || test ! -s conftest.err -configure:4805: $? = 0 -configure:4808: test -s conftest.o -configure:4811: $? = 0 -configure:4822: result: yes -configure:4776: checking for stdlib.h -configure:4792: gcc -c conftest.c >&5 -configure:4798: $? = 0 -configure:4802: test -z - || test ! -s conftest.err -configure:4805: $? = 0 -configure:4808: test -s conftest.o -configure:4811: $? = 0 -configure:4822: result: yes -configure:4776: checking for string.h -configure:4792: gcc -c conftest.c >&5 -configure:4798: $? = 0 -configure:4802: test -z - || test ! -s conftest.err -configure:4805: $? = 0 -configure:4808: test -s conftest.o -configure:4811: $? = 0 -configure:4822: result: yes -configure:4776: checking for memory.h -configure:4792: gcc -c conftest.c >&5 -configure:4798: $? = 0 -configure:4802: test -z - || test ! -s conftest.err -configure:4805: $? = 0 -configure:4808: test -s conftest.o -configure:4811: $? = 0 -configure:4822: result: yes -configure:4776: checking for strings.h -configure:4792: gcc -c conftest.c >&5 -configure:4798: $? = 0 -configure:4802: test -z - || test ! -s conftest.err -configure:4805: $? = 0 -configure:4808: test -s conftest.o -configure:4811: $? = 0 -configure:4822: result: yes -configure:4776: checking for inttypes.h -configure:4792: gcc -c conftest.c >&5 -configure:4798: $? = 0 -configure:4802: test -z - || test ! -s conftest.err -configure:4805: $? = 0 -configure:4808: test -s conftest.o -configure:4811: $? = 0 -configure:4822: result: yes -configure:4776: checking for stdint.h -configure:4792: gcc -c conftest.c >&5 -configure:4798: $? = 0 -configure:4802: test -z - || test ! -s conftest.err -configure:4805: $? = 0 -configure:4808: test -s conftest.o -configure:4811: $? = 0 -configure:4822: result: yes -configure:4776: checking for unistd.h -configure:4792: gcc -c conftest.c >&5 -configure:4798: $? = 0 -configure:4802: test -z - || test ! -s conftest.err -configure:4805: $? = 0 -configure:4808: test -s conftest.o -configure:4811: $? = 0 -configure:4822: result: yes -configure:4848: checking dlfcn.h usability -configure:4860: gcc -c conftest.c >&5 -configure:4866: $? = 0 -configure:4870: test -z - || test ! -s conftest.err -configure:4873: $? = 0 -configure:4876: test -s conftest.o -configure:4879: $? = 0 -configure:4889: result: yes -configure:4893: checking dlfcn.h presence -configure:4903: gcc -E conftest.c -configure:4909: $? = 0 -configure:4929: result: yes -configure:4964: checking for dlfcn.h -configure:4971: result: yes -configure:4994: checking how to run the C++ preprocessor -configure:5025: g++ -E conftest.cc -configure:5031: $? = 0 -configure:5063: g++ -E conftest.cc -conftest.cc:25:28: error: ac_nonexistent.h: No such file or directory -configure:5069: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| /* end confdefs.h. */ -| #include -configure:5108: result: g++ -E -configure:5132: g++ -E conftest.cc -configure:5138: $? = 0 -configure:5170: g++ -E conftest.cc -conftest.cc:25:28: error: ac_nonexistent.h: No such file or directory -configure:5176: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| /* end confdefs.h. */ -| #include -configure:5273: checking for g77 -configure:5302: result: no -configure:5273: checking for f77 -configure:5302: result: no -configure:5273: checking for xlf -configure:5302: result: no -configure:5273: checking for frt -configure:5302: result: no -configure:5273: checking for pgf77 -configure:5302: result: no -configure:5273: checking for fort77 -configure:5302: result: no -configure:5273: checking for fl32 -configure:5302: result: no -configure:5273: checking for af77 -configure:5302: result: no -configure:5273: checking for f90 -configure:5302: result: no -configure:5273: checking for xlf90 -configure:5302: result: no -configure:5273: checking for pgf90 -configure:5302: result: no -configure:5273: checking for epcf90 -configure:5302: result: no -configure:5273: checking for f95 -configure:5302: result: no -configure:5273: checking for fort -configure:5302: result: no -configure:5273: checking for xlf95 -configure:5302: result: no -configure:5273: checking for ifc -configure:5302: result: no -configure:5273: checking for efc -configure:5302: result: no -configure:5273: checking for pgf95 -configure:5302: result: no -configure:5273: checking for lf95 -configure:5302: result: no -configure:5273: checking for gfortran -configure:5302: result: no -configure:5314: checking for Fortran 77 compiler version -configure:5317: --version &5 -./configure: line 5318: --version: command not found -configure:5320: $? = 127 -configure:5322: -v &5 -./configure: line 5323: -v: command not found -configure:5325: $? = 127 -configure:5327: -V &5 -./configure: line 5328: -V: command not found -configure:5330: $? = 127 -configure:5338: checking whether we are using the GNU Fortran 77 compiler -configure:5352: -c conftest.F >&5 -./configure: line 5353: -c: command not found -configure:5358: $? = 127 -configure: failed program was: -| program main -| #ifndef __GNUC__ -| choke me -| #endif -| -| end -configure:5384: result: no -configure:5390: checking whether accepts -g -configure:5402: -c -g conftest.f >&5 -./configure: line 5403: -c: command not found -configure:5408: $? = 127 -configure: failed program was: -| program main -| -| end -configure:5433: result: no -configure:5463: checking the maximum length of command line arguments -configure:5572: result: 32768 -configure:5583: checking command to parse /usr/bin/nm -B output from gcc object -configure:5688: g++ -c conftest.cc >&5 -configure:5691: $? = 0 -configure:5695: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm -configure:5698: $? = 0 -configure:5750: g++ -o conftest conftest.cc conftstm.o >&5 -configure:5753: $? = 0 -configure:5791: result: ok -configure:5795: checking for objdir -configure:5810: result: .libs -configure:5900: checking for ar -configure:5916: found /usr/bin/ar -configure:5927: result: ar -configure:5980: checking for ranlib -configure:5996: found /usr/bin/ranlib -configure:6007: result: ranlib -configure:6060: checking for strip -configure:6076: found /usr/bin/strip -configure:6087: result: strip -configure:6359: checking if gcc supports -fno-rtti -fno-exceptions -configure:6377: gcc -c -fno-rtti -fno-exceptions conftest.c >&5 -cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C -configure:6381: $? = 0 -configure:6394: result: no -configure:6409: checking for gcc option to produce PIC -configure:6619: result: -fPIC -configure:6627: checking if gcc PIC flag -fPIC works -configure:6645: gcc -c -fPIC -DPIC conftest.c >&5 -configure:6649: $? = 0 -configure:6662: result: yes -configure:6690: checking if gcc static flag -static works -configure:6718: result: no -configure:6728: checking if gcc supports -c -o file.o -configure:6749: gcc -c -o out/conftest2.o conftest.c >&5 -configure:6753: $? = 0 -configure:6775: result: yes -configure:6801: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries -configure:7759: result: yes -configure:7780: checking whether -lc should be explicitly linked in -configure:7785: gcc -c conftest.c >&5 -configure:7788: $? = 0 -configure:7803: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1 -configure:7806: $? = 0 -configure:7818: result: no -configure:7826: checking dynamic linker characteristics -configure:8219: gcc -c conftest.c >&5 -configure:8222: $? = 0 -configure:8435: result: GNU/Linux ld.so -configure:8444: checking how to hardcode library paths into programs -configure:8469: result: immediate -configure:8483: checking whether stripping libraries is possible -configure:8488: result: yes -configure:9322: checking if libtool supports shared libraries -configure:9324: result: yes -configure:9327: checking whether to build shared libraries -configure:9348: result: yes -configure:9351: checking whether to build static libraries -configure:9355: result: no -configure:9447: creating libtool -configure:10038: checking for ld used by g++ -configure:10105: result: /usr/bin/ld -m elf_x86_64 -configure:10114: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld -configure:10129: result: yes -configure:10180: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries -configure:11118: result: yes -configure:11136: g++ -c conftest.cpp >&5 -configure:11139: $? = 0 -configure:11258: checking for g++ option to produce PIC -configure:11532: result: -fPIC -configure:11540: checking if g++ PIC flag -fPIC works -configure:11558: g++ -c -fPIC -DPIC conftest.cpp >&5 -configure:11562: $? = 0 -configure:11575: result: yes -configure:11603: checking if g++ static flag -static works -configure:11631: result: no -configure:11641: checking if g++ supports -c -o file.o -configure:11662: g++ -c -o out/conftest2.o conftest.cpp >&5 -configure:11666: $? = 0 -configure:11688: result: yes -configure:11714: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries -configure:11739: result: yes -configure:11806: checking dynamic linker characteristics -configure:12199: g++ -c conftest.cpp >&5 -configure:12202: $? = 0 -configure:12415: result: GNU/Linux ld.so -configure:12424: checking how to hardcode library paths into programs -configure:12449: result: immediate -configure:18666: checking for a BSD-compatible install -configure:18722: result: /usr/bin/install -p -configure:18737: checking for flex -configure:18753: found /usr/bin/flex -configure:18763: result: flex -configure:18776: checking for yywrap in -lfl -configure:18806: g++ -o conftest conftest.cc -lfl >&5 -configure:18812: $? = 0 -configure:18816: test -z - || test ! -s conftest.err -configure:18819: $? = 0 -configure:18822: test -s conftest -configure:18825: $? = 0 -configure:18838: result: yes -configure:18916: checking lex output file root -configure:18927: flex conftest.l -configure:18930: $? = 0 -configure:18942: result: lex.yy -configure:18947: checking whether yytext is a pointer -configure:18963: g++ -o conftest conftest.cc -lfl >&5 -/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libfl.a(libmain.o): In function `main': -(.text+0xb): undefined reference to `yylex' -collect2: ld returned 1 exit status -configure:18969: $? = 1 -configure: failed program was: -| -| #line 3 "lex.yy.c" -| -| #define YY_INT_ALIGNED short int -| -| /* A lexical scanner generated by flex */ -| -| #define FLEX_SCANNER -| #define YY_FLEX_MAJOR_VERSION 2 -| #define YY_FLEX_MINOR_VERSION 5 -| #define YY_FLEX_SUBMINOR_VERSION 35 -| #if YY_FLEX_SUBMINOR_VERSION > 0 -| #define FLEX_BETA -| #endif -| -| /* First, we deal with platform-specific or compiler-specific issues. */ -| -| /* begin standard C headers. */ -| #include -| #include -| #include -| #include -| -| /* end standard C headers. */ -| -| /* flex integer type definitions */ -| -| #ifndef FLEXINT_H -| #define FLEXINT_H -| -| /* C99 systems have . Non-C99 systems may or may not. */ -| -| #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -| -| /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, -| * if you want the limit (max/min) macros for int types. -| */ -| #ifndef __STDC_LIMIT_MACROS -| #define __STDC_LIMIT_MACROS 1 -| #endif -| -| #include -| typedef int8_t flex_int8_t; -| typedef uint8_t flex_uint8_t; -| typedef int16_t flex_int16_t; -| typedef uint16_t flex_uint16_t; -| typedef int32_t flex_int32_t; -| typedef uint32_t flex_uint32_t; -| #else -| typedef signed char flex_int8_t; -| typedef short int flex_int16_t; -| typedef int flex_int32_t; -| typedef unsigned char flex_uint8_t; -| typedef unsigned short int flex_uint16_t; -| typedef unsigned int flex_uint32_t; -| #endif /* ! C99 */ -| -| /* Limits of integral types. */ -| #ifndef INT8_MIN -| #define INT8_MIN (-128) -| #endif -| #ifndef INT16_MIN -| #define INT16_MIN (-32767-1) -| #endif -| #ifndef INT32_MIN -| #define INT32_MIN (-2147483647-1) -| #endif -| #ifndef INT8_MAX -| #define INT8_MAX (127) -| #endif -| #ifndef INT16_MAX -| #define INT16_MAX (32767) -| #endif -| #ifndef INT32_MAX -| #define INT32_MAX (2147483647) -| #endif -| #ifndef UINT8_MAX -| #define UINT8_MAX (255U) -| #endif -| #ifndef UINT16_MAX -| #define UINT16_MAX (65535U) -| #endif -| #ifndef UINT32_MAX -| #define UINT32_MAX (4294967295U) -| #endif -| -| #endif /* ! FLEXINT_H */ -| -| #ifdef __cplusplus -| -| /* The "const" storage-class-modifier is valid. */ -| #define YY_USE_CONST -| -| #else /* ! __cplusplus */ -| -| /* C99 requires __STDC__ to be defined as 1. */ -| #if defined (__STDC__) -| -| #define YY_USE_CONST -| -| #endif /* defined (__STDC__) */ -| #endif /* ! __cplusplus */ -| -| #ifdef YY_USE_CONST -| #define yyconst const -| #else -| #define yyconst -| #endif -| -| /* Returned upon end-of-file. */ -| #define YY_NULL 0 -| -| /* Promotes a possibly negative, possibly signed char to an unsigned -| * integer for use as an array index. If the signed char is negative, -| * we want to instead treat it as an 8-bit unsigned char, hence the -| * double cast. -| */ -| #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) -| -| /* Enter a start condition. This macro really ought to take a parameter, -| * but we do it the disgusting crufty way forced on us by the ()-less -| * definition of BEGIN. -| */ -| #define BEGIN (yy_start) = 1 + 2 * -| -| /* Translate the current start state into a value that can be later handed -| * to BEGIN to return to the state. The YYSTATE alias is for lex -| * compatibility. -| */ -| #define YY_START (((yy_start) - 1) / 2) -| #define YYSTATE YY_START -| -| /* Action number for EOF rule of a given start state. */ -| #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) -| -| /* Special action meaning "start processing a new file". */ -| #define YY_NEW_FILE yyrestart(yyin ) -| -| #define YY_END_OF_BUFFER_CHAR 0 -| -| /* Size of default input buffer. */ -| #ifndef YY_BUF_SIZE -| #define YY_BUF_SIZE 16384 -| #endif -| -| /* The state buf must be large enough to hold one state per character in the main buffer. -| */ -| #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) -| -| #ifndef YY_TYPEDEF_YY_BUFFER_STATE -| #define YY_TYPEDEF_YY_BUFFER_STATE -| typedef struct yy_buffer_state *YY_BUFFER_STATE; -| #endif -| -| extern int yyleng; -| -| extern FILE *yyin, *yyout; -| -| #define EOB_ACT_CONTINUE_SCAN 0 -| #define EOB_ACT_END_OF_FILE 1 -| #define EOB_ACT_LAST_MATCH 2 -| -| #define YY_LESS_LINENO(n) -| -| /* Return all but the first "n" matched characters back to the input stream. */ -| #define yyless(n) \ -| do \ -| { \ -| /* Undo effects of setting up yytext. */ \ -| int yyless_macro_arg = (n); \ -| YY_LESS_LINENO(yyless_macro_arg);\ -| *yy_cp = (yy_hold_char); \ -| YY_RESTORE_YY_MORE_OFFSET \ -| (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ -| YY_DO_BEFORE_ACTION; /* set up yytext again */ \ -| } \ -| while ( 0 ) -| -| #define unput(c) yyunput( c, (yytext_ptr) ) -| -| #ifndef YY_TYPEDEF_YY_SIZE_T -| #define YY_TYPEDEF_YY_SIZE_T -| typedef size_t yy_size_t; -| #endif -| -| #ifndef YY_STRUCT_YY_BUFFER_STATE -| #define YY_STRUCT_YY_BUFFER_STATE -| struct yy_buffer_state -| { -| FILE *yy_input_file; -| -| char *yy_ch_buf; /* input buffer */ -| char *yy_buf_pos; /* current position in input buffer */ -| -| /* Size of input buffer in bytes, not including room for EOB -| * characters. -| */ -| yy_size_t yy_buf_size; -| -| /* Number of characters read into yy_ch_buf, not including EOB -| * characters. -| */ -| int yy_n_chars; -| -| /* Whether we "own" the buffer - i.e., we know we created it, -| * and can realloc() it to grow it, and should free() it to -| * delete it. -| */ -| int yy_is_our_buffer; -| -| /* Whether this is an "interactive" input source; if so, and -| * if we're using stdio for input, then we want to use getc() -| * instead of fread(), to make sure we stop fetching input after -| * each newline. -| */ -| int yy_is_interactive; -| -| /* Whether we're considered to be at the beginning of a line. -| * If so, '^' rules will be active on the next match, otherwise -| * not. -| */ -| int yy_at_bol; -| -| int yy_bs_lineno; /**< The line count. */ -| int yy_bs_column; /**< The column count. */ -| -| /* Whether to try to fill the input buffer when we reach the -| * end of it. -| */ -| int yy_fill_buffer; -| -| int yy_buffer_status; -| -| #define YY_BUFFER_NEW 0 -| #define YY_BUFFER_NORMAL 1 -| /* When an EOF's been seen but there's still some text to process -| * then we mark the buffer as YY_EOF_PENDING, to indicate that we -| * shouldn't try reading from the input source any more. We might -| * still have a bunch of tokens to match, though, because of -| * possible backing-up. -| * -| * When we actually see the EOF, we change the status to "new" -| * (via yyrestart()), so that the user can continue scanning by -| * just pointing yyin at a new input file. -| */ -| #define YY_BUFFER_EOF_PENDING 2 -| -| }; -| #endif /* !YY_STRUCT_YY_BUFFER_STATE */ -| -| /* Stack of input buffers. */ -| static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ -| static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ -| static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ -| -| /* We provide macros for accessing buffer states in case in the -| * future we want to put the buffer states in a more general -| * "scanner state". -| * -| * Returns the top of the stack, or NULL. -| */ -| #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ -| ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ -| : NULL) -| -| /* Same as previous macro, but useful when we know that the buffer stack is not -| * NULL or when we need an lvalue. For internal use only. -| */ -| #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] -| -| /* yy_hold_char holds the character lost when yytext is formed. */ -| static char yy_hold_char; -| static int yy_n_chars; /* number of characters read into yy_ch_buf */ -| int yyleng; -| -| /* Points to current character in buffer. */ -| static char *yy_c_buf_p = (char *) 0; -| static int yy_init = 0; /* whether we need to initialize */ -| static int yy_start = 0; /* start state number */ -| -| /* Flag which is used to allow yywrap()'s to do buffer switches -| * instead of setting up a fresh yyin. A bit of a hack ... -| */ -| static int yy_did_buffer_switch_on_eof; -| -| void yyrestart (FILE *input_file ); -| void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); -| YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); -| void yy_delete_buffer (YY_BUFFER_STATE b ); -| void yy_flush_buffer (YY_BUFFER_STATE b ); -| void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); -| void yypop_buffer_state (void ); -| -| static void yyensure_buffer_stack (void ); -| static void yy_load_buffer_state (void ); -| static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); -| -| #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) -| -| YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); -| YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); -| YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); -| -| void *yyalloc (yy_size_t ); -| void *yyrealloc (void *,yy_size_t ); -| void yyfree (void * ); -| -| #define yy_new_buffer yy_create_buffer -| -| #define yy_set_interactive(is_interactive) \ -| { \ -| if ( ! YY_CURRENT_BUFFER ){ \ -| yyensure_buffer_stack (); \ -| YY_CURRENT_BUFFER_LVALUE = \ -| yy_create_buffer(yyin,YY_BUF_SIZE ); \ -| } \ -| YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ -| } -| -| #define yy_set_bol(at_bol) \ -| { \ -| if ( ! YY_CURRENT_BUFFER ){\ -| yyensure_buffer_stack (); \ -| YY_CURRENT_BUFFER_LVALUE = \ -| yy_create_buffer(yyin,YY_BUF_SIZE ); \ -| } \ -| YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ -| } -| -| #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) -| -| /* Begin user sect3 */ -| -| typedef unsigned char YY_CHAR; -| -| FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; -| -| typedef int yy_state_type; -| -| extern int yylineno; -| -| int yylineno = 1; -| -| extern char *yytext; -| #define yytext_ptr yytext -| -| static yy_state_type yy_get_previous_state (void ); -| static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); -| static int yy_get_next_buffer (void ); -| static void yy_fatal_error (yyconst char msg[] ); -| -| /* Done after the current pattern has been matched and before the -| * corresponding action - sets up yytext. -| */ -| #define YY_DO_BEFORE_ACTION \ -| (yytext_ptr) = yy_bp; \ -| yyleng = (size_t) (yy_cp - yy_bp); \ -| (yy_hold_char) = *yy_cp; \ -| *yy_cp = '\0'; \ -| (yy_c_buf_p) = yy_cp; -| -| #define YY_NUM_RULES 1 -| #define YY_END_OF_BUFFER 2 -| /* This struct is not used in this scanner, -| but its presence is necessary. */ -| struct yy_trans_info -| { -| flex_int32_t yy_verify; -| flex_int32_t yy_nxt; -| }; -| static yyconst flex_int16_t yy_accept[6] = -| { 0, -| 0, 0, 2, 1, 0 -| } ; -| -| static yyconst flex_int32_t yy_ec[256] = -| { 0, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -| 1, 1, 1, 1, 1 -| } ; -| -| static yyconst flex_int32_t yy_meta[2] = -| { 0, -| 1 -| } ; -| -| static yyconst flex_int16_t yy_base[7] = -| { 0, -| 0, 0, 2, 3, 3, 0 -| } ; -| -| static yyconst flex_int16_t yy_def[7] = -| { 0, -| 6, 6, 5, 5, 0, 5 -| } ; -| -| static yyconst flex_int16_t yy_nxt[5] = -| { 0, -| 4, 5, 3, 5 -| } ; -| -| static yyconst flex_int16_t yy_chk[5] = -| { 0, -| 6, 3, 5, 5 -| } ; -| -| static yy_state_type yy_last_accepting_state; -| static char *yy_last_accepting_cpos; -| -| extern int yy_flex_debug; -| int yy_flex_debug = 0; -| -| /* The intent behind this definition is that it'll catch -| * any uses of REJECT which flex missed. -| */ -| #define REJECT reject_used_but_not_detected -| #define yymore() yymore_used_but_not_detected -| #define YY_MORE_ADJ 0 -| #define YY_RESTORE_YY_MORE_OFFSET -| char *yytext; -| #line 1 "conftest.l" -| #line 449 "lex.yy.c" -| -| #define INITIAL 0 -| -| #ifndef YY_NO_UNISTD_H -| /* Special case for "unistd.h", since it is non-ANSI. We include it way -| * down here because we want the user's section 1 to have been scanned first. -| * The user has a chance to override it with an option. -| */ -| #include -| #endif -| -| #ifndef YY_EXTRA_TYPE -| #define YY_EXTRA_TYPE void * -| #endif -| -| static int yy_init_globals (void ); -| -| /* Accessor methods to globals. -| These are made visible to non-reentrant scanners for convenience. */ -| -| int yylex_destroy (void ); -| -| int yyget_debug (void ); -| -| void yyset_debug (int debug_flag ); -| -| YY_EXTRA_TYPE yyget_extra (void ); -| -| void yyset_extra (YY_EXTRA_TYPE user_defined ); -| -| FILE *yyget_in (void ); -| -| void yyset_in (FILE * in_str ); -| -| FILE *yyget_out (void ); -| -| void yyset_out (FILE * out_str ); -| -| int yyget_leng (void ); -| -| char *yyget_text (void ); -| -| int yyget_lineno (void ); -| -| void yyset_lineno (int line_number ); -| -| /* Macros after this point can all be overridden by user definitions in -| * section 1. -| */ -| -| #ifndef YY_SKIP_YYWRAP -| #ifdef __cplusplus -| extern "C" int yywrap (void ); -| #else -| extern int yywrap (void ); -| #endif -| #endif -| -| static void yyunput (int c,char *buf_ptr ); -| -| #ifndef yytext_ptr -| static void yy_flex_strncpy (char *,yyconst char *,int ); -| #endif -| -| #ifdef YY_NEED_STRLEN -| static int yy_flex_strlen (yyconst char * ); -| #endif -| -| #ifndef YY_NO_INPUT -| -| #ifdef __cplusplus -| static int yyinput (void ); -| #else -| static int input (void ); -| #endif -| -| #endif -| -| /* Amount of stuff to slurp up with each read. */ -| #ifndef YY_READ_BUF_SIZE -| #define YY_READ_BUF_SIZE 8192 -| #endif -| -| /* Copy whatever the last rule matched to the standard output. */ -| #ifndef ECHO -| /* This used to be an fputs(), but since the string might contain NUL's, -| * we now use fwrite(). -| */ -| #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) -| #endif -| -| /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, -| * is returned in "result". -| */ -| #ifndef YY_INPUT -| #define YY_INPUT(buf,result,max_size) \ -| if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ -| { \ -| int c = '*'; \ -| unsigned n; \ -| for ( n = 0; n < max_size && \ -| (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ -| buf[n] = (char) c; \ -| if ( c == '\n' ) \ -| buf[n++] = (char) c; \ -| if ( c == EOF && ferror( yyin ) ) \ -| YY_FATAL_ERROR( "input in flex scanner failed" ); \ -| result = n; \ -| } \ -| else \ -| { \ -| errno=0; \ -| while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ -| { \ -| if( errno != EINTR) \ -| { \ -| YY_FATAL_ERROR( "input in flex scanner failed" ); \ -| break; \ -| } \ -| errno=0; \ -| clearerr(yyin); \ -| } \ -| }\ -| \ -| -| #endif -| -| /* No semi-colon after return; correct usage is to write "yyterminate();" - -| * we don't want an extra ';' after the "return" because that will cause -| * some compilers to complain about unreachable statements. -| */ -| #ifndef yyterminate -| #define yyterminate() return YY_NULL -| #endif -| -| /* Number of entries by which start-condition stack grows. */ -| #ifndef YY_START_STACK_INCR -| #define YY_START_STACK_INCR 25 -| #endif -| -| /* Report a fatal error. */ -| #ifndef YY_FATAL_ERROR -| #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) -| #endif -| -| /* end tables serialization structures and prototypes */ -| -| /* Default declaration of generated scanner - a define so the user can -| * easily add parameters. -| */ -| #ifndef YY_DECL -| #define YY_DECL_IS_OURS 1 -| -| extern int yylex (void); -| -| #define YY_DECL int yylex (void) -| #endif /* !YY_DECL */ -| -| /* Code executed at the beginning of each rule, after yytext and yyleng -| * have been set up. -| */ -| #ifndef YY_USER_ACTION -| #define YY_USER_ACTION -| #endif -| -| /* Code executed at the end of each rule. */ -| #ifndef YY_BREAK -| #define YY_BREAK break; -| #endif -| -| #define YY_RULE_SETUP \ -| YY_USER_ACTION -| -| /** The main scanner function which does all the work. -| */ -| YY_DECL -| { -| register yy_state_type yy_current_state; -| register char *yy_cp, *yy_bp; -| register int yy_act; -| -| #line 1 "conftest.l" -| -| #line 633 "lex.yy.c" -| -| if ( !(yy_init) ) -| { -| (yy_init) = 1; -| -| #ifdef YY_USER_INIT -| YY_USER_INIT; -| #endif -| -| if ( ! (yy_start) ) -| (yy_start) = 1; /* first start state */ -| -| if ( ! yyin ) -| yyin = stdin; -| -| if ( ! yyout ) -| yyout = stdout; -| -| if ( ! YY_CURRENT_BUFFER ) { -| yyensure_buffer_stack (); -| YY_CURRENT_BUFFER_LVALUE = -| yy_create_buffer(yyin,YY_BUF_SIZE ); -| } -| -| yy_load_buffer_state( ); -| } -| -| while ( 1 ) /* loops until end-of-file is reached */ -| { -| yy_cp = (yy_c_buf_p); -| -| /* Support of yytext. */ -| *yy_cp = (yy_hold_char); -| -| /* yy_bp points to the position in yy_ch_buf of the start of -| * the current run. -| */ -| yy_bp = yy_cp; -| -| yy_current_state = (yy_start); -| yy_match: -| do -| { -| register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; -| if ( yy_accept[yy_current_state] ) -| { -| (yy_last_accepting_state) = yy_current_state; -| (yy_last_accepting_cpos) = yy_cp; -| } -| while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) -| { -| yy_current_state = (int) yy_def[yy_current_state]; -| if ( yy_current_state >= 6 ) -| yy_c = yy_meta[(unsigned int) yy_c]; -| } -| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; -| ++yy_cp; -| } -| while ( yy_base[yy_current_state] != 3 ); -| -| yy_find_action: -| yy_act = yy_accept[yy_current_state]; -| if ( yy_act == 0 ) -| { /* have to back up */ -| yy_cp = (yy_last_accepting_cpos); -| yy_current_state = (yy_last_accepting_state); -| yy_act = yy_accept[yy_current_state]; -| } -| -| YY_DO_BEFORE_ACTION; -| -| do_action: /* This label is used only to access EOF actions. */ -| -| switch ( yy_act ) -| { /* beginning of action switch */ -| case 0: /* must back up */ -| /* undo the effects of YY_DO_BEFORE_ACTION */ -| *yy_cp = (yy_hold_char); -| yy_cp = (yy_last_accepting_cpos); -| yy_current_state = (yy_last_accepting_state); -| goto yy_find_action; -| -| case 1: -| YY_RULE_SETUP -| #line 2 "conftest.l" -| ECHO; -| YY_BREAK -| #line 721 "lex.yy.c" -| case YY_STATE_EOF(INITIAL): -| yyterminate(); -| -| case YY_END_OF_BUFFER: -| { -| /* Amount of text matched not including the EOB char. */ -| int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; -| -| /* Undo the effects of YY_DO_BEFORE_ACTION. */ -| *yy_cp = (yy_hold_char); -| YY_RESTORE_YY_MORE_OFFSET -| -| if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) -| { -| /* We're scanning a new file or input source. It's -| * possible that this happened because the user -| * just pointed yyin at a new source and called -| * yylex(). If so, then we have to assure -| * consistency between YY_CURRENT_BUFFER and our -| * globals. Here is the right place to do so, because -| * this is the first action (other than possibly a -| * back-up) that will match for the new input source. -| */ -| (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; -| YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; -| YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; -| } -| -| /* Note that here we test for yy_c_buf_p "<=" to the position -| * of the first EOB in the buffer, since yy_c_buf_p will -| * already have been incremented past the NUL character -| * (since all states make transitions on EOB to the -| * end-of-buffer state). Contrast this with the test -| * in input(). -| */ -| if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) -| { /* This was really a NUL. */ -| yy_state_type yy_next_state; -| -| (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; -| -| yy_current_state = yy_get_previous_state( ); -| -| /* Okay, we're now positioned to make the NUL -| * transition. We couldn't have -| * yy_get_previous_state() go ahead and do it -| * for us because it doesn't know how to deal -| * with the possibility of jamming (and we don't -| * want to build jamming into it because then it -| * will run more slowly). -| */ -| -| yy_next_state = yy_try_NUL_trans( yy_current_state ); -| -| yy_bp = (yytext_ptr) + YY_MORE_ADJ; -| -| if ( yy_next_state ) -| { -| /* Consume the NUL. */ -| yy_cp = ++(yy_c_buf_p); -| yy_current_state = yy_next_state; -| goto yy_match; -| } -| -| else -| { -| yy_cp = (yy_c_buf_p); -| goto yy_find_action; -| } -| } -| -| else switch ( yy_get_next_buffer( ) ) -| { -| case EOB_ACT_END_OF_FILE: -| { -| (yy_did_buffer_switch_on_eof) = 0; -| -| if ( yywrap( ) ) -| { -| /* Note: because we've taken care in -| * yy_get_next_buffer() to have set up -| * yytext, we can now set up -| * yy_c_buf_p so that if some total -| * hoser (like flex itself) wants to -| * call the scanner after we return the -| * YY_NULL, it'll still work - another -| * YY_NULL will get returned. -| */ -| (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; -| -| yy_act = YY_STATE_EOF(YY_START); -| goto do_action; -| } -| -| else -| { -| if ( ! (yy_did_buffer_switch_on_eof) ) -| YY_NEW_FILE; -| } -| break; -| } -| -| case EOB_ACT_CONTINUE_SCAN: -| (yy_c_buf_p) = -| (yytext_ptr) + yy_amount_of_matched_text; -| -| yy_current_state = yy_get_previous_state( ); -| -| yy_cp = (yy_c_buf_p); -| yy_bp = (yytext_ptr) + YY_MORE_ADJ; -| goto yy_match; -| -| case EOB_ACT_LAST_MATCH: -| (yy_c_buf_p) = -| &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; -| -| yy_current_state = yy_get_previous_state( ); -| -| yy_cp = (yy_c_buf_p); -| yy_bp = (yytext_ptr) + YY_MORE_ADJ; -| goto yy_find_action; -| } -| break; -| } -| -| default: -| YY_FATAL_ERROR( -| "fatal flex scanner internal error--no action found" ); -| } /* end of action switch */ -| } /* end of scanning one token */ -| } /* end of yylex */ -| -| /* yy_get_next_buffer - try to read in a new buffer -| * -| * Returns a code representing an action: -| * EOB_ACT_LAST_MATCH - -| * EOB_ACT_CONTINUE_SCAN - continue scanning from current position -| * EOB_ACT_END_OF_FILE - end of file -| */ -| static int yy_get_next_buffer (void) -| { -| register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; -| register char *source = (yytext_ptr); -| register int number_to_move, i; -| int ret_val; -| -| if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) -| YY_FATAL_ERROR( -| "fatal flex scanner internal error--end of buffer missed" ); -| -| if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) -| { /* Don't try to fill the buffer, so this is an EOF. */ -| if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) -| { -| /* We matched a single character, the EOB, so -| * treat this as a final EOF. -| */ -| return EOB_ACT_END_OF_FILE; -| } -| -| else -| { -| /* We matched some text prior to the EOB, first -| * process it. -| */ -| return EOB_ACT_LAST_MATCH; -| } -| } -| -| /* Try to read more data. */ -| -| /* First move last chars to start of buffer. */ -| number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; -| -| for ( i = 0; i < number_to_move; ++i ) -| *(dest++) = *(source++); -| -| if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) -| /* don't do the read, it's not guaranteed to return an EOF, -| * just force an EOF -| */ -| YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; -| -| else -| { -| int num_to_read = -| YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; -| -| while ( num_to_read <= 0 ) -| { /* Not enough room in the buffer - grow it. */ -| -| /* just a shorter name for the current buffer */ -| YY_BUFFER_STATE b = YY_CURRENT_BUFFER; -| -| int yy_c_buf_p_offset = -| (int) ((yy_c_buf_p) - b->yy_ch_buf); -| -| if ( b->yy_is_our_buffer ) -| { -| int new_size = b->yy_buf_size * 2; -| -| if ( new_size <= 0 ) -| b->yy_buf_size += b->yy_buf_size / 8; -| else -| b->yy_buf_size *= 2; -| -| b->yy_ch_buf = (char *) -| /* Include room in for 2 EOB chars. */ -| yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); -| } -| else -| /* Can't grow it, we don't own it. */ -| b->yy_ch_buf = 0; -| -| if ( ! b->yy_ch_buf ) -| YY_FATAL_ERROR( -| "fatal error - scanner input buffer overflow" ); -| -| (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; -| -| num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - -| number_to_move - 1; -| -| } -| -| if ( num_to_read > YY_READ_BUF_SIZE ) -| num_to_read = YY_READ_BUF_SIZE; -| -| /* Read in more data. */ -| YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), -| (yy_n_chars), (size_t) num_to_read ); -| -| YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); -| } -| -| if ( (yy_n_chars) == 0 ) -| { -| if ( number_to_move == YY_MORE_ADJ ) -| { -| ret_val = EOB_ACT_END_OF_FILE; -| yyrestart(yyin ); -| } -| -| else -| { -| ret_val = EOB_ACT_LAST_MATCH; -| YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = -| YY_BUFFER_EOF_PENDING; -| } -| } -| -| else -| ret_val = EOB_ACT_CONTINUE_SCAN; -| -| if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { -| /* Extend the array by 50%, plus the number we really need. */ -| yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); -| YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); -| if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) -| YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); -| } -| -| (yy_n_chars) += number_to_move; -| YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; -| YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; -| -| (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; -| -| return ret_val; -| } -| -| /* yy_get_previous_state - get the state just before the EOB char was reached */ -| -| static yy_state_type yy_get_previous_state (void) -| { -| register yy_state_type yy_current_state; -| register char *yy_cp; -| -| yy_current_state = (yy_start); -| -| for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) -| { -| register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); -| if ( yy_accept[yy_current_state] ) -| { -| (yy_last_accepting_state) = yy_current_state; -| (yy_last_accepting_cpos) = yy_cp; -| } -| while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) -| { -| yy_current_state = (int) yy_def[yy_current_state]; -| if ( yy_current_state >= 6 ) -| yy_c = yy_meta[(unsigned int) yy_c]; -| } -| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; -| } -| -| return yy_current_state; -| } -| -| /* yy_try_NUL_trans - try to make a transition on the NUL character -| * -| * synopsis -| * next_state = yy_try_NUL_trans( current_state ); -| */ -| static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) -| { -| register int yy_is_jam; -| register char *yy_cp = (yy_c_buf_p); -| -| register YY_CHAR yy_c = 1; -| if ( yy_accept[yy_current_state] ) -| { -| (yy_last_accepting_state) = yy_current_state; -| (yy_last_accepting_cpos) = yy_cp; -| } -| while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) -| { -| yy_current_state = (int) yy_def[yy_current_state]; -| if ( yy_current_state >= 6 ) -| yy_c = yy_meta[(unsigned int) yy_c]; -| } -| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; -| yy_is_jam = (yy_current_state == 5); -| -| return yy_is_jam ? 0 : yy_current_state; -| } -| -| static void yyunput (int c, register char * yy_bp ) -| { -| register char *yy_cp; -| -| yy_cp = (yy_c_buf_p); -| -| /* undo effects of setting up yytext */ -| *yy_cp = (yy_hold_char); -| -| if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) -| { /* need to shift things up to make room */ -| /* +2 for EOB chars. */ -| register int number_to_move = (yy_n_chars) + 2; -| register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ -| YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; -| register char *source = -| &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; -| -| while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) -| *--dest = *--source; -| -| yy_cp += (int) (dest - source); -| yy_bp += (int) (dest - source); -| YY_CURRENT_BUFFER_LVALUE->yy_n_chars = -| (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; -| -| if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) -| YY_FATAL_ERROR( "flex scanner push-back overflow" ); -| } -| -| *--yy_cp = (char) c; -| -| (yytext_ptr) = yy_bp; -| (yy_hold_char) = *yy_cp; -| (yy_c_buf_p) = yy_cp; -| } -| -| #ifndef YY_NO_INPUT -| #ifdef __cplusplus -| static int yyinput (void) -| #else -| static int input (void) -| #endif -| -| { -| int c; -| -| *(yy_c_buf_p) = (yy_hold_char); -| -| if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) -| { -| /* yy_c_buf_p now points to the character we want to return. -| * If this occurs *before* the EOB characters, then it's a -| * valid NUL; if not, then we've hit the end of the buffer. -| */ -| if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) -| /* This was really a NUL. */ -| *(yy_c_buf_p) = '\0'; -| -| else -| { /* need more input */ -| int offset = (yy_c_buf_p) - (yytext_ptr); -| ++(yy_c_buf_p); -| -| switch ( yy_get_next_buffer( ) ) -| { -| case EOB_ACT_LAST_MATCH: -| /* This happens because yy_g_n_b() -| * sees that we've accumulated a -| * token and flags that we need to -| * try matching the token before -| * proceeding. But for input(), -| * there's no matching to consider. -| * So convert the EOB_ACT_LAST_MATCH -| * to EOB_ACT_END_OF_FILE. -| */ -| -| /* Reset buffer status. */ -| yyrestart(yyin ); -| -| /*FALLTHROUGH*/ -| -| case EOB_ACT_END_OF_FILE: -| { -| if ( yywrap( ) ) -| return EOF; -| -| if ( ! (yy_did_buffer_switch_on_eof) ) -| YY_NEW_FILE; -| #ifdef __cplusplus -| return yyinput(); -| #else -| return input(); -| #endif -| } -| -| case EOB_ACT_CONTINUE_SCAN: -| (yy_c_buf_p) = (yytext_ptr) + offset; -| break; -| } -| } -| } -| -| c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ -| *(yy_c_buf_p) = '\0'; /* preserve yytext */ -| (yy_hold_char) = *++(yy_c_buf_p); -| -| return c; -| } -| #endif /* ifndef YY_NO_INPUT */ -| -| /** Immediately switch to a different input stream. -| * @param input_file A readable stream. -| * -| * @note This function does not reset the start condition to @c INITIAL . -| */ -| void yyrestart (FILE * input_file ) -| { -| -| if ( ! YY_CURRENT_BUFFER ){ -| yyensure_buffer_stack (); -| YY_CURRENT_BUFFER_LVALUE = -| yy_create_buffer(yyin,YY_BUF_SIZE ); -| } -| -| yy_init_buffer(YY_CURRENT_BUFFER,input_file ); -| yy_load_buffer_state( ); -| } -| -| /** Switch to a different input buffer. -| * @param new_buffer The new input buffer. -| * -| */ -| void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) -| { -| -| /* TODO. We should be able to replace this entire function body -| * with -| * yypop_buffer_state(); -| * yypush_buffer_state(new_buffer); -| */ -| yyensure_buffer_stack (); -| if ( YY_CURRENT_BUFFER == new_buffer ) -| return; -| -| if ( YY_CURRENT_BUFFER ) -| { -| /* Flush out information for old buffer. */ -| *(yy_c_buf_p) = (yy_hold_char); -| YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); -| YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); -| } -| -| YY_CURRENT_BUFFER_LVALUE = new_buffer; -| yy_load_buffer_state( ); -| -| /* We don't actually know whether we did this switch during -| * EOF (yywrap()) processing, but the only time this flag -| * is looked at is after yywrap() is called, so it's safe -| * to go ahead and always set it. -| */ -| (yy_did_buffer_switch_on_eof) = 1; -| } -| -| static void yy_load_buffer_state (void) -| { -| (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; -| (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; -| yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; -| (yy_hold_char) = *(yy_c_buf_p); -| } -| -| /** Allocate and initialize an input buffer state. -| * @param file A readable stream. -| * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. -| * -| * @return the allocated buffer state. -| */ -| YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) -| { -| YY_BUFFER_STATE b; -| -| b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); -| if ( ! b ) -| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); -| -| b->yy_buf_size = size; -| -| /* yy_ch_buf has to be 2 characters longer than the size given because -| * we need to put in 2 end-of-buffer characters. -| */ -| b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); -| if ( ! b->yy_ch_buf ) -| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); -| -| b->yy_is_our_buffer = 1; -| -| yy_init_buffer(b,file ); -| -| return b; -| } -| -| /** Destroy the buffer. -| * @param b a buffer created with yy_create_buffer() -| * -| */ -| void yy_delete_buffer (YY_BUFFER_STATE b ) -| { -| -| if ( ! b ) -| return; -| -| if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ -| YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; -| -| if ( b->yy_is_our_buffer ) -| yyfree((void *) b->yy_ch_buf ); -| -| yyfree((void *) b ); -| } -| -| #ifndef __cplusplus -| extern int isatty (int ); -| #endif /* __cplusplus */ -| -| /* Initializes or reinitializes a buffer. -| * This function is sometimes called more than once on the same buffer, -| * such as during a yyrestart() or at EOF. -| */ -| static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) -| -| { -| int oerrno = errno; -| -| yy_flush_buffer(b ); -| -| b->yy_input_file = file; -| b->yy_fill_buffer = 1; -| -| /* If b is the current buffer, then yy_init_buffer was _probably_ -| * called from yyrestart() or through yy_get_next_buffer. -| * In that case, we don't want to reset the lineno or column. -| */ -| if (b != YY_CURRENT_BUFFER){ -| b->yy_bs_lineno = 1; -| b->yy_bs_column = 0; -| } -| -| b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; -| -| errno = oerrno; -| } -| -| /** Discard all buffered characters. On the next scan, YY_INPUT will be called. -| * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. -| * -| */ -| void yy_flush_buffer (YY_BUFFER_STATE b ) -| { -| if ( ! b ) -| return; -| -| b->yy_n_chars = 0; -| -| /* We always need two end-of-buffer characters. The first causes -| * a transition to the end-of-buffer state. The second causes -| * a jam in that state. -| */ -| b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; -| b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; -| -| b->yy_buf_pos = &b->yy_ch_buf[0]; -| -| b->yy_at_bol = 1; -| b->yy_buffer_status = YY_BUFFER_NEW; -| -| if ( b == YY_CURRENT_BUFFER ) -| yy_load_buffer_state( ); -| } -| -| /** Pushes the new state onto the stack. The new state becomes -| * the current state. This function will allocate the stack -| * if necessary. -| * @param new_buffer The new state. -| * -| */ -| void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) -| { -| if (new_buffer == NULL) -| return; -| -| yyensure_buffer_stack(); -| -| /* This block is copied from yy_switch_to_buffer. */ -| if ( YY_CURRENT_BUFFER ) -| { -| /* Flush out information for old buffer. */ -| *(yy_c_buf_p) = (yy_hold_char); -| YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); -| YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); -| } -| -| /* Only push if top exists. Otherwise, replace top. */ -| if (YY_CURRENT_BUFFER) -| (yy_buffer_stack_top)++; -| YY_CURRENT_BUFFER_LVALUE = new_buffer; -| -| /* copied from yy_switch_to_buffer. */ -| yy_load_buffer_state( ); -| (yy_did_buffer_switch_on_eof) = 1; -| } -| -| /** Removes and deletes the top of the stack, if present. -| * The next element becomes the new top. -| * -| */ -| void yypop_buffer_state (void) -| { -| if (!YY_CURRENT_BUFFER) -| return; -| -| yy_delete_buffer(YY_CURRENT_BUFFER ); -| YY_CURRENT_BUFFER_LVALUE = NULL; -| if ((yy_buffer_stack_top) > 0) -| --(yy_buffer_stack_top); -| -| if (YY_CURRENT_BUFFER) { -| yy_load_buffer_state( ); -| (yy_did_buffer_switch_on_eof) = 1; -| } -| } -| -| /* Allocates the stack if it does not exist. -| * Guarantees space for at least one push. -| */ -| static void yyensure_buffer_stack (void) -| { -| int num_to_alloc; -| -| if (!(yy_buffer_stack)) { -| -| /* First allocation is just for 2 elements, since we don't know if this -| * scanner will even need a stack. We use 2 instead of 1 to avoid an -| * immediate realloc on the next call. -| */ -| num_to_alloc = 1; -| (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc -| (num_to_alloc * sizeof(struct yy_buffer_state*) -| ); -| if ( ! (yy_buffer_stack) ) -| YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); -| -| memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); -| -| (yy_buffer_stack_max) = num_to_alloc; -| (yy_buffer_stack_top) = 0; -| return; -| } -| -| if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ -| -| /* Increase the buffer to prepare for a possible push. */ -| int grow_size = 8 /* arbitrary grow size */; -| -| num_to_alloc = (yy_buffer_stack_max) + grow_size; -| (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc -| ((yy_buffer_stack), -| num_to_alloc * sizeof(struct yy_buffer_state*) -| ); -| if ( ! (yy_buffer_stack) ) -| YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); -| -| /* zero only the new slots.*/ -| memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); -| (yy_buffer_stack_max) = num_to_alloc; -| } -| } -| -| /** Setup the input buffer state to scan directly from a user-specified character buffer. -| * @param base the character buffer -| * @param size the size in bytes of the character buffer -| * -| * @return the newly allocated buffer state object. -| */ -| YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) -| { -| YY_BUFFER_STATE b; -| -| if ( size < 2 || -| base[size-2] != YY_END_OF_BUFFER_CHAR || -| base[size-1] != YY_END_OF_BUFFER_CHAR ) -| /* They forgot to leave room for the EOB's. */ -| return 0; -| -| b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); -| if ( ! b ) -| YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); -| -| b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ -| b->yy_buf_pos = b->yy_ch_buf = base; -| b->yy_is_our_buffer = 0; -| b->yy_input_file = 0; -| b->yy_n_chars = b->yy_buf_size; -| b->yy_is_interactive = 0; -| b->yy_at_bol = 1; -| b->yy_fill_buffer = 0; -| b->yy_buffer_status = YY_BUFFER_NEW; -| -| yy_switch_to_buffer(b ); -| -| return b; -| } -| -| /** Setup the input buffer state to scan a string. The next call to yylex() will -| * scan from a @e copy of @a str. -| * @param yystr a NUL-terminated string to scan -| * -| * @return the newly allocated buffer state object. -| * @note If you want to scan bytes that may contain NUL values, then use -| * yy_scan_bytes() instead. -| */ -| YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) -| { -| -| return yy_scan_bytes(yystr,strlen(yystr) ); -| } -| -| /** Setup the input buffer state to scan the given bytes. The next call to yylex() will -| * scan from a @e copy of @a bytes. -| * @param bytes the byte buffer to scan -| * @param len the number of bytes in the buffer pointed to by @a bytes. -| * -| * @return the newly allocated buffer state object. -| */ -| YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) -| { -| YY_BUFFER_STATE b; -| char *buf; -| yy_size_t n; -| int i; -| -| /* Get memory for full buffer, including space for trailing EOB's. */ -| n = _yybytes_len + 2; -| buf = (char *) yyalloc(n ); -| if ( ! buf ) -| YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); -| -| for ( i = 0; i < _yybytes_len; ++i ) -| buf[i] = yybytes[i]; -| -| buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; -| -| b = yy_scan_buffer(buf,n ); -| if ( ! b ) -| YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); -| -| /* It's okay to grow etc. this buffer, and we should throw it -| * away when we're done. -| */ -| b->yy_is_our_buffer = 1; -| -| return b; -| } -| -| #ifndef YY_EXIT_FAILURE -| #define YY_EXIT_FAILURE 2 -| #endif -| -| static void yy_fatal_error (yyconst char* msg ) -| { -| (void) fprintf( stderr, "%s\n", msg ); -| exit( YY_EXIT_FAILURE ); -| } -| -| /* Redefine yyless() so it works in section 3 code. */ -| -| #undef yyless -| #define yyless(n) \ -| do \ -| { \ -| /* Undo effects of setting up yytext. */ \ -| int yyless_macro_arg = (n); \ -| YY_LESS_LINENO(yyless_macro_arg);\ -| yytext[yyleng] = (yy_hold_char); \ -| (yy_c_buf_p) = yytext + yyless_macro_arg; \ -| (yy_hold_char) = *(yy_c_buf_p); \ -| *(yy_c_buf_p) = '\0'; \ -| yyleng = yyless_macro_arg; \ -| } \ -| while ( 0 ) -| -| /* Accessor methods (get/set functions) to struct members. */ -| -| /** Get the current line number. -| * -| */ -| int yyget_lineno (void) -| { -| -| return yylineno; -| } -| -| /** Get the input stream. -| * -| */ -| FILE *yyget_in (void) -| { -| return yyin; -| } -| -| /** Get the output stream. -| * -| */ -| FILE *yyget_out (void) -| { -| return yyout; -| } -| -| /** Get the length of the current token. -| * -| */ -| int yyget_leng (void) -| { -| return yyleng; -| } -| -| /** Get the current token. -| * -| */ -| -| char *yyget_text (void) -| { -| return yytext; -| } -| -| /** Set the current line number. -| * @param line_number -| * -| */ -| void yyset_lineno (int line_number ) -| { -| -| yylineno = line_number; -| } -| -| /** Set the input stream. This does not discard the current -| * input buffer. -| * @param in_str A readable stream. -| * -| * @see yy_switch_to_buffer -| */ -| void yyset_in (FILE * in_str ) -| { -| yyin = in_str ; -| } -| -| void yyset_out (FILE * out_str ) -| { -| yyout = out_str ; -| } -| -| int yyget_debug (void) -| { -| return yy_flex_debug; -| } -| -| void yyset_debug (int bdebug ) -| { -| yy_flex_debug = bdebug ; -| } -| -| static int yy_init_globals (void) -| { -| /* Initialization is the same as for the non-reentrant scanner. -| * This function is called from yylex_destroy(), so don't allocate here. -| */ -| -| (yy_buffer_stack) = 0; -| (yy_buffer_stack_top) = 0; -| (yy_buffer_stack_max) = 0; -| (yy_c_buf_p) = (char *) 0; -| (yy_init) = 0; -| (yy_start) = 0; -| -| /* Defined in main.c */ -| #ifdef YY_STDINIT -| yyin = stdin; -| yyout = stdout; -| #else -| yyin = (FILE *) 0; -| yyout = (FILE *) 0; -| #endif -| -| /* For future reference: Set errno on error, since we are called by -| * yylex_init() -| */ -| return 0; -| } -| -| /* yylex_destroy is for both reentrant and non-reentrant scanners. */ -| int yylex_destroy (void) -| { -| -| /* Pop the buffer stack, destroying each element. */ -| while(YY_CURRENT_BUFFER){ -| yy_delete_buffer(YY_CURRENT_BUFFER ); -| YY_CURRENT_BUFFER_LVALUE = NULL; -| yypop_buffer_state(); -| } -| -| /* Destroy the stack itself. */ -| yyfree((yy_buffer_stack) ); -| (yy_buffer_stack) = NULL; -| -| /* Reset the globals. This is important in a non-reentrant scanner so the next time -| * yylex() is called, initialization will occur. */ -| yy_init_globals( ); -| -| return 0; -| } -| -| /* -| * Internal utility routines. -| */ -| -| #ifndef yytext_ptr -| static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) -| { -| register int i; -| for ( i = 0; i < n; ++i ) -| s1[i] = s2[i]; -| } -| #endif -| -| #ifdef YY_NEED_STRLEN -| static int yy_flex_strlen (yyconst char * s ) -| { -| register int n; -| for ( n = 0; s[n]; ++n ) -| ; -| -| return n; -| } -| #endif -| -| void *yyalloc (yy_size_t size ) -| { -| return (void *) malloc( size ); -| } -| -| void *yyrealloc (void * ptr, yy_size_t size ) -| { -| /* The cast to (char *) in the following accommodates both -| * implementations that use char* generic pointers, and those -| * that use void* generic pointers. It works with the latter -| * because both ANSI C and C++ allow castless assignment from -| * any pointer type to void*, and deal with argument conversions -| * as though doing an assignment. -| */ -| return (void *) realloc( (char *) ptr, size ); -| } -| -| void yyfree (void * ptr ) -| { -| free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ -| } -| -| #define YYTABLES_NAME "yytables" -| -| #line 2 "conftest.l" -| -| -| -| extern char *yytext; -configure:18996: result: no -configure:19016: checking for bison -configure:19032: found /usr/bin/bison -configure:19042: result: bison -y -configure:19063: checking for gawk -configure:19089: result: gawk -configure:19104: checking how to run the C preprocessor -configure:19222: result: gcc -E -configure:19246: gcc -E conftest.c -configure:19252: $? = 0 -configure:19284: gcc -E conftest.c -conftest.c:25:28: error: ac_nonexistent.h: No such file or directory -configure:19290: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| /* end confdefs.h. */ -| #include -configure:19333: checking whether ln -s works -configure:19337: result: yes -configure:19344: checking whether make sets $(MAKE) -configure:19364: result: yes -configure:19378: checking for working alloca.h -configure:19399: g++ -o conftest conftest.cc >&5 -configure:19405: $? = 0 -configure:19409: test -z - || test ! -s conftest.err -configure:19412: $? = 0 -configure:19415: test -s conftest -configure:19418: $? = 0 -configure:19430: result: yes -configure:19440: checking for alloca -configure:19481: g++ -o conftest conftest.cc >&5 -configure:19487: $? = 0 -configure:19491: test -z - || test ! -s conftest.err -configure:19494: $? = 0 -configure:19497: test -s conftest -configure:19500: $? = 0 -configure:19512: result: yes -configure:19735: checking for ANSI C header files -configure:19891: result: yes -configure:19901: checking for sys/wait.h that is POSIX.1 compatible -configure:19932: g++ -c conftest.cc >&5 -configure:19938: $? = 0 -configure:19942: test -z - || test ! -s conftest.err -configure:19945: $? = 0 -configure:19948: test -s conftest.o -configure:19951: $? = 0 -configure:19962: result: yes -configure:20007: checking arpa/inet.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking arpa/inet.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for arpa/inet.h -configure:20130: result: yes -configure:20007: checking fcntl.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking fcntl.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for fcntl.h -configure:20130: result: yes -configure:19998: checking for inttypes.h -configure:20003: result: yes -configure:20007: checking limits.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking limits.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for limits.h -configure:20130: result: yes -configure:20007: checking malloc.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking malloc.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for malloc.h -configure:20130: result: yes -configure:20007: checking netdb.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking netdb.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for netdb.h -configure:20130: result: yes -configure:20007: checking netinet/in.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking netinet/in.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for netinet/in.h -configure:20130: result: yes -configure:20007: checking stddef.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking stddef.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for stddef.h -configure:20130: result: yes -configure:19998: checking for stdint.h -configure:20003: result: yes -configure:19998: checking for stdlib.h -configure:20003: result: yes -configure:19998: checking for string.h -configure:20003: result: yes -configure:19998: checking for strings.h -configure:20003: result: yes -configure:20007: checking sys/file.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking sys/file.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for sys/file.h -configure:20130: result: yes -configure:20007: checking sys/mount.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking sys/mount.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for sys/mount.h -configure:20130: result: yes -configure:20007: checking sys/socket.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking sys/socket.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for sys/socket.h -configure:20130: result: yes -configure:20007: checking sys/statfs.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking sys/statfs.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for sys/statfs.h -configure:20130: result: yes -configure:20007: checking sys/time.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking sys/time.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for sys/time.h -configure:20130: result: yes -configure:20007: checking sys/timeb.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking sys/timeb.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for sys/timeb.h -configure:20130: result: yes -configure:20007: checking syslog.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking syslog.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for syslog.h -configure:20130: result: yes -configure:19998: checking for unistd.h -configure:20003: result: yes -configure:20007: checking utime.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking utime.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for utime.h -configure:20130: result: yes -configure:20007: checking values.h usability -configure:20019: g++ -c conftest.cc >&5 -configure:20025: $? = 0 -configure:20029: test -z - || test ! -s conftest.err -configure:20032: $? = 0 -configure:20035: test -s conftest.o -configure:20038: $? = 0 -configure:20048: result: yes -configure:20052: checking values.h presence -configure:20062: g++ -E conftest.cc -configure:20068: $? = 0 -configure:20088: result: yes -configure:20123: checking for values.h -configure:20130: result: yes -configure:20145: checking whether stat file-mode macros are broken -configure:20193: result: no -configure:20203: checking for stdbool.h that conforms to C99 -configure:20256: g++ -c conftest.cc >&5 -configure:20262: $? = 0 -configure:20266: test -z - || test ! -s conftest.err -configure:20269: $? = 0 -configure:20272: test -s conftest.o -configure:20275: $? = 0 -configure:20286: result: yes -configure:20288: checking for _Bool -configure:20312: g++ -c conftest.cc >&5 -conftest.cc: In function 'int main()': -conftest.cc:88: error: '_Bool' was not declared in this scope -conftest.cc:88: error: expected primary-expression before ')' token -conftest.cc:88: error: expected ')' before numeric constant -conftest.cc:90: error: '_Bool' was not declared in this scope -configure:20318: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_ALLOCA_H 1 -| #define HAVE_ALLOCA 1 -| #define STDC_HEADERS 1 -| #define HAVE_SYS_WAIT_H 1 -| #define HAVE_ARPA_INET_H 1 -| #define HAVE_FCNTL_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_LIMITS_H 1 -| #define HAVE_MALLOC_H 1 -| #define HAVE_NETDB_H 1 -| #define HAVE_NETINET_IN_H 1 -| #define HAVE_STDDEF_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_SYS_FILE_H 1 -| #define HAVE_SYS_MOUNT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define HAVE_SYS_STATFS_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_SYS_TIMEB_H 1 -| #define HAVE_SYSLOG_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_UTIME_H 1 -| #define HAVE_VALUES_H 1 -| /* end confdefs.h. */ -| #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 -| int -| main () -| { -| if ((_Bool *) 0) -| return 0; -| if (sizeof (_Bool)) -| return 0; -| ; -| return 0; -| } -configure:20342: result: no -configure:20361: checking for an ANSI C-conforming const -configure:20428: g++ -c conftest.cc >&5 -configure:20434: $? = 0 -configure:20438: test -z - || test ! -s conftest.err -configure:20441: $? = 0 -configure:20444: test -s conftest.o -configure:20447: $? = 0 -configure:20458: result: yes -configure:20468: checking for inline -configure:20489: g++ -c conftest.cc >&5 -configure:20495: $? = 0 -configure:20499: test -z - || test ! -s conftest.err -configure:20502: $? = 0 -configure:20505: test -s conftest.o -configure:20508: $? = 0 -configure:20520: result: inline -configure:20539: checking for mode_t -configure:20563: g++ -c conftest.cc >&5 -configure:20569: $? = 0 -configure:20573: test -z - || test ! -s conftest.err -configure:20576: $? = 0 -configure:20579: test -s conftest.o -configure:20582: $? = 0 -configure:20593: result: yes -configure:20605: checking for off_t -configure:20629: g++ -c conftest.cc >&5 -configure:20635: $? = 0 -configure:20639: test -z - || test ! -s conftest.err -configure:20642: $? = 0 -configure:20645: test -s conftest.o -configure:20648: $? = 0 -configure:20659: result: yes -configure:20671: checking for pid_t -configure:20695: g++ -c conftest.cc >&5 -configure:20701: $? = 0 -configure:20705: test -z - || test ! -s conftest.err -configure:20708: $? = 0 -configure:20711: test -s conftest.o -configure:20714: $? = 0 -configure:20725: result: yes -configure:20737: checking for C/C++ restrict keyword -configure:20755: g++ -c conftest.cc >&5 -conftest.cc:52: error: expected initializer before 'x' -configure:20761: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_ALLOCA_H 1 -| #define HAVE_ALLOCA 1 -| #define STDC_HEADERS 1 -| #define HAVE_SYS_WAIT_H 1 -| #define HAVE_ARPA_INET_H 1 -| #define HAVE_FCNTL_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_LIMITS_H 1 -| #define HAVE_MALLOC_H 1 -| #define HAVE_NETDB_H 1 -| #define HAVE_NETINET_IN_H 1 -| #define HAVE_STDDEF_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_SYS_FILE_H 1 -| #define HAVE_SYS_MOUNT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define HAVE_SYS_STATFS_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_SYS_TIMEB_H 1 -| #define HAVE_SYSLOG_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_UTIME_H 1 -| #define HAVE_VALUES_H 1 -| #define HAVE_STDBOOL_H 1 -| /* end confdefs.h. */ -| float * restrict x; -configure:20755: g++ -c conftest.cc >&5 -configure:20761: $? = 0 -configure:20765: test -z - || test ! -s conftest.err -configure:20768: $? = 0 -configure:20771: test -s conftest.o -configure:20774: $? = 0 -configure:20786: result: __restrict -configure:20801: checking for size_t -configure:20825: g++ -c conftest.cc >&5 -configure:20831: $? = 0 -configure:20835: test -z - || test ! -s conftest.err -configure:20838: $? = 0 -configure:20841: test -s conftest.o -configure:20844: $? = 0 -configure:20855: result: yes -configure:20867: checking whether time.h and sys/time.h may both be included -configure:20892: g++ -c conftest.cc >&5 -configure:20898: $? = 0 -configure:20902: test -z - || test ! -s conftest.err -configure:20905: $? = 0 -configure:20908: test -s conftest.o -configure:20911: $? = 0 -configure:20922: result: yes -configure:20932: checking whether struct tm is in sys/time.h or time.h -configure:20955: g++ -c conftest.cc >&5 -configure:20961: $? = 0 -configure:20965: test -z - || test ! -s conftest.err -configure:20968: $? = 0 -configure:20971: test -s conftest.o -configure:20974: $? = 0 -configure:20985: result: time.h -configure:20995: checking for working volatile -configure:21018: g++ -c conftest.cc >&5 -configure:21024: $? = 0 -configure:21028: test -z - || test ! -s conftest.err -configure:21031: $? = 0 -configure:21034: test -s conftest.o -configure:21037: $? = 0 -configure:21048: result: yes -configure:21058: checking for ptrdiff_t -configure:21082: g++ -c conftest.cc >&5 -configure:21088: $? = 0 -configure:21092: test -z - || test ! -s conftest.err -configure:21095: $? = 0 -configure:21098: test -s conftest.o -configure:21101: $? = 0 -configure:21112: result: yes -configure:21125: checking for error_at_line -configure:21146: g++ -o conftest conftest.cc >&5 -conftest.cc: In function 'int main()': -conftest.cc:92: error: 'error_at_line' was not declared in this scope -configure:21152: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_ALLOCA_H 1 -| #define HAVE_ALLOCA 1 -| #define STDC_HEADERS 1 -| #define HAVE_SYS_WAIT_H 1 -| #define HAVE_ARPA_INET_H 1 -| #define HAVE_FCNTL_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_LIMITS_H 1 -| #define HAVE_MALLOC_H 1 -| #define HAVE_NETDB_H 1 -| #define HAVE_NETINET_IN_H 1 -| #define HAVE_STDDEF_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_SYS_FILE_H 1 -| #define HAVE_SYS_MOUNT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define HAVE_SYS_STATFS_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_SYS_TIMEB_H 1 -| #define HAVE_SYSLOG_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_UTIME_H 1 -| #define HAVE_VALUES_H 1 -| #define HAVE_STDBOOL_H 1 -| #define restrict __restrict -| #define TIME_WITH_SYS_TIME 1 -| #define HAVE_PTRDIFF_T 1 -| /* end confdefs.h. */ -| #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 -| int -| main () -| { -| error_at_line (0, 0, "", 0, ""); -| ; -| return 0; -| } -configure:21177: result: no -configure:21190: checking for mbstate_t -configure:21212: g++ -c conftest.cc >&5 -configure:21218: $? = 0 -configure:21222: test -z - || test ! -s conftest.err -configure:21225: $? = 0 -configure:21228: test -s conftest.o -configure:21231: $? = 0 -configure:21242: result: yes -configure:21257: checking for working POSIX fnmatch -configure:21295: g++ -o conftest conftest.cc >&5 -configure:21298: $? = 0 -configure:21300: ./conftest -configure:21303: $? = 0 -configure:21317: result: yes -configure:21676: checking for unistd.h -configure:21681: result: yes -configure:21685: checking vfork.h usability -configure:21697: g++ -c conftest.cc >&5 -conftest.cc:91:19: error: vfork.h: No such file or directory -configure:21703: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_ALLOCA_H 1 -| #define HAVE_ALLOCA 1 -| #define STDC_HEADERS 1 -| #define HAVE_SYS_WAIT_H 1 -| #define HAVE_ARPA_INET_H 1 -| #define HAVE_FCNTL_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_LIMITS_H 1 -| #define HAVE_MALLOC_H 1 -| #define HAVE_NETDB_H 1 -| #define HAVE_NETINET_IN_H 1 -| #define HAVE_STDDEF_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_SYS_FILE_H 1 -| #define HAVE_SYS_MOUNT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define HAVE_SYS_STATFS_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_SYS_TIMEB_H 1 -| #define HAVE_SYSLOG_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_UTIME_H 1 -| #define HAVE_VALUES_H 1 -| #define HAVE_STDBOOL_H 1 -| #define restrict __restrict -| #define TIME_WITH_SYS_TIME 1 -| #define HAVE_PTRDIFF_T 1 -| #define HAVE_MBSTATE_T 1 -| #define HAVE_UNISTD_H 1 -| /* end confdefs.h. */ -| #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 -| #include -configure:21726: result: no -configure:21730: checking vfork.h presence -configure:21740: g++ -E conftest.cc -conftest.cc:57:19: error: vfork.h: No such file or directory -configure:21746: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_ALLOCA_H 1 -| #define HAVE_ALLOCA 1 -| #define STDC_HEADERS 1 -| #define HAVE_SYS_WAIT_H 1 -| #define HAVE_ARPA_INET_H 1 -| #define HAVE_FCNTL_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_LIMITS_H 1 -| #define HAVE_MALLOC_H 1 -| #define HAVE_NETDB_H 1 -| #define HAVE_NETINET_IN_H 1 -| #define HAVE_STDDEF_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_SYS_FILE_H 1 -| #define HAVE_SYS_MOUNT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define HAVE_SYS_STATFS_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_SYS_TIMEB_H 1 -| #define HAVE_SYSLOG_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_UTIME_H 1 -| #define HAVE_VALUES_H 1 -| #define HAVE_STDBOOL_H 1 -| #define restrict __restrict -| #define TIME_WITH_SYS_TIME 1 -| #define HAVE_PTRDIFF_T 1 -| #define HAVE_MBSTATE_T 1 -| #define HAVE_UNISTD_H 1 -| /* end confdefs.h. */ -| #include -configure:21766: result: no -configure:21801: checking for vfork.h -configure:21808: result: no -configure:21826: checking for fork -configure:21883: g++ -o conftest conftest.cc >&5 -configure:21889: $? = 0 -configure:21893: test -z - || test ! -s conftest.err -configure:21896: $? = 0 -configure:21899: test -s conftest -configure:21902: $? = 0 -configure:21914: result: yes -configure:21826: checking for vfork -configure:21883: g++ -o conftest conftest.cc >&5 -configure:21889: $? = 0 -configure:21893: test -z - || test ! -s conftest.err -configure:21896: $? = 0 -configure:21899: test -s conftest -configure:21902: $? = 0 -configure:21914: result: yes -configure:21925: checking for working fork -configure:21948: g++ -o conftest conftest.cc >&5 -conftest.cc: In function 'int main()': -conftest.cc:9: error: 'fork' was not declared in this scope -conftest.cc:10: error: 'exit' was not declared in this scope -conftest.cc:11: error: 'exit' was not declared in this scope -configure:21951: $? = 1 -configure: program exited with status 1 -configure: failed program was: -| /* By Ruediger Kuhlmann. */ -| #include -| #if HAVE_UNISTD_H -| # include -| #endif -| /* Some systems only have a dummy stub for fork() */ -| int main () -| { -| if (fork() < 0) -| exit (1); -| exit (0); -| } -configure:21970: result: no -configure:21991: checking for working vfork -configure:22124: result: yes -configure:22160: checking for stdlib.h -configure:22165: result: yes -configure:22305: checking for GNU libc compatible malloc -configure:22334: g++ -o conftest conftest.cc >&5 -configure:22337: $? = 0 -configure:22339: ./conftest -configure:22342: $? = 0 -configure:22356: result: yes -configure:22386: checking for working memcmp -configure:22434: g++ -o conftest conftest.cc >&5 -configure:22437: $? = 0 -configure:22439: ./conftest -configure:22442: $? = 0 -configure:22456: result: yes -configure:22474: checking for stdlib.h -configure:22479: result: yes -configure:22474: checking for sys/time.h -configure:22479: result: yes -configure:22474: checking for unistd.h -configure:22479: result: yes -configure:22623: checking for alarm -configure:22680: g++ -o conftest conftest.cc >&5 -configure:22686: $? = 0 -configure:22690: test -z - || test ! -s conftest.err -configure:22693: $? = 0 -configure:22696: test -s conftest -configure:22699: $? = 0 -configure:22711: result: yes -configure:22721: checking for working mktime -configure:22897: g++ -o conftest conftest.cc >&5 -conftest.cc:100: warning: deprecated conversion from string constant to 'char*' -conftest.cc:100: warning: deprecated conversion from string constant to 'char*' -conftest.cc:100: warning: deprecated conversion from string constant to 'char*' -conftest.cc: In function 'void spring_forward_gap()': -conftest.cc:115: warning: deprecated conversion from string constant to 'char*' -conftest.cc: At global scope: -conftest.cc:129: error: variable or field 'mktime_test1' declared void -conftest.cc:129: error: 'now' was not declared in this scope -conftest.cc:131: error: expected unqualified-id before '{' token -conftest.cc:138: error: variable or field 'mktime_test' declared void -conftest.cc:138: error: 'now' was not declared in this scope -conftest.cc:140: error: expected unqualified-id before '{' token -conftest.cc:164: error: variable or field 'bigtime_test' declared void -conftest.cc:164: error: 'j' was not declared in this scope -conftest.cc:166: error: expected unqualified-id before '{' token -configure:22900: $? = 1 -configure: program exited with status 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_ALLOCA_H 1 -| #define HAVE_ALLOCA 1 -| #define STDC_HEADERS 1 -| #define HAVE_SYS_WAIT_H 1 -| #define HAVE_ARPA_INET_H 1 -| #define HAVE_FCNTL_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_LIMITS_H 1 -| #define HAVE_MALLOC_H 1 -| #define HAVE_NETDB_H 1 -| #define HAVE_NETINET_IN_H 1 -| #define HAVE_STDDEF_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_SYS_FILE_H 1 -| #define HAVE_SYS_MOUNT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define HAVE_SYS_STATFS_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_SYS_TIMEB_H 1 -| #define HAVE_SYSLOG_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_UTIME_H 1 -| #define HAVE_VALUES_H 1 -| #define HAVE_STDBOOL_H 1 -| #define restrict __restrict -| #define TIME_WITH_SYS_TIME 1 -| #define HAVE_PTRDIFF_T 1 -| #define HAVE_MBSTATE_T 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_FORK 1 -| #define HAVE_VFORK 1 -| #define HAVE_WORKING_VFORK 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_MALLOC 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_ALARM 1 -| /* end confdefs.h. */ -| /* Test program from Paul Eggert and Tony Leneis. */ -| #if TIME_WITH_SYS_TIME -| # include -| # include -| #else -| # if HAVE_SYS_TIME_H -| # include -| # else -| # include -| # endif -| #endif -| -| #if HAVE_STDLIB_H -| # include -| #endif -| -| #if HAVE_UNISTD_H -| # include -| #endif -| -| #if !HAVE_ALARM -| # define alarm(X) /* empty */ -| #endif -| -| /* Work around redefinition to rpl_putenv by other config tests. */ -| #undef putenv -| -| static time_t time_t_max; -| static time_t time_t_min; -| -| /* Values we'll use to set the TZ environment variable. */ -| static char *tz_strings[] = { -| (char *) 0, "TZ=GMT0", "TZ=JST-9", -| "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" -| }; -| #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) -| -| /* Fail if mktime fails to convert a date in the spring-forward gap. -| Based on a problem report from Andreas Jaeger. */ -| static void -| spring_forward_gap () -| { -| /* glibc (up to about 1998-10-07) failed this test. */ -| struct tm tm; -| -| /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" -| instead of "TZ=America/Vancouver" in order to detect the bug even -| on systems that don't support the Olson extension, or don't have the -| full zoneinfo tables installed. */ -| putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); -| -| tm.tm_year = 98; -| tm.tm_mon = 3; -| tm.tm_mday = 5; -| tm.tm_hour = 2; -| tm.tm_min = 0; -| tm.tm_sec = 0; -| tm.tm_isdst = -1; -| if (mktime (&tm) == (time_t)-1) -| exit (1); -| } -| -| static void -| mktime_test1 (now) -| time_t now; -| { -| struct tm *lt; -| if ((lt = localtime (&now)) && mktime (lt) != now) -| exit (1); -| } -| -| static void -| mktime_test (now) -| time_t now; -| { -| mktime_test1 (now); -| mktime_test1 ((time_t) (time_t_max - now)); -| mktime_test1 ((time_t) (time_t_min + now)); -| } -| -| static void -| irix_6_4_bug () -| { -| /* Based on code from Ariel Faigon. */ -| struct tm tm; -| tm.tm_year = 96; -| tm.tm_mon = 3; -| tm.tm_mday = 0; -| tm.tm_hour = 0; -| tm.tm_min = 0; -| tm.tm_sec = 0; -| tm.tm_isdst = -1; -| mktime (&tm); -| if (tm.tm_mon != 2 || tm.tm_mday != 31) -| exit (1); -| } -| -| static void -| bigtime_test (j) -| int j; -| { -| struct tm tm; -| time_t now; -| tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; -| now = mktime (&tm); -| if (now != (time_t) -1) -| { -| struct tm *lt = localtime (&now); -| if (! (lt -| && lt->tm_year == tm.tm_year -| && lt->tm_mon == tm.tm_mon -| && lt->tm_mday == tm.tm_mday -| && lt->tm_hour == tm.tm_hour -| && lt->tm_min == tm.tm_min -| && lt->tm_sec == tm.tm_sec -| && lt->tm_yday == tm.tm_yday -| && lt->tm_wday == tm.tm_wday -| && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) -| == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) -| exit (1); -| } -| } -| -| int -| main () -| { -| time_t t, delta; -| int i, j; -| -| /* This test makes some buggy mktime implementations loop. -| Give up after 60 seconds; a mktime slower than that -| isn't worth using anyway. */ -| alarm (60); -| -| for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) -| continue; -| time_t_max--; -| if ((time_t) -1 < 0) -| for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) -| continue; -| delta = time_t_max / 997; /* a suitable prime number */ -| for (i = 0; i < N_STRINGS; i++) -| { -| if (tz_strings[i]) -| putenv (tz_strings[i]); -| -| for (t = 0; t <= time_t_max - delta; t += delta) -| mktime_test (t); -| mktime_test ((time_t) 1); -| mktime_test ((time_t) (60 * 60)); -| mktime_test ((time_t) (60 * 60 * 24)); -| -| for (j = 1; 0 < j; j *= 2) -| bigtime_test (j); -| bigtime_test (j - 1); -| } -| irix_6_4_bug (); -| spring_forward_gap (); -| exit (0); -| } -configure:22919: result: no -configure:22947: checking sys/select.h usability -configure:22959: g++ -c conftest.cc >&5 -configure:22965: $? = 0 -configure:22969: test -z - || test ! -s conftest.err -configure:22972: $? = 0 -configure:22975: test -s conftest.o -configure:22978: $? = 0 -configure:22988: result: yes -configure:22992: checking sys/select.h presence -configure:23002: g++ -E conftest.cc -configure:23008: $? = 0 -configure:23028: result: yes -configure:23063: checking for sys/select.h -configure:23070: result: yes -configure:22938: checking for sys/socket.h -configure:22943: result: yes -configure:23083: checking types of arguments for select -configure:23116: g++ -c conftest.cc >&5 -configure:23122: $? = 0 -configure:23126: test -z - || test ! -s conftest.err -configure:23129: $? = 0 -configure:23132: test -s conftest.o -configure:23135: $? = 0 -configure:23151: result: int,fd_set *,struct timeval * -configure:23174: checking for function prototypes -configure:23177: result: yes -configure:23194: checking whether setvbuf arguments are reversed -configure:23219: g++ -o conftest conftest.cc >&5 -/tmp/ccDqgcqp.o: In function `main': -conftest.cc:(.text+0x21): undefined reference to `setvbuf(_IO_FILE*, int, char*, unsigned long)' -collect2: ld returned 1 exit status -configure:23225: $? = 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_ALLOCA_H 1 -| #define HAVE_ALLOCA 1 -| #define STDC_HEADERS 1 -| #define HAVE_SYS_WAIT_H 1 -| #define HAVE_ARPA_INET_H 1 -| #define HAVE_FCNTL_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_LIMITS_H 1 -| #define HAVE_MALLOC_H 1 -| #define HAVE_NETDB_H 1 -| #define HAVE_NETINET_IN_H 1 -| #define HAVE_STDDEF_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_SYS_FILE_H 1 -| #define HAVE_SYS_MOUNT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define HAVE_SYS_STATFS_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_SYS_TIMEB_H 1 -| #define HAVE_SYSLOG_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_UTIME_H 1 -| #define HAVE_VALUES_H 1 -| #define HAVE_STDBOOL_H 1 -| #define restrict __restrict -| #define TIME_WITH_SYS_TIME 1 -| #define HAVE_PTRDIFF_T 1 -| #define HAVE_MBSTATE_T 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_FORK 1 -| #define HAVE_VFORK 1 -| #define HAVE_WORKING_VFORK 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_MALLOC 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_ALARM 1 -| #define HAVE_SYS_SELECT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define SELECT_TYPE_ARG1 int -| #define SELECT_TYPE_ARG234 (fd_set *) -| #define SELECT_TYPE_ARG5 (struct timeval *) -| #define PROTOTYPES 1 -| #define __PROTOTYPES 1 -| /* end confdefs.h. */ -| #include -| # if PROTOTYPES -| int (setvbuf) (FILE *, int, char *, size_t); -| # endif -| int -| main () -| { -| char buf; return setvbuf (stdout, _IOLBF, &buf, 1); -| ; -| return 0; -| } -configure:23346: result: no -configure:23356: checking return type of signal handlers -configure:23387: g++ -c conftest.cc >&5 -configure:23393: $? = 0 -configure:23397: test -z - || test ! -s conftest.err -configure:23400: $? = 0 -configure:23403: test -s conftest.o -configure:23406: $? = 0 -configure:23417: result: void -configure:23425: checking whether lstat dereferences a symlink specified with a trailing slash -configure:23456: g++ -o conftest conftest.cc >&5 -configure:23459: $? = 0 -configure:23461: ./conftest -configure:23464: $? = 0 -configure:23485: result: yes -configure:23506: checking whether stat accepts an empty string -configure:23531: g++ -o conftest conftest.cc >&5 -configure:23534: $? = 0 -configure:23536: ./conftest -configure:23539: $? = 1 -configure: program exited with status 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_ALLOCA_H 1 -| #define HAVE_ALLOCA 1 -| #define STDC_HEADERS 1 -| #define HAVE_SYS_WAIT_H 1 -| #define HAVE_ARPA_INET_H 1 -| #define HAVE_FCNTL_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_LIMITS_H 1 -| #define HAVE_MALLOC_H 1 -| #define HAVE_NETDB_H 1 -| #define HAVE_NETINET_IN_H 1 -| #define HAVE_STDDEF_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_SYS_FILE_H 1 -| #define HAVE_SYS_MOUNT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define HAVE_SYS_STATFS_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_SYS_TIMEB_H 1 -| #define HAVE_SYSLOG_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_UTIME_H 1 -| #define HAVE_VALUES_H 1 -| #define HAVE_STDBOOL_H 1 -| #define restrict __restrict -| #define TIME_WITH_SYS_TIME 1 -| #define HAVE_PTRDIFF_T 1 -| #define HAVE_MBSTATE_T 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_FORK 1 -| #define HAVE_VFORK 1 -| #define HAVE_WORKING_VFORK 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_MALLOC 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_ALARM 1 -| #define HAVE_SYS_SELECT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define SELECT_TYPE_ARG1 int -| #define SELECT_TYPE_ARG234 (fd_set *) -| #define SELECT_TYPE_ARG5 (struct timeval *) -| #define PROTOTYPES 1 -| #define __PROTOTYPES 1 -| #define RETSIGTYPE void -| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 -| /* end confdefs.h. */ -| #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 -| int -| main () -| { -| struct stat sbuf; -| exit (stat ("", &sbuf) ? 1 : 0); -| ; -| return 0; -| } -configure:23553: result: no -configure:23571: checking whether strerror_r is declared -configure:23595: g++ -c conftest.cc >&5 -configure:23601: $? = 0 -configure:23605: test -z - || test ! -s conftest.err -configure:23608: $? = 0 -configure:23611: test -s conftest.o -configure:23614: $? = 0 -configure:23625: result: yes -configure:23647: checking for strerror_r -configure:23704: g++ -o conftest conftest.cc >&5 -configure:23710: $? = 0 -configure:23714: test -z - || test ! -s conftest.err -configure:23717: $? = 0 -configure:23720: test -s conftest -configure:23723: $? = 0 -configure:23735: result: yes -configure:23745: checking whether strerror_r returns char * -configure:23773: g++ -c conftest.cc >&5 -configure:23779: $? = 0 -configure:23783: test -z - || test ! -s conftest.err -configure:23786: $? = 0 -configure:23789: test -s conftest.o -configure:23792: $? = 0 -configure:23852: result: yes -configure:23866: checking for strftime -configure:23923: g++ -o conftest conftest.cc >&5 -configure:23929: $? = 0 -configure:23933: test -z - || test ! -s conftest.err -configure:23936: $? = 0 -configure:23939: test -s conftest -configure:23942: $? = 0 -configure:23954: result: yes -configure:24038: checking for working strtod -configure:24090: g++ -o conftest conftest.cc >&5 -conftest.cc:84: warning: declaration of 'void exit(int)' with C language linkage -conftest.cc:11: warning: conflicts with previous declaration 'void exit(int)' -conftest.cc:84: warning: due to different exception specifications -configure:24093: $? = 0 -configure:24095: ./conftest -configure:24098: $? = 0 -configure:24112: result: yes -configure:24290: checking whether utime accepts a null argument -configure:24325: g++ -o conftest conftest.cc >&5 -configure:24328: $? = 0 -configure:24330: ./conftest -configure:24333: $? = 1 -configure: program exited with status 1 -configure: failed program was: -| /* confdefs.h. */ -| -| #define PACKAGE_NAME "infinidb" -| #define PACKAGE_TARNAME "infinidb" -| #define PACKAGE_VERSION "4.6.1" -| #define PACKAGE_STRING "infinidb 4.6.1" -| #define PACKAGE_BUGREPORT "support@infinidb.co" -| #define PACKAGE "infinidb" -| #define VERSION "4.6.1" -| #ifdef __cplusplus -| extern "C" void exit (int) throw (); -| #endif -| #define STDC_HEADERS 1 -| #define HAVE_SYS_TYPES_H 1 -| #define HAVE_SYS_STAT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_MEMORY_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_DLFCN_H 1 -| #define HAVE_ALLOCA_H 1 -| #define HAVE_ALLOCA 1 -| #define STDC_HEADERS 1 -| #define HAVE_SYS_WAIT_H 1 -| #define HAVE_ARPA_INET_H 1 -| #define HAVE_FCNTL_H 1 -| #define HAVE_INTTYPES_H 1 -| #define HAVE_LIMITS_H 1 -| #define HAVE_MALLOC_H 1 -| #define HAVE_NETDB_H 1 -| #define HAVE_NETINET_IN_H 1 -| #define HAVE_STDDEF_H 1 -| #define HAVE_STDINT_H 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_STRING_H 1 -| #define HAVE_STRINGS_H 1 -| #define HAVE_SYS_FILE_H 1 -| #define HAVE_SYS_MOUNT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define HAVE_SYS_STATFS_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_SYS_TIMEB_H 1 -| #define HAVE_SYSLOG_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_UTIME_H 1 -| #define HAVE_VALUES_H 1 -| #define HAVE_STDBOOL_H 1 -| #define restrict __restrict -| #define TIME_WITH_SYS_TIME 1 -| #define HAVE_PTRDIFF_T 1 -| #define HAVE_MBSTATE_T 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_FORK 1 -| #define HAVE_VFORK 1 -| #define HAVE_WORKING_VFORK 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_MALLOC 1 -| #define HAVE_STDLIB_H 1 -| #define HAVE_SYS_TIME_H 1 -| #define HAVE_UNISTD_H 1 -| #define HAVE_ALARM 1 -| #define HAVE_SYS_SELECT_H 1 -| #define HAVE_SYS_SOCKET_H 1 -| #define SELECT_TYPE_ARG1 int -| #define SELECT_TYPE_ARG234 (fd_set *) -| #define SELECT_TYPE_ARG5 (struct timeval *) -| #define PROTOTYPES 1 -| #define __PROTOTYPES 1 -| #define RETSIGTYPE void -| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 -| #define HAVE_DECL_STRERROR_R 1 -| #define HAVE_STRERROR_R 1 -| #define STRERROR_R_CHAR_P 1 -| #define HAVE_STRFTIME 1 -| /* end confdefs.h. */ -| -| #include -| #include -| #include -| #include -| int -| main() -| { -| struct stat s, t; -| exit (!(stat ("conftest.data", &s) == 0 -| && utime ("conftest.data", (const utimbuf *)0) == 0 -| && stat ("conftest.data", &t) == 0 -| && t.st_mtime >= s.st_mtime -| && t.st_mtime - s.st_mtime < 120)); -| } -| -| -configure:24347: result: no -configure:24394: checking for alarm -configure:24482: result: yes -configure:24394: checking for dup2 -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for floor -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for ftime -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for ftruncate -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for gethostbyname -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for getpagesize -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for gettimeofday -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for inet_ntoa -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for isascii -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for localtime_r -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for memchr -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for memmove -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for memset -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for mkdir -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for pow -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for regcomp -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for rmdir -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for select -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for setenv -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for setlocale -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for socket -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strcasecmp -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strchr -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strcspn -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strdup -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strerror -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strrchr -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strspn -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strstr -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strtol -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strtoul -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for strtoull -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24394: checking for utime -configure:24451: g++ -o conftest conftest.cc >&5 -configure:24457: $? = 0 -configure:24461: test -z - || test ! -s conftest.err -configure:24464: $? = 0 -configure:24467: test -s conftest -configure:24470: $? = 0 -configure:24482: result: yes -configure:24533: checking for xml2-config -configure:24551: found /usr/bin/xml2-config -configure:24564: result: /usr/bin/xml2-config -configure:24572: checking for libxml - version >= 2.6.26 -configure:24679: g++ -o conftest -I/usr/include/libxml2 conftest.cc -lxml2 -lz -lm >&5 -configure:24682: $? = 0 -configure:24684: ./conftest -configure:24687: $? = 0 -configure:24706: result: yes (version 2.7.6) -configure:24817: checking zlib.h usability -configure:24829: g++ -c conftest.cc >&5 -configure:24835: $? = 0 -configure:24839: test -z - || test ! -s conftest.err -configure:24842: $? = 0 -configure:24845: test -s conftest.o -configure:24848: $? = 0 -configure:24858: result: yes -configure:24862: checking zlib.h presence -configure:24872: g++ -E conftest.cc -configure:24878: $? = 0 -configure:24898: result: yes -configure:24933: checking for zlib.h -configure:24940: result: yes -configure:24973: checking readline/readline.h usability -configure:24985: g++ -c conftest.cc >&5 -configure:24991: $? = 0 -configure:24995: test -z - || test ! -s conftest.err -configure:24998: $? = 0 -configure:25001: test -s conftest.o -configure:25004: $? = 0 -configure:25014: result: yes -configure:25018: checking readline/readline.h presence -configure:25028: g++ -E conftest.cc -configure:25034: $? = 0 -configure:25054: result: yes -configure:25089: checking for readline/readline.h -configure:25096: result: yes -configure:25129: checking ncurses.h usability -configure:25141: g++ -c conftest.cc >&5 -configure:25147: $? = 0 -configure:25151: test -z - || test ! -s conftest.err -configure:25154: $? = 0 -configure:25157: test -s conftest.o -configure:25160: $? = 0 -configure:25170: result: yes -configure:25174: checking ncurses.h presence -configure:25184: g++ -E conftest.cc -configure:25190: $? = 0 -configure:25210: result: yes -configure:25245: checking for ncurses.h -configure:25252: result: yes -configure:25271: checking if g++ supports -Wno-unused-local-typedefs -configure:25291: g++ -c -Werror -Wno-unused-local-typedefs conftest.cc >&5 -configure:25297: $? = 0 -configure:25301: test -z - || test ! -s conftest.err -configure:25304: $? = 0 -configure:25307: test -s conftest.o -configure:25310: $? = 0 -configure:25312: result: yes -configure:25326: checking if g++ supports -Wno-unused-result -configure:25346: g++ -c -Werror -Wno-unused-result conftest.cc >&5 -configure:25352: $? = 0 -configure:25356: test -z - || test ! -s conftest.err -configure:25359: $? = 0 -configure:25362: test -s conftest.o -configure:25365: $? = 0 -configure:25367: result: yes -configure:25381: checking if g++ supports -Wno-format -configure:25401: g++ -c -Werror -Wno-format conftest.cc >&5 -configure:25407: $? = 0 -configure:25411: test -z - || test ! -s conftest.err -configure:25414: $? = 0 -configure:25417: test -s conftest.o -configure:25420: $? = 0 -configure:25422: result: yes -configure:25437: checking whether to enable debugging -configure:25459: result: no -configure:25467: checking for CPU architecture -configure:25476: result: x86_64 -configure:25655: creating ./config.status - -## ---------------------- ## -## Running config.status. ## -## ---------------------- ## - -This file was extended by infinidb config.status 4.6.1, which was -generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = - CONFIG_HEADERS = - CONFIG_LINKS = - CONFIG_COMMANDS = - $ ./config.status - -on srvhall03 - -config.status:848: creating Makefile -config.status:848: creating utils/Makefile -config.status:848: creating utils/boost_idb/Makefile -config.status:848: creating utils/startup/Makefile -config.status:848: creating utils/common/Makefile -config.status:848: creating utils/configcpp/Makefile -config.status:848: creating utils/loggingcpp/Makefile -config.status:848: creating utils/messageqcpp/Makefile -config.status:848: creating utils/threadpool/Makefile -config.status:848: creating utils/rwlock/Makefile -config.status:848: creating utils/dataconvert/Makefile -config.status:848: creating utils/joiner/Makefile -config.status:848: creating utils/rowgroup/Makefile -config.status:848: creating utils/cacheutils/Makefile -config.status:848: creating utils/net-snmp/Makefile -config.status:848: creating utils/funcexp/Makefile -config.status:848: creating utils/udfsdk/Makefile -config.status:848: creating utils/compress/Makefile -config.status:848: creating utils/ddlcleanup/Makefile -config.status:848: creating utils/batchloader/Makefile -config.status:848: creating utils/mysqlcl_idb/Makefile -config.status:848: creating utils/querystats/Makefile -config.status:848: creating utils/jemalloc/Makefile -config.status:848: creating utils/windowfunction/Makefile -config.status:848: creating utils/idbdatafile/Makefile -config.status:848: creating utils/idbhdfs/Makefile -config.status:848: creating utils/idbhdfs/hdfs-12/Makefile -config.status:848: creating utils/idbhdfs/hdfs-20/Makefile -config.status:848: creating utils/winport/Makefile -config.status:848: creating utils/thrift/Makefile -config.status:848: creating utils/querytele/Makefile -config.status:848: creating exemgr/Makefile -config.status:848: creating ddlproc/Makefile -config.status:848: creating dbcon/Makefile -config.status:848: creating dbcon/ddlpackage/Makefile -config.status:848: creating dbcon/ddlpackageproc/Makefile -config.status:848: creating dbcon/dmlpackage/Makefile -config.status:848: creating dbcon/dmlpackageproc/Makefile -config.status:848: creating dbcon/execplan/Makefile -config.status:848: creating dbcon/joblist/Makefile -config.status:848: creating dbcon/mysql/Makefile -config.status:848: creating dmlproc/Makefile -config.status:848: creating oam/Makefile -config.status:848: creating oam/etc/Makefile -config.status:848: creating oam/install_scripts/Makefile -config.status:848: creating oam/oamcpp/Makefile -config.status:848: creating oam/post/Makefile -config.status:848: creating oam/cloud/Makefile -config.status:848: creating oamapps/Makefile -config.status:848: creating oamapps/calpontConsole/Makefile -config.status:848: creating oamapps/calpontDB/Makefile -config.status:848: creating oamapps/postConfigure/Makefile -config.status:848: creating oamapps/serverMonitor/Makefile -config.status:848: creating oamapps/sessionWalker/Makefile -config.status:848: creating oamapps/traphandler/Makefile -config.status:848: creating oamapps/sendtrap/Makefile -config.status:848: creating oamapps/calpontSupport/Makefile -config.status:848: creating primitives/Makefile -config.status:848: creating primitives/blockcache/Makefile -config.status:848: creating primitives/linux-port/Makefile -config.status:848: creating primitives/primproc/Makefile -config.status:848: creating decomsvr/Makefile -config.status:848: creating procmgr/Makefile -config.status:848: creating procmon/Makefile -config.status:848: creating snmpd/Makefile -config.status:848: creating snmpd/etc/Makefile -config.status:848: creating snmpd/snmpmanager/Makefile -config.status:848: creating tools/Makefile -config.status:848: creating tools/editem/Makefile -config.status:848: creating tools/cplogger/Makefile -config.status:848: creating tools/clearShm/Makefile -config.status:848: creating tools/setConfig/Makefile -config.status:848: creating tools/getConfig/Makefile -config.status:848: creating tools/dbbuilder/Makefile -config.status:848: creating tools/dbloadxml/Makefile -config.status:848: creating tools/configMgt/Makefile -config.status:848: creating tools/viewtablelock/Makefile -config.status:848: creating tools/cleartablelock/Makefile -config.status:848: creating tools/ddlcleanup/Makefile -config.status:848: creating tools/idbmeminfo/Makefile -config.status:848: creating versioning/Makefile -config.status:848: creating versioning/BRM/Makefile -config.status:848: creating writeengine/Makefile -config.status:848: creating writeengine/shared/Makefile -config.status:848: creating writeengine/index/Makefile -config.status:848: creating writeengine/dictionary/Makefile -config.status:848: creating writeengine/wrapper/Makefile -config.status:848: creating writeengine/xml/Makefile -config.status:848: creating writeengine/bulk/Makefile -config.status:848: creating writeengine/client/Makefile -config.status:848: creating writeengine/splitter/Makefile -config.status:848: creating writeengine/server/Makefile -config.status:848: creating writeengine/redistribute/Makefile -config.status:848: creating net-snmp/Makefile -config.status:952: creating config.h -config.status:1594: executing depfiles commands - -## ---------------- ## -## Cache variables. ## -## ---------------- ## - -ac_cv_build=x86_64-unknown-linux-gnu -ac_cv_build_alias=x86_64-unknown-linux-gnu -ac_cv_c_compiler_gnu=yes -ac_cv_c_const=yes -ac_cv_c_inline=inline -ac_cv_c_restrict=__restrict -ac_cv_c_volatile=yes -ac_cv_cxx_compiler_gnu=yes -ac_cv_env_CC_set= -ac_cv_env_CC_value= -ac_cv_env_CFLAGS_set= -ac_cv_env_CFLAGS_value= -ac_cv_env_CPPFLAGS_set= -ac_cv_env_CPPFLAGS_value= -ac_cv_env_CPP_set= -ac_cv_env_CPP_value= -ac_cv_env_CXXCPP_set= -ac_cv_env_CXXCPP_value= -ac_cv_env_CXXFLAGS_set= -ac_cv_env_CXXFLAGS_value= -ac_cv_env_CXX_set= -ac_cv_env_CXX_value= -ac_cv_env_F77_set= -ac_cv_env_F77_value= -ac_cv_env_FFLAGS_set= -ac_cv_env_FFLAGS_value= -ac_cv_env_LDFLAGS_set= -ac_cv_env_LDFLAGS_value= -ac_cv_env_build_alias_set= -ac_cv_env_build_alias_value= -ac_cv_env_host_alias_set= -ac_cv_env_host_alias_value= -ac_cv_env_target_alias_set= -ac_cv_env_target_alias_value= -ac_cv_exeext= -ac_cv_f77_compiler_gnu=no -ac_cv_func_alarm=yes -ac_cv_func_alloca_works=yes -ac_cv_func_dup2=yes -ac_cv_func_floor=yes -ac_cv_func_fnmatch_works=yes -ac_cv_func_fork=yes -ac_cv_func_fork_works=no -ac_cv_func_ftime=yes -ac_cv_func_ftruncate=yes -ac_cv_func_gethostbyname=yes -ac_cv_func_getpagesize=yes -ac_cv_func_gettimeofday=yes -ac_cv_func_inet_ntoa=yes -ac_cv_func_isascii=yes -ac_cv_func_localtime_r=yes -ac_cv_func_lstat_dereferences_slashed_symlink=yes -ac_cv_func_malloc_0_nonnull=yes -ac_cv_func_memchr=yes -ac_cv_func_memcmp_working=yes -ac_cv_func_memmove=yes -ac_cv_func_memset=yes -ac_cv_func_mkdir=yes -ac_cv_func_pow=yes -ac_cv_func_regcomp=yes -ac_cv_func_rmdir=yes -ac_cv_func_select=yes -ac_cv_func_select_args='int,fd_set *,struct timeval *' -ac_cv_func_setenv=yes -ac_cv_func_setlocale=yes -ac_cv_func_setvbuf_reversed=no -ac_cv_func_socket=yes -ac_cv_func_stat_empty_string_bug=no -ac_cv_func_strcasecmp=yes -ac_cv_func_strchr=yes -ac_cv_func_strcspn=yes -ac_cv_func_strdup=yes -ac_cv_func_strerror=yes -ac_cv_func_strerror_r=yes -ac_cv_func_strerror_r_char_p=yes -ac_cv_func_strftime=yes -ac_cv_func_strrchr=yes -ac_cv_func_strspn=yes -ac_cv_func_strstr=yes -ac_cv_func_strtod=yes -ac_cv_func_strtol=yes -ac_cv_func_strtoul=yes -ac_cv_func_strtoull=yes -ac_cv_func_utime=yes -ac_cv_func_utime_null=no -ac_cv_func_vfork=yes -ac_cv_func_vfork_works=yes -ac_cv_func_working_mktime=no -ac_cv_have_decl_strerror_r=yes -ac_cv_header_arpa_inet_h=yes -ac_cv_header_dlfcn_h=yes -ac_cv_header_fcntl_h=yes -ac_cv_header_inttypes_h=yes -ac_cv_header_limits_h=yes -ac_cv_header_malloc_h=yes -ac_cv_header_memory_h=yes -ac_cv_header_ncurses_h=yes -ac_cv_header_netdb_h=yes -ac_cv_header_netinet_in_h=yes -ac_cv_header_readline_readline_h=yes -ac_cv_header_stat_broken=no -ac_cv_header_stdbool_h=yes -ac_cv_header_stdc=yes -ac_cv_header_stddef_h=yes -ac_cv_header_stdint_h=yes -ac_cv_header_stdlib_h=yes -ac_cv_header_string_h=yes -ac_cv_header_strings_h=yes -ac_cv_header_sys_file_h=yes -ac_cv_header_sys_mount_h=yes -ac_cv_header_sys_select_h=yes -ac_cv_header_sys_socket_h=yes -ac_cv_header_sys_stat_h=yes -ac_cv_header_sys_statfs_h=yes -ac_cv_header_sys_time_h=yes -ac_cv_header_sys_timeb_h=yes -ac_cv_header_sys_types_h=yes -ac_cv_header_sys_wait_h=yes -ac_cv_header_syslog_h=yes -ac_cv_header_time=yes -ac_cv_header_unistd_h=yes -ac_cv_header_utime_h=yes -ac_cv_header_values_h=yes -ac_cv_header_vfork_h=no -ac_cv_header_zlib_h=yes -ac_cv_host=x86_64-unknown-linux-gnu -ac_cv_host_alias=x86_64-unknown-linux-gnu -ac_cv_lib_error_at_line=no -ac_cv_lib_fl_yywrap=yes -ac_cv_objext=o -ac_cv_path_XML2_CONFIG=/usr/bin/xml2-config -ac_cv_path_install='/usr/bin/install -p' -ac_cv_prog_AWK=gawk -ac_cv_prog_CPP='gcc -E' -ac_cv_prog_CXXCPP='g++ -E' -ac_cv_prog_LEX=flex -ac_cv_prog_YACC='bison -y' -ac_cv_prog_ac_ct_AR=ar -ac_cv_prog_ac_ct_CC=gcc -ac_cv_prog_ac_ct_CXX=g++ -ac_cv_prog_ac_ct_RANLIB=ranlib -ac_cv_prog_ac_ct_STRIP=strip -ac_cv_prog_cc_g=yes -ac_cv_prog_cc_stdc= -ac_cv_prog_cxx_g=yes -ac_cv_prog_egrep='grep -E' -ac_cv_prog_f77_g=no -ac_cv_prog_lex_root=lex.yy -ac_cv_prog_lex_yytext_pointer=no -ac_cv_prog_make_make_set=yes -ac_cv_struct_tm=time.h -ac_cv_type__Bool=no -ac_cv_type_mbstate_t=yes -ac_cv_type_mode_t=yes -ac_cv_type_off_t=yes -ac_cv_type_pid_t=yes -ac_cv_type_ptrdiff_t=yes -ac_cv_type_signal=void -ac_cv_type_size_t=yes -ac_cv_working_alloca_h=yes -am_cv_CC_dependencies_compiler_type=gcc3 -am_cv_CXX_dependencies_compiler_type=gcc3 -lt_cv_deplibs_check_method=pass_all -lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_ld_reload_flag=-r -lt_cv_objdir=.libs -lt_cv_path_LD=/usr/bin/ld -lt_cv_path_LDCXX='/usr/bin/ld -m elf_x86_64' -lt_cv_path_NM='/usr/bin/nm -B' -lt_cv_path_SED=/bin/sed -lt_cv_prog_compiler_c_o=yes -lt_cv_prog_compiler_c_o_CXX=yes -lt_cv_prog_compiler_rtti_exceptions=no -lt_cv_prog_gnu_ld=yes -lt_cv_prog_gnu_ldcxx=yes -lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\''' -lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\''' -lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\''' -lt_cv_sys_max_cmd_len=32768 -lt_lt_cv_prog_compiler_c_o='"yes"' -lt_lt_cv_prog_compiler_c_o_CXX='"yes"' -lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"' -lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'\''"' -lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"' - -## ----------------- ## -## Output variables. ## -## ----------------- ## - -ACLOCAL='${SHELL} /home/calpont/genii/missing --run aclocal-1.9' -ALLOCA='' -AMDEPBACKSLASH='\' -AMDEP_FALSE='#' -AMDEP_TRUE='' -AMTAR='${SHELL} /home/calpont/genii/missing --run tar' -AR='ar' -AUTOCONF='${SHELL} /home/calpont/genii/missing --run autoconf' -AUTOHEADER='${SHELL} /home/calpont/genii/missing --run autoheader' -AUTOMAKE='${SHELL} /home/calpont/genii/missing --run automake-1.9' -AWK='gawk' -CC='gcc' -CCDEPMODE='depmode=gcc3' -CFLAGS='' -CPP='gcc -E' -CPPFLAGS='' -CXX='g++' -CXXCPP='g++ -E' -CXXDEPMODE='depmode=gcc3' -CXXFLAGS='' -CYGPATH_W='echo' -DEFS='-DHAVE_CONFIG_H' -DEPDIR='.deps' -ECHO='echo' -ECHO_C='' -ECHO_N='-n' -ECHO_T='' -EGREP='grep -E' -EXEEXT='' -F77='' -FFLAGS='' -INSTALL_DATA='${INSTALL} -m 644' -INSTALL_PROGRAM='${INSTALL}' -INSTALL_SCRIPT='${INSTALL}' -INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' -LDFLAGS='' -LEX='flex' -LEXLIB='-lfl' -LEX_OUTPUT_ROOT='lex.yy' -LIBOBJS=' error$U.o mktime$U.o' -LIBS='' -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -LN_S='ln -s' -LTLIBOBJS=' error$U.lo mktime$U.lo' -MAKEINFO='${SHELL} /home/calpont/genii/missing --run makeinfo' -OBJEXT='o' -PACKAGE='infinidb' -PACKAGE_BUGREPORT='support@infinidb.co' -PACKAGE_NAME='infinidb' -PACKAGE_STRING='infinidb 4.6.1' -PACKAGE_TARNAME='infinidb' -PACKAGE_VERSION='4.6.1' -PATH_SEPARATOR=':' -POW_LIB='' -RANLIB='ranlib' -SED='/bin/sed' -SET_MAKE='' -SHELL='/bin/sh' -STRIP='strip' -VERSION='4.6.1' -XML2_CONFIG='/usr/bin/xml2-config' -XML_CPPFLAGS='-I/usr/include/libxml2' -XML_LIBS='-lxml2 -lz -lm' -YACC='bison -y' -ac_ct_AR='ar' -ac_ct_CC='gcc' -ac_ct_CXX='g++' -ac_ct_F77='' -ac_ct_RANLIB='ranlib' -ac_ct_STRIP='strip' -am__fastdepCC_FALSE='#' -am__fastdepCC_TRUE='' -am__fastdepCXX_FALSE='#' -am__fastdepCXX_TRUE='' -am__include='include' -am__leading_dot='.' -am__quote='' -am__tar='${AMTAR} chof - "$$tardir"' -am__untar='${AMTAR} xf -' -bindir='${idbinstall}/bin' -build='x86_64-unknown-linux-gnu' -build_alias='' -build_cpu='x86_64' -build_os='linux-gnu' -build_vendor='unknown' -datadir='${prefix}/share' -etcdir='${idbinstall}/etc' -exec_prefix='${prefix}' -host='x86_64-unknown-linux-gnu' -host_alias='' -host_cpu='x86_64' -host_os='linux-gnu' -host_vendor='unknown' -idb_brm_libs='-lbrm -lidbdatafile -lcacheutils -lrwlock ${idb_oam_libs} ${idb_common_libs}' -idb_cflags='-g0 -O3 -fno-strict-aliasing -Wall' -idb_common_includes='-I${idbinstall}/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include/libxml2' -idb_common_ldflags='-L${idbinstall}/lib -L/usr/local/lib' -idb_common_libs='-lmessageqcpp -lloggingcpp -lconfigcpp -lidbboot -lboost_idb -lxml2 -lpthread -lrt' -idb_cppflags=' ' -idb_cxxflags='-g0 -O3 -fno-strict-aliasing -Wall -Wno-unused-local-typedefs -Wno-unused-result -Wno-format' -idb_exec_libs='-ljoblist -lexecplan -lwindowfunction -ljoiner -lrowgroup -lfuncexp -ludfsdk -ldataconvert -lcommon -lcompress -lmysqlcl_idb -lquerystats -lquerytele -lthrift -lthreadpool ${idb_brm_libs}' -idb_ldflags='-Wl,--rpath -Wl,${idbinstall}/lib -Wl,--no-as-needed -Wl,--add-needed' -idb_oam_libs='-loamcpp -lsnmpmanager ${netsnmp_libs}' -idb_write_libs='-lddlpackageproc -lddlpackage -ldmlpackageproc -ldmlpackage -lwriteengine -lwriteengineclient -lidbdatafile -lcacheutils ${idb_exec_libs}' -idbinstall='${prefix}' -includedir='${idbinstall}/include' -infodir='${prefix}/info' -install_sh='/home/calpont/genii/install-sh' -libdir='${idbinstall}/lib' -libexecdir='${exec_prefix}/libexec' -localdir='${idbinstall}/local' -localstatedir='${prefix}/var' -mandir='${idbinstall}/man' -march_flags=' ' -mibdir='${idbinstall}/share/snmp/mibs' -mkdir_p='mkdir -p --' -mysqldir='${idbinstall}/mysql' -netsnmp_libs='-lnetsnmpmibs -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers' -netsnmpagntdir='${idbinstall}/include/net-snmp/agent' -netsnmpdir='${idbinstall}/include/net-snmp' -netsnmplibrdir='${idbinstall}/include/net-snmp/library' -netsnmpmachdir='${idbinstall}/include/net-snmp/machine' -netsnmpsysdir='${idbinstall}/include/net-snmp/system' -oldincludedir='/usr/include' -postdir='${idbinstall}/post' -prefix='/usr/local' -program_transform_name='s,x,x,' -sbindir='${idbinstall}/sbin' -sharedir='${idbinstall}/share' -sharedstatedir='${prefix}/com' -sysconfdir='${idbinstall}/etc' -target_alias='' -toolsdir='${idbinstall}/tools' - -## ----------- ## -## confdefs.h. ## -## ----------- ## - -#define HAVE_ALARM 1 -#define HAVE_ALARM 1 -#define HAVE_ALLOCA 1 -#define HAVE_ALLOCA_H 1 -#define HAVE_ARPA_INET_H 1 -#define HAVE_DECL_STRERROR_R 1 -#define HAVE_DLFCN_H 1 -#define HAVE_DUP2 1 -#define HAVE_FCNTL_H 1 -#define HAVE_FLOOR 1 -#define HAVE_FORK 1 -#define HAVE_FTIME 1 -#define HAVE_FTRUNCATE 1 -#define HAVE_GETHOSTBYNAME 1 -#define HAVE_GETPAGESIZE 1 -#define HAVE_GETTIMEOFDAY 1 -#define HAVE_INET_NTOA 1 -#define HAVE_INTTYPES_H 1 -#define HAVE_INTTYPES_H 1 -#define HAVE_ISASCII 1 -#define HAVE_LIMITS_H 1 -#define HAVE_LOCALTIME_R 1 -#define HAVE_MALLOC 1 -#define HAVE_MALLOC_H 1 -#define HAVE_MBSTATE_T 1 -#define HAVE_MEMCHR 1 -#define HAVE_MEMMOVE 1 -#define HAVE_MEMORY_H 1 -#define HAVE_MEMSET 1 -#define HAVE_MKDIR 1 -#define HAVE_NCURSES_H 1 -#define HAVE_NETDB_H 1 -#define HAVE_NETINET_IN_H 1 -#define HAVE_POW 1 -#define HAVE_PTRDIFF_T 1 -#define HAVE_READLINE_READLINE_H 1 -#define HAVE_REGCOMP 1 -#define HAVE_RMDIR 1 -#define HAVE_SELECT 1 -#define HAVE_SETENV 1 -#define HAVE_SETLOCALE 1 -#define HAVE_SOCKET 1 -#define HAVE_STDBOOL_H 1 -#define HAVE_STDDEF_H 1 -#define HAVE_STDINT_H 1 -#define HAVE_STDINT_H 1 -#define HAVE_STDLIB_H 1 -#define HAVE_STDLIB_H 1 -#define HAVE_STDLIB_H 1 -#define HAVE_STDLIB_H 1 -#define HAVE_STRCASECMP 1 -#define HAVE_STRCHR 1 -#define HAVE_STRCSPN 1 -#define HAVE_STRDUP 1 -#define HAVE_STRERROR 1 -#define HAVE_STRERROR_R 1 -#define HAVE_STRFTIME 1 -#define HAVE_STRINGS_H 1 -#define HAVE_STRINGS_H 1 -#define HAVE_STRING_H 1 -#define HAVE_STRING_H 1 -#define HAVE_STRRCHR 1 -#define HAVE_STRSPN 1 -#define HAVE_STRSTR 1 -#define HAVE_STRTOL 1 -#define HAVE_STRTOUL 1 -#define HAVE_STRTOULL 1 -#define HAVE_SYSLOG_H 1 -#define HAVE_SYS_FILE_H 1 -#define HAVE_SYS_MOUNT_H 1 -#define HAVE_SYS_SELECT_H 1 -#define HAVE_SYS_SOCKET_H 1 -#define HAVE_SYS_SOCKET_H 1 -#define HAVE_SYS_STATFS_H 1 -#define HAVE_SYS_STAT_H 1 -#define HAVE_SYS_TIMEB_H 1 -#define HAVE_SYS_TIME_H 1 -#define HAVE_SYS_TIME_H 1 -#define HAVE_SYS_TYPES_H 1 -#define HAVE_SYS_WAIT_H 1 -#define HAVE_UNISTD_H 1 -#define HAVE_UNISTD_H 1 -#define HAVE_UNISTD_H 1 -#define HAVE_UNISTD_H 1 -#define HAVE_UTIME 1 -#define HAVE_UTIME_H 1 -#define HAVE_VALUES_H 1 -#define HAVE_VFORK 1 -#define HAVE_WORKING_VFORK 1 -#define HAVE_ZLIB_H 1 -#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 -#define PACKAGE "infinidb" -#define PACKAGE_BUGREPORT "support@infinidb.co" -#define PACKAGE_NAME "infinidb" -#define PACKAGE_STRING "infinidb 4.6.1" -#define PACKAGE_TARNAME "infinidb" -#define PACKAGE_VERSION "4.6.1" -#define PROTOTYPES 1 -#define RETSIGTYPE void -#define SELECT_TYPE_ARG1 int -#define SELECT_TYPE_ARG234 (fd_set *) -#define SELECT_TYPE_ARG5 (struct timeval *) -#define STDC_HEADERS 1 -#define STDC_HEADERS 1 -#define STRERROR_R_CHAR_P 1 -#define TIME_WITH_SYS_TIME 1 -#define VERSION "4.6.1" -#define __PROTOTYPES 1 -#define restrict __restrict -#endif -#ifdef __cplusplus -extern "C" void exit (int) throw (); - -configure: exit 0 - -## ---------------------- ## -## Running config.status. ## -## ---------------------- ## - -This file was extended by infinidb config.status 4.6.1, which was -generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = - CONFIG_HEADERS = - CONFIG_LINKS = - CONFIG_COMMANDS = - $ ./config.status - -on srvhall03 - -config.status:848: creating Makefile -config.status:848: creating utils/Makefile -config.status:848: creating utils/boost_idb/Makefile -config.status:848: creating utils/startup/Makefile -config.status:848: creating utils/common/Makefile -config.status:848: creating utils/configcpp/Makefile -config.status:848: creating utils/loggingcpp/Makefile -config.status:848: creating utils/messageqcpp/Makefile -config.status:848: creating utils/threadpool/Makefile -config.status:848: creating utils/rwlock/Makefile -config.status:848: creating utils/dataconvert/Makefile -config.status:848: creating utils/joiner/Makefile -config.status:848: creating utils/rowgroup/Makefile -config.status:848: creating utils/cacheutils/Makefile -config.status:848: creating utils/net-snmp/Makefile -config.status:848: creating utils/funcexp/Makefile -config.status:848: creating utils/udfsdk/Makefile -config.status:848: creating utils/compress/Makefile -config.status:848: creating utils/ddlcleanup/Makefile -config.status:848: creating utils/batchloader/Makefile -config.status:848: creating utils/mysqlcl_idb/Makefile -config.status:848: creating utils/querystats/Makefile -config.status:848: creating utils/jemalloc/Makefile -config.status:848: creating utils/windowfunction/Makefile -config.status:848: creating utils/idbdatafile/Makefile -config.status:848: creating utils/idbhdfs/Makefile -config.status:848: creating utils/idbhdfs/hdfs-12/Makefile -config.status:848: creating utils/idbhdfs/hdfs-20/Makefile -config.status:848: creating utils/winport/Makefile -config.status:848: creating utils/thrift/Makefile -config.status:848: creating utils/querytele/Makefile -config.status:848: creating exemgr/Makefile -config.status:848: creating ddlproc/Makefile -config.status:848: creating dbcon/Makefile -config.status:848: creating dbcon/ddlpackage/Makefile -config.status:848: creating dbcon/ddlpackageproc/Makefile -config.status:848: creating dbcon/dmlpackage/Makefile -config.status:848: creating dbcon/dmlpackageproc/Makefile -config.status:848: creating dbcon/execplan/Makefile -config.status:848: creating dbcon/joblist/Makefile -config.status:848: creating dbcon/mysql/Makefile -config.status:848: creating dmlproc/Makefile -config.status:848: creating oam/Makefile -config.status:848: creating oam/etc/Makefile -config.status:848: creating oam/install_scripts/Makefile -config.status:848: creating oam/oamcpp/Makefile -config.status:848: creating oam/post/Makefile -config.status:848: creating oam/cloud/Makefile -config.status:848: creating oamapps/Makefile -config.status:848: creating oamapps/calpontConsole/Makefile -config.status:848: creating oamapps/calpontDB/Makefile -config.status:848: creating oamapps/postConfigure/Makefile -config.status:848: creating oamapps/serverMonitor/Makefile -config.status:848: creating oamapps/sessionWalker/Makefile -config.status:848: creating oamapps/traphandler/Makefile -config.status:848: creating oamapps/sendtrap/Makefile -config.status:848: creating oamapps/calpontSupport/Makefile -config.status:848: creating primitives/Makefile -config.status:848: creating primitives/blockcache/Makefile -config.status:848: creating primitives/linux-port/Makefile -config.status:848: creating primitives/primproc/Makefile -config.status:848: creating decomsvr/Makefile -config.status:848: creating procmgr/Makefile -config.status:848: creating procmon/Makefile -config.status:848: creating snmpd/Makefile -config.status:848: creating snmpd/etc/Makefile -config.status:848: creating snmpd/snmpmanager/Makefile -config.status:848: creating tools/Makefile -config.status:848: creating tools/editem/Makefile -config.status:848: creating tools/cplogger/Makefile -config.status:848: creating tools/clearShm/Makefile -config.status:848: creating tools/setConfig/Makefile -config.status:848: creating tools/getConfig/Makefile -config.status:848: creating tools/dbbuilder/Makefile -config.status:848: creating tools/dbloadxml/Makefile -config.status:848: creating tools/configMgt/Makefile -config.status:848: creating tools/viewtablelock/Makefile -config.status:848: creating tools/cleartablelock/Makefile -config.status:848: creating tools/ddlcleanup/Makefile -config.status:848: creating tools/idbmeminfo/Makefile -config.status:848: creating versioning/Makefile -config.status:848: creating versioning/BRM/Makefile -config.status:848: creating writeengine/Makefile -config.status:848: creating writeengine/shared/Makefile -config.status:848: creating writeengine/index/Makefile -config.status:848: creating writeengine/dictionary/Makefile -config.status:848: creating writeengine/wrapper/Makefile -config.status:848: creating writeengine/xml/Makefile -config.status:848: creating writeengine/bulk/Makefile -config.status:848: creating writeengine/client/Makefile -config.status:848: creating writeengine/splitter/Makefile -config.status:848: creating writeengine/server/Makefile -config.status:848: creating writeengine/redistribute/Makefile -config.status:848: creating net-snmp/Makefile -config.status:952: creating config.h -config.status:1278: config.h is unchanged -config.status:1594: executing depfiles commands diff --git a/config.status b/config.status deleted file mode 100755 index b9df72085..000000000 --- a/config.status +++ /dev/null @@ -1,1685 +0,0 @@ -#! /bin/sh -# Generated by configure. -# 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-/bin/sh} -## --------------------- ## -## 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 infinidb $as_me 4.6.1, 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 -config_files=" Makefile utils/Makefile utils/boost_idb/Makefile utils/startup/Makefile utils/common/Makefile utils/configcpp/Makefile utils/loggingcpp/Makefile utils/messageqcpp/Makefile utils/threadpool/Makefile utils/rwlock/Makefile utils/dataconvert/Makefile utils/joiner/Makefile utils/rowgroup/Makefile utils/cacheutils/Makefile utils/net-snmp/Makefile utils/funcexp/Makefile utils/udfsdk/Makefile utils/compress/Makefile utils/ddlcleanup/Makefile utils/batchloader/Makefile utils/mysqlcl_idb/Makefile utils/querystats/Makefile utils/jemalloc/Makefile utils/windowfunction/Makefile utils/idbdatafile/Makefile utils/idbhdfs/Makefile utils/idbhdfs/hdfs-12/Makefile utils/idbhdfs/hdfs-20/Makefile utils/winport/Makefile utils/thrift/Makefile utils/querytele/Makefile exemgr/Makefile ddlproc/Makefile dbcon/Makefile dbcon/ddlpackage/Makefile dbcon/ddlpackageproc/Makefile dbcon/dmlpackage/Makefile dbcon/dmlpackageproc/Makefile dbcon/execplan/Makefile dbcon/joblist/Makefile dbcon/mysql/Makefile dmlproc/Makefile oam/Makefile oam/etc/Makefile oam/install_scripts/Makefile oam/oamcpp/Makefile oam/post/Makefile oam/cloud/Makefile oamapps/Makefile oamapps/calpontConsole/Makefile oamapps/calpontDB/Makefile oamapps/postConfigure/Makefile oamapps/serverMonitor/Makefile oamapps/sessionWalker/Makefile oamapps/traphandler/Makefile oamapps/sendtrap/Makefile oamapps/calpontSupport/Makefile primitives/Makefile primitives/blockcache/Makefile primitives/linux-port/Makefile primitives/primproc/Makefile decomsvr/Makefile procmgr/Makefile procmon/Makefile snmpd/Makefile snmpd/etc/Makefile snmpd/snmpmanager/Makefile tools/Makefile tools/editem/Makefile tools/cplogger/Makefile tools/clearShm/Makefile tools/setConfig/Makefile tools/getConfig/Makefile tools/dbbuilder/Makefile tools/dbloadxml/Makefile tools/configMgt/Makefile tools/viewtablelock/Makefile tools/cleartablelock/Makefile tools/ddlcleanup/Makefile tools/idbmeminfo/Makefile versioning/Makefile versioning/BRM/Makefile writeengine/Makefile writeengine/shared/Makefile writeengine/index/Makefile writeengine/dictionary/Makefile writeengine/wrapper/Makefile writeengine/xml/Makefile writeengine/bulk/Makefile writeengine/client/Makefile writeengine/splitter/Makefile writeengine/server/Makefile writeengine/redistribute/Makefile net-snmp/Makefile" -config_headers=" config.h" -config_commands=" depfiles" - -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 links: -$config_links - -Configuration commands: -$config_commands - -Report bugs to ." -ac_cs_version="\ -infinidb config.status 4.6.1 -configured by ./configure, generated by GNU Autoconf 2.59, - with options \"\" - -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=. -INSTALL="/usr/bin/install -p" -# 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. - -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 - -if $ac_cs_recheck; then - echo "running /bin/sh ./configure " $ac_configure_extra_args " --no-create --no-recursion" >&6 - exec /bin/sh ./configure $ac_configure_extra_args --no-create --no-recursion -fi - -# -# INIT-COMMANDS section. -# - -AMDEP_TRUE="" ac_aux_dir="." - -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; - "utils/boost_idb/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/boost_idb/Makefile" ;; - "utils/startup/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/startup/Makefile" ;; - "utils/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/common/Makefile" ;; - "utils/configcpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/configcpp/Makefile" ;; - "utils/loggingcpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/loggingcpp/Makefile" ;; - "utils/messageqcpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/messageqcpp/Makefile" ;; - "utils/threadpool/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/threadpool/Makefile" ;; - "utils/rwlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rwlock/Makefile" ;; - "utils/dataconvert/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/dataconvert/Makefile" ;; - "utils/joiner/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/joiner/Makefile" ;; - "utils/rowgroup/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rowgroup/Makefile" ;; - "utils/cacheutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/cacheutils/Makefile" ;; - "utils/net-snmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/net-snmp/Makefile" ;; - "utils/funcexp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/funcexp/Makefile" ;; - "utils/udfsdk/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/udfsdk/Makefile" ;; - "utils/compress/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/compress/Makefile" ;; - "utils/ddlcleanup/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/ddlcleanup/Makefile" ;; - "utils/batchloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/batchloader/Makefile" ;; - "utils/mysqlcl_idb/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mysqlcl_idb/Makefile" ;; - "utils/querystats/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/querystats/Makefile" ;; - "utils/jemalloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/jemalloc/Makefile" ;; - "utils/windowfunction/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/windowfunction/Makefile" ;; - "utils/idbdatafile/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idbdatafile/Makefile" ;; - "utils/idbhdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idbhdfs/Makefile" ;; - "utils/idbhdfs/hdfs-12/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idbhdfs/hdfs-12/Makefile" ;; - "utils/idbhdfs/hdfs-20/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idbhdfs/hdfs-20/Makefile" ;; - "utils/winport/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/winport/Makefile" ;; - "utils/thrift/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/thrift/Makefile" ;; - "utils/querytele/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/querytele/Makefile" ;; - "exemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES exemgr/Makefile" ;; - "ddlproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ddlproc/Makefile" ;; - "dbcon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbcon/Makefile" ;; - "dbcon/ddlpackage/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbcon/ddlpackage/Makefile" ;; - "dbcon/ddlpackageproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbcon/ddlpackageproc/Makefile" ;; - "dbcon/dmlpackage/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbcon/dmlpackage/Makefile" ;; - "dbcon/dmlpackageproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbcon/dmlpackageproc/Makefile" ;; - "dbcon/execplan/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbcon/execplan/Makefile" ;; - "dbcon/joblist/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbcon/joblist/Makefile" ;; - "dbcon/mysql/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbcon/mysql/Makefile" ;; - "dmlproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmlproc/Makefile" ;; - "oam/Makefile" ) CONFIG_FILES="$CONFIG_FILES oam/Makefile" ;; - "oam/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES oam/etc/Makefile" ;; - "oam/install_scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES oam/install_scripts/Makefile" ;; - "oam/oamcpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES oam/oamcpp/Makefile" ;; - "oam/post/Makefile" ) CONFIG_FILES="$CONFIG_FILES oam/post/Makefile" ;; - "oam/cloud/Makefile" ) CONFIG_FILES="$CONFIG_FILES oam/cloud/Makefile" ;; - "oamapps/Makefile" ) CONFIG_FILES="$CONFIG_FILES oamapps/Makefile" ;; - "oamapps/calpontConsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES oamapps/calpontConsole/Makefile" ;; - "oamapps/calpontDB/Makefile" ) CONFIG_FILES="$CONFIG_FILES oamapps/calpontDB/Makefile" ;; - "oamapps/postConfigure/Makefile" ) CONFIG_FILES="$CONFIG_FILES oamapps/postConfigure/Makefile" ;; - "oamapps/serverMonitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES oamapps/serverMonitor/Makefile" ;; - "oamapps/sessionWalker/Makefile" ) CONFIG_FILES="$CONFIG_FILES oamapps/sessionWalker/Makefile" ;; - "oamapps/traphandler/Makefile" ) CONFIG_FILES="$CONFIG_FILES oamapps/traphandler/Makefile" ;; - "oamapps/sendtrap/Makefile" ) CONFIG_FILES="$CONFIG_FILES oamapps/sendtrap/Makefile" ;; - "oamapps/calpontSupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES oamapps/calpontSupport/Makefile" ;; - "primitives/Makefile" ) CONFIG_FILES="$CONFIG_FILES primitives/Makefile" ;; - "primitives/blockcache/Makefile" ) CONFIG_FILES="$CONFIG_FILES primitives/blockcache/Makefile" ;; - "primitives/linux-port/Makefile" ) CONFIG_FILES="$CONFIG_FILES primitives/linux-port/Makefile" ;; - "primitives/primproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES primitives/primproc/Makefile" ;; - "decomsvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES decomsvr/Makefile" ;; - "procmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES procmgr/Makefile" ;; - "procmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES procmon/Makefile" ;; - "snmpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES snmpd/Makefile" ;; - "snmpd/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES snmpd/etc/Makefile" ;; - "snmpd/snmpmanager/Makefile" ) CONFIG_FILES="$CONFIG_FILES snmpd/snmpmanager/Makefile" ;; - "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; - "tools/editem/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/editem/Makefile" ;; - "tools/cplogger/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/cplogger/Makefile" ;; - "tools/clearShm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/clearShm/Makefile" ;; - "tools/setConfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/setConfig/Makefile" ;; - "tools/getConfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getConfig/Makefile" ;; - "tools/dbbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/dbbuilder/Makefile" ;; - "tools/dbloadxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/dbloadxml/Makefile" ;; - "tools/configMgt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/configMgt/Makefile" ;; - "tools/viewtablelock/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/viewtablelock/Makefile" ;; - "tools/cleartablelock/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/cleartablelock/Makefile" ;; - "tools/ddlcleanup/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/ddlcleanup/Makefile" ;; - "tools/idbmeminfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/idbmeminfo/Makefile" ;; - "versioning/Makefile" ) CONFIG_FILES="$CONFIG_FILES versioning/Makefile" ;; - "versioning/BRM/Makefile" ) CONFIG_FILES="$CONFIG_FILES versioning/BRM/Makefile" ;; - "writeengine/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/Makefile" ;; - "writeengine/shared/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/shared/Makefile" ;; - "writeengine/index/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/index/Makefile" ;; - "writeengine/dictionary/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/dictionary/Makefile" ;; - "writeengine/wrapper/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/wrapper/Makefile" ;; - "writeengine/xml/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/xml/Makefile" ;; - "writeengine/bulk/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/bulk/Makefile" ;; - "writeengine/client/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/client/Makefile" ;; - "writeengine/splitter/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/splitter/Makefile" ;; - "writeengine/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/server/Makefile" ;; - "writeengine/redistribute/Makefile" ) CONFIG_FILES="$CONFIG_FILES writeengine/redistribute/Makefile" ;; - "net-snmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES net-snmp/Makefile" ;; - "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;; - "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_LINKS+set}" = set || CONFIG_LINKS=$config_links - 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; } -} - - -# -# 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@,/bin/sh,;t t -s,@PATH_SEPARATOR@,:,;t t -s,@PACKAGE_NAME@,infinidb,;t t -s,@PACKAGE_TARNAME@,infinidb,;t t -s,@PACKAGE_VERSION@,4.6.1,;t t -s,@PACKAGE_STRING@,infinidb 4.6.1,;t t -s,@PACKAGE_BUGREPORT@,support@infinidb.co,;t t -s,@exec_prefix@,${prefix},;t t -s,@prefix@,/usr/local,;t t -s,@program_transform_name@,s,x,x,,;t t -s,@bindir@,${idbinstall}/bin,;t t -s,@sbindir@,${idbinstall}/sbin,;t t -s,@libexecdir@,${exec_prefix}/libexec,;t t -s,@datadir@,${prefix}/share,;t t -s,@sysconfdir@,${idbinstall}/etc,;t t -s,@sharedstatedir@,${prefix}/com,;t t -s,@localstatedir@,${prefix}/var,;t t -s,@libdir@,${idbinstall}/lib,;t t -s,@includedir@,${idbinstall}/include,;t t -s,@oldincludedir@,/usr/include,;t t -s,@infodir@,${prefix}/info,;t t -s,@mandir@,${idbinstall}/man,;t t -s,@build_alias@,,;t t -s,@host_alias@,,;t t -s,@target_alias@,,;t t -s,@DEFS@,-DHAVE_CONFIG_H,;t t -s,@ECHO_C@,,;t t -s,@ECHO_N@,-n,;t t -s,@ECHO_T@,,;t t -s,@LIBS@,,;t t -s,@INSTALL_PROGRAM@,${INSTALL},;t t -s,@INSTALL_SCRIPT@,${INSTALL},;t t -s,@INSTALL_DATA@,${INSTALL} -m 644,;t t -s,@CYGPATH_W@,echo,;t t -s,@PACKAGE@,infinidb,;t t -s,@VERSION@,4.6.1,;t t -s,@ACLOCAL@,${SHELL} /home/calpont/genii/missing --run aclocal-1.9,;t t -s,@AUTOCONF@,${SHELL} /home/calpont/genii/missing --run autoconf,;t t -s,@AUTOMAKE@,${SHELL} /home/calpont/genii/missing --run automake-1.9,;t t -s,@AUTOHEADER@,${SHELL} /home/calpont/genii/missing --run autoheader,;t t -s,@MAKEINFO@,${SHELL} /home/calpont/genii/missing --run makeinfo,;t t -s,@install_sh@,/home/calpont/genii/install-sh,;t t -s,@STRIP@,strip,;t t -s,@ac_ct_STRIP@,strip,;t t -s,@INSTALL_STRIP_PROGRAM@,${SHELL} $(install_sh) -c -s,;t t -s,@mkdir_p@,mkdir -p --,;t t -s,@AWK@,gawk,;t t -s,@SET_MAKE@,,;t t -s,@am__leading_dot@,.,;t t -s,@AMTAR@,${SHELL} /home/calpont/genii/missing --run tar,;t t -s,@am__tar@,${AMTAR} chof - "$$tardir",;t t -s,@am__untar@,${AMTAR} xf -,;t t -s,@CC@,gcc,;t t -s,@CFLAGS@,,;t t -s,@LDFLAGS@,,;t t -s,@CPPFLAGS@,,;t t -s,@ac_ct_CC@,gcc,;t t -s,@EXEEXT@,,;t t -s,@OBJEXT@,o,;t t -s,@DEPDIR@,.deps,;t t -s,@am__include@,include,;t t -s,@am__quote@,,;t t -s,@AMDEP_TRUE@,,;t t -s,@AMDEP_FALSE@,#,;t t -s,@AMDEPBACKSLASH@,\,;t t -s,@CCDEPMODE@,depmode=gcc3,;t t -s,@am__fastdepCC_TRUE@,,;t t -s,@am__fastdepCC_FALSE@,#,;t t -s,@CXX@,g++,;t t -s,@CXXFLAGS@,,;t t -s,@ac_ct_CXX@,g++,;t t -s,@CXXDEPMODE@,depmode=gcc3,;t t -s,@am__fastdepCXX_TRUE@,,;t t -s,@am__fastdepCXX_FALSE@,#,;t t -s,@build@,x86_64-unknown-linux-gnu,;t t -s,@build_cpu@,x86_64,;t t -s,@build_vendor@,unknown,;t t -s,@build_os@,linux-gnu,;t t -s,@host@,x86_64-unknown-linux-gnu,;t t -s,@host_cpu@,x86_64,;t t -s,@host_vendor@,unknown,;t t -s,@host_os@,linux-gnu,;t t -s,@SED@,/bin/sed,;t t -s,@EGREP@,grep -E,;t t -s,@LN_S@,ln -s,;t t -s,@ECHO@,echo,;t t -s,@AR@,ar,;t t -s,@ac_ct_AR@,ar,;t t -s,@RANLIB@,ranlib,;t t -s,@ac_ct_RANLIB@,ranlib,;t t -s,@CPP@,gcc -E,;t t -s,@CXXCPP@,g++ -E,;t t -s,@F77@,,;t t -s,@FFLAGS@,,;t t -s,@ac_ct_F77@,,;t t -s,@LIBTOOL@,$(SHELL) $(top_builddir)/libtool,;t t -s,@LEX@,flex,;t t -s,@LEXLIB@,-lfl,;t t -s,@LEX_OUTPUT_ROOT@,lex.yy,;t t -s,@YACC@,bison -y,;t t -s,@ALLOCA@,,;t t -s,@LIBOBJS@, error$U.o mktime$U.o,;t t -s,@POW_LIB@,,;t t -s,@XML2_CONFIG@,/usr/bin/xml2-config,;t t -s,@XML_CPPFLAGS@,-I/usr/include/libxml2,;t t -s,@XML_LIBS@,-lxml2 -lz -lm,;t t -s,@idb_cppflags@, ,;t t -s,@idb_cxxflags@,-g0 -O3 -fno-strict-aliasing -Wall -Wno-unused-local-typedefs -Wno-unused-result -Wno-format,;t t -s,@idb_cflags@,-g0 -O3 -fno-strict-aliasing -Wall,;t t -s,@idbinstall@,${prefix},;t t -s,@idb_ldflags@,-Wl,--rpath -Wl,${idbinstall}/lib -Wl,--no-as-needed -Wl,--add-needed,;t t -s,@march_flags@, ,;t t -s,@etcdir@,${idbinstall}/etc,;t t -s,@sharedir@,${idbinstall}/share,;t t -s,@postdir@,${idbinstall}/post,;t t -s,@localdir@,${idbinstall}/local,;t t -s,@mysqldir@,${idbinstall}/mysql,;t t -s,@mibdir@,${idbinstall}/share/snmp/mibs,;t t -s,@netsnmpdir@,${idbinstall}/include/net-snmp,;t t -s,@netsnmpsysdir@,${idbinstall}/include/net-snmp/system,;t t -s,@netsnmpmachdir@,${idbinstall}/include/net-snmp/machine,;t t -s,@netsnmplibrdir@,${idbinstall}/include/net-snmp/library,;t t -s,@netsnmpagntdir@,${idbinstall}/include/net-snmp/agent,;t t -s,@toolsdir@,${idbinstall}/tools,;t t -s,@netsnmp_libs@,-lnetsnmpmibs -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers,;t t -s,@idb_common_libs@,-lmessageqcpp -lloggingcpp -lconfigcpp -lidbboot -lboost_idb -lxml2 -lpthread -lrt,;t t -s,@idb_oam_libs@,-loamcpp -lsnmpmanager ${netsnmp_libs},;t t -s,@idb_brm_libs@,-lbrm -lidbdatafile -lcacheutils -lrwlock ${idb_oam_libs} ${idb_common_libs},;t t -s,@idb_exec_libs@,-ljoblist -lexecplan -lwindowfunction -ljoiner -lrowgroup -lfuncexp -ludfsdk -ldataconvert -lcommon -lcompress -lmysqlcl_idb -lquerystats -lquerytele -lthrift -lthreadpool ${idb_brm_libs},;t t -s,@idb_write_libs@,-lddlpackageproc -lddlpackage -ldmlpackageproc -ldmlpackage -lwriteengine -lwriteengineclient -lidbdatafile -lcacheutils ${idb_exec_libs},;t t -s,@idb_common_includes@,-I${idbinstall}/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include/libxml2,;t t -s,@idb_common_ldflags@,-L${idbinstall}/lib -L/usr/local/lib,;t t -s,@LTLIBOBJS@, error$U.lo mktime$U.lo,;t t -CEOF - - # 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" - -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; } - sed "/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -} - -: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 - -# -# 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 - - # Handle all the #define templates only if necessary. - if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then - # If there are no defines, we may have an empty if/fi - : - cat >$tmp/defines.sed <$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in - - cat >$tmp/defines.sed <$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in - - cat >$tmp/defines.sed <$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in - - fi # grep - - # Handle all the #undef templates - cat >$tmp/undefs.sed <$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in - - cat >$tmp/undefs.sed <$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in - - cat >$tmp/undefs.sed <$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in - - # 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 - -# -# CONFIG_LINKS section. -# - -for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue - ac_dest=`echo "$ac_file" | sed 's,:.*,,'` - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` - - { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 -echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} - - if test ! -r $srcdir/$ac_source; then - { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 -echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} - { (exit 1); exit 1; }; } - fi - rm -f $ac_dest - - # Make relative symlinks. - ac_dest_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_dest_dir" - else - as_dir="$ac_dest_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_dest_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - ac_builddir=. - -if test "$ac_dest_dir" != .; then - ac_dir_suffix=/`echo "$ac_dest_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_dest_dir";; -*) - case "$ac_dest_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dest_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 $srcdir in - [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; - *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; - esac - - # Try a symlink, then a hard link, then a copy. - ln -s $ac_rel_source $ac_dest 2>/dev/null || - ln $srcdir/$ac_source $ac_dest 2>/dev/null || - cp -p $srcdir/$ac_source $ac_dest || - { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 -echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} - { (exit 1); exit 1; }; } -done - -# -# 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 - -{ (exit 0); exit 0; } diff --git a/dbcon/Makefile b/dbcon/Makefile deleted file mode 100755 index 5055e8a7a..000000000 --- a/dbcon/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# $Id: Makefile 9255 2013-02-05 13:20:13Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -TARGETS = bootstrap clean test docs coverage leakcheck install - -.PHONY: all $(TARGETS) - -all: - $(MAKE) -C execplan - $(MAKE) -C ddlpackage - $(MAKE) -C ddlpackageproc - $(MAKE) -C dmlpackage - $(MAKE) -C dmlpackageproc - $(MAKE) -C joblist - $(MAKE) -C mysql - -$(TARGETS): - $(MAKE) -C execplan $@ - $(MAKE) -C ddlpackage $@ - $(MAKE) -C ddlpackageproc $@ - $(MAKE) -C dmlpackage $@ - $(MAKE) -C dmlpackageproc $@ - $(MAKE) -C joblist $@ - $(MAKE) -C mysql $@ - diff --git a/dbcon/ddlpackage/Makefile b/dbcon/ddlpackage/Makefile deleted file mode 100755 index 953b37e1c..000000000 --- a/dbcon/ddlpackage/Makefile +++ /dev/null @@ -1,187 +0,0 @@ -include ../../rules.mak -# -# Copyright (C) 2009-2012 Calpont Corporation. -# -# 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; version 2 of the License. -# -# 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., -# - -# $Id: Makefile 8436 2012-04-04 18:18:21Z rdempsey $ - -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libddlpackage.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -lddlpackage -L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl -GLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp - -SRCS=\ -serialize.cpp \ -ddl-scan.cpp \ -ddl-gram.cpp \ -ddlpkg.cpp \ -columndef.cpp \ -createtable.cpp \ -tabledef.cpp \ -sqlstatement.cpp \ -sqlstatementlist.cpp \ -altertable.cpp \ -createindex.cpp \ -dropindex.cpp \ -droptable.cpp \ -sqlparser.cpp \ -markpartition.cpp \ -restorepartition.cpp \ -droppartition.cpp - -LINCLUDES=\ -ddlpkg.h \ -sqlparser.h - -#all: $(LIBRARY) tdriver gramtest - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: ddl-scan.cpp ddl-gram.cpp ddl-gram.h - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -ddl-scan.cpp: ddl.l - flex -i -L -Pddl -oddl-scan-temp.cpp ddl.l - set +e; \ - if [ -f ddl-scan.cpp ]; \ - then diff -abBq ddl-scan-temp.cpp ddl-scan.cpp >/dev/null 2>&1; \ - if [ $$? -ne 0 ]; \ - then mv -f ddl-scan-temp.cpp ddl-scan.cpp; \ - else touch ddl-scan.cpp; \ - fi; \ - else mv -f ddl-scan-temp.cpp ddl-scan.cpp; \ - fi - rm -f ddl-scan-temp.cpp - -ddl-gram.cpp ddl-gram.h: ddl.y - bison -l -v -d -p ddl -o ddl-gram-temp.cpp ddl.y - set +e; \ - if [ -f ddl-gram.cpp ]; \ - then diff -abBq ddl-gram-temp.cpp ddl-gram.cpp >/dev/null 2>&1; \ - if [ $$? -ne 0 ]; \ - then mv -f ddl-gram-temp.cpp ddl-gram.cpp; \ - else touch ddl-gram.cpp; \ - fi; \ - else mv -f ddl-gram-temp.cpp ddl-gram.cpp; \ - fi - set +e; \ - if [ -f ddl-gram.h ]; \ - then diff -abBq ddl-gram-temp.hpp ddl-gram.h >/dev/null 2>&1; \ - if [ $$? -ne 0 ]; \ - then mv -f ddl-gram-temp.hpp ddl-gram.h; \ - else touch ddl-gram.h; \ - fi; \ - else mv -f ddl-gram-temp.hpp ddl-gram.h; \ - fi - rm -f ddl-gram-temp.cpp ddl-gram-temp.hpp ddl-gram-temp.output - -ddl.l: ddl-gram.h - -sqlparser.cpp: ddl-gram.h - -ddl-scan.o: ddl-scan.cpp ddl-gram.h - $(COMPILE.cpp) -o $@ ddl-scan.cpp - -ddl-gram.o: ddl-gram.cpp - $(COMPILE.cpp) -o $@ ddl-gram.cpp - -gramtest: gramtest.o $(LIBRARY) - $(LINK.cpp) -L. -L$(EXPORT_ROOT)/lib -o $@ $^ -lddlpackage -lmessageqcpp -lconfigcpp -lxml2 - -sertest: sertest.o $(LIBRARY) - $(LINK.cpp) -L. -L$(EXPORT_ROOT)/lib -o $@ $^ -lddlpackage -lmessageqcpp -lconfigcpp -lxml2 - - -etags: - etags ddlpkg.h sqlparser.h - -clean: - rm -f *.o $(PROGRAM) $(LIBRARY) TAGS tdriver core.* core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* - rm -rf html - rm -f gramtest - rm -f ddl-scan-temp.cpp - rm -f ddl-gram-temp.cpp ddl-gram-temp.hpp ddl-gram-temp.output - -docs: - doxygen - -tdriver: tdriver.o $(LIBRARY) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver > ./tdriver.output - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -# In the flex/bison generated sources, there is code that we don't use -# and can't avoid generating. So, these are omitted from coverage -# testing. - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(filter-out ddl-gram.cpp ddl-scan.cpp, $(SRCS)); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(filter-out ddl-gram.cpp ddl-scan.cpp, $(SRCS)) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/dbcon/ddlpackageproc/Makefile b/dbcon/ddlpackageproc/Makefile deleted file mode 100755 index a9a7fd13e..000000000 --- a/dbcon/ddlpackageproc/Makefile +++ /dev/null @@ -1,115 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 16 2006-05-12 19:59:20Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -# Take this out for now... -#LIBS64=$(shell test `arch -k` == 'x86_64' && echo -DBOOST_WORKAROUND) - -PROGRAM=libddlpackageproc.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=$(LIBS64) -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic #-Wno-deprecated-declarations -fno-strict-aliasing - -CLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lconfigcpp -lxml2 -lcppunit \ --lddlpackage -lwriteengine -lwriteengineclient -lexecplan -lloggingcpp -lrwlock \ --lbrm -ldl -TLIBS=-L. -lddlpackageproc -L../joblist -ljoblist -lfuncexp -ljoiner -lcommon \ - -L../resultset $(CLIBS) -ldataconvert -lrowgroup -lcacheutils $(IDB_WRITE_LIBS) -GLIBS=$(CLIBS) $(IDB_WRITE_LIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lddlpackage -lexecplan -lwriteengine -lwriteengineclient - -SRCS=\ -ddlpackageprocessor.cpp \ -createtableprocessor.cpp \ -altertableprocessor.cpp \ -droptableprocessor.cpp \ -markpartitionprocessor.cpp \ -restorepartitionprocessor.cpp \ -droppartitionprocessor.cpp - -LINCLUDES=\ -ddlpackageprocessor.h \ -createtableprocessor.h \ -altertableprocessor.h \ -droptableprocessor.h \ -markpartitionprocessor.h \ -restorepartitionprocessor.h \ -droppartitionprocessor.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* *.dat - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - rm -f FILE_*.dat - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - rm -f FILE_*.dat - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif - diff --git a/dbcon/dmlpackage/Makefile b/dbcon/dmlpackage/Makefile deleted file mode 100755 index a4a1bc66a..000000000 --- a/dbcon/dmlpackage/Makefile +++ /dev/null @@ -1,193 +0,0 @@ -include ../../rules.mak -# -# Copyright (C) 2009-2012 Calpont Corporation. -# -# 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; version 2 of the License. -# -# 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., -# - -# $Id: Makefile 8436 2012-04-04 18:18:21Z rdempsey $ - -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libdmlpackage.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -ldmlpackage -L$(EXPORT_ROOT)/lib -lexecplan -ljoblist -lfuncexp -ldataconvert -lbrm -lrwlock -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl -GLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -lexecplan - -SRCS=\ -dml-scan.cpp \ -dml-gram.cpp \ -calpontdmlfactory.cpp \ -calpontdmlpackage.cpp \ -dmlcolumn.cpp \ -deletedmlpackage.cpp \ -dmlobject.cpp \ -insertdmlpackage.cpp \ -mysqldmlstatement.cpp \ -oracledmlstatement.cpp \ -row.cpp \ -dmltable.cpp \ -updatedmlpackage.cpp \ -vendordmlstatement.cpp \ -commanddmlpackage.cpp \ -dmlpkg.cpp \ -dmlparser.cpp -LINCLUDES=\ -calpontdmlfactory.h \ -calpontdmlpackage.h \ -dmlcolumn.h \ -deletedmlpackage.h \ -dmlobject.h \ -dmlpackage.h \ -insertdmlpackage.h \ -mysqldmlstatement.h \ -oracledmlstatement.h \ -row.h \ -dmltable.h \ -updatedmlpackage.h \ -vendordmlstatement.h \ -commanddmlpackage.h \ -dmlpkg.h \ -dmlparser.h - -#all: $(LIBRARY) tdriver gramtest - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - - -dmlparser.cpp: dml-gram.h - -dml-scan.o: dml-scan.cpp dml-gram.h - $(COMPILE.cpp) -o $@ dml-scan.cpp - -dml-gram.o: dml-gram.cpp - $(COMPILE.cpp) -o $@ dml-gram.cpp - -gramtest: gramtest.o $(LIBRARY) - $(LINK.cpp) -L. -L$(EXPORT_ROOT)/lib -o $@ $^ -ldmlpackage -lmessageqcpp -lconfigcpp -lxml2 - -etags: - etags dmlpkg.h dmlparser.h - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: dml-scan.cpp dml-gram.cpp dml-gram.h - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -dml-scan.cpp: dml.l - flex -i -L -Pdml -odml-scan-temp.cpp dml.l - set +e; \ - if [ -f dml-scan.cpp ]; \ - then diff -abBq dml-scan-temp.cpp dml-scan.cpp >/dev/null 2>&1; \ - if [ $$? -ne 0 ]; \ - then mv -f dml-scan-temp.cpp dml-scan.cpp; \ - else touch dml-scan.cpp; \ - fi; \ - else mv -f dml-scan-temp.cpp dml-scan.cpp; \ - fi - rm -f dml-scan-temp.cpp - -dml-gram.cpp dml-gram.h: dml.y - bison -l -v -d -p dml -o dml-gram-temp.cpp dml.y - set +e; \ - if [ -f dml-gram.cpp ]; \ - then diff -abBq dml-gram-temp.cpp dml-gram.cpp >/dev/null 2>&1; \ - if [ $$? -ne 0 ]; \ - then mv -f dml-gram-temp.cpp dml-gram.cpp; \ - else touch dml-gram.cpp; \ - fi; \ - else mv -f dml-gram-temp.cpp dml-gram.cpp; \ - fi - set +e; \ - if [ -f dml-gram.h ]; \ - then diff -abBq dml-gram-temp.hpp dml-gram.h >/dev/null 2>&1; \ - if [ $$? -ne 0 ]; \ - then mv -f dml-gram-temp.hpp dml-gram.h; \ - else touch dml-gram.h; \ - fi; \ - else mv -f dml-gram-temp.hpp dml-gram.h; \ - fi - rm -f dml-gram-temp.cpp dml-gram-temp.hpp dml-gram-temp.output - -dml.l: dml-gram.h - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* - rm -rf html - rm -f gramtest - rm -f dml-scan-temp.cpp - rm -f dml-gram-temp.cpp dml-gram-temp.hpp dml-gram-temp.output - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver > ./tdriver.output - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(filter-out dml-gram.cpp dml-scan.cpp, $(SRCS)); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(filter-out dml-gram.cpp dml-scan.cpp, $(SRCS)) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/dbcon/dmlpackageproc/Makefile b/dbcon/dmlpackageproc/Makefile deleted file mode 100755 index 5628ede8d..000000000 --- a/dbcon/dmlpackageproc/Makefile +++ /dev/null @@ -1,113 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 16 2006-05-12 19:59:20Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libdmlpackageproc.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lconfigcpp -lxml2 -lcppunit \ --ldmlpackage -lwriteengine -lexecplan -lloggingcpp -ldl -lddlpackage -ldataconvert \ --lddlpackageproc -lrwlock -lbrm -TLIBS=-L. -ldmlpackageproc $(CLIBS) -GLIBS=$(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lexecplan -lwriteengine -ldmlpackage - -SRCS=\ -deletepackageprocessor.cpp \ -dmlpackageprocessor.cpp \ -insertpackageprocessor.cpp \ -updatepackageprocessor.cpp \ -commandpackageprocessor.cpp \ -autoincrementdata.cpp \ -tablelockdata.cpp -LINCLUDES=\ -deletepackageprocessor.h \ -dmlpackageprocessor.h \ -insertpackageprocessor.h \ -updatepackageprocessor.h \ -commandpackageprocessor.h \ -autoincrementdata.h \ -tablelockdata.h - - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - #rm -f FILE_*.dat - #LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - rm -f FILE_*.dat - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif - diff --git a/dbcon/execplan/Makefile b/dbcon/execplan/Makefile deleted file mode 100755 index 00362a48c..000000000 --- a/dbcon/execplan/Makefile +++ /dev/null @@ -1,370 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 9559 2013-05-22 17:58:13Z xlou $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck bootstrap - -PROGRAM=libexecplan.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -ldl -lmessageqcpp -lconfigcpp -lxml2 -ljoblist -lfuncexp -lloggingcpp -TLIBS=-L. -lexecplan -L$(EXPORT_ROOT)/lib -lm -lthreadpool -lrwlock -lbrm -lrowgroup -ljoiner -lcommon -lfuncexp -ldataconvert -loamcpp $(CLIBS) -lboost_idb -ludfsdk -lcppunit -GLIBS=$(CLIBS) - -SRCS=\ -aggregatecolumn.cpp \ -arithmeticcolumn.cpp \ -arithmeticoperator.cpp \ -calpontexecutionplan.cpp \ -calpontexecutionplanfactory.cpp \ -calpontselectexecutionplan.cpp \ -calpontsystemcatalog.cpp \ -clientrotator.cpp \ -constantcolumn.cpp \ -constantfilter.cpp \ -existsfilter.cpp \ -expressionparser.cpp \ -filter.cpp \ -functioncolumn.cpp \ -groupconcatcolumn.cpp \ -intervalcolumn.cpp \ -logicoperator.cpp \ -mysqlexecutionplan.cpp \ -objectidmanager.cpp \ -objectreader.cpp \ -operator.cpp \ -oracleexecutionplan.cpp \ -outerjoinonfilter.cpp \ -predicateoperator.cpp \ -pseudocolumn.cpp \ -range.cpp \ -returnedcolumn.cpp \ -rowcolumn.cpp \ -selectfilter.cpp \ -sessionmanager.cpp \ -simplecolumn.cpp \ -simplefilter.cpp \ -simplescalarfilter.cpp \ -treenode.cpp \ -treenodeimpl.cpp \ -vendorexecutionplan.cpp \ -windowfunctioncolumn.cpp - -LINCLUDES=\ -aggregatecolumn.h \ -arithmeticcolumn.h \ -arithmeticoperator.h \ -blocksize.h \ -calpontexecutionplanfactory.h \ -calpontexecutionplan.h \ -calpontselectexecutionplan.h \ -calpontsystemcatalog.h \ -clientrotator.h \ -columnresult.h \ -constantcolumn.h \ -constantfilter.h \ -existsfilter.h \ -expressionparser.h \ -exp_templates.h \ -filter.h \ -functioncolumn.h \ -groupconcatcolumn.h \ -intervalcolumn.h \ -logicoperator.h \ -mysqlexecutionplan.h \ -njlcolumnresult.h \ -objectidmanager.h \ -objectreader.h \ -operator.h \ -oracleexecutionplan.h \ -outerjoinonfilter.h \ -parsetree.h \ -predicateoperator.h \ -pseudocolumn.h \ -range.h \ -returnedcolumn.h \ -rowcolumn.h \ -selectfilter.h \ -sessionmanager.h \ -simplecolumn.h \ -simplecolumn_decimal.h \ -simplecolumn_int.h \ -simplecolumn_uint.h \ -simplefilter.h \ -simplescalarfilter.h \ -treenode.h \ -treenodeimpl.h \ -vendorexecutionplan.h \ -windowfunctioncolumn.h - -OBJS=$(SRCS:.cpp=.o) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -ljoblist -lbrm -loamcpp - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) -L$(EXPORT_ROOT)/lib -loamcpp - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o btdriver.o btdriver $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov* *.gcov tdriver-gcov *.d - rm -rf html - rm -f tdriver*.o tdriver*[0-9] - rm -f oidbitmap tdriver-oid tdriver-sm - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -btdriver: btdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver -# -ipcs-pat -d >& /dev/null - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver -# -ipcs-pat -d >& /dev/null - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: - rm -f tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(MAKE) zcoverage - -zcoverage: tdriver-gcov - rm -f *.gcda - -ipcs-pat -d >& /dev/null - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - -ipcs-pat -d >& /dev/null - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - -ipcs-pat -d >& /dev/null - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -ipcs-pat -d >& /dev/null - -tdriver%.o: tdriver%.cpp - -tdriver%: tdriver%.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -tdriver-oid.o: tdriver-oid.cpp - -tdriver-oid: $(LIBRARY) tdriver-oid.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -tdriver-sm.o: tdriver-sm.cpp - -tdriver-sm: $(LIBRARY) tdriver-sm.o - $(LINK.cpp) -o $@ $^ $(TLIBS) -lpthread - -tdriver_fe.o: tdriver_fe.cpp - -tdriver_fe: $(LIBRARY) tdriver_fe.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test1: $(LIBRARY) tdriver1 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver1 - -test2: $(LIBRARY) tdriver2 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver2 - -test3: $(LIBRARY) tdriver3 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver3 - -test4: $(LIBRARY) tdriver4 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver4 - -test5: $(LIBRARY) tdriver5 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver5 - -test6: $(LIBRARY) tdriver6 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver6 - -test7: $(LIBRARY) tdriver7 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver7 - -test8: $(LIBRARY) tdriver8 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver8 - -test9: $(LIBRARY) tdriver9 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver9 - -test10: $(LIBRARY) tdriver10 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver10 - -test11: $(LIBRARY) tdriver11 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver11 - -test12: $(LIBRARY) tdriver12 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver12 - -test13: $(LIBRARY) tdriver13 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver13 - -test14: $(LIBRARY) tdriver14 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver14 - -test15: $(LIBRARY) tdriver15 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver15 - -test16: $(LIBRARY) tdriver16 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver16 - -test17: $(LIBRARY) tdriver17 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver17 - -test18: $(LIBRARY) tdriver18 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver18 - -test19: $(LIBRARY) tdriver19 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver19 - -test20: $(LIBRARY) tdriver20 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver20 - -test21: $(LIBRARY) tdriver21 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver21 - -test22: $(LIBRARY) tdriver22 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver22 - -test23: $(LIBRARY) tdriver23 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver23 - -test-oid: $(LIBRARY) tdriver-oid - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-oid - -test-sm: $(LIBRARY) tdriver-sm - -ipcs-pat -d >& /dev/null - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-sm - -ipcs-pat -d >& /dev/null - -test-fe: $(LIBRARY) tdriver_fe.o - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver_fe - -alltests: test test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 \ - test11 test12 test13 test14 test15 test16 test17 test18 test19 \ - test20 test21 test22 test23 test-oid test-sm - -leakcheck1: $(LIBRARY) tdriver1 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver1 - -leakcheck2: $(LIBRARY) tdriver2 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver2 - -leakcheck3: $(LIBRARY) tdriver3 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver3 - -leakcheck4: $(LIBRARY) tdriver4 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver4 - -leakcheck5: $(LIBRARY) tdriver5 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver5 - -leakcheck6: $(LIBRARY) tdriver6 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver6 - -leakcheck7: $(LIBRARY) tdriver7 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver7 - -leakcheck8: $(LIBRARY) tdriver8 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver8 - -leakcheck9: $(LIBRARY) tdriver9 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver9 - -leakcheck10: $(LIBRARY) tdriver10 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver10 - -leakcheck11: $(LIBRARY) tdriver11 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver11 - -leakcheck12: $(LIBRARY) tdriver12 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver12 - -leakcheck13: $(LIBRARY) tdriver13 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver13 - -leakcheck14: $(LIBRARY) tdriver14 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver14 - -leakcheck15: $(LIBRARY) tdriver15 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver15 - -leakcheck16: $(LIBRARY) tdriver16 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver16 - -leakcheck17: $(LIBRARY) tdriver17 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver17 - -leakcheck18: $(LIBRARY) tdriver18 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver18 - -leakcheck19: $(LIBRARY) tdriver19 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver19 - -leakcheck20: $(LIBRARY) tdriver20 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver20 - -leakcheck21: $(LIBRARY) tdriver21 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver21 - -leakcheck22: $(LIBRARY) tdriver22 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver22 - -leakcheck23: $(LIBRARY) tdriver23 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver23 - -leakcheck-oid: $(LIBRARY) tdriver-oid - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-oid - -leakcheck-sm: $(LIBRARY) tdriver-sm - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-sm - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -TDRIVERS=$(wildcard *tdriver*.cpp) - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) $(TDRIVERS:.cpp=.d) -endif diff --git a/dbcon/joblist/Makefile b/dbcon/joblist/Makefile deleted file mode 100755 index 1f7d17a9c..000000000 --- a/dbcon/joblist/Makefile +++ /dev/null @@ -1,291 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 9550 2013-05-17 23:58:07Z xlou $ -# -# Copyright (C) 2009-2013 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libjoblist.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -MYSQL_DIR=../../mariadb-columnstore-server -CPPFLAGS+= -I. -I$(EXPORT_ROOT)/include -I$(MYSQL_DIR)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic -fno-strict-aliasing $(JL_DEBUG_FLAGS) -#CXXFLAGS+=-DFIFO_SINK - -# setup libraries for driver - -DLIBS=-L. -ljoblist -lfuncexp -L$(CALPONT_LIBRARY_PATH) -lrt -lexecplan -lbrm -DLIBS+=-lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldmlpackageproc -ldmlpackage -DLIBS+=-lwriteengine -lloggingcpp -ldataconvert -lcppunit -ldl -ljoiner -lcommon -DLIBS+=-lcacheutils -DLIBS+=-lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -lnetsnmp \ --lnetsnmpmibs -lnetsnmphelpers -loamcpp -lrowgroup -lfuncexp -lmysqlcl_idb -DLIBS+=-lwindowfunction - -#DLIBS=-L. -ljoblist -lfuncexp -L$(CALPONT_LIBRARY_PATH) -lexecplan -lbrm -lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldataconvert - -ELIBS=-L. -ljoblist -lfuncexp -L$(CALPONT_LIBRARY_PATH) -lrt -lexecplan -lbrm -ELIBS+=-lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldmlpackageproc -ldmlpackage -ELIBS+=-lwriteengine -lloggingcpp -ldataconvert -ldl -ELIBS+=-lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -lnetsnmp \ --lnetsnmpmibs -lnetsnmphelpers -loamcpp -lfuncexp -lmysqlcl_idb -ELIBS+=-lwindowfunction - -# setup libraries for tdriver - -TLIBS=-L. -ljoblist -lfuncexp -L$(EXPORT_ROOT)/lib -lrt -lmysqlcl_idb -TLIBS+=-lmessageqcpp -lconfigcpp -lxml2 -lcppunit -ldl -lxml2 -TLIBS+=-lexecplan -lm -lthreadpool -lloggingcpp -lrwlock -lbrm -TLIBS+=-ldmlpackageproc -ldmlpackage -lwriteengine -lloggingcpp -ldataconvert -lrowgroup -TLIBS+=-lwindowfunction - -GLIBS=-L$(EXPORT_ROOT)/lib -lrt -lmessageqcpp -lconfigcpp -lxml2 -lcppunit -GLIBS+=-ldl -liberty -lxml2 -ldmlpackageproc -ldmlpackage -lwriteengine -lloggingcpp -ldataconvert -lfuncexp -lmysqlcl_idb -GLIBS+=-lwindowfunction - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lexecplan -lrowgroup -loamcpp -ljoiner -lquerystats -lcommon -lrt -lmysqlcl_idb -lwindowfunction - -SRCS=\ - anydatalist.cpp \ - batchprimitiveprocessor-jl.cpp \ - columncommand-jl.cpp \ - command-jl.cpp \ - crossenginestep.cpp \ - dictstep-jl.cpp \ - diskjoinstep.cpp \ - distributedenginecomm.cpp \ - elementtype.cpp \ - expressionstep.cpp \ - filtercommand-jl.cpp \ - filterstep.cpp \ - groupconcat.cpp \ - jl_logger.cpp \ - jlf_common.cpp \ - jlf_execplantojoblist.cpp \ - jlf_graphics.cpp \ - jlf_tuplejoblist.cpp \ - jlf_subquery.cpp \ - joblist.cpp \ - joblistfactory.cpp \ - jobstep.cpp \ - jobstepassociation.cpp \ - lbidlist.cpp \ - limitedorderby.cpp \ - passthrucommand-jl.cpp \ - passthrustep.cpp \ - pcolscan.cpp \ - pcolstep.cpp \ - pdictionary.cpp \ - pdictionaryscan.cpp \ - primitivemsg.cpp \ - pseudocc-jl.cpp \ - resourcedistributor.cpp \ - resourcemanager.cpp \ - rowestimator.cpp \ - rtscommand-jl.cpp \ - subquerystep.cpp \ - subquerytransformer.cpp \ - tablecolumn.cpp \ - timestamp.cpp \ - tuple-bps.cpp \ - tupleaggregatestep.cpp \ - tupleannexstep.cpp \ - tupleconstantstep.cpp \ - tuplehashjoin.cpp \ - tuplehavingstep.cpp \ - tupleunion.cpp \ - unique32generator.cpp \ - virtualtable.cpp \ - windowfunctionstep.cpp - - -LINCLUDES=\ - bpp-jl.h \ - distributedenginecomm.h \ - elementtype.h \ - errorinfo.h \ - groupconcat.h \ - jl_logger.h \ - joblist.h \ - joblistfactory.h \ - joblisttypes.h \ - jobstep.h \ - lbidlist.h \ - limitedorderby.h \ - primitivemsg.h \ - resourcedistributor.h \ - resourcemanager.h \ - rtscommand-jl.h \ - tablecolumn.h \ - threadsafequeue.h \ - timeset.h \ - timestamp.h \ - unique32generator.h \ - windowfunctionstep.h - -DATALIST_SRC=\ - datalist.h \ - datalistimpl.h \ - elementcompression.h \ - fifo.h - -TABLEBAND_SRC=\ - tablecolumn.h \ - tableband.h - -DRIVERS=\ -# tdriver-datalist.cpp \ -# tdriver-tableband.cpp \ -# tdriver-dec.cpp \ -# tdriver1.cpp \ -# tdriver2.cpp \ -# tdriver-pdict.cpp \ -# tdriver-jobstep.cpp \ -# tdriver-hashjoin.cpp \ -# tdriver-deliver.cpp \ -# tdriver-index.cpp \ -# tdriver-zdl.cpp \ -# tdriver-bdl.cpp \ -# tdriver-bru.cpp \ -# tdriver-agg.cpp - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) $(LLIBS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(DATALIST_SRC) $(INSTALL_ROOT_INCLUDE) - -clean-drivers: - rm -f tdriver*.o tdriver*[0-9] tdriver-datalist tdriver-dec tdriver-tableband tdriver-filter tdriver-jobstep - rm -f tdriver-pdict tdriver-hashjoin tdriver tdriver-gcov tdriver-index tdriver-function - -clean: clean-drivers - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) core *~ *.tag *-gcov.* *.gcov *.d *.d.* - rm -rf html - rm -f LDL-* core.* - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -drivers: tdriver-datalist tdriver-dec tdriver1 tdriver2 tdriver-filter \ - tdriver-hashjoin tdriver-function - -tdriver-pdict: tdriver-pdict.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-dictscan: tdriver-dictscan.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-jobstep: tdriver-jobstep.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-datalist: tdriver-datalist.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-filter: tdriver-filter.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-function: tdriver-function.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-tableband: tdriver-tableband.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-dec: tdriver-dec.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver1: tdriver1.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver2: tdriver2.o - $(LINK.cpp) -o $@ $^ $(ELIBS) -lboost_idb -lcompress -ludfsdk -lcacheutils - -tdriver-hashjoin: tdriver-hashjoin.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-deliver: tdriver-deliver.o - $(LINK.cpp) -o $@ $^ $(ELIBS) - -fifo-bench: fifo-bench.o - $(LINK.cpp) -o $@ $^ $(ELIBS) - -tdriver-index: tdriver-index.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-zdl: tdriver-zdl.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-bdl: tdriver-bdl.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-bru: tdriver-bru.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-agg: tdriver-agg.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -tdriver-rm: tdriver-rm.o - $(LINK.cpp) -o $@ $^ $(DLIBS) - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: tdriver-datalist tdriver-dec - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-datalist - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-dec --leakcheck - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-filter - -leakcheck1: tdriver-deliver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-deliver - - - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) $(DRIVERS:.cpp=.d) -endif - diff --git a/dbcon/mysql/Makefile b/dbcon/mysql/Makefile deleted file mode 100755 index c93fcae89..000000000 --- a/dbcon/mysql/Makefile +++ /dev/null @@ -1,146 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 9744 2013-08-07 03:32:19Z bwilkinson $ -# -# Copyright (C) 2009-2013 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -MYSQL_DIR=../../../mariadb-columnstore-server -#MYSQL_DIR=../../../mariadb -#MYSQL_DIR=../../../InfiniDB-MySQL - -PROGRAM=libcalmysql.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) -MYSQL_INCLUDE_DIRS=-I$(MYSQL_DIR)/include -I$(MYSQL_DIR)/sql -I$(MYSQL_DIR)/regex -I$(MYSQL_DIR)/pcre - -CPPFLAGS+= -I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 $(MYSQL_INCLUDE_DIRS) -DMYSQL_DYNAMIC_PLUGIN -#only for debug builds -#CPPFLAGS+= -DSAFE_MUTEX -DINFINIDB_DEBUG -DDEBUG_WALK_COND -DDEBUG_SETENV --include $(HOME)/IdbMySQLConnector.mak -NEW_DEBUG_FLAGS=$(shell echo "$(DEBUG_FLAGS)" | sed s/-flto//g) -CXXFLAGS+=$(NEW_DEBUG_FLAGS) -Wall -fpic - -# setup libraries for driver - -DLIBS=-L. -ljoblist -lfuncexp -L$(CALPONT_LIBRARY_PATH) -lrt -lexecplan -lbrm -DLIBS+=-lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldmlpackageproc -ldmlpackage -DLIBS+=-lwriteengine -lwriteengineclient -lidbdatafile -lloggingcpp -ldataconvert -lcompress -lcppunit -ldl - -ELIBS=-L$(CALPONT_LIBRARY_PATH) -lddlpackageproc -lddlpackage -ELIBS+=-lmessageqcpp -lrwlock -lconfigcpp -lxml2 -ldmlpackageproc -ldmlpackage -lcompress -ELIBS+=-ljoblist -lfuncexp -ludfsdk -lwriteengine -lwriteengineclient -lidbdatafile -lbrm -lloggingcpp -ldataconvert -lexecplan -ELIBS+=-ljoiner -ldl -lrowgroup -lcacheutils -ELIBS+=-lquerystats -lquerytele -lthrift -ELIBS+=-lfuncexp -lsnmpmanager -lidbboot -lboost_idb -lpthread -lrt - -# setup libraries for tdriver - -TLIBS=-L. -ljoblist -lfuncexp -L$(EXPORT_ROOT)/lib -lrt -TLIBS+=-lmessageqcpp -lconfigcpp -lxml2 -lcppunit -ldl -lxml2 -TLIBS+=-lexecplan -lm -lthreadpool -lloggingcpp -lrwlock -lbrm -lcompress -TLIBS+=-ldmlpackageproc -ldmlpackage -lwriteengine -lwriteengineclient -lidbdatafile -lloggingcpp -ldataconvert - -GLIBS=-L$(EXPORT_ROOT)/lib -lrt -lmessageqcpp -lconfigcpp -lxml2 -lcppunit -GLIBS+=-ldl -liberty -lxml2 -ldmlpackageproc -ldmlpackage -lwriteengine -lwriteengineclient -lidbdatafile -lloggingcpp -ldataconvert - -SRCS=ha_calpont.cpp ha_calpont_impl.cpp ha_calpont_dml.cpp ha_calpont_ddl.cpp \ -ha_calpont_execplan.cpp ha_scalar_sub.cpp ha_in_sub.cpp ha_exists_sub.cpp ha_from_sub.cpp ha_select_sub.cpp \ -ha_view.cpp sm.cpp ha_window_function.cpp ha_calpont_partition.cpp ha_pseudocolumn.cpp - -DRIVERS=tdriver1.cpp - -LINCLUDES=idb_mysql.h - -MYSQLSCRIPTS=syscatalog_mysql.sql \ -dumpcat_mysql.sql \ -dumpcat.pl \ -calsetuserpriority.sql \ -calremoveuserpriority.sql \ -calshowprocesslist.sql \ - -OBJS=$(SRCS:.cpp=.o) - -all: $(LIBRARY) - -ha_calpont.o: ha_calpont.cpp - $(COMPILE.cpp) -fno-rtti -fno-implicit-templates -o ha_calpont.o ha_calpont.cpp - -$(LIBRARY): $(OBJS) - $(MAKE) -C ../ddlpackageproc install - $(MAKE) -C ../ddlpackage install - $(MAKE) -C ../dmlpackageproc install - $(MAKE) -C ../dmlpackage install - $(MAKE) -C ../joblist install - $(MAKE) -C ../execplan install - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) $(ELIBS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE) $(INSTALL_ROOT_MYSQL); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB); \ - $(INSTALL) $(MYSQLSCRIPTS) $(INSTALL_ROOT_MYSQL); - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) - rm -f core *~ *.tag *-gcov.* *.gcov *.d *.d.* - rm -rf html - rm -f LDL-* core.* - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: tdriver-datalist tdriver-dec - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-datalist - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-dec --leakcheck - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-filter - -tdriver1: tdriver1.o - $(LINK.cpp) -o tdriver1 tdriver1.o - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) $(DRIVERS:.cpp=.d) -endif - diff --git a/ddlproc/Makefile b/ddlproc/Makefile deleted file mode 100755 index f28803fb5..000000000 --- a/ddlproc/Makefile +++ /dev/null @@ -1,91 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=DDLProc -VERSION=1.0.0 - -# List all the source files here -SRCS=ddlproc.cpp ddlprocessor.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) -lthreadpool $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - --include $(SRCS:.cpp=.d) - diff --git a/decomsvr/Makefile b/decomsvr/Makefile deleted file mode 100755 index bf33b51e1..000000000 --- a/decomsvr/Makefile +++ /dev/null @@ -1,85 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=DecomSvr -VERSION=1.0.0 - -# List all the source files here -SRCS=server.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lboost_idb -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -lrt - -.PHONY: install clean test docs coverage leakcheck - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) quicklz.o - $(LINK.cpp) -o $@ $^ - -install: $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag quicklz.o cli.o - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -cli: cli.o - $(LINK.cpp) -o $@ $^ - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -test: - -xtest run: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/dmlproc/Makefile b/dmlproc/Makefile deleted file mode 100755 index c061b757a..000000000 --- a/dmlproc/Makefile +++ /dev/null @@ -1,91 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# -# $Id: Makefile 778 2012-06-15 15:24:24Z bpaul $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=DMLProc -VERSION=1.0.0 - -# List all the source files here -SRCS=dmlproc.cpp dmlprocessor.cpp dmlresultbuffer.cpp batchinsertprocessor.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) -lthreadpool -lddlcleanuputil -lbatchloader $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck - -GLIBS=-lcppunit -ldl -lbatchloader - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - --include $(SRCS:.cpp=.d) - diff --git a/exemgr/Makefile b/exemgr/Makefile deleted file mode 100755 index 92682c5a4..000000000 --- a/exemgr/Makefile +++ /dev/null @@ -1,87 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# $Id: Makefile 852 2012-07-19 00:51:10Z zzhu $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=ExeMgr -VERSION=1.0.0 - -# List all the source files here -SRCS=main.cpp activestatementcounter.cpp femsghandler.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) -lcacheutils -lthreadpool $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -.PHONY: install clean test docs FORCE coverage leakcheck - -GLIBS=-lcppunit -ldl -lquerystats - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -sender: sender.o - $(LINK.cpp) $(LIBS) -o $@ $^ - -install: $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -test: - -xtest run: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/libtool~ b/libtool~ deleted file mode 100755 index 7356729f3..000000000 --- a/libtool~ +++ /dev/null @@ -1,7574 +0,0 @@ -#! /bin/sh - -# libtoolT - Provide generalized library-building support services. -# Generated automatically by (GNU infinidb 4.6.1) -# 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="/bin/sed" - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="/bin/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=" CXX" - -# ### BEGIN LIBTOOL CONFIG - -# Libtool was configured on host srvhall03: - -# Shell to use when invoking shell scripts. -SHELL="/bin/sh" - -# Whether or not to build shared libraries. -build_libtool_libs=yes - -# Whether or not to build static libraries. -build_old_libs=no - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=no - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=no - -# Whether or not to optimize for fast installation. -fast_install=yes - -# The host system. -host_alias= -host=x86_64-unknown-linux-gnu -host_os=linux-gnu - -# The build system. -build_alias= -build=x86_64-unknown-linux-gnu -build_os=linux-gnu - -# An echo program that does not interpret backslashes. -echo="echo" - -# The archiver. -AR="ar" -AR_FLAGS="cru" - -# A C compiler. -LTCC="gcc" - -# LTCC compiler flags. -LTCFLAGS="" - -# A language-specific compiler. -CC="gcc" - -# Is the compiler the GNU C compiler? -with_gcc=yes - -gcc_dir=`gcc -print-file-name=. | /bin/sed 's,/\.$,,'` -gcc_ver=`gcc -dumpversion` - -# An ERE matcher. -EGREP="grep -E" - -# The linker used to build libraries. -LD="/usr/bin/ld -m elf_x86_64" - -# Whether we need hard or soft links. -LN_S="ln -s" - -# A BSD-compatible nm program. -NM="/usr/bin/nm -B" - -# A symbol stripping program -STRIP="strip" - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=file - -# 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=.libs - -# How to create reloadable object files. -reload_flag=" -r" -reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" - -# How to pass a linker flag through the compiler. -wl="-Wl," - -# Object file suffix (normally "o"). -objext="o" - -# Old archive suffix (normally "a"). -libext="a" - -# Shared library suffix (normally ".so"). -shrext_cmds='.so' - -# Executable file suffix (normally ""). -exeext="" - -# Additional compiler flags for building library objects. -pic_flag=" -fPIC -DPIC" -pic_mode=default - -# What is the maximum length of a command? -max_cmd_len=32768 - -# Does compiler simultaneously support -c and -o options? -compiler_c_o="yes" - -# Must we lock files when doing compilation? -need_locks="no" - -# Do we need the lib prefix for modules? -need_lib_prefix=no - -# Do we need a version for libraries? -need_version=no - -# Whether dlopen is supported. -dlopen_support=unknown - -# Whether dlopen of programs is supported. -dlopen_self=unknown - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=unknown - -# Compiler flag to prevent dynamic linking. -link_static_flag="" - -# Compiler flag to turn off builtin functions. -no_builtin_flag=" -fno-builtin" - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec="\${wl}--export-dynamic" - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec="" - -# Library versioning type. -version_type=linux - -# Format of library name prefix. -libname_spec="lib\$name" - -# 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="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}" - -# The coded name of the library, if different from the real name. -soname_spec="\${libname}\${release}\${shared_ext}\$major" - -# Commands used to build and install an old-style archive. -RANLIB="ranlib" -old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib" -old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$oldlib" -old_postuninstall_cmds="" - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds="" - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds="" - -# Commands used to build and install a shared archive. -archive_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib" -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 \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-version-script \${wl}\$output_objdir/\$libname.ver -o \$lib" -postinstall_cmds="" -postuninstall_cmds="" - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds="" -module_expsym_cmds="" - -# Commands to strip libraries. -old_striplib="strip --strip-debug" -striplib="strip --strip-unneeded" - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=`echo "" | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=`echo "" | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps="" - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps="" - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=`echo "" | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method="pass_all" - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd="\$MAGIC_CMD" - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag="" - -# Flag that forces no undefined symbols. -no_undefined_flag="" - -# Commands used to finish a libtool library installation in a directory. -finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir" - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval="" - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'" - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern int \\1;/p'" - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'" - -# This is the shared library runtime path variable. -runpath_var=LD_RUN_PATH - -# This is the shared library path variable. -shlibpath_var=LD_LIBRARY_PATH - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=no - -# How to hardcode a shared library path into an executable. -hardcode_action=immediate - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=yes - -# Flag to hardcode $libdir into a binary during linking. -# This must work even if $libdir does not exist. -hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir" - -# 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="" - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator="" - -# Set to yes if using DIR/libNAME during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=no - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=no - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=unsupported - -# 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=no - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=unknown - -# Compile-time system search path for libraries -sys_lib_search_path_spec=`echo "/lib64 /usr/lib64 /usr/local/lib64" | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/lib64/ctapi /usr/local/Calpont/lib /usr/local/Calpont/mysql/lib/mysql hwcap 1 nosegneg hwcap 1 nosegneg hwcap 1 nosegneg hwcap 1 nosegneg /usr/lib64/mysql /usr/lib64/qt-3.3/lib /usr/lib/vmware-tools/lib32/libvmGuestLib.so /usr/lib/vmware-tools/lib64/libvmGuestLib.so /usr/lib/vmware-tools/lib32/libvmGuestLibJava.so /usr/lib/vmware-tools/lib64/libvmGuestLibJava.so /usr/lib/vmware-tools/lib32/libDeployPkg.so /usr/lib/vmware-tools/lib64/libDeployPkg.so /usr/lib64/xulrunner " - -# Fix the shell variable $srcfile for the compiler. -fix_srcfile_path="" - -# Set to yes if exported symbols are required. -always_export_symbols=no - -# The commands to list exported symbols. -export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds="" - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms="_GLOBAL_OFFSET_TABLE_" - -# Symbols that must always be exported. -include_expsyms="" - -# ### END LIBTOOL CONFIG - -# 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)" - -# Be Bourne compatible (taken from Autoconf:_AS_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+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac -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/" -extracted_archives= -extracted_serial=0 - -##################################### -# 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_xlib_u=$my_xlib - while :; do - case " $extracted_archives " in - *" $my_xlib_u "*) - extracted_serial=`expr $extracted_serial + 1` - my_xlib_u=lt$extracted_serial-$my_xlib ;; - *) break ;; - esac - done - extracted_archives="$extracted_archives $my_xlib_u" - my_xdir="$my_gentop/$my_xlib_u" - - $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 ;; - *.obj) xform=obj ;; - 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 - ;; - -static) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - ;; - -static-libtool-libs) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - esac - 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 | -static-libtool-libs) - # 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 "$prefer_static_libs,$installed" = "built,yes"; } || - 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|none) - 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 and hope we can get by with - # turning comma into space.. - wl= - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` - 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" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` - else - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` - fi - ;; - * ) - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` - ;; - 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" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` - fi - - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then - # Replace the output file specification. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` - 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" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` - 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" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` - 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' - -# Be Bourne compatible (taken from Autoconf:_AS_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+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac -fi - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -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 \$*\" - 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" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` - 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" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` - else - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` - 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" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` - - $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 - for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES - do - eval "if test \"\${save_$lt_var+set}\" = set; then - $lt_var=\$save_$lt_var; export $lt_var - else - $lt_unset $lt_var - fi" - done - - - # 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 uninstalled libtool libraries - -static-libtool-libs - 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: -# ### BEGIN LIBTOOL TAG CONFIG: CXX - -# Libtool was configured on host srvhall03: - -# Shell to use when invoking shell scripts. -SHELL="/bin/sh" - -# Whether or not to build shared libraries. -build_libtool_libs=yes - -# Whether or not to build static libraries. -build_old_libs=no - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=no - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=no - -# Whether or not to optimize for fast installation. -fast_install=yes - -# The host system. -host_alias= -host=x86_64-unknown-linux-gnu -host_os=linux-gnu - -# The build system. -build_alias= -build=x86_64-unknown-linux-gnu -build_os=linux-gnu - -# An echo program that does not interpret backslashes. -echo="echo" - -# The archiver. -AR="ar" -AR_FLAGS="cru" - -# A C compiler. -LTCC="gcc" - -# LTCC compiler flags. -LTCFLAGS="" - -# A language-specific compiler. -CC="g++" - -# Is the compiler the GNU C compiler? -with_gcc=yes - -gcc_dir=`gcc -print-file-name=. | /bin/sed 's,/\.$,,'` -gcc_ver=`gcc -dumpversion` - -# An ERE matcher. -EGREP="grep -E" - -# The linker used to build libraries. -LD="/usr/bin/ld -m elf_x86_64" - -# Whether we need hard or soft links. -LN_S="ln -s" - -# A BSD-compatible nm program. -NM="/usr/bin/nm -B" - -# A symbol stripping program -STRIP="strip" - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=file - -# 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=.libs - -# How to create reloadable object files. -reload_flag=" -r" -reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" - -# How to pass a linker flag through the compiler. -wl="-Wl," - -# Object file suffix (normally "o"). -objext="o" - -# Old archive suffix (normally "a"). -libext="a" - -# Shared library suffix (normally ".so"). -shrext_cmds='.so' - -# Executable file suffix (normally ""). -exeext="" - -# Additional compiler flags for building library objects. -pic_flag=" -fPIC -DPIC" -pic_mode=default - -# What is the maximum length of a command? -max_cmd_len=32768 - -# Does compiler simultaneously support -c and -o options? -compiler_c_o="yes" - -# Must we lock files when doing compilation? -need_locks="no" - -# Do we need the lib prefix for modules? -need_lib_prefix=no - -# Do we need a version for libraries? -need_version=no - -# Whether dlopen is supported. -dlopen_support=unknown - -# Whether dlopen of programs is supported. -dlopen_self=unknown - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=unknown - -# Compiler flag to prevent dynamic linking. -link_static_flag="" - -# Compiler flag to turn off builtin functions. -no_builtin_flag=" -fno-builtin" - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec="\${wl}--export-dynamic" - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec="" - -# Library versioning type. -version_type=linux - -# Format of library name prefix. -libname_spec="lib\$name" - -# 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="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}" - -# The coded name of the library, if different from the real name. -soname_spec="\${libname}\${release}\${shared_ext}\$major" - -# Commands used to build and install an old-style archive. -RANLIB="ranlib" -old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib" -old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$oldlib" -old_postuninstall_cmds="" - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds="" - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds="" - -# Commands used to build and install a shared archive. -archive_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib" -archive_expsym_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib" -postinstall_cmds="" -postuninstall_cmds="" - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds="" -module_expsym_cmds="" - -# Commands to strip libraries. -old_striplib="strip --strip-debug" -striplib="strip --strip-unneeded" - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=`echo "/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.4.7/crtbeginS.o" | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=`echo "/usr/lib/gcc/x86_64-redhat-linux/4.4.7/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crtn.o" | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps="" - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s" - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=`echo "-L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../.." | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method="pass_all" - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd="\$MAGIC_CMD" - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag="" - -# Flag that forces no undefined symbols. -no_undefined_flag="" - -# Commands used to finish a libtool library installation in a directory. -finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir" - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval="" - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'" - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern int \\1;/p'" - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'" - -# This is the shared library runtime path variable. -runpath_var=LD_RUN_PATH - -# This is the shared library path variable. -shlibpath_var=LD_LIBRARY_PATH - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=no - -# How to hardcode a shared library path into an executable. -hardcode_action=immediate - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=yes - -# Flag to hardcode $libdir into a binary during linking. -# This must work even if $libdir does not exist. -hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir" - -# 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="" - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator="" - -# Set to yes if using DIR/libNAME during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=no - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=no - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=unsupported - -# 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=no - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=unknown - -# Compile-time system search path for libraries -sys_lib_search_path_spec=`echo "/lib64 /usr/lib64 /usr/local/lib64" | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/lib64/ctapi /usr/local/Calpont/lib /usr/local/Calpont/mysql/lib/mysql hwcap 1 nosegneg hwcap 1 nosegneg hwcap 1 nosegneg hwcap 1 nosegneg /usr/lib64/mysql /usr/lib64/qt-3.3/lib /usr/lib/vmware-tools/lib32/libvmGuestLib.so /usr/lib/vmware-tools/lib64/libvmGuestLib.so /usr/lib/vmware-tools/lib32/libvmGuestLibJava.so /usr/lib/vmware-tools/lib64/libvmGuestLibJava.so /usr/lib/vmware-tools/lib32/libDeployPkg.so /usr/lib/vmware-tools/lib64/libDeployPkg.so /usr/lib64/xulrunner " - -# Fix the shell variable $srcfile for the compiler. -fix_srcfile_path="" - -# Set to yes if exported symbols are required. -always_export_symbols=no - -# The commands to list exported symbols. -export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds="" - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms="" - -# Symbols that must always be exported. -include_expsyms="" - -# ### END LIBTOOL TAG CONFIG: CXX - diff --git a/oam/Makefile b/oam/Makefile deleted file mode 100755 index 6ca82525e..000000000 --- a/oam/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -TARGETS = bootstrap clean install test docs coverage leakcheck - -.PHONY: all $(TARGETS) - -all: - $(MAKE) -C etc - $(MAKE) -C post - $(MAKE) -C oamcpp - $(MAKE) -C install_scripts - $(MAKE) -C cloud - -$(TARGETS): - $(MAKE) -C etc $@ - $(MAKE) -C post $@ - $(MAKE) -C oamcpp $@ - $(MAKE) -C install_scripts $@ - $(MAKE) -C cloud $@ - diff --git a/oam/cloud/Makefile b/oam/cloud/Makefile deleted file mode 100755 index 1c243923e..000000000 --- a/oam/cloud/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# -# $Id: Makefile 2646 2012-01-06 18:47:12Z dhill $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -SCRIPTS=IDBInstanceCmds.sh IDBVolumeCmds.sh - -bootstrap: - umask 002; \ - mkdir -p $(INSTALL_ROOT_BIN); \ - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - rm -f $(SCRIPTS); \ - popd >/dev/null; \ - $(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_BIN) - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - chmod -f 555 $(SCRIPTS); \ - popd >/dev/null - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *.tag *.d *.d.* - -install: bootstrap - -test: - -docs: - -coverage: - -leakcheck: - diff --git a/oam/etc/Makefile b/oam/etc/Makefile deleted file mode 100755 index ca32643a0..000000000 --- a/oam/etc/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -LETC=AlarmConfig.xml Calpont.xml ProcessConfig.xml ConsoleCmds.xml Calpont.xml.singleserver ProcessConfig.xml.singleserver - -bootstrap: - umask 002; \ - mkdir -p $(INSTALL_ROOT_ETC); \ - pushd $(INSTALL_ROOT_ETC) >/dev/null; \ - rm -f $(LETC); \ - popd >/dev/null; \ - $(INSTALL) $(LETC) $(INSTALL_ROOT_ETC) - pushd $(INSTALL_ROOT_ETC) >/dev/null; \ - chmod -f 666 $(LETC); \ - popd >/dev/null - mkdir -p $(INSTALL_ROOT_LOCAL) - -install: bootstrap - -clean: - rm -f *~ - -test: - -docs: - -coverage: - -leakcheck: - diff --git a/oam/install_scripts/Makefile b/oam/install_scripts/Makefile deleted file mode 100755 index 02f32d771..000000000 --- a/oam/install_scripts/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# -# $Id: Makefile 3250 2012-09-26 17:44:13Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -SCRIPTS=post-install pre-uninstall remote_command.sh \ -columnstoreLogRotate transactionLog transactionLogArchiver.sh system_installer.sh \ -module_installer.sh startupTests.sh \ -user_installer.sh performance_installer.sh \ -remote_scp_get.sh columnstoreAlias run.sh upgrade-columnstore.sh \ -post-mysql-install post-mysqld-install binary_installer.sh \ -os_check.sh columnstore columnstoreSyslog columnstoreSyslog-ng syslogSetup.sh \ -remote_scp_put.sh columnstoreUninstall.sh columnstore.def \ -remotessh.exp master-rep-columnstore.sh slave-rep-columnstore.sh rsync.sh \ -myCnf-include-args.text myCnf-exclude-args.text remote_command_verify.sh \ -columnstoreSyslog7 disable-rep-columnstore.sh columnstore.conf - -LOCAL=module - -bootstrap: - umask 002; \ - mkdir -p $(INSTALL_ROOT_BIN); \ - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - rm -f $(SCRIPTS); \ - popd >/dev/null; \ - $(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_BIN) - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - chmod -f 555 $(SCRIPTS); \ - popd >/dev/null - umask 002; \ - mkdir -p $(INSTALL_ROOT_LOCAL); \ - pushd $(INSTALL_ROOT_LOCAL) >/dev/null; \ - rm -f $(LOCAL); \ - popd >/dev/null; \ - $(INSTALL) $(LOCAL) $(INSTALL_ROOT_LOCAL) - pushd $(INSTALL_ROOT_LOCAL) >/dev/null; \ - chmod -f 555 $(LOCAL); \ - popd >/dev/null - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *.tag *.d *.d.* - -install: bootstrap - -test: - -docs: - -coverage: - -leakcheck: - diff --git a/oam/oamcpp/Makefile b/oam/oamcpp/Makefile deleted file mode 100755 index bc730ad2a..000000000 --- a/oam/oamcpp/Makefile +++ /dev/null @@ -1,87 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 2827 2012-04-04 18:19:32Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=liboamcpp.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -loamcpp -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -L/usr/local/MariaDB/Columnstore/lib -lnetsnmp -lnetsnmphelpers -lcppunit -ldl -lrpm -lrwlock -lbrm -TLIBS=-L. -loamcpp $(CLIBS) -GLIBS=$(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lsnmpmanager - -SRCS=liboamcpp.cpp oamcache.cpp -LINCLUDES=liboamcpp.h oamcache.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - $(INSTALL) ../../build/releasenum $(CALPONT_INSTALL_ROOT) - $(INSTALL) COPYING $(CALPONT_INSTALL_ROOT) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* tdriver.output - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(MAKE) -C ../../versioning/BRM install - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov -# for file in $(SRCS); do \ -# bfile=`basename $$file .cpp`; \ -# gcov -o $${bfile}-gcov $$file >/dev/null; \ -# done -# /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oam/post/Makefile b/oam/post/Makefile deleted file mode 100755 index 347ac08cd..000000000 --- a/oam/post/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 2827 2012-04-04 18:19:32Z rdempsey $ -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -SCRIPTS=functions \ - test-001.sh \ - test-002.sh \ - test-003.sh \ - test-004.sh - -bootstrap: - umask 002; \ - mkdir -p $(INSTALL_ROOT_POST); \ - pushd $(INSTALL_ROOT_POST) >/dev/null; \ - rm -f $(SCRIPTS); \ - popd >/dev/null; \ - $(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_POST) - pushd $(INSTALL_ROOT_POST) >/dev/null; \ - chmod -f 555 $(SCRIPTS); \ - popd >/dev/null - -clean: - rm -f *~ - -install: bootstrap - -test: - -docs: - -coverage: - -leakcheck: - diff --git a/oam/replaytxnlog/Makefile b/oam/replaytxnlog/Makefile deleted file mode 100644 index d7ae88e2f..000000000 --- a/oam/replaytxnlog/Makefile +++ /dev/null @@ -1,71 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 389 2007-03-22 22:56:03Z wweeks $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libreplaytxnlog.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib -loamcpp -lmessageqcpp -lloggingcpp -loamcpp -lconfigcpp -lxml2 -lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -L/usr/local/MariaDB/Columnstore/lib -lnetsnmp -lnetsnmphelpers -lcppunit -ldl -lrwlock -lbrm -TLIBS=-L. -loamcpp $(CLIBS) -GLIBS=$(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -loamcpp -lexecplan - -SRCS=replaytxnlog.cpp -LINCLUDES=replaytxnlog.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) $(PROGRAM) $(LIBRARY) core *~ *.tag *-gcov.* *.gcov *.d *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: - -test: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: - -leakcheck: - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/oamapps/Makefile b/oamapps/Makefile deleted file mode 100755 index 8b8f6477c..000000000 --- a/oamapps/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# $Id: Makefile 3121 2013-06-26 15:31:13Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -TARGETS = bootstrap clean test docs coverage leakcheck install - -.PHONY: all $(TARGETS) - -all: - $(MAKE) -C mcsadmin - $(MAKE) -C traphandler - $(MAKE) -C serverMonitor - $(MAKE) -C postConfigure - $(MAKE) -C columnstoreDB - $(MAKE) -C sendtrap - $(MAKE) -C columnstoreSupport -$(TARGETS): - $(MAKE) -C mcsadmin $@ - $(MAKE) -C traphandler $@ - $(MAKE) -C serverMonitor $@ - $(MAKE) -C postConfigure $@ - $(MAKE) -C columnstoreDB $@ - $(MAKE) -C sendtrap $@ - $(MAKE) -C columnstoreSupport $@ diff --git a/oamapps/calpontConsole/Makefile b/oamapps/calpontConsole/Makefile deleted file mode 100755 index 693cf51cb..000000000 --- a/oamapps/calpontConsole/Makefile +++ /dev/null @@ -1,83 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak - -# The name of the executable - -PROGRAM=calpontConsole -VERSION=1.0.0 - -# List all the source files here -SRCS=calpontConsole.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -# we need to add some search paths here because on a boostrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-L/usr/local/lib -lcppunit -ldl -GLIBS=$(CLIBS) - -.PHONY: install clean test docs FORCE coverage leakcheck - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* tdriver.output - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - rm -f /var/log/Columnstore/uiCommands.log - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: calpontConsole-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - - -leakcheck: $(LIBRARY) tdriver - rm -f /var/log/Columnstore/uiCommands.log - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/calpontDB/Makefile b/oamapps/calpontDB/Makefile deleted file mode 100755 index 7acae2b5a..000000000 --- a/oamapps/calpontDB/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 203 2007-04-04 20:30:53Z jrodriguez $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean docs test coverage leakcheck - -PROGRAM=calpontDBWrite -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -D_DEBUG - -# we need to add some search paths here because on a bootstrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl - -SRCS=calpontDB.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/calpontSupport/Makefile b/oamapps/calpontSupport/Makefile deleted file mode 100755 index ca5f11177..000000000 --- a/oamapps/calpontSupport/Makefile +++ /dev/null @@ -1,61 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -SCRIPTS=hardwareReport.sh softwareReport.sh configReport.sh logReport.sh resourceReport.sh alarmReport.sh bulklogReport.sh hadoopReport.sh - -PROGRAM=calpontSupport - -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -SRCS=calpontSupport.cpp - -OBJS=$(SRCS:.cpp=.o) - -all: $(PROGRAM) - -$(PROGRAM): calpontSupport.o - $(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo - -install: bootstrap $(PROGRAM) - umask 002; \ - mkdir -p $(INSTALL_ROOT_BIN) - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - rm -f $(SCRIPTS); \ - popd >/dev/null; \ - $(INSTALL) $(PROGRAM) $(SCRIPTS) $(INSTALL_ROOT_BIN) - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - chmod -f 755 $(PROGRAM) $(SCRIPTS); \ - popd >/dev/null - - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* - rm -rf html - -docs: - -tdriver: - -test: - -coverage: - -leakcheck: - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/calpontSupport/configReport.sh~ b/oamapps/calpontSupport/configReport.sh~ deleted file mode 100755 index 14d72a4b2..000000000 --- a/oamapps/calpontSupport/configReport.sh~ +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -# -# $Id: hardwareReport.sh 421 2007-04-05 15:46:55Z dhill $ -# -if [ $1 ] ; then - MODULE=$1 -else - MODULE="pm1" -fi - -if [ $2 ] ; then - INSTALLDIR=$2 -else - INSTALLDIR="/usr/local/MariaDB/Columnstore" -fi - -if [ $USER = "root" ]; then - SUDO=" " -else - SUDO="sudo" -fi - -$SUDO rm -f /tmp/${MODULE}_configReport.txt - -{ -echo " " -echo "******************** Configuration/Status Report for ${MODULE} ********************" -echo " " - -if test -f /sbin/chkconfig ; then - echo "-- chkconfig configuration --" - echo " " - echo "################# /sbin/chkconfig --list | grep infinidb #################" - echo " " - $SUDO /sbin/chkconfig --list | grep infinidb 2>/dev/null - echo "################# /sbin/chkconfig --list | grep mysql-Calpont #################" - echo " " - $SUDO /sbin/chkconfig --list | grep mysql-Calpont 2>/dev/null -fi - -echo " " -echo "-- fstab Configuration --" -echo " " -echo "################# cat /etc/fstab #################" -echo " " -$SUDO cat /etc/fstab 2>/dev/null - -echo " " -echo "-- Server Processes --" -echo " " -echo "################# ps axu #################" -echo " " -$SUDO ps axu - -echo " " -echo "-- Server Processes with resource usage --" -echo " " -echo "################# top -b -n 1 #################" -echo " " -$SUDO top -b -n 1 - -} > /tmp/${MODULE}_configReport.txt - -exit 0 \ No newline at end of file diff --git a/oamapps/columnstoreDB/Makefile b/oamapps/columnstoreDB/Makefile deleted file mode 100755 index 215bd6325..000000000 --- a/oamapps/columnstoreDB/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 203 2007-04-04 20:30:53Z jrodriguez $ -# -# Copyright (C) 2009-2012 Columnstore Corporation -# All rights reserved -# -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean docs test coverage leakcheck - -PROGRAM=columnstoreDBWrite -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -D_DEBUG - -# we need to add some search paths here because on a bootstrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl - -SRCS=columnstoreDB.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/columnstoreSupport/Makefile b/oamapps/columnstoreSupport/Makefile deleted file mode 100755 index e95f81ee8..000000000 --- a/oamapps/columnstoreSupport/Makefile +++ /dev/null @@ -1,61 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Columnstore Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -SCRIPTS=hardwareReport.sh softwareReport.sh configReport.sh logReport.sh resourceReport.sh alarmReport.sh bulklogReport.sh hadoopReport.sh - -PROGRAM=columnstoreSupport - -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -SRCS=columnstoreSupport.cpp - -OBJS=$(SRCS:.cpp=.o) - -all: $(PROGRAM) - -$(PROGRAM): columnstoreSupport.o - $(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo - -install: bootstrap $(PROGRAM) - umask 002; \ - mkdir -p $(INSTALL_ROOT_BIN) - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - rm -f $(SCRIPTS); \ - popd >/dev/null; \ - $(INSTALL) $(PROGRAM) $(SCRIPTS) $(INSTALL_ROOT_BIN) - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - chmod -f 755 $(PROGRAM) $(SCRIPTS); \ - popd >/dev/null - - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* - rm -rf html - -docs: - -tdriver: - -test: - -coverage: - -leakcheck: - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/hardwareMonitor/Makefile b/oamapps/hardwareMonitor/Makefile deleted file mode 100644 index dedcd6bb7..000000000 --- a/oamapps/hardwareMonitor/Makefile +++ /dev/null @@ -1,56 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 33 2006-09-29 13:45:51Z dhill $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# Author: Zhixuan Zhu -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=HardwareMonitor -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# we need to add some search paths here because on a boostrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L$(EXPORT_ROOT)/lib -lloggingcpp -lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -lnetsnmp \ --lnetsnmpmibs -lnetsnmphelpers -loamcpp -lmessageqcpp -lconfigcpp -lboost_filesystem -lssl -lxml2 -ldl -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl -LD_LIBRARY_PATH= - -SRCS=hardwareMonitor.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/mcsadmin/Makefile b/oamapps/mcsadmin/Makefile deleted file mode 100755 index 5ffafdc64..000000000 --- a/oamapps/mcsadmin/Makefile +++ /dev/null @@ -1,83 +0,0 @@ -:****************************************************************************************** -# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak - -# The name of the executable - -PROGRAM=mcsadmin -VERSION=1.0.0 - -# List all the source files here -SRCS=mcsadmin.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -# we need to add some search paths here because on a boostrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-L/usr/local/lib -lcppunit -ldl -GLIBS=$(CLIBS) - -.PHONY: install clean test docs FORCE coverage leakcheck - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* tdriver.output - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - rm -f /var/log/Columnstore/uiCommands.log - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: mcsadmin-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - - -leakcheck: $(LIBRARY) tdriver - rm -f /var/log/Columnstore/uiCommands.log - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/postConfigure/Makefile b/oamapps/postConfigure/Makefile deleted file mode 100755 index 4276d39cf..000000000 --- a/oamapps/postConfigure/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PPROGRAM=postConfigure -IPROGRAM=installer -APROGRAM=patchInstaller -ZPROGRAM=amazonInstaller -MPROGRAM=mycnfUpgrade -GPROGRAM=getMySQLpw - -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl - -SRCS=helpers.cpp postConfigure.cpp installer.cpp patchInstaller.cpp queryStats.cpp amazonInstaller.cpp mycnfUpgrade.cpp getMySQLpw.cpp - -OBJS=$(SRCS:.cpp=.o) - -all: $(PPROGRAM) $(IPROGRAM) $(APROGRAM) $(ZPROGRAM) $(MPROGRAM) $(GPROGRAM) - -$(PPROGRAM): postConfigure.o helpers.o - $(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo - -$(IPROGRAM): installer.o helpers.o - $(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo - -$(APROGRAM): patchInstaller.o - $(LINK.cpp) -o $@ $^ - -$(ZPROGRAM): amazonInstaller.o helpers.o - $(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo - -$(MPROGRAM): mycnfUpgrade.o - $(LINK.cpp) -o $@ $^ - -$(GPROGRAM): getMySQLpw.o - $(LINK.cpp) -o $@ $^ - - -install: bootstrap $(PPROGRAM) $(IPROGRAM) $(APROGRAM) $(ZPROGRAM) $(MPROGRAM) $(GPROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PPROGRAM) $(IPROGRAM) $(APROGRAM) $(ZPROGRAM) $(MPROGRAM) $(GPROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PPROGRAM) $(IPROGRAM) $(APROGRAM) $(ZPROGRAM) $(MPROGRAM) $(GPROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: postConfigure-gcov.o $(subst .o,-gcov.o,postConfigure.o) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -leakcheck: - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/replayTransactionLog/Makefile b/oamapps/replayTransactionLog/Makefile deleted file mode 100644 index 4ff47ea12..000000000 --- a/oamapps/replayTransactionLog/Makefile +++ /dev/null @@ -1,72 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 203 2007-04-04 20:30:53Z jrodriguez $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean docs test coverage leakcheck - -PROGRAM=ReplayTransactionLog -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -D_DEBUG - -# we need to add some search paths here because on a bootstrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) -lreplaytxnlog $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl - -SRCS=replaytransactionlog.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -#test: $(LIBRARY) tdriver -# -ipcs-pat -d >& /dev/null -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver -# -ipcs-pat -d >& /dev/null - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: sessionwalker-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -leakcheck: tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/resourceMonitor/Makefile b/oamapps/resourceMonitor/Makefile deleted file mode 100644 index 59b41b549..000000000 --- a/oamapps/resourceMonitor/Makefile +++ /dev/null @@ -1,82 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# Author: Zhixuan Zhu -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=resourceMonitor -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# we need to add some search paths here because on a boostrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib -loamcpp -lmessageqcpp -lconfigcpp \ --lxml2 -lsnmpmanager -lnetsnmpmibs -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers \ --lboost_filesystem -lloggingcpp -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl -LD_LIBRARY_PATH= - -SRCS=resourceMonitor.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./resourceMonitor - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: resourceMonitor-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov -# rm -f *.gcda -# rm -f /var/log/Columnstore/cpu*.log -# LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov -# for file in $(SRCS); do \ -# bfile=`basename $$file .cpp`; \ -# gcov -o $${bfile}-gcov $$file >/dev/null; \ -# done -# /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: $(LIBRARY) tdriver -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./resourceMonitor - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/sendtrap/Makefile b/oamapps/sendtrap/Makefile deleted file mode 100755 index bd95f6cf1..000000000 --- a/oamapps/sendtrap/Makefile +++ /dev/null @@ -1,84 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 1652 2010-08-19 18:23:27Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# Author: Zhixuan Zhu -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=sendtrap -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# we need to add some search paths here because on a boostrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl - -SRCS=sendtrap.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - rm -f /var/log/Columnstore/activeAlarms - rm -f /var/log/Columnstore/alarm.log -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./sendtrap processAlarm < ./test.txt - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: sendtrap-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov - rm -f *.gcda - rm -f /var/log/Columnstore/activeAlarms - rm -f /var/log/Columnstore/alarm.log -# LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov processAlarm < ./test.txt - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: $(LIBRARY) tdriver - rm -f /var/log/Columnstore/activeAlarms - rm -f /var/log/Columnstore/alarm.log -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/serverMonitor/Makefile b/oamapps/serverMonitor/Makefile deleted file mode 100755 index 181161f68..000000000 --- a/oamapps/serverMonitor/Makefile +++ /dev/null @@ -1,56 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 33 2006-09-29 13:45:51Z dhill $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# Author: David Hill -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=ServerMonitor -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# we need to add some search paths here because on a boostrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl - -SRCS=main.cpp serverMonitor.cpp cpuMonitor.cpp diskMonitor.cpp \ -memoryMonitor.cpp procmonMonitor.cpp msgProcessor.cpp dbhealthMonitor.cpp \ -UMAutoSync.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/sessionWalker/Makefile b/oamapps/sessionWalker/Makefile deleted file mode 100755 index a58f819ed..000000000 --- a/oamapps/sessionWalker/Makefile +++ /dev/null @@ -1,76 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean docs test coverage leakcheck - -PROGRAM=sessionWalker -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# we need to add some search paths here because on a boostrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_WRITE_LIBS) -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl -OAMLIBS=-loamcpp -lsnmpmanager -lnetsnmp \ --lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs -LDFLAGS+=$(CLIBS) $(OAMLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -SRCS=sessionwalker.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) $(LIBS) -o $@ $^ - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -#test: $(LIBRARY) tdriver -# -ipcs-pat -d >& /dev/null -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver -# -ipcs-pat -d >& /dev/null - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: sessionwalker-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov - -leakcheck: tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/oamapps/traphandler/Makefile b/oamapps/traphandler/Makefile deleted file mode 100755 index b52991d6a..000000000 --- a/oamapps/traphandler/Makefile +++ /dev/null @@ -1,84 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 2339 2012-05-02 18:20:56Z pleblanc $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# Author: Zhixuan Zhu -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=trapHandler -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# we need to add some search paths here because on a boostrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L../oamcpp -L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl - -SRCS=trapHandler.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - rm -f /var/log/Columnstore/activeAlarms - rm -f /var/log/Columnstore/alarm.log -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./trapHandler processAlarm < ./test.txt - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: trapHandler-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov - rm -f *.gcda - rm -f /var/log/Columnstore/activeAlarms - rm -f /var/log/Columnstore/alarm.log -# LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov processAlarm < ./test.txt - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: $(LIBRARY) tdriver - rm -f /var/log/Columnstore/activeAlarms - rm -f /var/log/Columnstore/alarm.log -# LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/primitives/Makefile b/primitives/Makefile deleted file mode 100644 index 2fe3dc592..000000000 --- a/primitives/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# $Id: Makefile 91 2006-10-05 16:04:58Z pleblanc $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -TARGETS = bootstrap clean test docs coverage leakcheck install - -.PHONY: $(TARGETS) - -# If we've got optimization on (-O3), crank it up further... -#ifneq (,$(findstring -O3,$(DEBUG_FLAGS))) -#EXTRA=EXTRA_FLAGS="-finline-limit=1800 -fgcse-sm -fgcse-las -fgcse-after-reload -funsafe-loop-optimizations" -#else -EXTRA=EXTRA_FLAGS= -#endif - -all: - $(MAKE) -C blockcache $(EXTRA) - $(MAKE) -C linux-port $(EXTRA) - $(MAKE) -C primproc $(EXTRA) - -$(TARGETS): - $(MAKE) -C blockcache $(EXTRA) $@ - $(MAKE) -C linux-port $(EXTRA) $@ - $(MAKE) -C primproc $(EXTRA) $@ - diff --git a/primitives/blockcache/Makefile b/primitives/blockcache/Makefile deleted file mode 100755 index 3a77260bc..000000000 --- a/primitives/blockcache/Makefile +++ /dev/null @@ -1,108 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# -# $Id: Makefile 1855 2012-04-04 18:20:09Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -.PHONY: install clean test docs FORCE coverage leakcheck lport-install bootstrap - -# The name of the executable -LIBRARY=libdbbc.a - -# List all the source files here -SRCS=\ - blockcacheclient.cpp \ - blockrequestprocessor.cpp \ - fileblockrequestqueue.cpp \ - filebuffer.cpp \ - filebuffermgr.cpp \ - filerequest.cpp \ - iomanager.cpp \ - stats.cpp \ - fsutils.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -I../primproc - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall $(EXTRA_FLAGS) - -# Linker flags -LDFLAGS+=-L. -L$(CALPONT_LIBRARY_PATH) - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -TLIBS=-lpthread -lwriteengine -lbrm -lrwlock -lmessageqcpp \ --ldl -lconfigcpp -lxml2 -lloggingcpp -ldbbc - -GLIBS=-lpthread -lwriteengine -lbrm -lrwlock -lmessageqcpp \ --ldl -lconfigcpp -lxml2 -lloggingcpp - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(AR) scru $(LIBRARY) $(OBJS) - -bootstrap: - -install: bootstrap $(LIBRARY) - -clean: - rm -f $(OBJS) core *~ *-gcov.* *.gcov *.d config.tag *.d.* $(LIBRARY) - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -coverage: - -zcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -test: - -# use -DXTEST flag for manual testing -xtest: -# CXXFLAGS+=$(CXXFLAGS) -DXTEST - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./bcTest 10 1000 - -leakcheck: - -xleakcheck: - -xleakcheck: bcTest - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./bcTest 2 10 32768 - -tdriver: tdriver.cpp $(LIBRARY) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -bcTest: bcTest.cpp $(LIBRARY) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/primitives/linux-port/Makefile b/primitives/linux-port/Makefile deleted file mode 100755 index 472b25076..000000000 --- a/primitives/linux-port/Makefile +++ /dev/null @@ -1,136 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 2097 2013-05-15 16:48:20Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -LIBRARY=libprocessor.a - -CPPFLAGS=-I../blockcache -I../primproc -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -DPRIM_DEBUG -CXXFLAGS+=$(DEBUG_FLAGS) -Wall $(EXTRA_FLAGS) - -CLIBS=-L$(EXPORT_ROOT)/lib -lconfigcpp -lxml2 -TLIBS=$(CLIBS) -lcppunit -ldl -lloggingcpp -GLIBS=$(CLIBS) - -SRCS=\ - primitiveprocessor.cpp \ - dictionary.cpp \ - column.cpp - -LINCLUDES=\ - primitiveprocessor.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(AR) scru $(LIBRARY) $(OBJS) - -install: bootstrap $(LIBRARY) - -bootstrap: - -clean: - rm -rf $(LIBRARY) $(OBJS) tdriver \ - *~ *.o *.d* *-gcov* *.gcov FILE233.cdf \ - html config.tag print_indextree_subblock print_dictblock \ - col{1,2,4,8}block.cdf \ - col8block_{neg,overflow,overflow_neg}.cdf \ - col_double_block.cdf col_float_block.cdf col_neg_double.cdf \ - col_neg_float.cdf - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -print_indextree_subblock: print_indextree_subblock.cpp - g++ -o print_indextree_subblock $^ $(CPPFLAGS) $(CXXFLAGS) $(TLIBS) - -print_dictblock: print_dictblock.cpp - g++ -o print_dictblock $^ $(CPPFLAGS) $(CXXFLAGS) $(TLIBS) - -print_indexlist: print_indexlist.cpp - g++ -o print_indexlist $^ $(CPPFLAGS) $(CXXFLAGS) $(TLIBS) - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - cat FILE_990.bz2 | bunzip2 > FILE_990.dat - cat FILE_991.bz2 | bunzip2 > FILE_991.dat - cat FILE233.bz2 | bunzip2 > FILE233.cdf - tar zxf colblocks.tar.gz - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - rm col{1,2,4,8}block.cdf - rm col8block_{neg,overflow,overflow_neg}.cdf - rm col_double_block.cdf col_float_block.cdf - rm col_neg_double.cdf col_neg_float.cdf - rm FILE_990.dat - rm FILE_991.dat - rm FILE233.cdf - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -coverage: - -xcoverage: - cat FILE_990.bz2 | bunzip2 > FILE_990.dat - cat FILE_991.bz2 | bunzip2 > FILE_991.dat - cat FILE233.bz2 | bunzip2 > FILE233.cdf - tar zxf colblocks.tar.gz - rm -f tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(MAKE) zcoverage - rm col{1,2,4,8}block.cdf - rm col8block_{neg,overflow,overflow_neg}.cdf - rm FILE_990.dat - rm FILE_991.dat - rm FILE233.cdf - -zcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - cat FILE_990.bz2 | bunzip2 > FILE_990.dat - cat FILE_991.bz2 | bunzip2 > FILE_991.dat - cat FILE233.bz2 | bunzip2 > FILE233.cdf - tar zxf colblocks.tar.gz - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - rm col{1,2,4,8}block.cdf - rm col8block_{neg,overflow,overflow_neg}.cdf - rm FILE_990.dat - rm FILE_991.dat - rm FILE233.cdf - -tdriver%.o: tdriver%.cpp - -tdriver%: tdriver%.o - $(LINK.cpp) -o $@ $^ $(TLIBS) -liberty - -alltests: test - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/primitives/primproc/Makefile b/primitives/primproc/Makefile deleted file mode 100755 index e7077e8be..000000000 --- a/primitives/primproc/Makefile +++ /dev/null @@ -1,129 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# -# $Id: Makefile 2142 2013-08-07 03:34:03Z bwilkinson $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=PrimProc -VERSION=1.0.0 - -# List all the source files here -SRCS=primproc.cpp \ - batchprimitiveprocessor.cpp \ - bppseeder.cpp \ - bppsendthread.cpp \ - columncommand.cpp \ - command.cpp \ - dictstep.cpp \ - filtercommand.cpp \ - logger.cpp \ - passthrucommand.cpp \ - primitiveserver.cpp \ - pseudocc.cpp \ - rtscommand.cpp \ - umsocketselector.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I. -I../blockcache -I../linux-port -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -NEW_DEBUG_FLAGS=$(shell echo "$(DEBUG_FLAGS)" | sed s/-flto//g) -CXXFLAGS+=$(NEW_DEBUG_FLAGS) -Wall $(EXTRA_FLAGS) - -OAMLIBS=-loamcpp -lsnmpmanager -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) -lthreadpool -lwriteengine \ - -lidbdatafile -lcacheutils $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck lport-install bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -.PHONY: bc-install lport-install - -all: $(PROGRAM) - -../blockcache/libdbbc.a: bc-install - -../linux-port/libprocessor.a: lport-install - -$(PROGRAM): ../blockcache/libdbbc.a ../linux-port/libprocessor.a $(OBJS) - $(LINK.cpp) -o $@ $(OBJS) ../blockcache/libdbbc.a ../linux-port/libprocessor.a - -bc-install: - $(MAKE) -C ../blockcache install - -lport-install: - $(MAKE) -C ../linux-port install - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -tdriver-umsocksel: tdriver-umsocksel.o umsocketselector.o - $(LINK.cpp) -o $@ $^ - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/procmgr/Makefile b/procmgr/Makefile deleted file mode 100755 index 18a3477a4..000000000 --- a/procmgr/Makefile +++ /dev/null @@ -1,85 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 1939 2012-10-03 15:10:20Z dhill $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../rules.mak - -# The name of the executable -PROGRAM=ProcMgr -VERSION=1.0.0 - -# List all the source files here -SRCS=main.cpp processmanager.cpp -LINCLUDES=processmanager.h - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L../oamcpp -L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -lcacheutils -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -.PHONY: install clean test docs FORCE coverage leakcheck - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -test: - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/procmon/Makefile b/procmon/Makefile deleted file mode 100755 index 1b9702a7d..000000000 --- a/procmon/Makefile +++ /dev/null @@ -1,81 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable - -PROGRAM=ProcMon -VERSION=1.0.0 - -# List all the source files here -SRCS=main.cpp processmonitor.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -.PHONY: install clean test docs FORCE coverage leakcheck - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d *.d.* config.tag - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -test: - - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - --include $(SRCS:.cpp=.d) diff --git a/rules.mak.debug b/rules.mak.debug deleted file mode 100644 index d87907bb7..000000000 --- a/rules.mak.debug +++ /dev/null @@ -1,67 +0,0 @@ -SHELL=/bin/bash - -ifeq (,$(findstring /root,${PWD})) - TOP=$(shell pwd | cut -d / -f 1,2,3,4) -else - TOP=$(shell pwd | cut -d / -f 1,2,3) -endif - -EXPORT_ROOT=$(TOP)/export -INSTALL=cp --preserve=timestamps - -CALPONT_INSTALL_ROOT=$(EXPORT_ROOT) - -INSTALL_ROOT=$(CALPONT_INSTALL_ROOT) -INSTALL_ROOT_INCLUDE=$(INSTALL_ROOT)/include -INSTALL_ROOT_LIB=$(INSTALL_ROOT)/lib -INSTALL_ROOT_BIN=$(INSTALL_ROOT)/bin -INSTALL_ROOT_ETC=$(INSTALL_ROOT)/etc -INSTALL_ROOT_POST=$(INSTALL_ROOT)/post -INSTALL_ROOT_LOCAL=$(INSTALL_ROOT)/local -INSTALL_ROOT_MYSQL=$(INSTALL_ROOT)/mysql -INSTALL_ROOT_TOOLS=$(INSTALL_ROOT)/tools -INSTALL_ROOT_DATDUP=$(INSTALL_ROOT)/gluster -INSTALL_MIB=$(INSTALL_ROOT)/share/snmp/mibs - -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib -CALPONT_INCLUDE_PATH=$(EXPORT_ROOT)/include - -IDB_COMMON_LIBS=-lwindowfunction -ljoblist -lexecplan -ljoiner -lrowgroup -lfuncexp -ludfsdk \ --loamcpp -lsnmpmanager -ldataconvert -lbrm -lcacheutils -lmessageqcpp -lloggingcpp -lconfigcpp -lrwlock \ --lcommon -lcompress -lxml2 -lidbboot -lboost_idb -lmysqlcl_idb -lquerystats -lidbdatafile -lquerytele \ --lthrift -lpthread -lrt -IDB_WRITE_LIBS=-lddlpackageproc -lddlpackage -ldmlpackageproc -ldmlpackage -lwriteengine -lwriteengineclient -lcompress -lcacheutils -IDB_SNMP_LIBS=-lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers - -LDFLAGS=-Wl,--no-as-needed - -DEBUG_FLAGS=-ggdb3 -fno-tree-vectorize -DSAFE_MUTEX -DSAFEMALLOC -#DEBUG_FLAGS=-g0 -O3 -fno-strict-aliasing -fno-tree-vectorize -DDBUG_OFF - -#DEBUG_FLAGS+=-DVALGRIND -#DEBUG_FLAGS+=-DSKIP_OAM_INIT - -ifeq (i686,$(shell uname -m)) - DEBUG_FLAGS+=-march=pentium4 -else ifeq (x86_64,$(shell uname -m)) - ifeq (opteron,$(shell egrep -qs Opteron /proc/cpuinfo && echo 'opteron')) - DEBUG_FLAGS+=-march=opteron - endif -endif - -ifeq (4.5,$(shell test -x /usr/local/gcc45/bin/gcc && /usr/local/gcc45/bin/gcc --version | awk '/^gcc/ {print $$3}' | cut -c1-3)) - export LD_LIBRARY_PATH=/usr/local/gcc45/lib64:/usr/local/gmp43/lib:/usr/local/mpfr24/lib:/usr/local/mpc08/lib - export PATH=/usr/local/gcc45/bin:/usr/local/bin:/bin:/usr/bin - CC=/usr/local/gcc45/bin/gcc - CXX=/usr/local/gcc45/bin/g++ - ifeq (-O3,$(findstring -O3,$(DEBUG_FLAGS))) - DEBUG_FLAGS+=-flto - endif -endif - -#Use only the last, non-comment line from MyDebugFlags file -LOCAL_DEBUG_FLAGS=$(shell test -f $(TOP)/MyDebugFlags && awk '/^[^\#]/ {last=$$0}END{print last}' $(TOP)/MyDebugFlags) -ifneq (,$(LOCAL_DEBUG_FLAGS)) - DEBUG_FLAGS=$(LOCAL_DEBUG_FLAGS) -endif - diff --git a/snmpd/Makefile b/snmpd/Makefile deleted file mode 100755 index 7afd3837c..000000000 --- a/snmpd/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -TARGETS = bootstrap clean test docs coverage leakcheck install - -.PHONY: all $(TARGETS) - -all: - $(MAKE) -C etc - $(MAKE) -C snmpmanager - -$(TARGETS): - $(MAKE) -C etc $@ - $(MAKE) -C snmpmanager $@ - diff --git a/snmpd/etc/Makefile b/snmpd/etc/Makefile deleted file mode 100755 index e37abfaf1..000000000 --- a/snmpd/etc/Makefile +++ /dev/null @@ -1,97 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -LETC=snmpd.conf snmptrapd.conf snmpd.conf.singleserver snmptrapd.conf.singleserver -LLOCAL=snmpdx.conf snmpdx.conf.singleserver -MIB=CALPONT-MIB.txt \ - AGENTX-MIB.txt \ - DISMAN-EVENT-MIB.txt \ - DISMAN-SCHEDULE-MIB.txt \ - DISMAN-SCRIPT-MIB.txt \ - EtherLike-MIB.txt \ - HCNUM-TC.txt \ - HOST-RESOURCES-MIB.txt \ - HOST-RESOURCES-TYPES.txt \ - IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt \ - IANAifType-MIB.txt \ - IANA-LANGUAGE-MIB.txt \ - IANA-RTPROTO-MIB.txt \ - IF-INVERTED-STACK-MIB.txt \ - IF-MIB.txt \ - INET-ADDRESS-MIB.txt \ - IP-FORWARD-MIB.txt \ - IP-MIB.txt \ - IPV6-ICMP-MIB.txt \ - IPV6-MIB.txt \ - IPV6-TCP-MIB.txt \ - IPV6-TC.txt \ - IPV6-UDP-MIB.txt \ - NET-SNMP-AGENT-MIB.txt \ - NET-SNMP-EXAMPLES-MIB.txt \ - NET-SNMP-EXTEND-MIB.txt \ - NET-SNMP-MIB.txt \ - NET-SNMP-TC.txt \ - NOTIFICATION-LOG-MIB.txt \ - RFC1155-SMI.txt \ - RFC1213-MIB.txt \ - RFC-1215.txt \ - RMON-MIB.txt \ - SMUX-MIB.txt \ - SNMP-COMMUNITY-MIB.txt \ - SNMP-FRAMEWORK-MIB.txt \ - SNMP-MPD-MIB.txt \ - SNMP-NOTIFICATION-MIB.txt \ - SNMP-PROXY-MIB.txt \ - SNMP-TARGET-MIB.txt \ - SNMP-USER-BASED-SM-MIB.txt \ - SNMP-USM-AES-MIB.txt \ - SNMP-USM-DH-OBJECTS-MIB.txt \ - SNMPv2-CONF.txt \ - SNMPv2-MIB.txt \ - SNMPv2-SMI.txt \ - SNMPv2-TC.txt \ - SNMPv2-TM.txt \ - SNMP-VIEW-BASED-ACM-MIB.txt \ - TCP-MIB.txt \ - TRANSPORT-ADDRESS-MIB.txt \ - UCD-DEMO-MIB.txt \ - UCD-DISKIO-MIB.txt \ - UCD-DLMOD-MIB.txt \ - UCD-IPFWACC-MIB.txt \ - UCD-SNMP-MIB.txt \ - UDP-MIB.txt - -bootstrap: - umask 002; \ - mkdir -p $(INSTALL_ROOT_ETC); \ - pushd $(INSTALL_ROOT_ETC) >/dev/null; \ - rm -f $(LETC); \ - popd >/dev/null; \ - $(INSTALL) $(LETC) $(INSTALL_ROOT_ETC) - pushd $(INSTALL_ROOT_ETC) >/dev/null; \ - chmod -f 666 $(LETC); \ - popd >/dev/null; \ - mkdir -p $(INSTALL_MIB); \ - pushd $(INSTALL_MIB) >/dev/null; \ - rm -f $(MIB); \ - popd >/dev/null; \ - $(INSTALL) $(MIB) $(INSTALL_MIB) - pushd $(INSTALL_MIB) >/dev/null; \ - chmod -f 666 $(MIB); \ - popd >/dev/null - - mkdir -p $(INSTALL_ROOT_LOCAL); \ - pushd $(INSTALL_ROOT_LOCAL) >/dev/null; \ - rm -f $(LLOCAL); \ - popd >/dev/null; \ - $(INSTALL) $(LLOCAL) $(INSTALL_ROOT_LOCAL) - pushd $(INSTALL_ROOT_LOCAL) >/dev/null; \ - chmod -f 666 $(LLOCAL); \ - popd >/dev/null - -clean: - rm -f *~ diff --git a/snmpd/snmpmanager/Makefile b/snmpd/snmpmanager/Makefile deleted file mode 100755 index cdb31742a..000000000 --- a/snmpd/snmpmanager/Makefile +++ /dev/null @@ -1,90 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 678 2012-04-04 18:20:46Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# Author: Zhixuan Zhu -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -LIBS64=$(shell test `arch -k` == 'x86_64' && echo -L/usr/lib64) - -PROGRAM=libsnmpmanager.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lconfigcpp $(LIBS64) -lxml2 -lnetsnmphelpers -lnetsnmpagent -lnetsnmp \ --lnetsnmpmibs -lrpm -loamcpp -lboost_filesystem -lloggingcpp -XLIBS=$(CLIBS) -TLIBS=-L. -lsnmpmanager $(CLIBS) -lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lloggingcpp -loamcpp -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers - -SRCS=snmpmanager.cpp alarm.cpp -LINCLUDES=snmpglobal.h snmpmanager.h alarm.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) -L$(EXPORT_ROOT)/lib $(IDB_SNMP_LIBS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/tools/Makefile b/tools/Makefile deleted file mode 100755 index 07b8f798b..000000000 --- a/tools/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# $Id: Makefile 2375 2013-08-07 03:34:29Z bwilkinson $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -TARGETS = bootstrap clean test docs coverage leakcheck install - -.PHONY: all $(TARGETS) - -PROGS = dbbuilder editem dbloadxml \ - getConfig cplogger \ - clearShm setConfig \ - configMgt viewtablelock cleartablelock ddlcleanup \ - idbmeminfo \ - hdfsCheck - -all $(TARGETS): - if [ $@ != all ]; \ - then target=$@; \ - fi; \ - for prog in $(PROGS); \ - do $(MAKE) -C $$prog $$target || exit 1; \ - done - diff --git a/tools/bincvt/Makefile b/tools/bincvt/Makefile deleted file mode 100644 index aabed4263..000000000 --- a/tools/bincvt/Makefile +++ /dev/null @@ -1,94 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM1=li2bin - -# List all the source files here -SRCS1=li2bin.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS= - -OBJS1=$(SRCS1:.cpp=.o) - -$(PROGRAM1): $(OBJS1) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM1) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM1) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS1) $(PROGRAM1) core *~ *-gcov.* *.gcov $(PROGRAM1)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM1)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM1)-gcov: $(subst .o,-gcov.o,$(OBJS1)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM1)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM1)-gcov - for file in $(SRCS1); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM1) - -leakcheck: - -xleakcheck: $(PROGRAM1) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM1) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS1:.cpp=.d) -endif - diff --git a/tools/brmtest/Makefile b/tools/brmtest/Makefile deleted file mode 100644 index e1223f6bd..000000000 --- a/tools/brmtest/Makefile +++ /dev/null @@ -1,97 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=brmtest -VERSION=1.0.0 - -# List all the source files here -SRCS=brmtest.cpp locks.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -OAMLIBS=-loamcpp -lsnmpmanager -lboost_filesystem -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lexecplan -ljoblist -lfuncexp -lrowgroup -ldataconvert -lloggingcpp -lboost_thread -lbrm -lmessageqcpp -lrwlock -lconfigcpp -lxml2 -lboost_date_time -ljoiner -lcommon $(OAMLIBS) - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/cfread/Makefile b/tools/cfread/Makefile deleted file mode 100644 index c425de106..000000000 --- a/tools/cfread/Makefile +++ /dev/null @@ -1,76 +0,0 @@ -include ./../../rules.mak -#****************************************************************************************** -# -# $Id: Makefile 609 2008-06-11 12:40:07Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -.PHONY: install clean test docs FORCE coverage leakcheck lport-install bootstrap - -# The name of the executable -PROGRAM=cfread mtread - -# List all the source files here -SRCS=cfread.cpp mtread.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L. -L$(CALPONT_LIBRARY_PATH) - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -TLIBS=$(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) - -OBJS=$(SRCS:.cpp=.o) - -all: $(PROGRAM) - -bootstrap: - -mtread: mtread.cpp - $(LINK.cpp) -o $@ $^ $(TLIBS) - -cfread: cfread.cpp - $(LINK.cpp) -o $@ $^ $(TLIBS) - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) core *~ *-gcov.* *.gcov *.d config.tag *.d.* $(PROGRAM) - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -coverage: - -test: - -leakcheck: - -tdriver: - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/tools/clearShm/Makefile b/tools/clearShm/Makefile deleted file mode 100755 index b1fbdbe7d..000000000 --- a/tools/clearShm/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=clearShm -VERSION=1.0.0 - -# List all the source files here -SRCS=main.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/cleartablelock/Makefile b/tools/cleartablelock/Makefile deleted file mode 100755 index 42ccf5257..000000000 --- a/tools/cleartablelock/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 928 2009-09-17 17:34:17Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=cleartablelock -VERSION=1.0.0 - -# List all the source files here -SRCS=cleartablelock.cpp cleartablelockthread.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/configMgt/Makefile b/tools/configMgt/Makefile deleted file mode 100755 index 0d7c6ebc4..000000000 --- a/tools/configMgt/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -IPROGRAM=autoInstaller -APROGRAM=autoConfigure -QPROGRAM=svnQuery -SPROGRAM=stackReleaseChecker - -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -CLIBS=-L$(EXPORT_ROOT)/lib -L/usr/local/MariaDB/Columnstore/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -SRCS=autoInstaller.cpp autoConfigure.cpp svnQuery.cpp -OBJS=$(SRCS:.cpp=.o) - -all: $(IPROGRAM) $(APROGRAM) $(QPROGRAM) $(SPROGRAM) - -$(IPROGRAM): autoInstaller.o - $(LINK.cpp) -o $@ $^ -Wl,-Bstatic -lreadline -Wl,-Bdynamic -lncurses -ltinfo - -$(APROGRAM): autoConfigure.o - $(LINK.cpp) -o $@ $^ - -$(QPROGRAM): svnQuery.o - $(LINK.cpp) -o $@ $^ - -$(SPROGRAM): stackReleaseChecker.o - $(LINK.cpp) -o $@ $^ - -install: bootstrap $(APROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(APROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(IPROGRAM) $(APROGRAM) $(QPROGRAM) $(SPROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* - rm -rf html - -docs: - -tdriver: - -test: - -coverage: - -leakcheck: - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/tools/cplogger/Makefile b/tools/cplogger/Makefile deleted file mode 100755 index 7ecf1c147..000000000 --- a/tools/cplogger/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=cplogger -VERSION=1.0.0 - -# List all the source files here -SRCS=main.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/dbbuilder/Makefile b/tools/dbbuilder/Makefile deleted file mode 100755 index b7ef9dfb4..000000000 --- a/tools/dbbuilder/Makefile +++ /dev/null @@ -1,96 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=dbbuilder -VERSION=1.0.0 - -# List all the source files here -SRCS=dbbuilder.cpp systemcatalog.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/dbloadxml/Makefile b/tools/dbloadxml/Makefile deleted file mode 100755 index e4187762f..000000000 --- a/tools/dbloadxml/Makefile +++ /dev/null @@ -1,101 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -CPROGRAM=colxml -VERSION=1.0.0 -ALL_PROGRAMS=$(CPROGRAM) - -# List all the source files here -CSRCS=colxml.cpp inputmgr.cpp -SRCS=colxml.cpp inputmgr.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -COBJS=$(CSRCS:.cpp=.o) - -all: $(ALL_PROGRAMS) - -$(CPROGRAM): $(COBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(ALL_PROGRAMS) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(ALL_PROGRAMS) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(CPROGRAM) core *~ *-gcov.* *.gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(CPROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(CPROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/ddlcleanup/Makefile b/tools/ddlcleanup/Makefile deleted file mode 100755 index 7120f366f..000000000 --- a/tools/ddlcleanup/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 928 2009-09-17 17:34:17Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=ddlcleanup -VERSION=1.0.0 - -# List all the source files here -SRCS=ddlcleanup.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -lddlcleanuputil - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/ddldriver/Makefile b/tools/ddldriver/Makefile deleted file mode 100644 index 4823ddf60..000000000 --- a/tools/ddldriver/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=ddldriver -VERSION=1.0.0 - -# List all the source files here -SRCS=ddldriver.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/dmldriver/Makefile b/tools/dmldriver/Makefile deleted file mode 100644 index 439943dcf..000000000 --- a/tools/dmldriver/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=dmldriver -VERSION=1.0.0 - -# List all the source files here -SRCS=dmldriver.cpp tpchrf2.cpp dmlif.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/editem/Makefile b/tools/editem/Makefile deleted file mode 100755 index cc763aca1..000000000 --- a/tools/editem/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=editem -VERSION=1.0.0 - -# List all the source files here -SRCS=editem.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/evalidx/Makefile b/tools/evalidx/Makefile deleted file mode 100644 index e4295725d..000000000 --- a/tools/evalidx/Makefile +++ /dev/null @@ -1,99 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=evalidx -VERSION=1.0.0 - -# List all the source files here -SRCS=evalidx.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -OAMLIBS=-loamcpp -lsnmpmanager -lboost_filesystem -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -ldmlpackageproc -lexecplan -ljoblist -lfuncexp -lrowgroup -lwriteengine -lbrm \ --ldataconvert -lcacheutils -ldmlpackage -lmessageqcpp -lloggingcpp -lconfigcpp -lrwlock -lboost_thread -lxml2 \ --lboost_date_time -ljoiner -lcommon $(OAMLIBS) - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/evalidx/checkidx.py~ b/tools/evalidx/checkidx.py~ deleted file mode 100755 index ec43e45b9..000000000 --- a/tools/evalidx/checkidx.py~ +++ /dev/null @@ -1,98 +0,0 @@ -#!/usr/bin/python - -import os, sys, glob, shutil, xml.dom.minidom - -def find_paths(): - - """Find DBRoot and BulkRoot.""" - try: - config_file = os.environ['CALPONT_CONFIG_FILE'] - except KeyError: - try: - config_file = '/usr/local/Calpont/etc' - os.lstat(config_file) - except: - sys.exit('No config file available') - - - xmldoc = xml.dom.minidom.parse(config_file) - bulk_node = xmldoc.getElementsByTagName('BulkRoot')[0] - db_node = xmldoc.getElementsByTagName('DBRoot')[0] - - bulk_dir = bulk_node.childNodes[0].nodeValue - data_dir = db_node.childNodes[0].nodeValue - - return (bulk_dir, data_dir) - - -def validate_indexes(job_file): - index_files = [] - xmldoc = xml.dom.minidom.parse(job_file) - - for index_node in xmldoc.getElementsByTagName('Index'): - curTreeOid = index_node.getAttribute('iTreeOid') - curListOid = index_node.getAttribute('iListOid') - curMapOid = index_node.getAttribute('mapOid') - curIdxCmdArg = ' -t ' + curTreeOid + ' -l ' + curListOid + ' -v -c ' + curMapOid + ' -b 4' + ' > idxCol_' + curMapOid+'.out' -# print curIdxCmd -# exec_cmd( genii + '/tools/evalidx/evalidx', curIdxCmd ) - index_files.append( curIdxCmdArg ) - - return index_files - -def exec_cmd(cmd, args): - """Execute command using subprocess module or if that fails, - use os.system - """ - - try: - import subprocess - - try: - retcode = call(cmd + " "+args, shell=True) - if retcode < 0: - print >>sys.stderr, "Child was terminated by signal", -retcode - sys.exit(-1) - - else: - print >>sys.stderr, "Child returned", retcode - - except OSError, e: - - print >>sys.stderr, "Execution failed:", e - sys.exit(-1) - except: - res = os.system(cmd+' '+args) - if res: - sys.exit( res ) - - - -def main(): - """ - Validate indexes.. - """ - - if not os.access('.', os.W_OK): - os.chdir('/tmp') - print 'Changing to /tmp to have permission to write files' - - if len(os.getenv('LD_LIBRARY_PATH'))<5: - print 'Suspicous LD_LIBRARY_PATH: %s'%os.getenv('LD_LIBRARY_PATH') - - home = os.getenv('HOME') - genii = home+'/genii' - - (bulkroot, dbroot) = find_paths() - - if len(glob.glob(bulkroot+'/job/Job_300.xml')) == 0: - sys.exit("No Job_300.xml exist ") - - indexes = validate_indexes(bulkroot+'/job/Job_300.xml') - for idxCmdArg in indexes: - print idxCmdArg - exec_cmd( genii + '/tools/evalidx/evalidx', idxCmdArg ) - - -## the following line allows either interactive use or module import -if __name__=="__main__": main() diff --git a/tools/fixdate/Makefile b/tools/fixdate/Makefile deleted file mode 100644 index 0a683391b..000000000 --- a/tools/fixdate/Makefile +++ /dev/null @@ -1,96 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=fixdate -VERSION=1.0.0 - -# List all the source files here -SRCS=fixdate.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -ldmlpackageproc -lexecplan -lwriteengine -lbrm \ --ldmlpackage -lmessageqcpp -lloggingcpp -lconfigcpp -lrwlock -lboost_thread -lxml2 - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/getConfig/Makefile b/tools/getConfig/Makefile deleted file mode 100755 index 3242d4ea0..000000000 --- a/tools/getConfig/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=getConfig -VERSION=1.0.0 - -# List all the source files here -SRCS=main.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/hdfsCheck/Makefile b/tools/hdfsCheck/Makefile deleted file mode 100644 index dcd438268..000000000 --- a/tools/hdfsCheck/Makefile +++ /dev/null @@ -1,96 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3048 2012-04-04 15:33:45Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -# The name of the executable -PROGRAM=hdfsCheck -VERSION=1.0.0 - -# List all the source files here -SRCS=hdfsCheck.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -lloggingcpp -lidbdatafile -lboost_idb \ - -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/tools/idb_comp/Makefile b/tools/idb_comp/Makefile deleted file mode 100644 index 58f765c40..000000000 --- a/tools/idb_comp/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -CXXFLAGS=-g0 -O3 -Wall -LDFLAGS+=-L/usr/local/lib - -idb_comp: main.o - $(LINK.cpp) -o idb_comp main.o -llzo2 - -clean: - rm -f idb_comp main.o - diff --git a/tools/idbmeminfo/Makefile b/tools/idbmeminfo/Makefile deleted file mode 100755 index 1e9375755..000000000 --- a/tools/idbmeminfo/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=idbmeminfo -VERSION=1.0.0 - -# List all the source files here -SRCS=idbmeminfo.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/notificationTester/Makefile b/tools/notificationTester/Makefile deleted file mode 100644 index 2207fb805..000000000 --- a/tools/notificationTester/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 33 2006-09-29 13:45:51Z dhill $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# Author: David Hill -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=notificationTester -VERSION=1.0.0 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# we need to add some search paths here because on a boostrap build we won't find liboamcpp -# anywhere except in ../oamcpp -CLIBS=-L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -LDFLAGS+=$(CLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS=-lcppunit -ldl -GLIBS=$(CLIBS) -lcppunit -ldl - -SRCS=main.cpp -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -client: client.o - $(LINK.cpp) -o $@ $^ - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/tools/pingproc/Makefile b/tools/pingproc/Makefile deleted file mode 100644 index e610dde39..000000000 --- a/tools/pingproc/Makefile +++ /dev/null @@ -1,98 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=PingProc -VERSION=1.0.0 - -# List all the source files here -SRCS=pingproc.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -OAMLIBS=-loamcpp -lsnmpmanager -lboost_filesystem -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lexecplan -ljoblist -lfuncexp -lrowgroup -ldataconvert -lloggingcpp -lboost_thread -lbrm -lmessageqcpp -lrwlock -lconfigcpp -lxml2 -lboost_date_time -ljoiner -lcommon $(OAMLIBS) -#LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -ljoblist -lfuncexp -lrowgroup -lexecplan -ldataconvert -lbrm -lmessageqcpp -lrwlock -lloggingcpp -lconfigcpp -lxml2 -lboost_thread - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/qfe/Makefile b/tools/qfe/Makefile deleted file mode 100644 index 470bba88c..000000000 --- a/tools/qfe/Makefile +++ /dev/null @@ -1,98 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=QFE -VERSION=1.0.0 - -# List all the source files here -SRCS=server.cpp parsequery.cpp sendcsep.cpp returnedrows.cpp socketio.cpp cseputils.cpp ddlstmts.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -### DEBUG_FLAGS=-g -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -Wno-unused-label - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -QFE_LDLIBS=$(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -CLI_LDLIBS=$(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) - -.PHONY: install clean test docs coverage leakcheck - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -all: $(PROGRAM) cli - -$(PROGRAM): qfeparser.o qfelexer.o $(OBJS) - $(LINK.cpp) $(QFE_LDLIBS) -o $@ $^ - -qfelexer.cpp: qfelexer.lpp - flex -i -Pqfe -oqfelexer.cpp qfelexer.lpp - -qfeparser.cpp: qfeparser.ypp - bison -d -p qfe -o qfeparser.cpp qfeparser.ypp - cmp -s qfeparser.hpp qfeparser.h || cp qfeparser.hpp qfeparser.h - -install: $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d *.d.* config.tag cli.o cli - rm -rf html - rm -rf qfeparser.h qfeparser.cpp qfeparser.hpp qfelexer.cpp qfeparser.output qfeparser.o qfelexer.o - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -cli: cli.o socketio.o - $(LINK.cpp) $(CLI_LDLIBS) -o $@ $^ - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -test: - -xtest run: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/tools/rebuildEM/Makefile b/tools/rebuildEM/Makefile deleted file mode 100644 index b1f34fbac..000000000 --- a/tools/rebuildEM/Makefile +++ /dev/null @@ -1,96 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=rebuildEM -VERSION=1.0.0 - -# List all the source files here -SRCS=main.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lbrm -lmessageqcpp -lrwlock -lconfigcpp -lboost_thread -lxml2 \ --lloggingcpp - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/reserveStacks/stack~ b/tools/reserveStacks/stack~ deleted file mode 100755 index 12d54ae03..000000000 --- a/tools/reserveStacks/stack~ +++ /dev/null @@ -1,82 +0,0 @@ -#!/bin/bash - -# BP 09/16/2011 13:43 -# This script will give user to -# list all the calpont stacks -# reserve a calpont stack -# release a calpont stack -# Help to use a test stack without stepping each other. -# - -DB=stacks - -usage() -{ - echo "Usage:" >&2 - echo " ${0##*/} list" >&2 - echo " ${0##*/} reserve stackname who" >&2 - echo " ${0##*/} release stackname who" >&2 -} - -cmd="$1" -argc=$# - -if [ -z "$cmd" -o "$cmd" = "-h" ]; then - usage - exit 1 -fi - -if [ $(expr 'list' : "$cmd") -gt 0 ]; then - cmd=list - INST=$2 -elif [ $(expr 'reserve' : "$cmd") -gt 2 ]; then - cmd=reserve - INST=$4 -elif [ $(expr 'release' : "$cmd") -gt 2 ]; then - cmd=release - INST=$4 -fi -if [ -z "$INSTALLDIR" ]; then - INSTALLDIR="/usr/local/Calpont" - if [ $INST ]; then - INSTALLDIR=$INST - fi - export INSTALLDIR -fi - -if [ -z "$MYSQLCMD" ]; then - if [ -d "$INSTALLDIR/mysql" ]; then - # Linux. - MYSQLCMD="$INSTALLDIR/mysql/bin/mysql -h 10.100.4.51 -u root --database=$DB" - else - # Windows. - MYSQLCMD="$INSTALLDIR/bin/mysql -h 10.100.4.51 -u root --database=$DB" - fi - export MYSQLCMD -fi - -good=0 - -if [ "$cmd" = "list" ]; then - sql="call list_stacks()" - $MYSQLCMD -e "$sql" - good=1 -fi - -if [ "$cmd" = "reserve" -a $argc -ge 3 ]; then - sql="call reserve_stack('$2', '$3')" - $MYSQLCMD -e "$sql" - good=1 -fi - -if [ "$cmd" = "release" -a $argc -ge 3 ]; then - sql="call release_stack('$2', '$3')" - $MYSQLCMD -e "$sql" - good=1 -fi - -if [ $good -eq 0 ]; then - usage - exit 1 -fi - diff --git a/tools/sendPlan/Makefile b/tools/sendPlan/Makefile deleted file mode 100644 index fa77c97fd..000000000 --- a/tools/sendPlan/Makefile +++ /dev/null @@ -1,97 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1763 2012-04-04 18:20:36Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=sendPlan -VERSION=1.0.0 - -# List all the source files here -SRCS=sendplan.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -OAMLIBS=-loamcpp -lsnmpmanager -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/setConfig/Makefile b/tools/setConfig/Makefile deleted file mode 100755 index e98fb2dd0..000000000 --- a/tools/setConfig/Makefile +++ /dev/null @@ -1,107 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 444 2008-08-29 16:01:07Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - - -SCRIPTS=configxml.sh - -# The name of the executable -PROGRAM=setConfig -VERSION=1.0.0 - -# List all the source files here -SRCS=main.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - umask 002; \ - mkdir -p $(INSTALL_ROOT_BIN); \ - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - rm -f $(SCRIPTS); \ - popd >/dev/null; \ - $(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_BIN) - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - chmod -f 555 $(SCRIPTS); \ - popd >/dev/null - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/valprint/Makefile b/tools/valprint/Makefile deleted file mode 100644 index 913fafd76..000000000 --- a/tools/valprint/Makefile +++ /dev/null @@ -1,97 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=valprint -VERSION=1.0.0 - -# List all the source files here -SRCS=valprint.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -OAMLIBS=-loamcpp -lsnmpmanager -lboost_filesystem -lnetsnmp -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lconfigcpp -lxml2 -lboost_thread - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/vbgen/Makefile b/tools/vbgen/Makefile deleted file mode 100644 index 12ab1e80e..000000000 --- a/tools/vbgen/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=vbgen -VERSION=1.0.0 - -# List all the source files here -SRCS=vbgen.cpp myrand.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/tools/viewtablelock/Makefile b/tools/viewtablelock/Makefile deleted file mode 100755 index 5c29d52bc..000000000 --- a/tools/viewtablelock/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 928 2009-09-17 17:34:17Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -# The name of the executable -PROGRAM=viewtablelock -VERSION=1.0.0 - -# List all the source files here -SRCS=viewtablelock.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -.PHONY: install clean test docs FORCE coverage leakcheck bootstrap - -GLIBS=-lcppunit -ldl - -OBJS=$(SRCS:.cpp=.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - -bootstrap: - -install: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *-gcov.* *.gcov $(PROGRAM)-gcov *.d config.tag *.d.* - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -FORCE: - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: $(PROGRAM)-gcov FORCE - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file; \ - done - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ -lboost_program_options - -test: - -xtest run: - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -leakcheck: - -xleakcheck: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif - diff --git a/utils/Makefile b/utils/Makefile deleted file mode 100755 index 191884c50..000000000 --- a/utils/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# $Id: Makefile 4037 2013-08-07 03:37:31Z bwilkinson $ -# -# Copyright (C) 2009-2013 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -TARGETS = bootstrap clean test docs coverage leakcheck install - -.PHONY: $(TARGETS) - -PROGS = boost_idb startup common configcpp loggingcpp messageqcpp threadpool \ - rwlock dataconvert joiner rowgroup cacheutils funcexp udfsdk compress \ - batchloader ddlcleanup mysqlcl_idb querystats jemalloc windowfunction idbdatafile \ - idbhdfs winport thrift querytele - -all $(TARGETS): - if [ $@ != all ]; \ - then target=$@; \ - fi; \ - for prog in $(PROGS); \ - do $(MAKE) -C $$prog $$target || exit $$?; \ - done - diff --git a/utils/autoconf/INSTALL~ b/utils/autoconf/INSTALL~ deleted file mode 100644 index 0f12f143b..000000000 --- a/utils/autoconf/INSTALL~ +++ /dev/null @@ -1,306 +0,0 @@ -Installation Instructions -************************* - -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free -Software Foundation, Inc. - -Copyright (C) 2014 InfiniDB, Inc. - -This file is free documentation; the Free Software Foundation gives -unlimited permission to copy, distribute and modify it. - -InfiniDB, Inc. also gives unlimited permission to copy, distribute and -modify it. - -Basic Installation from source -============================== - -**** InfiniDB source build instructions **** - -Consult the generic installation instructions -that follow for detailed information. The short version is: - -cd $HOME -git clone http://github.com/infinidb/mysql -git clone http://github.com/infinidb/infinidb --- or -- -tar -zxf -cd mysql -./configure --prefix=$HOME -make -make install -cd ../infinidb -./configure --prefix=$HOME -make -make install - -This will create a directory called Calpont in $HOME which conatins -all the software you need. - -Install the InfiniDB software into /usr/local (for example) by copying -the entire Calpont directory tree there. - -After untaring the sofware or installing the RPM's, setup the software -to run (this script needs to run with root privileges). Check the Installation -Guide for addition details on using postConfigure: -/usr/local/Calpont/bin/postConfigure - -Setup some aliases: -. /usr/local/Calpont/bin/calpontAlias - -Connect to MySQL: -idbmysql - -A suggested test scenario: -create database calpont; -use calpont; -create table caltest (col1 int, col2 int) engine=infinidb; -show create table caltest; -set autocommit=0; -insert into caltest values (1, 2); -insert into caltest values (3, 4); -commit; -select * from caltest; - -To use bulk load: -1. A delimited import file should be created to match the table that - you want to import data to similar to the following. In this - example, the file will be saved as idbtest.tbl: - 100|1001| - 200|2002| -2. Save/place this file in a directory. -3. From that same directory, import the rows: - /usr/local/Calpont/bin/cpimport calpont caltest caltest.tbl - -And check the import: -calpontmysql calpont -select * from caltest; - - -That's it. Enjoy. - - -These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). - - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. (Caching is -disabled by default to prevent problems with accidental use of stale -cache files.) - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you -may remove or edit it. - - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You only need -`configure.ac' if you want to change it or regenerate `configure' using -a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package. - - 4. Type `make install' to install the programs and any data files and - documentation. - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Compilers and Options -===================== - -Some systems require unusual options for compilation or linking that the -`configure' script does not know about. Run `./configure --help' for -details on some of the pertinent environment variables. - - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: - - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix - - *Note Defining Variables::, for more details. - -Compiling For Multiple Architectures -==================================== - -You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not support the `VPATH' -variable, you have to compile the package for one architecture at a -time in the source code directory. After you have installed the -package for one architecture, use `make distclean' before reconfiguring -for another architecture. - -Installation Names -================== - -By default, `make install' installs the package's commands under -`/usr/local/bin', include files under `/usr/local/include', etc. You -can specify an installation prefix other than `/usr/local' by giving -`configure' the option `--prefix=PREFIX'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -pass the option `--exec-prefix=PREFIX' to `configure', the package uses -PREFIX as the prefix for installing programs and libraries. -Documentation and other data files still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=DIR' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Optional Features -================= - -Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - -Specifying the System Type -========================== - -There may be some features `configure' cannot figure out automatically, -but needs to determine by the type of machine the package will run on. -Usually, assuming the package is built to be run on the _same_ -architectures, `configure' can figure that out, but if it prints a -message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: - - CPU-COMPANY-SYSTEM - -where SYSTEM can have one of these forms: - - OS KERNEL-OS - - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the machine type. - - If you are _building_ compiler tools for cross-compiling, you should -use the option `--target=TYPE' to select the type of system they will -produce code for. - - If you want to _use_ a cross compiler, that generates code for a -platform different from the build platform, you should specify the -"host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. - -Sharing Defaults -================ - -If you want to set default values for `configure' scripts to share, you -can create a site shell script called `config.site' that gives default -values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Defining Variables -================== - -Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run -configure again during the build, and the customized values of these -variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: - - ./configure CC=/usr/local2/bin/gcc - -causes the specified `gcc' to be used as the C compiler (unless it is -overridden in the site shell script). Here is a another example: - - /bin/bash ./configure CONFIG_SHELL=/bin/bash - -Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent -configuration-related scripts to be executed by `/bin/bash'. - -`configure' Invocation -====================== - -`configure' recognizes the following options to control how it operates. - -`--help' -`-h' - Print a summary of the options to `configure', and exit. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--cache-file=FILE' - Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to - disable caching. - -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. - diff --git a/utils/autoconf/README~ b/utils/autoconf/README~ deleted file mode 100644 index 2aa1663a5..000000000 --- a/utils/autoconf/README~ +++ /dev/null @@ -1,145 +0,0 @@ -To build the software from source, consult the file INSTALL. - -Brief Install Instructions: - -1. Install the 3 Calpont InfiniDB RPMs. -2. Install and start the software, run: /usr/local/Calpont/bin/postConfigure -3. Setup some aliases: . /usr/local/Calpont/bin/calpontAlias -4. Connect to MySQL: idbmysql -5. Try the test in step 12 below - - -Detailed Installation Instructions: - -1. Download the package calpont-2.2.0-2.x86_64.rpm.tar.gz (RHEL5 64-BIT) - to the server where you are installing Calpont. - -2. Obtain root user access. - -3. Unpack the tarball, which will generate 4 RPMs. - - tar xvf calpont-2.2.0-2.x86_64.rpm.tar.gz - -4. Install the 3 RPMs in this order, the Calpont InfiniDB software will be installed in - /usr/local/Calpont. - - rpm -ivh infinidb-libs-2.2.0-2.x86_64.rpm - rpm -ivh infinidb-platform-2.2.0-2.x86_64.rpm - rpm -ivh infinidb-mysql-2.2.0-2.x86_64.rpm - rpm -ivh infinidb-storage-engine-2.2.0-2.x86_64.rpm - -5a.To configure and run on a single server system utilizing local disk storage, - run install script: - - /usr/local/Calpont/bin/postConfigure - -5b.To configure and run on a multi-server system and/or to utilize a SAN storage - system, follow the instructions in the Calpont InfiniDB Installation Guide. - - /usr/local/Calpont/bin/postConfigure - -6. Ports utilized by the Calpont InfiniDB Software - - The Calpont MySQL daemon utilizes port 3306. To use a different port, update - the 2 locations in the following file: - - /usr/local/Calpont/mysql/my.cnf - - port = 3306 - port = 3306 - - You must reserve the following ports to run the Calpont InfiniDB Software: - - 8600 - 8622, 8700, and 8800 - -7. Setup some aliases: -. /usr/local/Calpont/bin/calpontAlias - -8. To manually start and stop the Calpont InfiniDB Software as the root user run: - - cc startSystem - - To stop the Calpont Software, run: - - cc stopSystem - -9. To start/stop the Calpont InfiniDB Software during system boot/shutdown use the - chkconfig command - - /sbin/chkconfig --add infinidb - /sbin/chkconfig infinidb on - -10. After the Calpont InfiniDB Software has been started, use the following command to - connect to the Calpont OAM Console and watch for the System to go to the - ACTIVE status. The follow will repeatedly run the OAM command getsysteminfo - every 5 seconds. - - calpontOAMconsole getsysteminfo -r - - Here is an example display from a Single Server Install: - - System and Module statuses - - Component Status Last Status Change - ------------ ---------------------- ------------------------ - System ACTIVE Mon Apr 6 18:07:14 2009 - - Module dm1 ACTIVE Mon Apr 6 18:07:12 2009 - - Calpont Process statuses - - Process Module Status Last Status Change Process ID - ------------------ ------ ------------ ------------------------ ---------- - ProcessMonitor dm1 ACTIVE Mon Apr 6 18:06:41 2009 12753 - ProcessManager dm1 ACTIVE Mon Apr 6 18:06:46 2009 12954 - SNMPTrapDaemon dm1 ACTIVE Mon Apr 6 18:06:41 2009 12963 - SNMPAgent dm1 ACTIVE Mon Apr 6 18:06:50 2009 13565 - ServerMonitor dm1 ACTIVE Mon Apr 6 18:06:55 2009 13635 - DBRMWorkerNode dm1 ACTIVE Mon Apr 6 18:06:51 2009 13640 - DBRMControllerNode dm1 ACTIVE Mon Apr 6 18:06:52 2009 13645 - ExeMgr dm1 ACTIVE Mon Apr 6 18:07:05 2009 14578 - PrimProc dm1 ACTIVE Mon Apr 6 18:07:03 2009 13842 - DDLProc dm1 ACTIVE Mon Apr 6 18:07:10 2009 14936 - DMLProc dm1 ACTIVE Mon Apr 6 18:07:13 2009 15114 - - Active Alarm Counts: Critical = 0, Major = 0, Minor = 0, Warning = 0, Info = 0 - - Once the System status is ACTIVE, enter the following to exit back to the - UNIX prompt: - - CNTR - - Or to get back Calpont OAM Console Prompt,enter the following: - - CNTR - -11. Use the following command to access the Calpont InfiniDB MySQL console: - - idbmysql - - Example output: - - Welcome to the Mysql monitor. Commands end with ; or \g. - Your Mysql connection id is 1 - Server version: 5.1.26-Calpont-log Source distribution - - Type 'help;' or '\h' for help. Type '\c' to clear the buffer. - - mysql> - -12. Run the following upgrade script to create calponsys schema and upgrade the syscolumn table: /usr/local/Calpont/bin/upgrade-infinidb.sh - -13. As an example to get you started, try this: - - create database calpont; - use calpont; - create table caltest (col1 int, col2 int) engine=infinidb; - show create table caltest; - insert into caltest values (1, 2); - insert into caltest values (3, 4); - commit; - select * from caltest; - -14. Consult the Admin Guide and Syntax Guide for additional information on how - to get started. - diff --git a/utils/batchloader/Makefile b/utils/batchloader/Makefile deleted file mode 100755 index e29c1b6e2..000000000 --- a/utils/batchloader/Makefile +++ /dev/null @@ -1,91 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3022 2012-03-22 12:58:08Z chao $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libbatchloader.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lcppunit -lexecplan -liboamcpp -ldl -TLIBS=-L. -lbatchloader $(CLIBS) -GLIBS=$(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp - -SRCS=batchloader.cpp -LINCLUDES=batchloader.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/utils/boost_idb/Makefile b/utils/boost_idb/Makefile deleted file mode 100755 index 8f9accef0..000000000 --- a/utils/boost_idb/Makefile +++ /dev/null @@ -1,93 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libboost_idb.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -LLIBS=-lpthread - -SRCS=\ -codecvt_error_category.cpp \ -cpp_regex_traits.cpp \ -cregex.cpp \ -c_regex_traits.cpp \ -error_code.cpp \ -fileiter.cpp \ -future.cpp \ -greg_month.cpp \ -icu.cpp \ -instances.cpp \ -once.cpp \ -operations.cpp \ -path.cpp \ -path_traits.cpp \ -portability.cpp \ -posix_api.cpp \ -regex.cpp \ -regex_debug.cpp \ -regex_raw_buffer.cpp \ -regex_traits_defaults.cpp \ -static_mutex.cpp \ -thread.cpp \ -tss_null.cpp \ -unique_path.cpp \ -usinstances.cpp \ -utf8_codecvt_facet.cpp \ -w32_regex_traits.cpp \ -wc_regex_traits.cpp \ -wide_posix_api.cpp \ -windows_file_codecvt.cpp \ -winstances.cpp - -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) $(LLIBS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) --recursive --force boost $(INSTALL_ROOT_INCLUDE) - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) \ - *~ *.o *.d* *-gcov* *.gcov - -docs: - -xdocs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/utils/cacheutils/Makefile b/utils/cacheutils/Makefile deleted file mode 100755 index cc471f738..000000000 --- a/utils/cacheutils/Makefile +++ /dev/null @@ -1,91 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3048 2012-04-04 15:33:45Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libcacheutils.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lcppunit -ldl -TLIBS=-L. -lcacheuitls $(CLIBS) -GLIBS=$(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp - -SRCS=cacheutils.cpp -LINCLUDES=cacheutils.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/utils/common/Makefile b/utils/common/Makefile deleted file mode 100755 index 7da0df3b7..000000000 --- a/utils/common/Makefile +++ /dev/null @@ -1,74 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3925 2013-06-20 14:08:39Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libcommon.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -SRCS= \ -cgroupconfigurator.cpp \ -fixedallocator.cpp \ -nullvaluemanip.cpp \ -poolallocator.cpp \ -MonitorProcMem.cpp - -LINCLUDES= \ -cgroupconfigurator.h \ -fixedallocator.h \ -hasher.h \ -nullvaluemanip.h \ -simpleallocator.h \ -poolallocator.h \ -stlpoolallocator.h \ -syncstream.h \ -atomicops.h \ -branchpred.h \ -MonitorProcMem.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) \ - *~ *.o *.d* *-gcov* *.gcov - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/utils/compress/Makefile b/utils/compress/Makefile deleted file mode 100755 index 70ca3a609..000000000 --- a/utils/compress/Makefile +++ /dev/null @@ -1,60 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3437 2012-12-04 20:43:29Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libcompress.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -DNDEBUG -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic -CFLAGS+=$(CXXFLAGS) - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -CXXSRCS=idbcompress.cpp snappy.cpp snappy-sinksource.cpp version1.cpp snappy-stubs-internal.cpp -CSRCS= - -LINCLUDES=idbcompress.h - -CXXOBJS=$(CXXSRCS:.cpp=.o) -COBJS=$(CSRCS:.c=.o) - -$(LIBRARY): $(CXXOBJS) $(COBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(CXXOBJS) $(COBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(COBJS) $(CXXOBJS) *~ *.o *.d* *-gcov* *.gcov - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(CXXSRCS:.cpp=.d) $(CSRCS:.c=.d) -endif diff --git a/utils/configcpp/Makefile b/utils/configcpp/Makefile deleted file mode 100755 index b70d7fdbc..000000000 --- a/utils/configcpp/Makefile +++ /dev/null @@ -1,96 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3465 2012-12-21 17:17:23Z dhill $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libconfigcpp.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lcppunit -ldl -TLIBS=-L. -lconfigcpp -lmessageqcpp -lloggingcpp -lidbboot -lboost_idb $(CLIBS) -GLIBS=$(TLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -lxml2 - -SRCS=configcpp.cpp writeonce.cpp xmlparser.cpp configstream.cpp -LINCLUDES=configcpp.h config.h xmlparser.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver*.o $(PROGRAM) $(LIBRARY) tdriver tdriver2 core *~ *.tag *-gcov.* *.gcov tdriver*-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -tdriver2: tdriver2.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver tdriver2 - $(MAKE) -C ../messageqcpp install - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver2 - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -tdriver2-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver2-gcov: tdriver2-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov tdriver2-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver-gcov - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver2-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: $(LIBRARY) tdriver tdriver2 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 valgrind --tool=memcheck --leak-check=yes ./tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 valgrind --tool=memcheck --leak-check=yes ./tdriver2 - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d tdriver2.d -endif diff --git a/utils/configcpp/md5/Makefile b/utils/configcpp/md5/Makefile deleted file mode 100644 index ad90d6996..000000000 --- a/utils/configcpp/md5/Makefile +++ /dev/null @@ -1,39 +0,0 @@ -include ../../../rules.mak -LIBRARY=libmd5.a - -SRCS= md5_dgst.c md5_one.c mem_clr.c - -CFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -OBJS=$(SRCS:.c=.o) - -$(LIBRARY): $(OBJS) - $(AR) scru $(LIBRARY) $(OBJS) - -bootstrap: - -install: bootstrap $(LIBRARY) - -clean: - rm -f $(OBJS) core *~ *-gcov.* *.gcov *.d config.tag *.d.* $(LIBRARY) - rm -rf html - -docs: - $(EXPORT_ROOT)/etc/Doxyfile - -coverage: - -test: - -leakcheck: - -%.d: %.c - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.c=.d) -endif - diff --git a/utils/dataconvert/Makefile b/utils/dataconvert/Makefile deleted file mode 100755 index 9b35c44be..000000000 --- a/utils/dataconvert/Makefile +++ /dev/null @@ -1,98 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libdataconvert.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic #-fno-strict-aliasing - -CLIBS=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) -lcppunit -lthreadpool -lwriteengine \ - -lcacheutils $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS = -L. -ldataconvert $(CLIBS) -GLIBS=$(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lexecplan - -SRCS=dataconvert.cpp -LINCLUDES=dataconvert.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -PGLIBS=$(GLIBS) - -%-prof.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-prof: CXXFLAGS+=-pg -tdriver-prof: tdriver-prof.o $(subst .o,-prof.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(PGLIBS) - -profile: tdriver-prof - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-prof - gprof ./tdriver-prof - -leakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver --leakcheck - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif - diff --git a/utils/ddlcleanup/Makefile b/utils/ddlcleanup/Makefile deleted file mode 100755 index cfcc3d888..000000000 --- a/utils/ddlcleanup/Makefile +++ /dev/null @@ -1,91 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3048 2012-04-04 15:33:45Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libddlcleanuputil.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lcppunit -ldl -TLIBS=-L. -lddlcleanuputil $(CLIBS) -GLIBS=$(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp - -SRCS=ddlcleanuputil.cpp -LINCLUDES=ddlcleanuputil.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/utils/funcexp/Makefile b/utils/funcexp/Makefile deleted file mode 100755 index fabc25344..000000000 --- a/utils/funcexp/Makefile +++ /dev/null @@ -1,215 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3954 2013-07-08 16:30:15Z bpaul $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libfuncexp.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS= -I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_COMMON_LIBS) -lcppunit -lthreadpool -lwriteengine \ - -lcacheutils $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -TLIBS = -L. -ldataconvert $(CLIBS) -GLIBS=$(CLIBS) - -XLLIBS=-L$(CALPONT_LIBRARY_PATH) -lexecplan -ldataconvert - -SRCS=\ - functor.cpp \ - funcexp.cpp \ - funcexpwrapper.cpp \ - func_abs.cpp \ - func_add_time.cpp \ - func_ascii.cpp \ - func_between.cpp \ - func_bitwise.cpp \ - func_case.cpp \ - func_cast.cpp \ - func_ceil.cpp \ - func_char.cpp \ - func_char_length.cpp \ - func_coalesce.cpp \ - func_concat.cpp \ - func_concat_ws.cpp \ - func_conv.cpp \ - func_crc32.cpp \ - func_date.cpp \ - func_date_add.cpp \ - func_date_format.cpp \ - func_day.cpp \ - func_dayname.cpp \ - func_dayofweek.cpp \ - func_dayofyear.cpp \ - func_div.cpp \ - func_elt.cpp \ - func_exp.cpp \ - func_extract.cpp \ - func_find_in_set.cpp \ - func_floor.cpp \ - func_from_days.cpp \ - func_from_unixtime.cpp \ - func_get_format.cpp \ - func_greatest.cpp \ - func_hex.cpp \ - func_hour.cpp \ - func_idbpartition.cpp \ - func_if.cpp \ - func_ifnull.cpp \ - func_in.cpp \ - func_inet_aton.cpp \ - func_inet_ntoa.cpp \ - func_insert.cpp \ - func_instr.cpp \ - func_isnull.cpp \ - func_last_day.cpp \ - func_lcase.cpp \ - func_least.cpp \ - func_left.cpp \ - func_length.cpp \ - func_lpad.cpp \ - func_ltrim.cpp \ - func_maketime.cpp \ - func_makedate.cpp \ - func_math.cpp \ - func_md5.cpp \ - func_microsecond.cpp \ - func_minute.cpp \ - func_mod.cpp \ - func_month.cpp \ - func_monthname.cpp \ - func_nullif.cpp \ - func_pow.cpp \ - func_period_add.cpp \ - func_period_diff.cpp \ - func_quarter.cpp \ - func_rand.cpp \ - func_regexp.cpp \ - func_repeat.cpp \ - func_replace.cpp \ - func_reverse.cpp \ - func_right.cpp \ - func_round.cpp \ - func_rpad.cpp \ - func_rtrim.cpp \ - func_second.cpp \ - func_sec_to_time.cpp \ - func_sha.cpp \ - func_sign.cpp \ - func_str_to_date.cpp \ - func_strcmp.cpp \ - func_substr.cpp \ - func_substring_index.cpp \ - func_sysdate.cpp \ - func_time.cpp \ - func_time_format.cpp \ - func_time_to_sec.cpp \ - func_timediff.cpp \ - func_timestampdiff.cpp \ - func_to_days.cpp \ - func_trim.cpp \ - func_truncate.cpp \ - func_ucase.cpp \ - func_unhex.cpp \ - func_unix_timestamp.cpp \ - func_week.cpp \ - func_weekday.cpp \ - func_year.cpp \ - func_yearweek.cpp - -LINCLUDES=\ - funcexp.h \ - funcexpwrapper.h \ - functor.h \ - functor_str.h \ - functor_export.h \ - utils_utf8.h - - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) $(LLIBS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -PGLIBS=$(GLIBS) - -%-prof.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-prof: CXXFLAGS+=-pg -tdriver-prof: tdriver-prof.o $(subst .o,-prof.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(PGLIBS) - -profile: tdriver-prof - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-prof - gprof ./tdriver-prof - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver --leakcheck - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif - diff --git a/utils/idbdatafile/Makefile b/utils/idbdatafile/Makefile deleted file mode 100755 index 9ecb73ab2..000000000 --- a/utils/idbdatafile/Makefile +++ /dev/null @@ -1,96 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3048 2012-04-04 15:33:45Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libidbdatafile.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -HAD_INCLUDES= -HAD_LDPATH= - -CPPFLAGS=-I$(EXPORT_ROOT)/include $(HAD_INCLUDES) -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fPIC -CFLAGS+=$(CXXFLAGS) - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) - -LLIBS=$(CXXFLAGS) -L$(CALPONT_LIBRARY_PATH) -lloggingcpp -#TLIBS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_WRITE_LIBS) $(IDB_SNMP_LIBS) -lloggingcpp -lboost_idb -TLIBS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -lidbdatafile -lpthread -lbrm -lrwlock -lmessageqcpp -ldl -GLIBS=-L$(EXPORT_ROOT)/lib - -CXXSRCS= \ - IDBDataFile.cpp \ - UnbufferedFile.cpp \ - BufferedFile.cpp \ - IDBFileSystem.cpp \ - PosixFileSystem.cpp \ - IDBPolicy.cpp \ - IDBLogger.cpp \ - IDBFactory.cpp - -CSRCS= - -LINCLUDES= \ - IDBDataFile.h \ - IDBFileSystem.h \ - IDBPolicy.h \ - IDBLogger.h \ - IDBFactory.h \ - utility.h \ - FileFactoryBase.h \ - BufferedFile.h \ - largefile64.h - -CXXOBJS=$(CXXSRCS:.cpp=.o) -COBJS=$(CSRCS:.c=.o) - -$(LIBRARY): $(CXXOBJS) $(COBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(CXXOBJS) $(COBJS) $(HAD_LDPATH) $(LLIBS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(COBJS) $(CXXOBJS) *~ *.o *.d* *-gcov* *.gcov - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -tdriver1: tdriver1.o - $(LINK.cpp) -o $@ $^ $(TLIBS) -Wl,-rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -test: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(CXXSRCS:.cpp=.d) $(CSRCS:.c=.d) -endif diff --git a/utils/idbhdfs/Makefile b/utils/idbhdfs/Makefile deleted file mode 100755 index a67e7a616..000000000 --- a/utils/idbhdfs/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright (C) 2014 InfiniDB, 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; version 2 of -# the License. -# -# 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. -# -# InfiniDB FOSS License Exception -# We want free and open source software applications under certain -# licenses to be able to use the GPL-licensed InfiniDB idbhdfs -# libraries despite the fact that not all such FOSS licenses are -# compatible with version 2 of the GNU General Public License. -# Therefore there are special exceptions to the terms and conditions -# of the GPLv2 as applied to idbhdfs libraries, which are -# identified and described in more detail in the FOSS License -# Exception in the file utils/idbhdfs/FOSS-EXCEPTION.txt -# - -TARGETS = bootstrap clean test docs coverage leakcheck install - -.PHONY: $(TARGETS) - -PROGS = hdfs-20 hdfs-12 - -all $(TARGETS): - if [ $@ != all ]; \ - then target=$@; \ - fi; \ - for prog in $(PROGS); \ - do $(MAKE) -C $$prog $$target || exit $$?; \ - done - diff --git a/utils/idbhdfs/hdfs-12/Makefile b/utils/idbhdfs/hdfs-12/Makefile deleted file mode 100755 index 3236c543e..000000000 --- a/utils/idbhdfs/hdfs-12/Makefile +++ /dev/null @@ -1,97 +0,0 @@ -# Copyright (C) 2014 InfiniDB, 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; version 2 of -# the License. -# -# 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. -# -# InfiniDB FOSS License Exception -# We want free and open source software applications under certain -# licenses to be able to use the GPL-licensed InfiniDB idbhdfs -# libraries despite the fact that not all such FOSS licenses are -# compatible with version 2 of the GNU General Public License. -# Therefore there are special exceptions to the terms and conditions -# of the GPLv2 as applied to idbhdfs libraries, which are -# identified and described in more detail in the FOSS License -# Exception in the file utils/idbhdfs/FOSS-EXCEPTION.txt -# - -include ../../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PLUGIN_SRC=../hdfs-shared -LIBRARY=hdfs-12.so -SCRIPTS=setenv-hdfs-12 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -I. -NEW_DEBUG_FLAGS=$(shell echo "$(DEBUG_FLAGS)" | sed s/-flto//g) -CXXFLAGS+=$(NEW_DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -SRCS=\ - HdfsFile.cpp \ - HdfsFileSystem.cpp \ - HdfsFsCache.cpp \ - HdfsRdwrFileBuffer.cpp \ - HdfsRdwrMemBuffer.cpp \ - HdfsPlugin.cpp - -%.o : $(PLUGIN_SRC)/%.cpp - @mkdir -p $(dir $@) - @echo "=============" - @echo "Compiling $<" - @echo $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ - @$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ - -LINCLUDES=\ - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) -L. -lhdfs - -install: bootstrap $(PROGRAM) $(SCRIPTS) - umask 002; \ - mkdir -p $(INSTALL_ROOT_BIN); \ - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - rm -f $(SCRIPTS); \ - popd >/dev/null; \ - $(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_BIN) - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - chmod -f 555 $(SCRIPTS); \ - - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB); \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) \ - *~ *.o *.d* *-gcov* *.gcov \ - html config.tag - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: $(PLUGIN_SRC)/%.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d btdriver.d tdriver*.d -endif diff --git a/utils/idbhdfs/hdfs-20/Makefile b/utils/idbhdfs/hdfs-20/Makefile deleted file mode 100755 index 02daaceef..000000000 --- a/utils/idbhdfs/hdfs-20/Makefile +++ /dev/null @@ -1,97 +0,0 @@ -# Copyright (C) 2014 InfiniDB, 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; version 2 of -# the License. -# -# 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. -# -# InfiniDB FOSS License Exception -# We want free and open source software applications under certain -# licenses to be able to use the GPL-licensed InfiniDB idbhdfs -# libraries despite the fact that not all such FOSS licenses are -# compatible with version 2 of the GNU General Public License. -# Therefore there are special exceptions to the terms and conditions -# of the GPLv2 as applied to idbhdfs libraries, which are -# identified and described in more detail in the FOSS License -# Exception in the file utils/idbhdfs/FOSS-EXCEPTION.txt -# - -include ../../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PLUGIN_SRC=../hdfs-shared -LIBRARY=hdfs-20.so -SCRIPTS=setenv-hdfs-20 - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -I. -NEW_DEBUG_FLAGS=$(shell echo "$(DEBUG_FLAGS)" | sed s/-flto//g) -CXXFLAGS+=$(NEW_DEBUG_FLAGS) -Wall -fpic -DCDH4 - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -SRCS=\ - HdfsFile.cpp \ - HdfsFileSystem.cpp \ - HdfsFsCache.cpp \ - HdfsRdwrFileBuffer.cpp \ - HdfsRdwrMemBuffer.cpp \ - HdfsPlugin.cpp - -%.o : $(PLUGIN_SRC)/%.cpp - @mkdir -p $(dir $@) - @echo "=============" - @echo "Compiling $<" - @echo $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ - @$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ - -LINCLUDES=\ - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) -L. -lhdfs - -install: bootstrap $(PROGRAM) $(SCRIPTS) - umask 002; \ - mkdir -p $(INSTALL_ROOT_BIN); \ - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - rm -f $(SCRIPTS); \ - popd >/dev/null; \ - $(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_BIN) - pushd $(INSTALL_ROOT_BIN) >/dev/null; \ - chmod -f 555 $(SCRIPTS); \ - - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB); \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) \ - *~ *.o *.d* *-gcov* *.gcov \ - html config.tag - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: $(PLUGIN_SRC)/%.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d btdriver.d tdriver*.d -endif diff --git a/utils/infinidb_hadoop/Makefile b/utils/infinidb_hadoop/Makefile deleted file mode 100644 index 84e3eeb7f..000000000 --- a/utils/infinidb_hadoop/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -install: - cp -p infinidb_hadoop_bulkload.sh $(INSTALL_ROOT_BIN) - diff --git a/utils/infinidb_hadoop/src/infinidb/hadoop/example/InfiniDBOutputDriver.java~ b/utils/infinidb_hadoop/src/infinidb/hadoop/example/InfiniDBOutputDriver.java~ deleted file mode 100755 index 475b9e57c..000000000 --- a/utils/infinidb_hadoop/src/infinidb/hadoop/example/InfiniDBOutputDriver.java~ +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2014 InfiniDB, Inc. - * - * InfiniDB, Inc. licenses this file - * to you under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package infinidb.hadoop.example; - -import java.io.DataInput; -import java.io.DataOutput; -import java.io.IOException; -import java.sql.*; -import java.util.Date; -import java.util.Formatter; -import java.io.IOException; - -import org.apache.hadoop.fs.Path; -import org.apache.hadoop.io.*; -import org.apache.hadoop.mapred.lib.db.*; -import org.apache.hadoop.mapreduce.Job; -import org.apache.hadoop.mapreduce.lib.input.*; -import org.apache.hadoop.mapreduce.lib.output.*; -import org.apache.hadoop.mapred.JobClient; -import org.apache.hadoop.mapred.JobConf; -import org.apache.hadoop.mapred.Mapper; -import org.apache.hadoop.mapred.Reducer; -import org.apache.hadoop.mapred.TextInputFormat; -import org.apache.hadoop.mapred.SequenceFileInputFormat; -import org.apache.hadoop.conf.*; -import org.apache.hadoop.util.*; -import org.apache.hadoop.*; - -import infinidb.hadoop.db.*; - -public class InfiniDBOutputDriver extends Configured implements Tool -{ - public int run (String[] args) throws Exception - { - Configuration conf = new Configuration(); - JobConf jobconf = new JobConf(conf, InfiniDoopDriver.class); - DBConfiguration.configureDB(jobconf, - "com.mysql.jdbc.Driver", - "jdbc:mysql://srvswint4/tpch1","root", ""); - String [] fields = { "n_nationkey", "n_name" }; - String [] outFields = {"id", "name"}; - jobconf.setInputFormat(IDBFileInputFormat.class); - jobconf.setOutputFormat(InfiniDBOutputFormat.class); - jobconf.setOutputKeyClass(NullWritable.class); - jobconf.setOutputValueClass(Text.class); - InfiniDBOutputFormat.setOutput(jobconf, "db", outFields); - InfiniDBConfiguration idbconf = new InfiniDBConfiguration(jobconf); - idbconf.setInputPath("input"); - idbconf.setOutputPath("output"); - idbconf.setInfiniDBHome("/usr/local/Calpont"); - - jobconf.setMapperClass(InfiniDoopMapper.class); - jobconf.setNumMapTasks(1); - jobconf.setNumReduceTasks(2); - JobClient client = new JobClient(); - client.setConf(jobconf); - try { - JobClient.runJob(jobconf); - } catch (Exception e) { - e.printStackTrace(); - } - - return 0; -} - -public static void main(String [] args) throws Exception -{ - int ret = ToolRunner.run(new InfiniDBOutputDriver(), args); - System.exit(ret); -} - -} diff --git a/utils/jemalloc/Makefile b/utils/jemalloc/Makefile deleted file mode 100755 index 186c6061a..000000000 --- a/utils/jemalloc/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3048 2012-04-04 15:33:45Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -LIBRARY=libjemalloc.so -VERSION=3.3.0 -FULL_NAME=$(LIBRARY).$(VERSION) - -all: - -install: - $(INSTALL) $(FULL_NAME) $(INSTALL_ROOT_LIB) - cd $(INSTALL_ROOT_LIB) && \ - ln -sf $(FULL_NAME) $(LIBRARY) - -bootstrap: - -docs: - -clean: - - diff --git a/utils/joiner/Makefile b/utils/joiner/Makefile deleted file mode 100755 index dbfae008d..000000000 --- a/utils/joiner/Makefile +++ /dev/null @@ -1,68 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1058 2006-08-08 15:38:16Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libjoiner.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -# CPPFLAGS=-I$(EXPORT_ROOT)/include -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lrowgroup - -SRCS=\ -joiner.cpp \ -joinpartition.cpp \ -tuplejoiner.cpp - -LINCLUDES=\ -joiner.h \ -joinpartition.h \ -tuplejoiner.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) \ - *~ *.o *.d* *-gcov* *.gcov \ - html config.tag - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d btdriver.d tdriver*.d -endif diff --git a/utils/libxml/Makefile b/utils/libxml/Makefile deleted file mode 100644 index 6e7eb6743..000000000 --- a/utils/libxml/Makefile +++ /dev/null @@ -1,156 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libxml2.so -VERSION=2.7.3 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I./libxml -DHAVE_CONFIG_H -DPIC -D_REENTRANT -CFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lcppunit -ldl -TLIBS=-L. -llibxml2 $(CLIBS) -GLIBS=$(TLIBS) - -SRCS=parser.c \ - xmlIO.c \ - parserInternals.c \ - globals.c \ - SAX2.c \ - SAX.c \ - tree.c \ - valid.c \ - xmlregexp.c \ - dict.c \ - nanohttp.c \ - xmlunicode.c \ - encoding.c \ - HTMLparser.c \ - entities.c \ - hash.c \ - xmlstring.c \ - nanoftp.c \ - catalog.c \ - chvalid.c \ - list.c \ - threads.c \ - uri.c \ - xpath.c \ - pattern.c \ - debugXML.c \ - relaxng.c \ - xmlschemastypes.c \ - xmlschemas.c \ - xpointer.c \ - xmlmemory.c \ - error.c \ - xmlreader.c \ - HTMLtree.c \ - xmlsave.c \ - xinclude.c - -LINCLUDES=libxml/xmlmemory.h \ - libxml/parser.h \ - libxml/xmlversion.h \ - libxml/threads.h \ - libxml/globals.h \ - libxml/tree.h \ - libxml/dict.h \ - libxml/hash.h \ - libxml/valid.h \ - libxml/entities.h \ - libxml/xmlerror.h \ - libxml/xmlstring.h \ - libxml/encoding.h \ - libxml/xmlIO.h \ - libxml/xmlexports.h \ - libxml/xmlregexp.h \ - libxml/list.h \ - libxml/xmlautomata.h \ - libxml/SAX.h \ - libxml/SAX2.h \ - libxml/xlink.h - -OBJS=$(SRCS:.c=.o) - -$(LIBRARY): $(OBJS) - $(LINK.c) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - umask 002; \ - mkdir -p $(INSTALL_ROOT_INCLUDE)/libxml; \ - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE)/libxml - -clean: - rm -f $(OBJS) tdriver*.o $(PROGRAM) $(LIBRARY) tdriver tdriver2 core *~ *.tag *-gcov.* *.gcov tdriver*-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.c) -o $@ $^ $(TLIBS) - -tdriver2: tdriver2.o - $(LINK.c) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.c - $(COMPILE.c) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.c) -o $@ $^ $(GLIBS) - -tdriver2-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver2-gcov: tdriver2-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.c) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov tdriver2-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver2-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .c`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver tdriver2 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver2 - -%.d: %.c - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.c=.d) -endif diff --git a/utils/loggingcpp/Makefile b/utils/loggingcpp/Makefile deleted file mode 100755 index f425cf351..000000000 --- a/utils/loggingcpp/Makefile +++ /dev/null @@ -1,108 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3464 2012-12-20 20:03:38Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak - -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libloggingcpp.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=$(CXXFLAGS) -L$(EXPORT_ROOT)/lib -lconfigcpp -lxml2 -lcppunit -ldl -TLIBS=-L. -lloggingcpp $(CLIBS) -lmessageqcpp -lboost_idb -GLIBS=$(CLIBS) -lmessageqcpp - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lconfigcpp - -SRCS=message.cpp messagelog.cpp logger.cpp errorcodes.cpp sqllogger.cpp stopwatch.cpp idberrorinfo.cpp -LINCLUDES=loggingid.h messageobj.h messagelog.h messageids.h logger.h errorcodes.h exceptclasses.h sqllogger.h stopwatch.h \ -errorids.h idberrorinfo.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: messageids.h errorids.h - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - $(INSTALL) MessageFile.txt ErrorMessage.txt $(INSTALL_ROOT_ETC) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:$(LD_LIBRARY_PATH):/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp messageids.h errorids.h - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -messageids.h: MessageFile.txt genMsgId.pl - ./genMsgId.pl > messageids-temp.h - diff -abBq messageids-temp.h messageids.h >/dev/null 2>&1; \ - if [ $$? -ne 0 ]; then \ - mv -f messageids-temp.h messageids.h; \ - else \ - touch messageids.h; \ - fi; \ - rm -f messageids-temp.h - -errorids.h: ErrorMessage.txt genErrId.pl - ./genErrId.pl > errorids-temp.h - diff -abBq errorids-temp.h errorids.h >/dev/null 2>&1; \ - if [ $$? -ne 0 ]; then \ - mv -f errorids-temp.h errorids.h; \ - else \ - touch errorids.h; \ - fi; \ - rm -f errorids-temp.h - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/utils/messageqcpp/Makefile b/utils/messageqcpp/Makefile deleted file mode 100755 index 1b319a2a4..000000000 --- a/utils/messageqcpp/Makefile +++ /dev/null @@ -1,105 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libmessageqcpp.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -DPIC -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lconfigcpp -lmessageqcpp -lloggingcpp -lidbboot -lxml2 -lboost_idb -TLIBS=-L. $(IDB_COMMON_LIBS) -lcppunit $(CLIBS) -GLIBS=$(TLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lloggingcpp - -SRCS= messagequeue.cpp bytestream.cpp socketparms.cpp inetstreamsocket.cpp iosocket.cpp \ -compressed_iss.cpp -LINCLUDES= messagequeue.h bytestream.h socketparms.h inetstreamsocket.h iosocket.h \ -serversocket.h socket.h serializeable.h socketclosed.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html cli cli.o srv srv.o - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -PGLIBS=$(GLIBS) - -%-prof.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-prof: CXXFLAGS+=-pg -tdriver-prof: tdriver-prof.o $(subst .o,-prof.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(PGLIBS) - -profile: tdriver-prof - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-prof - gprof ./tdriver-prof - -leakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=full --show-reachable=yes ./tdriver --leakcheck - -srv: srv.o - $(LINK.cpp) -o $@ $^ $(CLIBS) - -cli: cli.o - $(LINK.cpp) -o $@ $^ $(CLIBS) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif - diff --git a/utils/multicast/Makefile b/utils/multicast/Makefile deleted file mode 100644 index 41dba5186..000000000 --- a/utils/multicast/Makefile +++ /dev/null @@ -1,77 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck -# The name of the executable - -PROGRAM=libmulticast.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -SRCS=multicast.cpp - -LINCLUDES=multicast.h - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fPIC - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -lconfigcpp -lloggingcpp -lxml2 - -.PHONY: install clean test docs coverage leakcheck - -CLIBS=-L$(EXPORT_ROOT)/lib -TLIBS=-L. $(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(MAKE) -C ../messageqcpp install - $(MAKE) -C ../configcpp install - $(MAKE) -C ../threadpool install - $(MAKE) -C ../loggingcpp install - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - -xxx: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.d.* - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/utils/mysqlcl_idb/Makefile b/utils/mysqlcl_idb/Makefile deleted file mode 100755 index 3ab2dfb94..000000000 --- a/utils/mysqlcl_idb/Makefile +++ /dev/null @@ -1,107 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2013 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -MYSQL_DIR=../../mariadb-columnstore-server - -PROGRAM=libmysqlcl_idb.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fPIC #-g -O0 - -CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lcppunit -ldl -TLIBS=-L. -lmysqlcl_idb $(CLIBS) -GLIBS=$(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) - -SRCS= \ - column.cc \ - command.cc \ - conn.cc \ - conn_uds.cc \ - drizzle.cc \ - field.cc \ - handshake.cc \ - pack.cc \ - query.cc \ - result.cc \ - row.cc \ - sha1.cc \ - state.cc - -LINCLUDES= - -OBJS=$(SRCS:.cc=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) --recursive --force libdrizzle-2.0 $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cc - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cc=.d) tdriver.d -endif diff --git a/utils/net-snmp/Makefile b/utils/net-snmp/Makefile deleted file mode 100755 index 17734de74..000000000 --- a/utils/net-snmp/Makefile +++ /dev/null @@ -1,670 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# utils/net-snmp/Makefile. Generated from Makefile.in by configure. - -# 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. - - - -srcdir = . -top_srcdir = ../.. - -pkgdatadir = $(datadir)/infinidb -pkglibdir = $(libdir)/infinidb -pkgincludedir = $(includedir)/infinidb -top_builddir = ../.. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = /usr/bin/install -p -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 = x86_64-unknown-linux-gnu -host_triplet = x86_64-unknown-linux-gnu -subdir = utils/net-snmp -DIST_COMMON = $(netsnmp_HEADERS) $(netsnmpagnt_HEADERS) \ - $(netsnmplibr_HEADERS) $(netsnmpmach_HEADERS) \ - $(netsnmpsys_HEADERS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/compilerflags.m4 \ - $(top_srcdir)/m4/functions.m4 $(top_srcdir)/m4/install.m4 \ - $(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 = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(netsnmpdir)" \ - "$(DESTDIR)$(netsnmpagntdir)" "$(DESTDIR)$(netsnmplibrdir)" \ - "$(DESTDIR)$(netsnmpmachdir)" "$(DESTDIR)$(netsnmpsysdir)" -netsnmpHEADERS_INSTALL = $(INSTALL_HEADER) -netsnmpagntHEADERS_INSTALL = $(INSTALL_HEADER) -netsnmplibrHEADERS_INSTALL = $(INSTALL_HEADER) -netsnmpmachHEADERS_INSTALL = $(INSTALL_HEADER) -netsnmpsysHEADERS_INSTALL = $(INSTALL_HEADER) -HEADERS = $(netsnmp_HEADERS) $(netsnmpagnt_HEADERS) \ - $(netsnmplibr_HEADERS) $(netsnmpmach_HEADERS) \ - $(netsnmpsys_HEADERS) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = ${SHELL} /home/builder/infinidb-src/infinidb/missing --run aclocal-1.9 -ALLOCA = -AMDEP_FALSE = # -AMDEP_TRUE = -AMTAR = ${SHELL} /home/builder/infinidb-src/infinidb/missing --run tar -AR = ar -AUTOCONF = ${SHELL} /home/builder/infinidb-src/infinidb/missing --run autoconf -AUTOHEADER = ${SHELL} /home/builder/infinidb-src/infinidb/missing --run autoheader -AUTOMAKE = ${SHELL} /home/builder/infinidb-src/infinidb/missing --run automake-1.9 -AWK = gawk -CC = gcc -CCDEPMODE = depmode=gcc3 -CFLAGS = -CPP = gcc -E -CPPFLAGS = -CXX = g++ -CXXCPP = g++ -E -CXXDEPMODE = depmode=gcc3 -CXXFLAGS = -CYGPATH_W = echo -DEFS = -DHAVE_CONFIG_H -DEPDIR = .deps -ECHO = echo -ECHO_C = -ECHO_N = -n -ECHO_T = -EGREP = grep -E -EXEEXT = -F77 = f95 -FFLAGS = -g -O2 -INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_PROGRAM = ${INSTALL} -INSTALL_SCRIPT = ${INSTALL} -INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s -LDFLAGS = -LEX = flex -LEXLIB = -lfl -LEX_OUTPUT_ROOT = lex.yy -LIBOBJS = error$U.o mktime$U.o strtod$U.o -LIBS = -LIBTOOL = $(SHELL) $(top_builddir)/libtool -LN_S = ln -s -LTLIBOBJS = error$U.lo mktime$U.lo strtod$U.lo -MAKEINFO = ${SHELL} /home/builder/infinidb-src/infinidb/missing --run makeinfo -OBJEXT = o -PACKAGE = infinidb -PACKAGE_BUGREPORT = support@infinidb.co -PACKAGE_NAME = infinidb -PACKAGE_STRING = infinidb 4.5.2 -PACKAGE_TARNAME = infinidb -PACKAGE_VERSION = 4.5.2 -PATH_SEPARATOR = : -POW_LIB = -RANLIB = ranlib -SED = /bin/sed -SET_MAKE = -SHELL = /bin/sh -STRIP = strip -VERSION = 4.5.2 -XML2_CONFIG = /usr/bin/xml2-config -XML_CPPFLAGS = -I/usr/include/libxml2 -XML_LIBS = -lxml2 -lz -lm -YACC = bison -y -ac_ct_AR = ar -ac_ct_CC = gcc -ac_ct_CXX = g++ -ac_ct_F77 = f95 -ac_ct_RANLIB = ranlib -ac_ct_STRIP = strip -am__fastdepCC_FALSE = # -am__fastdepCC_TRUE = -am__fastdepCXX_FALSE = # -am__fastdepCXX_TRUE = -am__include = include -am__leading_dot = . -am__quote = -am__tar = ${AMTAR} chof - "$$tardir" -am__untar = ${AMTAR} xf - -bindir = ${idbinstall}/bin -build = x86_64-unknown-linux-gnu -build_alias = -build_cpu = x86_64 -build_os = linux-gnu -build_vendor = unknown -datadir = ${prefix}/share -etcdir = ${idbinstall}/etc -exec_prefix = ${prefix} -host = x86_64-unknown-linux-gnu -host_alias = -host_cpu = x86_64 -host_os = linux-gnu -host_vendor = unknown -idb_brm_libs = -lbrm -lidbdatafile -lcacheutils -lrwlock ${idb_oam_libs} ${idb_common_libs} -idb_cflags = -g0 -O3 -fno-strict-aliasing -Wall -idb_common_includes = -I${idbinstall}/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include/libxml2 -idb_common_ldflags = -L${idbinstall}/lib -L/usr/local/lib -idb_common_libs = -lmessageqcpp -lloggingcpp -lconfigcpp -lidbboot -lboost_idb -lxml2 -lpthread -lrt -idb_cppflags = -idb_cxxflags = -g0 -O3 -fno-strict-aliasing -Wall -idb_exec_libs = -ljoblist -lexecplan -lwindowfunction -ljoiner -lrowgroup -lfuncexp -ludfsdk -ldataconvert -lcommon -lcompress -lmysqlcl_idb -lquerystats -lquerytele -lthrift -lthreadpool ${idb_brm_libs} -idb_ldflags = -Wl,--rpath -Wl,${idbinstall}/lib -Wl,--no-as-needed -Wl,--add-needed -idb_oam_libs = -loamcpp -lsnmpmanager ${netsnmp_libs} -idb_write_libs = -lddlpackageproc -lddlpackage -ldmlpackageproc -ldmlpackage -lwriteengine -lwriteengineclient -lidbdatafile -lcacheutils ${idb_exec_libs} -idbinstall = ${prefix} -includedir = ${idbinstall}/include -infodir = ${prefix}/info -install_sh = /home/builder/infinidb-src/infinidb/install-sh -libdir = ${idbinstall}/lib -libexecdir = ${exec_prefix}/libexec -localdir = ${idbinstall}/local -localstatedir = ${prefix}/var -mandir = ${idbinstall}/man -march_flags = -mibdir = ${idbinstall}/share/snmp/mibs -mkdir_p = mkdir -p -- -mysqldir = ${idbinstall}/mysql -netsnmp_libs = -lnetsnmpmibs -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers -netsnmpagntdir = ${idbinstall}/include/net-snmp/agent -netsnmpdir = ${idbinstall}/include/net-snmp -netsnmplibrdir = ${idbinstall}/include/net-snmp/library -netsnmpmachdir = ${idbinstall}/include/net-snmp/machine -netsnmpsysdir = ${idbinstall}/include/net-snmp/system -oldincludedir = /usr/include -postdir = ${idbinstall}/post -prefix = /home/builder/infinidb -program_transform_name = s,x,x, -sbindir = ${idbinstall}/sbin -sharedir = ${idbinstall}/share -sharedstatedir = ${prefix}/com -sysconfdir = ${idbinstall}/etc -target_alias = -toolsdir = ${idbinstall}/tools -netsnmp_HEADERS = \ -config_api.h \ -definitions.h \ -mib_api.h \ -net-snmp-config.h \ -net-snmp-includes.h \ -output_api.h \ -pdu_api.h \ -session_api.h \ -snmpv3_api.h \ -types.h \ -utilities.h \ -varbind_api.h \ -version.h - -netsnmpsys_HEADERS = \ -system/aix.h \ -system/bsd.h \ -system/bsdi.h \ -system/bsdi3.h \ -system/bsdi4.h \ -system/cygwin.h \ -system/darwin.h \ -system/darwin7.h \ -system/dynix.h \ -system/freebsd.h \ -system/freebsd2.h \ -system/freebsd3.h \ -system/freebsd4.h \ -system/freebsd5.h \ -system/freebsd6.h \ -system/generic.h \ -system/hpux.h \ -system/irix.h \ -system/linux.h \ -system/mingw32.h \ -system/mips.h \ -system/netbsd.h \ -system/openbsd.h \ -system/osf5.h \ -system/solaris.h \ -system/solaris2.6.h \ -system/solaris2.7.h \ -system/solaris2.8.h \ -system/solaris2.9.h \ -system/sunos.h \ -system/svr5.h \ -system/sysv.h \ -system/ultrix4.h - -netsnmpmach_HEADERS = \ -machine/generic.h - -netsnmplibr_HEADERS = \ -library/README \ -library/asn1.h \ -library/callback.h \ -library/check_varbind.h \ -library/cmu_compat.h \ -library/container.h \ -library/container_binary_array.h \ -library/container_iterator.h \ -library/container_list_ssll.h \ -library/container_null.h \ -library/data_list.h \ -library/default_store.h \ -library/factory.h \ -library/getopt.h \ -library/int64.h \ -library/keytools.h \ -library/lcd_time.h \ -library/md5.h \ -library/mib.h \ -library/mt_support.h \ -library/oid_stash.h \ -library/parse.h \ -library/read_config.h \ -library/scapi.h \ -library/snmp-tc.h \ -library/snmp.h \ -library/snmpCallbackDomain.h \ -library/snmpTCPDomain.h \ -library/snmpUDPDomain.h \ -library/snmpUnixDomain.h \ -library/snmp_alarm.h \ -library/snmp_api.h \ -library/snmp_assert.h \ -library/snmp_client.h \ -library/snmp_debug.h \ -library/snmp_enum.h \ -library/snmp_impl.h \ -library/snmp_locking.h \ -library/snmp_logging.h \ -library/snmp_parse_args.h \ -library/snmp_secmod.h \ -library/snmp_transport.h \ -library/snmpusm.h \ -library/snmpv3-security-includes.h \ -library/snmpv3.h \ -library/system.h \ -library/tools.h \ -library/transform_oids.h \ -library/ucd_compat.h \ -library/vacm.h \ -library/winpipe.h \ -library/winservice.h - -netsnmpagnt_HEADERS = \ -agent/agent_callbacks.h \ -agent/agent_handler.h \ -agent/agent_index.h \ -agent/agent_module_config.h \ -agent/agent_read_config.h \ -agent/agent_registry.h \ -agent/agent_trap.h \ -agent/all_helpers.h \ -agent/auto_nlist.h \ -agent/baby_steps.h \ -agent/bulk_to_next.h \ -agent/cache_handler.h \ -agent/debug_handler.h \ -agent/ds_agent.h \ -agent/instance.h \ -agent/mfd.h \ -agent/mib_module_config.h \ -agent/mib_module_includes.h \ -agent/mib_modules.h \ -agent/mode_end_call.h \ -agent/multiplexer.h \ -agent/net-snmp-agent-includes.h \ -agent/null.h \ -agent/old_api.h \ -agent/read_only.h \ -agent/row_merge.h \ -agent/scalar.h \ -agent/scalar_group.h \ -agent/serialize.h \ -agent/set_helper.h \ -agent/snmp_agent.h \ -agent/snmp_vars.h \ -agent/table.h \ -agent/table_array.h \ -agent/table_container.h \ -agent/table_data.h \ -agent/table_dataset.h \ -agent/table_iterator.h \ -agent/var_struct.h \ -agent/watcher.h - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu utils/net-snmp/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu utils/net-snmp/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -install-netsnmpHEADERS: $(netsnmp_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(netsnmpdir)" || $(mkdir_p) "$(DESTDIR)$(netsnmpdir)" - @list='$(netsnmp_HEADERS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(netsnmpHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(netsnmpdir)/$$f'"; \ - $(netsnmpHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(netsnmpdir)/$$f"; \ - done - -uninstall-netsnmpHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(netsnmp_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(netsnmpdir)/$$f'"; \ - rm -f "$(DESTDIR)$(netsnmpdir)/$$f"; \ - done -install-netsnmpagntHEADERS: $(netsnmpagnt_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(netsnmpagntdir)" || $(mkdir_p) "$(DESTDIR)$(netsnmpagntdir)" - @list='$(netsnmpagnt_HEADERS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(netsnmpagntHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(netsnmpagntdir)/$$f'"; \ - $(netsnmpagntHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(netsnmpagntdir)/$$f"; \ - done - -uninstall-netsnmpagntHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(netsnmpagnt_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(netsnmpagntdir)/$$f'"; \ - rm -f "$(DESTDIR)$(netsnmpagntdir)/$$f"; \ - done -install-netsnmplibrHEADERS: $(netsnmplibr_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(netsnmplibrdir)" || $(mkdir_p) "$(DESTDIR)$(netsnmplibrdir)" - @list='$(netsnmplibr_HEADERS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(netsnmplibrHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(netsnmplibrdir)/$$f'"; \ - $(netsnmplibrHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(netsnmplibrdir)/$$f"; \ - done - -uninstall-netsnmplibrHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(netsnmplibr_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(netsnmplibrdir)/$$f'"; \ - rm -f "$(DESTDIR)$(netsnmplibrdir)/$$f"; \ - done -install-netsnmpmachHEADERS: $(netsnmpmach_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(netsnmpmachdir)" || $(mkdir_p) "$(DESTDIR)$(netsnmpmachdir)" - @list='$(netsnmpmach_HEADERS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(netsnmpmachHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(netsnmpmachdir)/$$f'"; \ - $(netsnmpmachHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(netsnmpmachdir)/$$f"; \ - done - -uninstall-netsnmpmachHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(netsnmpmach_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(netsnmpmachdir)/$$f'"; \ - rm -f "$(DESTDIR)$(netsnmpmachdir)/$$f"; \ - done -install-netsnmpsysHEADERS: $(netsnmpsys_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(netsnmpsysdir)" || $(mkdir_p) "$(DESTDIR)$(netsnmpsysdir)" - @list='$(netsnmpsys_HEADERS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(netsnmpsysHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(netsnmpsysdir)/$$f'"; \ - $(netsnmpsysHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(netsnmpsysdir)/$$f"; \ - done - -uninstall-netsnmpsysHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(netsnmpsys_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(netsnmpsysdir)/$$f'"; \ - rm -f "$(DESTDIR)$(netsnmpsysdir)/$$f"; \ - 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: $(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)/agent $(distdir)/library $(distdir)/machine $(distdir)/system - @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 $(HEADERS) -installdirs: - for dir in "$(DESTDIR)$(netsnmpdir)" "$(DESTDIR)$(netsnmpagntdir)" "$(DESTDIR)$(netsnmplibrdir)" "$(DESTDIR)$(netsnmpmachdir)" "$(DESTDIR)$(netsnmpsysdir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-netsnmpHEADERS install-netsnmpagntHEADERS \ - install-netsnmplibrHEADERS install-netsnmpmachHEADERS \ - install-netsnmpsysHEADERS - -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 uninstall-netsnmpHEADERS \ - uninstall-netsnmpagntHEADERS uninstall-netsnmplibrHEADERS \ - uninstall-netsnmpmachHEADERS uninstall-netsnmpsysHEADERS - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool ctags distclean 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-netsnmpHEADERS \ - install-netsnmpagntHEADERS install-netsnmplibrHEADERS \ - install-netsnmpmachHEADERS install-netsnmpsysHEADERS \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-info-am \ - uninstall-netsnmpHEADERS uninstall-netsnmpagntHEADERS \ - uninstall-netsnmplibrHEADERS uninstall-netsnmpmachHEADERS \ - uninstall-netsnmpsysHEADERS - - -test: - -coverage: - -leakcheck: - -docs: - -bootstrap: install-data-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: diff --git a/utils/prat/Makefile b/utils/prat/Makefile deleted file mode 100644 index 32e5cb59f..000000000 --- a/utils/prat/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# -# $Id: Makefile 1338 2009-04-08 19:46:14Z dhill $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -SCRIPTS=copy2here.sh getlogs.sh getps.sh getuserinput.sh prat ps README getmodules.sh getsar.sh prat.sh pscollect tarfiles.sh - -bootstrap: - umask 002; \ - mkdir -p $(INSTALL_ROOT_TOOLS); \ - pushd $(INSTALL_ROOT_TOOLS) >/dev/null; \ - rm -f $(SCRIPTS); \ - popd >/dev/null; \ - $(INSTALL) $(SCRIPTS) $(INSTALL_ROOT_TOOLS) - pushd $(INSTALL_ROOT_TOOLS) >/dev/null; \ - chmod -f 555 $(SCRIPTS); \ - popd >/dev/null - -clean: - rm -f $(OBJS) $(PROGRAM) core *~ *.tag *.d *.d.* - -install: bootstrap - -test: - -docs: - -coverage: - -leakcheck: - diff --git a/utils/protobuf/Makefile b/utils/protobuf/Makefile deleted file mode 100644 index dc0cfb736..000000000 --- a/utils/protobuf/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libprotobuf.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -DHAVE_PTHREAD -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -SRCS= \ - google/protobuf/stubs/atomicops_internals_x86_gcc.cpp \ - google/protobuf/stubs/common.cpp \ - google/protobuf/stubs/once.cpp \ - google/protobuf/stubs/stringprintf.cpp \ - google/protobuf/extension_set.cpp \ - google/protobuf/generated_message_util.cpp \ - google/protobuf/message_lite.cpp \ - google/protobuf/repeated_field.cpp \ - google/protobuf/wire_format_lite.cpp \ - google/protobuf/io/coded_stream.cpp \ - google/protobuf/io/zero_copy_stream.cpp \ - google/protobuf/io/zero_copy_stream_impl_lite.cpp \ - google/protobuf/stubs/strutil.cpp \ - google/protobuf/stubs/substitute.cpp \ - google/protobuf/stubs/structurally_valid.cpp \ - google/protobuf/descriptor.cpp \ - google/protobuf/descriptor.pb.cpp \ - google/protobuf/descriptor_database.cpp \ - google/protobuf/dynamic_message.cpp \ - google/protobuf/extension_set_heavy.cpp \ - google/protobuf/generated_message_reflection.cpp \ - google/protobuf/message.cpp \ - google/protobuf/reflection_ops.cpp \ - google/protobuf/service.cpp \ - google/protobuf/text_format.cpp \ - google/protobuf/unknown_field_set.cpp \ - google/protobuf/wire_format.cpp \ - google/protobuf/io/gzip_stream.cpp \ - google/protobuf/io/printer.cpp \ - google/protobuf/io/tokenizer.cpp \ - google/protobuf/io/zero_copy_stream_impl.cpp \ - google/protobuf/compiler/importer.cpp \ - google/protobuf/compiler/parser.cpp - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - mkdir -p ../../export/include; \ - find google -name '*.h' | cpio -pudm ../../export/include - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) *~ *.o *.d* *-gcov* *.gcov - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/utils/querystats/Makefile b/utils/querystats/Makefile deleted file mode 100755 index ffc789793..000000000 --- a/utils/querystats/Makefile +++ /dev/null @@ -1,92 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3189 2012-07-19 01:01:53Z zzhu $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libquerystats.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -MYSQL_DIR=../../mariadb-columnstore-server -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -I$(MYSQL_DIR)/include -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lcppunit -ldl -TLIBS=-L. -lquerystats $(CLIBS) -GLIBS=$(CLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -ljoblist -llogging - -SRCS=querystats.cpp -LINCLUDES=querystats.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/utils/querytele/Makefile b/utils/querytele/Makefile deleted file mode 100755 index 697fd161b..000000000 --- a/utils/querytele/Makefile +++ /dev/null @@ -1,100 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck thrift - -PROGRAM=libquerytele.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lxml2 -lrt -TLIBS=-L. -lquerytele -lthrift -lboost_idb $(CLIBS) -GLIBS=$(TLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lxml2 - -SRCS=querytele.cpp \ - queryteleclient.cpp \ - querytele_constants.cpp \ - querytele_types.cpp \ - QueryTeleService.cpp \ - queryteleprotoimpl.cpp -LINCLUDES=querytele.h \ - queryteleclient.h \ - queryteleserverparms.h \ - querystepparms.h \ - telestats.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -thrift: - thrift -out . --gen cpp querytele.thrift - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver*.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver*-gcov *.d *.d.* - rm -rf html serverdriver.o serverdriver - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -serverdriver: serverdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov tdriver2-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: $(LIBRARY) tdriver tdriver2 - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib:/usr/local/gcc45/lib64 valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d serverdriver.d -endif diff --git a/utils/rowgroup/Makefile b/utils/rowgroup/Makefile deleted file mode 100755 index 848cae0f2..000000000 --- a/utils/rowgroup/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 4044 2013-08-07 19:45:19Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=librowgroup.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -# CPPFLAGS=-I$(EXPORT_ROOT)/include -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -lfuncexp - -SRCS=\ -rowaggregation.cpp \ -rowgroup.cpp - -LINCLUDES=\ -rowaggregation.h \ -rowgroup.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) \ - *~ *.o *.d* *-gcov* *.gcov \ - html config.tag - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d btdriver.d tdriver*.d -endif diff --git a/utils/rwlock/Makefile b/utils/rwlock/Makefile deleted file mode 100755 index 8b1a93f05..000000000 --- a/utils/rwlock/Makefile +++ /dev/null @@ -1,141 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1058 2006-08-08 15:38:16Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=librwlock.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -# CPPFLAGS=-I$(EXPORT_ROOT)/include -CPPFLAGS=-I$(EXPORT_ROOT)/include -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -lrwlock -L$(EXPORT_ROOT)/lib -lcppunit -ldl -lpthread -lrt $(IDB_COMMON_LIBS) -GLIBS=-L$(EXPORT_ROOT)/lib -lcppunit -ldl -lpthread -lrt - -LLIBS=-L$(CALPONT_LIBRARY_PATH) - -SRCS=\ -rwlock.cpp \ -rwlock_local.cpp - -LINCLUDES=\ -rwlock.h \ -rwlock_local.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) $(LLIBS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) tdriver tdriver-rw \ - *~ *.o *.d* *-gcov* *.gcov html config.tag - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: $(LIBRARY) tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -tdriver-rw: $(LIBRARY) tdriver-rw.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: tdriver - rm -f /dev/shm/InfiniDB* - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - rm -f /dev/shm/InfiniDB* - -test-rw: tdriver-rw - rm -f /dev/shm/InfiniDB* - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-rw - rm -f /dev/shm/InfiniDB* - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -tdriver-rw-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-rw-gcov: tdriver-rw-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - rm -f /dev/shm/InfiniDB* - rm -f tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(MAKE) zcoverage - rm -f /dev/shm/InfiniDB* - -coverage-rw: - rm -f /dev/shm/InfiniDB* - rm -f tdriver-rw-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(MAKE) zcoverage-rw - rm -f /dev/shm/InfiniDB* - -zcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -zcoverage-rw: tdriver-rw-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-rw-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: $(LIBRARY) tdriver - rm -f /dev/shm/InfiniDB* - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - rm -f /dev/shm/InfiniDB* - -leakcheck-rw: $(LIBRARY) tdriver-rw - rm -f /dev/shm/InfiniDB* - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-rw - rm -f /dev/shm/InfiniDB* - -tdriver%.o: tdriver%.cpp - -tdriver%.o: tdriver%.cpp - -tdriver%: tdriver%.o - $(LINK.cpp) -o $@ $^ $(TLIBS) -liberty - -alltests: test test-rw - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d btdriver.d -endif diff --git a/utils/scenarios/common/sql/load_TestStats.sql~ b/utils/scenarios/common/sql/load_TestStats.sql~ deleted file mode 100644 index 141e44686..000000000 --- a/utils/scenarios/common/sql/load_TestStats.sql~ +++ /dev/null @@ -1,13 +0,0 @@ -/***************************************************************************** -* Script Name: load_TestQuery.sql -* Date Created: 2008.08.25 -* Author: Joseph Williams -* Purpose: Script to load the performance test result from a CSV file. -******************************************************************************/ -LOAD DATA INFILE '/usr/local/Calpont/data/bulk/data/import/TestStats.tbl' -INTO TABLE TestStats -FIELDS -TERMINATED BY '|' -ENCLOSED BY '"' -LINES TERMINATED BY '\n' -(IterNum,SessNum,SQLSeqNum,SQLIdxNum,MaxMemPct,NumTempFiles,TempFieSpace,PhyIO,CacheIO,BlocksTouched,CasPartBlks,MsgBytesIn,MsgBytesOut,QuerySetupTime); diff --git a/utils/scenarios/common/sql/load_TestSummary.sql~ b/utils/scenarios/common/sql/load_TestSummary.sql~ deleted file mode 100644 index 642523171..000000000 --- a/utils/scenarios/common/sql/load_TestSummary.sql~ +++ /dev/null @@ -1,14 +0,0 @@ -/***************************************************************************** -* Script Name: load_TestSumamry.sql -* Date Created: 2008.08.25 -* Author: Joseph Williams -* Purpose: Script to load the performance test result from a CSV file. -******************************************************************************/ -LOAD DATA INFILE '/usr/local/Calpont/data/bulk/data/import/TestSummary.tbl' -INTO TABLE TestSummary -FIELDS -TERMINATED BY '|' -ENCLOSED BY '"' -LINES TERMINATED BY '\n' -(TestID,TestRunID,TestRunDesc,ExecServer,StackName,numDM,numUM,numPM,CalpontDB,ScriptFileName,NumIterations,NumSessions,DataVolume,IOType,NumStmts,NumStmtsProcessed,RunCompleted); - \ No newline at end of file diff --git a/utils/scenarios/common/sql/load_TestTime.sql~ b/utils/scenarios/common/sql/load_TestTime.sql~ deleted file mode 100644 index c1d4e20ba..000000000 --- a/utils/scenarios/common/sql/load_TestTime.sql~ +++ /dev/null @@ -1,13 +0,0 @@ -/***************************************************************************** -* Script Name: load_TestTime.sql -* Date Created: 2008.08.25 -* Author: Joseph Williams -* Purpose: Script to load the performance test result from a CSV file. -******************************************************************************/ -LOAD DATA INFILE '/usr/local/Calpont/data/bulk/data/import/TestTime.tbl' -INTO TABLE TestTime -FIELDS -TERMINATED BY '|' -ENCLOSED BY '"' -LINES TERMINATED BY '\n' -(IterNum,SessNum,SQLSeqNum,SQLIdxNum,StartTime,EndTime); diff --git a/utils/scenarios/perf/source/pf/fm/getsql.orig~ b/utils/scenarios/perf/source/pf/fm/getsql.orig~ deleted file mode 100755 index 33e1aed09..000000000 --- a/utils/scenarios/perf/source/pf/fm/getsql.orig~ +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# -#/******************************************************************************* -#* Script Name: getsql.sh -#* Date Created: 2009.02.17 -#* Author: Joseph Wiiliams -#* Purpose: extract lines from log file within time block -#* -#* Parameter: date - A day of month in question (dd) -#* starttime - A start time in (HH:mm) -#* endtime - An end time in (HH:mm) -#* -#******************************************************************************/ -# -#----------------------------------------------------------------------------- -# command line parameters -#----------------------------------------------------------------------------- -date=$1 -starttime=$2 -endtime=$3 -# -host=$(hostname -s) -# -# change date format to match sql log date format -newdate=`date +%y%m$1` -# -# clean up previous data files -if [ -d /tmp/$host/sql ] -then - rm -rf /tmp/$host/sql -fi -mkdir -p /tmp/$host/sql -# -# create the beginning and ending time search variables -startdate="$newdate $2" -enddate="$newdate $3" -cat $host.log | grep $startdate -# -# create the awk command and write it to a temporary run file -cmd="/$startdate/,/$enddate/ {print \$0} " -echo $cmd > /tmp/$host/sql/cmd.$$ -# -# execute the command -awk -f /tmp/$host/sql/cmd.$$ /usr/local/Calpont/mysql/db/$host.log > /tmp/$host/sql/temp.log -# -exit -# -# End of Script diff --git a/utils/startup/Makefile b/utils/startup/Makefile deleted file mode 100755 index fd6fac85e..000000000 --- a/utils/startup/Makefile +++ /dev/null @@ -1,78 +0,0 @@ -include ./../../rules.mak -#****************************************************************************************** -# -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -.PHONY: install clean test docs FORCE coverage leakcheck lport-install bootstrap - -# The name of the executable -LIBRARY=libidbboot.a - -# List all the source files here -SRCS=installdir.cpp - -LINCLUDES=installdir.h - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fPIC -DPIC - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -TLIBS=-lpthread - -GLIBS=-lpthread - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(AR) scru $(LIBRARY) $(OBJS) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -clean: - rm -f $(OBJS) core *~ *-gcov.* *.gcov *.d config.tag *.d.* $(LIBRARY) - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -coverage: - -test: - -leakcheck: - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/utils/testbc/Makefile b/utils/testbc/Makefile deleted file mode 100644 index 24d987885..000000000 --- a/utils/testbc/Makefile +++ /dev/null @@ -1,100 +0,0 @@ -include ./../../rules.mak -#****************************************************************************************** -# -# $Id: Makefile 609 2008-06-11 12:40:07Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -.PHONY: install clean test docs FORCE coverage leakcheck lport-install bootstrap - -# The name of the executable -PROGRAM=testbc testbc2 testbc3 -LIBRARY=libdbbc.a - -# List all the source files here -SRCS=\ - blockcacheclient.cpp \ - blockrequestprocessor.cpp \ - fileblockrequestqueue.cpp \ - filebuffer.cpp \ - filebuffermgr.cpp \ - filerequest.cpp \ - logger.cpp \ - iomanager.cpp \ - stats.cpp - -# Run-time directories for project shared libs -CALPONT_LIBRARY_PATH=$(EXPORT_ROOT)/lib - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L. -L$(CALPONT_LIBRARY_PATH) - -# install dir (set CALPONT_INSTALL_ROOT in env to override) -CALPONT_INSTALL_ROOT?=$(EXPORT_ROOT) - -# end (sub-)project-specifc settings - -TLIBS=-lpthread -lwriteengine -lbrm -lrwlock -lmessageqcpp \ --ldl -lconfigcpp -lxml2 -lboost_thread -lloggingcpp - -LD_LIBRARY_PATH=.:$(CALPONT_LIBRARY_PATH):/usr/local/lib - -OBJS=$(SRCS:.cpp=.o) - -all: $(PROGRAM) - - -testbc: testbc.cpp $(LIBRARY) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -testbc2: testbc2.cpp $(LIBRARY) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -testbc3: testbc3.cpp $(LIBRARY) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -$(LIBRARY): $(OBJS) - $(AR) scru $(LIBRARY) $(OBJS) - -bootstrap: - -install: bootstrap $(LIBRARY) - -clean: - rm -f $(PROGRAM) $(OBJS) core *~ *-gcov.* *.gcov *.d config.tag *.d.* $(LIBRARY) - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -coverage: - -zcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/utils/threadpool/Makefile b/utils/threadpool/Makefile deleted file mode 100755 index cd749bf28..000000000 --- a/utils/threadpool/Makefile +++ /dev/null @@ -1,106 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 3193 2012-07-23 18:47:31Z pleblanc $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libthreadpool.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -CLIBS=-L$(EXPORT_ROOT)/lib -lconfigcpp -lxml2 -lcppunit -lloggingcpp -ldl -XLIBS=-L. -lthreadpool -L$(EXPORT_ROOT)/lib -lconfigcpp -lxml2 -lloggingcpp -ldl -TLIBS=-L. -lthreadpool $(CLIBS) -lmessageqcpp -GLIBS=$(CLIBS) -lmessageqcpp - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lloggingcpp - -SRCS=weightedthreadpool.cpp threadpool.cpp prioritythreadpool.cpp -LINCLUDES=weightedthreadpool.h threadpool.h prioritythreadpool.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tp: tp.o - $(LINK.cpp) -o $@ $^ $(XLIBS) - -wtp: wtp.o - $(LINK.cpp) -o $@ $^ $(XLIBS) - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -PGLIBS=$(GLIBS) - -%-prof.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-prof: CXXFLAGS+=-pg -tdriver-prof: tdriver-prof.o $(subst .o,-prof.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(PGLIBS) - -profile: tdriver-prof - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-prof - gprof ./tdriver-prof - -leakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver --leakcheck - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif - diff --git a/utils/thrift/Makefile b/utils/thrift/Makefile deleted file mode 100755 index d6a930cc0..000000000 --- a/utils/thrift/Makefile +++ /dev/null @@ -1,62 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libthrift.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -DTHRIFT_SQUELCH_CONSOLE_OUTPUT -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -SRCS= \ - thrift/transport/TSocket.cpp \ - thrift/transport/TBufferTransports.cpp \ - thrift/TApplicationException.cpp \ - thrift/Thrift.cpp \ - thrift/transport/TServerSocket.cpp \ - thrift/server/TSimpleServer.cpp - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - mkdir -p ../../export/include; \ - find thrift -name '*.h' -o -name '*.tcc' | cpio -pudm ../../export/include - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) *~ *.o *.d* *-gcov* *.gcov - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/utils/udfsdk/Makefile b/utils/udfsdk/Makefile deleted file mode 100755 index 011154ac6..000000000 --- a/utils/udfsdk/Makefile +++ /dev/null @@ -1,79 +0,0 @@ -#****************************************************************************************** -# $Id$ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck -MYSQL_DIR=../../../mariadb-columnstore-server - -PROGRAM1=libudf_mysql.so -VERSION1=1.0.0 -LIBRARY1=$(PROGRAM1).$(VERSION1) - -PROGRAM2=libudfsdk.so -VERSION2=1.0.0 -LIBRARY2=$(PROGRAM2).$(VERSION2) - -MYSQL_INCLUDE_DIRS=-I$(MYSQL_DIR)/include -I$(MYSQL_DIR)/sql -I$(MYSQL_DIR)/regex -I$(MYSQL_DIR)/pcre - -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 $(MYSQL_INCLUDE_DIRS) --include $(HOME)/IdbMySQLConnector.mak -NEW_DEBUG_FLAGS=$(shell echo "$(DEBUG_FLAGS)" | sed s/-flto//g) -CXXFLAGS+=$(NEW_DEBUG_FLAGS) -Wall -fPIC - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib -lloggingcpp - -SRCS1=udfmysql.cpp -SRCS2=udfinfinidb.cpp - -LINCLUDES1=udfsdk.h -LINCLUDES2= - -OBJS1=$(SRCS1:.cpp=.o) -OBJS2=$(SRCS2:.cpp=.o) - -all: $(LIBRARY1) $(LIBRARY2) - -$(LIBRARY1): $(OBJS1) - $(LINK.cpp) -shared -o $(LIBRARY1) $(OBJS1) - rm -f $(PROGRAM1) - ln -s $(LIBRARY1) $(PROGRAM1) - -$(LIBRARY2): $(OBJS2) - $(MAKE) -C ../loggingcpp install - $(LINK.cpp) -shared -o $(LIBRARY2) $(OBJS2) $(GLIBS) - rm -f $(PROGRAM2) - ln -s $(LIBRARY2) $(PROGRAM2) - -install: bootstrap $(LIBRARY1) $(LIBRARY2) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE) $(INSTALL_ROOT_TOOLS); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY1) $(PROGRAM1); \ - ln -s $(LIBRARY1) $(PROGRAM1); \ - rm -f $(LIBRARY2) $(PROGRAM2); \ - ln -s $(LIBRARY2) $(PROGRAM2); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY1) $(LIBRARY2) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES1) $(LINCLUDES2) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -rf $(PROGRAM1) $(LIBRARY1) $(OBJS1) $(PROGRAM2) $(LIBRARY2) $(OBJS2) *~ *.o *.d* *-gcov* *.gcov - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS1:.cpp=.d) $(SRCS2:.cpp=.d) -endif diff --git a/utils/windowfunction/Makefile b/utils/windowfunction/Makefile deleted file mode 100755 index b4edf6a87..000000000 --- a/utils/windowfunction/Makefile +++ /dev/null @@ -1,85 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3821 2013-05-17 23:58:16Z xlou $ -# -# Copyright (C) 2009-2013 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libwindowfunction.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -CPPFLAGS= -I. -I$(EXPORT_ROOT)/include -I/usr/include/libxml2 -CXXFLAGS+=$(DEBUG_FLAGS) -Wall -fpic - -TLIBS=-L. -L$(EXPORT_ROOT)/lib -GLIBS=-L$(EXPORT_ROOT)/lib - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lwindowfunction - -SRCS=\ - framebound.cpp \ - frameboundrange.cpp \ - frameboundrow.cpp \ - idborderby.cpp \ - windowframe.cpp \ - windowfunction.cpp \ - windowfunctiontype.cpp \ - wf_count.cpp \ - wf_lead_lag.cpp \ - wf_min_max.cpp \ - wf_nth_value.cpp \ - wf_ntile.cpp \ - wf_percentile.cpp \ - wf_ranking.cpp \ - wf_row_number.cpp \ - wf_stats.cpp \ - wf_sum_avg.cpp - -LINCLUDES=\ - framebound.h \ - frameboundrange.h \ - frameboundrow.h \ - idborderby.h \ - windowframe.h \ - windowfunction.h \ - windowfunctiontype.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) - rm -rf *~ *.o *.d* *-gcov* *.gcov - rm -rf html config.tag - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/utils/winport/Makefile b/utils/winport/Makefile deleted file mode 100755 index 823dc93c2..000000000 --- a/utils/winport/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -#****************************************************************************************** -# $Id: Makefile 3465 2013-12-04 17:17:23Z dhall $ -# -# Copyright (C) 2009-2013 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -include ../../rules.mak -CPPFLAGS=-DTEST2 -CXXFLAGS=-g -O0 -LDFLAGS= - -LINCLUDES=winport.h - -install: bootstrap - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -docs: - -clean: - rm -f idb_getopt *.o core - -test: idbgetopt - ./idbgetopt - - diff --git a/versioning/BRM/Makefile b/versioning/BRM/Makefile deleted file mode 100755 index deca53e6d..000000000 --- a/versioning/BRM/Makefile +++ /dev/null @@ -1,298 +0,0 @@ -include ../../rules.mak -#****************************************************************************************** -# $Id: Makefile 1872 2013-04-26 18:13:19Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libbrm.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -# Note: performance tests show the DEBUG macro introduces negligible overhead. - -## Add -DPARTITIONING to turn on range partitioning code -CPPFLAGS=-I. -I$(EXPORT_ROOT)/include -I../../utils/rwlock -I/usr/include/libxml2 -## gcc 4.5.3 tends to generate an ICE when LTO is turned on for libbrm -NEW_DEBUG_FLAGS=$(shell echo "$(DEBUG_FLAGS)" | sed s/-flto//g) -CXXFLAGS+=$(NEW_DEBUG_FLAGS) -Wall -fPIC - -TLIBS=-L. -lbrm -L$(EXPORT_ROOT)/lib -lrwlock -lmessageqcpp -ldl -lpthread -lcppunit \ --lconfigcpp -lxml2 -lexecplan -ljoblist -lfuncexp -ljoiner -lcommon \ --ldataconvert -lloggingcpp -lrowgroup - -GLIBS=-L. -lbrm -L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -OAMLIBS=-loamcpp -lsnmpmanager -lnetsnmp \ --lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lmessageqcpp -lrwlock - -SRCS=\ -autoincrementmanager.cpp \ -blockresolutionmanager.cpp \ -brmshmimpl.cpp \ -brmtypes.cpp \ -copylocks.cpp \ -dbrm.cpp \ -extentmap.cpp \ -lbidresourcegraph.cpp \ -logicalpartition.cpp \ -mastersegmenttable.cpp \ -oidserver.cpp \ -resourcenode.cpp \ -rgnode.cpp \ -rwlockmonitor.cpp \ -sessionmanagerserver.cpp \ -shmkeys.cpp \ -slavedbrmnode.cpp \ -slavecomm.cpp \ -tablelockserver.cpp \ -tracer.cpp \ -transactionnode.cpp \ -undoable.cpp \ -vbbm.cpp \ -vss.cpp - -TOOLSRCS=\ -dbrmctl.cpp \ -load_brm.cpp \ -load_em.cpp \ -masterdbrmnode.cpp \ -masternode.cpp \ -reset_locks.cpp \ -rollback.cpp \ -save_brm.cpp \ -slavenode.cpp - -LINCLUDES=\ -blockresolutionmanager.h \ -brm.h \ -brmshmimpl.h \ -brmtypes.h \ -copylocks.h \ -dbrm.h \ -extentmap.h \ -logicalpartition.h \ -mastersegmenttable.h \ -sessionmanagerserver.h \ -shmkeys.h \ -slavecomm.h \ -slavedbrmnode.h \ -tracer.h \ -undoable.h \ -vbbm.h \ -vss.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) -lrt - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - $(INSTALL) dbrm script-fcns $(INSTALL_ROOT_BIN) - -clean: - rm -rf $(PROGRAM) $(LIBRARY) $(OBJS) tdriver \ - tdriver-brm tdriver-load tdriver-brm.o *~ *.o *.d* *-gcov* *.gcov \ - html config.tag {EM,CL,VSS,VBBM}Image \ - reset_locks rollback save_brm load_brm dbrmctl load_brm64 \ - load_em TestImage_{em,cl,vss,vbbm} controllernode workernode tdriver-dbrm \ - tdriver-dbrm2 - #./dbrm stop - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tools: $(LIBRARY) reset_locks rollback save_brm load_brm load_em tablelocktest autoinctest copylocktest - -install_tools: tools - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) save_brm load_brm reset_locks rollback $(INSTALL_ROOT_BIN) - -install_all: install install_dbrm install_tools - -copylocktest: $(LIBRARY) copylocktest.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -autoinctest: $(LIBRARY) autoinctest.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -tablelocktest: $(LIBRARY) tablelocktest.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -reset_locks: $(LIBRARY) reset_locks.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -rollback: rollback.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -save_brm: save_brm.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -load_brm: load_brm.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -load_brm64: load_brm64.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -load_em: load_em.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -cvt_em: cvt_em.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -test-dbrm: dbrm tdriver-dbrm tdriver-dbrm2 - ./dbrm stop - CALPONT_CONFIG_FILE=./Calpont.xml ./dbrm start - CALPONT_CONFIG_FILE=./Calpont.xml ./tdriver-dbrm - ./dbrm stop - -.PHONY: dbrm -.PRECIOUS: dbrm -dbrm: $(LIBRARY) controllernode workernode dbrmctl - -install_dbrm: dbrm - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) controllernode workernode dbrmctl $(INSTALL_ROOT_BIN) - -controllernode: $(LIBRARY) masternode.o masterdbrmnode.o - $(LINK.cpp) -o $@ masternode.o masterdbrmnode.o $(GLIBS) - -workernode: slavenode.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -dbrmctl: dbrmctl.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -lock_grabber: lock_grabber.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -lock_state: lock_state.o - $(LINK.cpp) -o $@ $^ $(GLIBS) - -tdriver: tdriver.o - $(MAKE) -C ../../dbcon/execplan install - $(MAKE) -C ../../dbcon/joblist install - $(LINK.cpp) -o $@ $^ $(TLIBS) - -tdriver-dbrm: tdriver-dbrm.o - $(LINK.cpp) -o $@ $^ $(TLIBS) $(OAMLIBS) - -tdriver-dbrm2: tdriver-dbrm2.o - $(LINK.cpp) -o $@ $^ $(TLIBS) $(OAMLIBS) -lpthread - -tdriver-brm: tdriver-brm.o - $(LINK.cpp) -o $@ $^ $(TLIBS) -lpthread - -tdriver-load: tdriver-load.o - $(LINK.cpp) -o $@ $^ $(TLIBS) -lpthread - -test: - -xtest: $(LIBRARY) tdriver - ./dbrm stop - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-brm - -test-load: $(LIBRARY) tdriver-load - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-load - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -tdriver-brm-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-brm-gcov: tdriver-brm-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -tdriver-load-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-load-gcov: tdriver-load-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(TLIBS) - -coverage: - -xcoverage: - rm -f tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(MAKE) zcoverage - -coverage-brm: - rm -f tdriver-brm-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(MAKE) zcoverage-brm - -coverage-load: - rm -f tdriver-load-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(MAKE) zcoverage-load - -zcoverage: tdriver-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -zcoverage-brm: tdriver-brm-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-brm-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -zcoverage-load: tdriver-load-gcov - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-load-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -leakcheck-brm: $(LIBRARY) tdriver-brm - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-brm - -leakcheck-load: $(LIBRARY) tdriver-load - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver-load - -tdriver%.o: tdriver%.cpp - -tdriver%: tdriver%.o - $(LINK.cpp) -o $@ $^ $(TLIBS) -liberty - -alltests: test test-load test-brm - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) $(TOOLSRCS:.cpp=.d) tdriver.d -endif diff --git a/versioning/Makefile b/versioning/Makefile deleted file mode 100755 index 2bb550c59..000000000 --- a/versioning/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -include ../rules.mak -#****************************************************************************************** -# $Id: Makefile 1547 2012-04-04 18:19:01Z rdempsey $ -# -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -TARGETS = bootstrap clean test docs coverage leakcheck install tools dbrm \ -test-dbrm install_tools install_all install_dbrm - -.PHONY: $(TARGETS) - -all: - $(MAKE) -C BRM - -$(TARGETS): - $(MAKE) -C BRM $@ - diff --git a/writeengine/Makefile b/writeengine/Makefile deleted file mode 100755 index 24c6c6146..000000000 --- a/writeengine/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -include ../rules.mak -#******************************************************************************* -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#******************************************************************************/ -TARGETS = bootstrap test docs coverage install leakcheck - -.PHONY: $(TARGETS) install_bulk install_server install_splitter install_all - -all: - $(MAKE) -C shared - $(MAKE) -C dictionary - $(MAKE) -C xml - $(MAKE) -C wrapper - $(MAKE) -C bulk - $(MAKE) -C client - $(MAKE) -C splitter - $(MAKE) -C server - $(MAKE) -C redistribute - -clean: - $(MAKE) -C shared clean - $(MAKE) -C dictionary clean - $(MAKE) -C xml clean - $(MAKE) -C wrapper clean - $(MAKE) -C bulk clean - $(MAKE) -C client clean - $(MAKE) -C splitter clean - $(MAKE) -C server clean - $(MAKE) -C redistribute clean - rm -rf obj - -$(TARGETS): - $(MAKE) -C shared $@ - $(MAKE) -C dictionary $@ - $(MAKE) -C xml $@ - $(MAKE) -C wrapper $@ - $(MAKE) -C bulk $@ - $(MAKE) -C client $@ - $(MAKE) -C splitter $@ - $(MAKE) -C server $@ - $(MAKE) -C redistribute $@ - -install_bulk: - $(MAKE) -C bulk $@ - -install_server: - $(MAKE) -C server $@ - -install_splitter: - $(MAKE) -C splitter $@ - -install_all: bootstrap all install_bulk install_server install_splitter diff --git a/writeengine/bulk/Makefile b/writeengine/bulk/Makefile deleted file mode 100755 index 62110e455..000000000 --- a/writeengine/bulk/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -include ../../rules.mak -include ../build/we_rules.mak -#******************************************************************************* -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#******************************************************************************/ -# The name of the executable -PROGRAM=cpimport.bin -VERSION=1.0.0 - -.PHONY: install clean docs test coverage leakcheck install_bulk -TLIBS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_WRITE_LIBS) -GLIBS=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_WRITE_LIBS) $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib - -SRCS=we_bulkload.cpp we_workers.cpp we_colopbulk.cpp we_tableinfo.cpp we_bulkloadbuffer.cpp we_colbuf.cpp we_colbufcompressed.cpp we_colbufmgr.cpp we_colbufmgrdctnry.cpp we_colbufsec.cpp we_columninfo.cpp we_columninfocompressed.cpp we_bulkstatus.cpp we_colextinf.cpp we_tempxmlgendata.cpp we_columnautoinc.cpp we_brmreporter.cpp we_extentstripealloc.cpp -BULK_SRCS=cpimport.cpp -LINCLUDES= -OBJS=$(SRCS:.cpp=.o) -BULK_OBJS=$(BULK_SRCS:.cpp=.o) - -object: $(OBJS) - mkdir -p $(LIBDIR) - $(MAKE) install - -bulk: cpimport.bin - -cpimport.bin: $(BULK_OBJS) $(OBJS) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -install: bootstrap - -install_bulk: bootstrap $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -# We don't need to export any bulk include files for public use -bootstrap: -# $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(PROGRAM) $(OBJS) $(BULK_OBJS) core *~ *.tag *.d *.swp *.dat - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - rm -f $(LIBDIR)/$${bfile}.o ; \ - done - rm -f cpimport.o - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -test: - -coverage: - -leakcheck: - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(BULK_SRCS:.cpp=.d) $(SRCS:.cpp=.d) -endif diff --git a/writeengine/client/Makefile b/writeengine/client/Makefile deleted file mode 100755 index ec19627e5..000000000 --- a/writeengine/client/Makefile +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright (C) 2014 InfiniDB, 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; version 2 of -# the License. -# -# 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. - -# $Id: Makefile 2966 2011-05-12 11:58:33Z dcathey $ - -include ../../rules.mak -include ../build/we_rules.mak - -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libwriteengineclient.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -TLIBS=-L. -lddlpackage -L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl -GLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lbrm -lcacheutils -ldm - -SRCS=we_clients.cpp \ - we_ddlcommandclient.cpp \ - we_dmlcommandclient.cpp - -LINCLUDES=we_clients.h \ - we_ddlcommandclient.h \ - we_dmlcommandclient.h -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - make install - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - - -clean: - rm -f $(LIBDIR)/tdriver.o $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.swp *.dat - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - $(IPCS_CLEANUP) - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/writeengine/dictionary/Makefile b/writeengine/dictionary/Makefile deleted file mode 100755 index 6b2de6aaf..000000000 --- a/writeengine/dictionary/Makefile +++ /dev/null @@ -1,87 +0,0 @@ -include ../../rules.mak -include ../build/we_rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean docs test coverage leakcheck - -SRCS=we_dctnry.cpp -LINCLUDES=we_dctnry.h -OBJS=$(SRCS:.cpp=.o) - -LOBJS=$(LOBJS_SHARED) -GOBJS=$(LOBJS:.o=-gcov.o) - -object: $(OBJS) - mkdir -p $(LIBDIR) - cp *.o $(LIBDIR) - rm -f $(LIBDIR)/tdctnry.o - make install - -install: bootstrap - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(LIBDIR)/tdctnry.o $(OBJS) tdctnry.o tdctnry core *~ *.tag *-gcov.* *.gcov tdctnry-gcov *.d *.swp *.dat - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - rm -f $(LIBDIR)/$${bfile}.o ; \ - done - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdctnry: $(OBJS) tdctnry.o - $(LINK.cpp) -o $@ $^ $(LOBJS) $(TLIBS) - -test: - -xtest: clean tdctnry object - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdctnry - -qdctnry: $(OBJS) qdctnry.o - $(LINK.cpp) -o $@ $^ $(LOBJS) $(TLIBS) - -qtest: qdctnry object - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./qdctnry - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdctnry-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdctnry-gcov: tdctnry-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GOBJS) $(GLIBS) - cp *-gcov.o $(LIBDIR) - -coverage: - -xcoverage: tdctnry-gcov - $(IPCS_CLEANUP) - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdctnry-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: tdctnry - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdctnry - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdctnry.d -endif diff --git a/writeengine/index/Makefile b/writeengine/index/Makefile deleted file mode 100755 index c918f1d1d..000000000 --- a/writeengine/index/Makefile +++ /dev/null @@ -1,89 +0,0 @@ -include ../../rules.mak -include ../build/we_rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean docs test coverage leakcheck - -SRCS=we_indexlist_multiple_narray.cpp we_indexlist_find_delete.cpp we_indexlist_common.cpp we_indexlist_update_hdr_sub.cpp we_indexlist_narray.cpp we_indexlist.cpp we_freemgr.cpp we_indextree.cpp -LINCLUDES=we_indexlist.h we_freemgr.h we_indextree.h -OBJS=$(SRCS:.cpp=.o) - -LOBJS= $(LOBJS_SHARED) -GOBJS=$(LOBJS:.o=-gcov.o) - -object: $(OBJS) - mkdir -p $(LIBDIR) - cp *.o $(LIBDIR) - rm -f $(LIBDIR)/tindex.o - make install - -install: bootstrap - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(LIBDIR)/tindex.o $(OBJS) tindex.o tindex core *~ *.tag *-gcov.* *.gcov tindex-gcov *.d *.swp *.dat - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - rm -f $(LIBDIR)/$${bfile}.o ; \ - done - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tindex: $(OBJS) tindex.o - $(LINK.cpp) -o $@ $^ $(LOBJS) $(TLIBS) - -test: - -xtest: tindex object - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tindex - -qindex: $(OBJS) qindex.o - $(LINK.cpp) -o $@ $^ $(LOBJS) $(TLIBS) - -qtest: qindex - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./qindex - - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tindex-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tindex-gcov: tindex-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GOBJS) $(GLIBS) - cp *-gcov.o $(LIBDIR) - -coverage: - -xcoverage: tindex-gcov - $(IPCS_CLEANUP) - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tindex-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: tindex - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tindex - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tindex.d -endif diff --git a/writeengine/redistribute/Makefile b/writeengine/redistribute/Makefile deleted file mode 100755 index 8a30d1225..000000000 --- a/writeengine/redistribute/Makefile +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright (C) 2014 InfiniDB, 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; version 2 of -# the License. -# -# 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. - -# $Id: Makefile 4216 2012-09-28 23:08:21Z xlou $ - -include ../../rules.mak -include ../build/we_rules.mak - -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libwriteengineredistribute.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -TLIBS=-L. -lddlpackage -L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl -GLIBS=-L$(EXPORT_ROOT)/lib -lmessageqcpp -lloggingcpp -lconfigcpp -lxml2 -lcppunit -ldl - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lbrm -lcacheutils -ldm - -SRCS=we_redistribute.cpp \ - we_redistributecontrol.cpp \ - we_redistributecontrolthread.cpp \ - we_redistributeworkerthread.cpp - -LINCLUDES=we_redistributedef.h \ - we_redistribute.h - -OBJS=$(SRCS:.cpp=.o) - -$(LIBRARY): $(OBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - make install - -install: bootstrap $(LIBRARY) - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - - -clean: - rm -f $(LIBDIR)/tdriver.o $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.swp *.dat - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tdriver-gcov - $(IPCS_CLEANUP) - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/writeengine/server/Makefile b/writeengine/server/Makefile deleted file mode 100755 index 577e6f068..000000000 --- a/writeengine/server/Makefile +++ /dev/null @@ -1,98 +0,0 @@ -include ../../rules.mak -include ../build/we_rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# -# $Id: Makefile 4624 2013-04-29 16:19:59Z rdempsey $ -# -#*****************************************************************************************/ -# The name of the executable -PROGRAM=WriteEngineServer -VERSION=1.0.0 - -.PHONY: install clean docs test coverage leakcheck install_server -TLIBS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_WRITE_LIBS) -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_WRITE_LIBS) $(IDB_SNMP_LIBS) -lthreadpool -lwriteengineredistribute -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -GLIBS=$(LDFLAGS) - -SRCS= \ - we_brmrprtparser.cpp \ - we_cleartablelockcmd.cpp \ - we_cpifeederthread.cpp \ - we_dataloader.cpp \ - we_ddlcommandproc.cpp \ - we_dmlcommandproc.cpp \ - we_getfilesizes.cpp \ - we_observer.cpp \ - we_readthread.cpp \ - we_server.cpp - -LINCLUDES= we_messages.h - -OBJS=$(SRCS:.cpp=.o) - -GOBJS=$(LOBJS:.o=-gcov.o) - -objects: $(OBJS) - -install_server: bootstrap WriteEngineServer - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -WriteEngineServer: $(OBJS) - $(LINK.cpp) -o $@ $^ - -install: bootstrap - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(PROGRAM) $(OBJS) core *~ *.tag *-gcov.* *.gcov *.d *.swp *.dat - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -test: - -xtest: tbulk - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tbulk - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tbulk-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tbulk-gcov: tbulk-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GOBJS) $(GLIBS) - cp *-gcov.o $(LIBDIR) - -coverage: - -xcoverage: tbulk-gcov - $(IPCS_CLEANUP) - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tbulk-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: tbulk - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --error-limit=no --tool=memcheck --leak-check=yes ./tbulk - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/writeengine/shared/Makefile b/writeengine/shared/Makefile deleted file mode 100755 index a0a1c22d9..000000000 --- a/writeengine/shared/Makefile +++ /dev/null @@ -1,81 +0,0 @@ -include ../../rules.mak -include ../build/we_rules.mak -#****************************************************************************************** -# $Id: Makefile 4589 2013-04-02 14:41:08Z rdempsey $ -# -# Copyright (C) 2009-2013 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -.PHONY: install clean docs test coverage leakcheck - -SRCS=we_bulkrollbackmgr.cpp we_bulkrollbackfile.cpp we_bulkrollbackfilecompressed.cpp we_bulkrollbackfilecompressedhdfs.cpp we_fileop.cpp we_blockop.cpp we_dbfileop.cpp we_log.cpp we_simplesyslog.cpp we_convertor.cpp we_brm.cpp we_config.cpp we_cache.cpp we_stats.cpp we_define.cpp we_chunkmanager.cpp we_rbmetawriter.cpp we_dbrootextenttracker.cpp we_confirmhdfsdbfile.cpp -LINCLUDES=we_bulkrollbackmgr.h we_index.h we_define.h we_type.h we_fileop.h we_blockop.h we_dbfileop.h we_obj.h we_log.h we_simplesyslog.h we_convertor.h we_brm.h we_macro.h we_config.h we_cache.h we_stats.h we_typeext.h we_chunkmanager.h we_rbmetawriter.h we_dbrootextenttracker.h we_confirmhdfsdbfile.h -OBJS=$(SRCS:.cpp=.o) - -object: $(OBJS) - mkdir -p $(LIBDIR) - cp *.o $(LIBDIR) - rm -f $(LIBDIR)/tshared.o - make install - -install: bootstrap - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(LIBDIR)/tshared.o $(LIBDIR)/*gcov.o $(OBJS) tshared.o tshared core *~ *.tag *-gcov.* *.gcov tshared-gcov *.d *.swp *.dat *.txt *.log - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - rm -f $(LIBDIR)/$${bfile}.o ; \ - done - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tshared: $(OBJS) tshared.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: tshared object - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tshared - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - cp *-gcov.o $(LIBDIR) - -tshared-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tshared-gcov: tshared-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) - -coverage: - -xcoverage: tshared-gcov - $(IPCS_CLEANUP) - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tshared-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tshared - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tshared - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tshared.d -endif diff --git a/writeengine/splitter/Makefile b/writeengine/splitter/Makefile deleted file mode 100755 index 0a46b5df6..000000000 --- a/writeengine/splitter/Makefile +++ /dev/null @@ -1,105 +0,0 @@ -include ../../rules.mak -include ../build/we_rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -# -# $Id: Makefile 3153 2011-10-12 20:41:55Z bpaul $ -# -#*****************************************************************************************/ -# The name of the executable -PROGRAM=cpimport -VERSION=1.0.0 - -# List all the source files here -SRCS=we_splitterapp.cpp \ - we_cmdargs.cpp \ - we_sdhandler.cpp \ - we_respreadthread.cpp \ - we_filereadthread.cpp \ - we_splclient.cpp \ - we_brmupdater.cpp \ - we_tablelockgrabber.cpp \ - we_xmlgetter.cpp - -# Preprocessor flags -CPPFLAGS=-I$(EXPORT_ROOT)/include -I/usr/include/libxml2 - -# Compiler flags -CXXFLAGS+=$(DEBUG_FLAGS) -Wall - -# Linker flags -LDFLAGS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_WRITE_LIBS) -lthreadpool $(IDB_SNMP_LIBS) -Wl,--rpath -Wl,/usr/local/MariaDB/Columnstore/lib -lbatchloader - -.PHONY: install clean docs test coverage leakcheck -TLIBS+=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_WRITE_LIBS) -GLIBS=-L$(CALPONT_LIBRARY_PATH) $(IDB_COMMON_LIBS) $(IDB_WRITE_LIBS) $(IDB_SNMP_LIBS) -lthreadpool -ldl -lbatchloader - -LINCLUDES= - -OBJS=$(SRCS:.cpp=.o) - -objects: $(OBJS) - -GOBJS=$(LOBJS:.o=-gcov.o) - -$(PROGRAM): $(OBJS) - $(LINK.cpp) -o $@ $^ - - -install: bootstrap - -install_splitter: $(PROGRAM) - mkdir -p $(INSTALL_ROOT_BIN) - $(INSTALL) $(PROGRAM) $(INSTALL_ROOT_BIN) - -bootstrap: -# $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(PROGRAM) $(OBJS) core *~ *.tag *-gcov.* *.gcov *.d *.swp *.dat - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -test: - -xtest: $(PROGRAM) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM) - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -$(PROGRAM)-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -$(PROGRAM)-gcov: $(PROGRAM)-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GOBJS) $(GLIBS) - cp *-gcov.o $(LIBDIR) - -coverage: - -xcoverage: $(PROGRAM)-gcov - $(IPCS_CLEANUP) - rm -f *.gcda - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) ./$(PROGRAM)-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done -# /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(PROGRAM) - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) valgrind --error-limit=no --tool=memcheck --leak-check=yes ./$(PROGRAM) - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) -endif diff --git a/writeengine/wrapper/Makefile b/writeengine/wrapper/Makefile deleted file mode 100755 index 03eaea50d..000000000 --- a/writeengine/wrapper/Makefile +++ /dev/null @@ -1,96 +0,0 @@ -include ../../rules.mak -include ../build/we_rules.mak -#****************************************************************************************** -# $Id: Makefile 4589 2013-04-02 14:41:08Z rdempsey $ -# -# Copyright (C) 2009-2013 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ - -.PHONY: install clean test docs coverage leakcheck - -PROGRAM=libwriteengine.so -VERSION=1.0.0 -LIBRARY=$(PROGRAM).$(VERSION) - -TLIBS+=-lwriteengine -GLIBS=$(TLIBS) - -LLIBS=-L$(CALPONT_LIBRARY_PATH) -lbrm -lcacheutils - -SRCS=writeengine.cpp we_colop.cpp we_colopcompress.cpp we_dctnrycompress.cpp we_tablemetadata.cpp -LINCLUDES=writeengine.h we_colop.h we_colopcompress.h we_dctnrycompress.h we_tablemetadata.h -OBJS=$(SRCS:.cpp=.o) - -LOBJS=$(LOBJS_SHARED) $(LOBJS_DCTNRY) $(LOBJS_XML) -GOBJS=$(LOBJS:.o=-gcov.o) - -$(LIBRARY): $(OBJS) $(LOBJS) - $(LINK.cpp) -shared -o $(LIBRARY) $(OBJS) $(LOBJS) - rm -f $(PROGRAM) - ln -s $(LIBRARY) $(PROGRAM) - make install - -install: bootstrap - umask 002; \ - mkdir -p $(INSTALL_ROOT_LIB) $(INSTALL_ROOT_INCLUDE); \ - pushd $(INSTALL_ROOT_LIB) >/dev/null; \ - rm -f $(LIBRARY) $(PROGRAM); \ - ln -s $(LIBRARY) $(PROGRAM); \ - popd >/dev/null; \ - $(INSTALL) $(LIBRARY) $(INSTALL_ROOT_LIB) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - - -clean: - rm -f $(LIBDIR)/tdriver.o $(OBJS) tdriver.o $(PROGRAM) $(LIBRARY) tdriver core *~ *.tag *-gcov.* *.gcov tdriver-gcov *.d *.swp *.dat - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -tdriver: tdriver.o - $(LINK.cpp) -o $@ $^ $(TLIBS) - -test: - -xtest: $(LIBRARY) tdriver - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - -tdriver-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -tdriver-gcov: tdriver-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GLIBS) $(GOBJS) - -coverage: - -xcoverage: tdriver-gcov - $(IPCS_CLEANUP) - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./tdriver-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: $(LIBRARY) tdriver - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./tdriver - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) tdriver.d -endif diff --git a/writeengine/xml/Makefile b/writeengine/xml/Makefile deleted file mode 100755 index 38dd19129..000000000 --- a/writeengine/xml/Makefile +++ /dev/null @@ -1,86 +0,0 @@ -include ../../rules.mak -include ../build/we_rules.mak -#****************************************************************************************** -# Copyright (C) 2009-2012 Calpont Corporation -# All rights reserved -#*****************************************************************************************/ -.PHONY: install clean docs test coverage leakcheck - -SRCS=we_xmlop.cpp we_xmljob.cpp we_xmlgendata.cpp we_xmlgenproc.cpp -LINCLUDES=we_xmlop.h we_xmljob.h we_xmltag.h we_xmlgendata.h we_xmlgenproc.h -OBJS=$(SRCS:.cpp=.o) - -LOBJS= $(LOBJS_SHARED) -GOBJS=$(LOBJS:.o=-gcov.o) - -GLIBS=-L. -L$(EXPORT_ROOT)/lib $(IDB_COMMON_LIBS) -lcacheutils $(IDB_SNMP_LIBS) - -object: $(OBJS) - mkdir -p $(LIBDIR) - cp *.o $(LIBDIR) - rm -f $(LIBDIR)/txml.o - make install - -install: bootstrap - mkdir -p $(INSTALL_ROOT_BIN) - -bootstrap: - $(INSTALL) $(LINCLUDES) $(INSTALL_ROOT_INCLUDE) - -clean: - rm -f $(LIBDIR)/txml.o $(OBJS) txml.o txml core *~ *.tag *-gcov.* *.gcov txml-gcov *.d *.swp *.dat *.gcno - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - rm -f $(LIBDIR)/$${bfile}.o ; \ - done - rm -rf html - -docs: - doxygen $(EXPORT_ROOT)/etc/Doxyfile - -txml: $(OBJS) txml.o - $(LINK.cpp) -o $@ $^ $(LOBJS) $(TLIBS) - -test: - -xtest: txml - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib ./txml - - -%-gcov.o: %.cpp - $(COMPILE.cpp) -o $@ $^ - cp *-gcov.o $(LIBDIR) - -txml-gcov: CXXFLAGS+=-fprofile-arcs -ftest-coverage -txml-gcov: txml-gcov.o $(subst .o,-gcov.o,$(OBJS)) - $(LINK.cpp) -o $@ $^ $(GOBJS) $(GLIBS) -# cp *-gcov.o $(LIBDIR) - -coverage: - -xcoverage: txml-gcov - $(IPCS_CLEANUP) - rm -f *.gcda - LD_LIBRARY_PATH=$(EXPORT_ROOT)/lib:/usr/local/lib ./txml-gcov - for file in $(SRCS); do \ - bfile=`basename $$file .cpp`; \ - gcov -o $${bfile}-gcov $$file >/dev/null; \ - done - /usr/local/bin/genCoverage.pl $(SRCS) - -leakcheck: - -xleakcheck: txml - $(IPCS_CLEANUP) - LD_LIBRARY_PATH=.:$(EXPORT_ROOT)/lib:/usr/local/lib valgrind --tool=memcheck --leak-check=yes ./txml - -%.d: %.cpp - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -ifndef BOOTSTRAP --include $(SRCS:.cpp=.d) txml.d -endif