diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 000000000..16c2f1f84 --- /dev/null +++ b/.cvsignore @@ -0,0 +1,9 @@ +Makefile +Makefile.in +config.cache +config.log +config.status +z_* +*.O +*~ +*.tar.gz diff --git a/.wmlrc b/.wmlrc new file mode 100644 index 000000000..3660c10dc --- /dev/null +++ b/.wmlrc @@ -0,0 +1 @@ +-Iconfig diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 000000000..0b69a392e --- /dev/null +++ b/AUTHORS @@ -0,0 +1,28 @@ +CERN DOCUMENT SERVER SOFTWARE (CDSware) AUTHORS +============================================ + +Revision: $Id$ + +The CDS Development Group consists of several people: + + - Jean-Yves Le Meur + Head of the team. + + - Tibor Simko + Search interface, search engine, personalization. + + - Thomas Baron + Submit interface. + + - Martin Vesely + Compliance with Open Archive Initiative. + + - Hector Sanchez + FlexElink, output formatting and reference linking tool. + +Moreover, several students have worked on the project, including +Marcin Kuta and Eric Simon (personalization), and others. + + - CDS Development Group + + diff --git a/COPYING b/COPYING new file mode 100644 index 000000000..5b6e7c66c --- /dev/null +++ b/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 000000000..e69de29bb diff --git a/INSTALL b/INSTALL new file mode 100644 index 000000000..f43172d15 --- /dev/null +++ b/INSTALL @@ -0,0 +1,300 @@ +CERN DOCUMENT SERVER SOFTWARE (CDSware) INSTALLATION +==================================================== + +Revision: $Id$ + +About +===== + +This document specifies how to build, customize, and install the CERN +Document Server Software (CDSware). (See 'UNINSTALL' file if you look +for information on how to uninstall the system!) + +Contents +======== + +0. Prerequisites +1. Quick instructions for the impatient CDSware admin +2. Detailed instructions for the patient CDSware admin +3. Configuration philosophy explained and elucidated + +0. Prerequisites +================ + + Here is the software you need to have around before you + start installing CDSware: + + a) Apache server, compiled with PHP and MySQL support: + + + + b) MySQL server (may be on a remote machine), and MySQL client + (must be available locally too): + + + c) WML - Website META Language: + + + d) Perl, featuring DBI::mysql module: + + + e) Python, featuring MySQLdb module: + + + (Note that the configure script checks whether you have all + the prerequisite software installed and that it won't let + you to continue unless everything is in order.) + +1. Quick instructions for the impatient CDSware admin +================================================== + + $ mysql -h sqlserver.domain.com -u root -p mysql + mysql> CREATE DATABASE cdsware; + mysql> GRANT ALL PRIVILEGES ON cdsware.* TO cdsware@webserver.domain.com IDENTIFIED BY 'myp1ss'; + $ cd /usr/local/src/ + $ wget http://cds.cern.ch/download/cdsware-0.9.tar.gz + $ tar xvfz cdsware-0.9.tar.gz + $ cd cdsware-0.9 + $ ./configure --with-htdocsdir=/www/data/ \ + --with-cgibindir=/www/cgi-bin/ \ + --with-dbutildir=/usr/local/bin/ \ + --with-htdocsurl=http://webserver.domain.com/CDSware/ \ + --with-cgibinurl=http://webserver.domain.com/cgi-bin/CDSware/ \ + --with-dbhost=sqlserver.domain.com \ + --with-dbname=cdsware \ + --with-dbuser=cdsware \ + --with-dbpass=myp1ss + $ vi ./config/config.wml ## optional, but strongly recommended + $ gmake + $ gmake create-tables ## optional + $ gmake install + $ gmake load-sample-data ## optional + $ gmake clean-sample-data ## optional + $ netscape http://webserver.domain.com/CDSware/admin/ ## optional + +2. Detailed instructions for the patient CDSware admin +=================================================== + + The CERN Document Server Software (CDSware) uses standard GNU autoconf + method to build and install its files. This means that you proceed + as follows: + + $ mysql -h sqlserver.domain.com -u root -p mysql + mysql> CREATE DATABASE cdsware; + mysql> GRANT ALL PRIVILEGES ON cdsware.* TO cdsware@webserver.domain.com IDENTIFIED BY 'myp1ss'; + + You need to create a dedicated database on your MySQL server + that CDSware can use for its purposes. Please contact your + MySQL administrator and ask him to execute the above + commands that will create a database called "cdsware", a user + called "cdsware" with password "myp1ss", and that will grant + all rights on the "cdsware" database to the "cdsware" user. + + (Of course, you are free to choose your own user credentials + and database names; the above values were just an example.) + + $ cd /usr/local/src/ + + Change to a directory where we will configure and build the + CDS Software. (The built files will be installed later on + into Apache htdocs and cgi-bin trees.) + + $ wget http://cds.cern.ch/download/cdsware-0.9.tar.gz + + Fetch CDSware package from the CDSware distribution server. + + $ tar xvfz cdsware-0.9.tar.gz + + Untar the distriburion tarball. + + $ cd cdsware-0.9 + + Go to the source directory. + + $ ./configure --with-htdocsdir=/www/data/ \ + --with-cgibindir=/www/cgi-bin/ \ + --with-dbutildir=/usr/local/bin/ \ + --with-htdocsurl=http://webserver.domain.com/CDSware/ \ + --with-cgibinurl=http://webserver.domain.com/cgi-bin/CDSware/ \ + --with-dbhost=sqlserver.domain.com \ + --with-dbname=cdsware \ + --with-dbuser=cdsware \ + --with-dbpass=myp1ss + + Configure essential CDSware parameters, as the installation + directories for HTDOCS files, CGI scripts and DB utilities, + the URL of the homepage and CGI scripts, and DB user + credentials. + + The first two directories must be within the Apache's htdocs + and cgi-bin paths. The DB utilities may be installed + anywhere on the system. Note that CDSware won't install in any + other directories but the three mentioned in the above + configure line. + + This configuration step is mandatory, and is referred to as + "pre-compile time configuration step a)" in the elucidative + explanatory commentary below. + + $ vi ./config/config.wml ## optional, but strongly recommended + + Optionally, customize your CDSware installation. Unlike the + installation direcories and other essential parameters that + were defined in the previous step, the "config.wml" file + enables you to change the CDSware web page look and feel, and + otherwise to influence its behaviour and default parameters. + + This configuration step is optional, but stringly + recommended. It is referred to as "compile time + configuration step b)" in the elucidative explanatory + commentary below. + + $ gmake + + Launch the CDSware build. All the pages will be pre-created + based on the config you have edited in the previous step. + + $ gmake create-tables ## optional + + Optionally, create CDSware tables on the MySQL server. You + probably want to do this step only once, i.e. only if you + have not created any CDSware databases yet. + + $ gmake install + + Install the web pages, cgi scripts and database utilities + in the respective directories, as specified earlier by the + configure command. + + After this step, you should be able to point your browser to + the chosen URL of your local CDSware installation and see it + running! + + $ gmake load-sample-data ## optional + + Optionally, load some sample data to be able to test the + CDSware installation. + + $ gmake clean-sample-data ## optional + + Optionally, removes the sample data and prepares the CDSware + installation for production purposes. + + $ netscape http://webserver.domain.com/CDSware/admin/ ## optional + + Optionally, do further runtime configuration of the CDSware, + like definition of data collections, document types, + document formats, word file tables, etc. + + This configuration step is optional, and is referred to as + "runtime configuration step c)" in the elucidative + explanatory commentary below. + +3. Configuration philosophy explained and elucidated +==================================================== + + As you could see from the above, the condiguration of the CDSware is + threefold: + + (a) pre-compile time configuration phase + [uses command line options / while doing "configure"] + (b) compile time configuration phase + [uses WML / after "configure", while doing "&& make install"] + (c) runtime configuration phase + [uses MySQL / after "make install", while doing "netscape http://webserver.domain.com/CDSware/admin/"] + + What is the difference, and why? + + (a) pre-compile time configuration phase + [uses command line options / while doing "configure"] + + This configures essential CDSware parameters that makes your + CDSware copy installable and runable. The essential parameters + include: install directories for HTML documents, CGI scripts + and DB utilities; the base URL of the HTML documents and CGI + scripts; and MySQL user and server credentials. + + This configuration step uses standard GNU autoconf approach, + i.e. you will run the standard "configure" script. Note + that the only arguments that CDSware takes into consideration + are CDSware-specific "--with-foo" arguments, see the end of + "configure --help" output. + + This configuration step is mandatory. Without knowing + theses essential parameters there is nothing to install and + nothing to run. + + Usually, you do this step only once. + + (b) compile time configuration phase + [uses WML / after "configure", while doing "make && make install"] + + Optionally, you may choose to influence CDSware behaviour, to + set up CDSware system name, to choose its default parameters, + to change its look and feel, to add your local web pages, etc. + + This configuration step uses WML, the Website META Language. + The most important configuration file is "config/config.wml" + that you can edit at your will. Optionally, if you are an + advanced user, you may edit other WML files in the + distribution tree. + + After that, when you type "make", the CDSware pages will be + pre-generated. We prefer that this configuration step is + done during compile-time and not runtime, because of + multiple reasons: (i) the pre-generated pages impose less + load on the web and the database server and so they are + served faster to the web client; (ii) we use several + different languages (PHP, Perl, Python) so that by using + compile-time configuration options we can share the same + variables across many heterogeneous applications; (iii) use + of WML and page templates enables you to easily change + anything in the CDSware system, even in its deepest level. + + Usually, if you are changing parameters and/or look and feel + of CDSware pages, you do this step several times: + + $ vi config/config.wml + $ gmake install + $ netscape http://webserver.domain.com/CDSware/ + $ vi config/config.wml + $ gmake install + [...] + + until you are satisfied with the result. + + (c) runtime configuration phase + [uses MySQL / after "make install", while doing "netscape http://webserver.domain.com/CDSware/admin/"] + + Optionally, you will most probably want to define specific + data collections, to configure submit and search page for those + collections, to specify search options and word files to + search in, etc. + + This configuration step uses MySQL configuration tables and + is done during the runtime, for your convenience. It means + that after previous configuration step (b), and after + successful "gmake install", if you are happy with its result + you no longer edit WML files within the CDSware source tree but + rather configure "working" CDSware installation via its + Administration web interface. + + Usually, you will do this step many times in the future, to + tweak the running installation, to add new collections and + data types, etc. + + (Note that if you want to change something "deeper" in a + running CDSware installation, such as look and feel of pages, + or to add some new pages, then you need to go back to WML + source, so you may want to leave your customized copy of + the CDSware WML source tree around.) + + We hope that this explains why we have chosen this three-level + configuration model, and that you will find it convenient in real + life. + +Good luck, and thanks for choosing the CERN Document Server Software. + + - CDS Development Group + + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 000000000..a086ed193 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,20 @@ +SUBDIRS = config dbutil cgibin htdocs + +EXTRA_DIST = UNINSTALL .wmlrc + +uninstall-local: + rm -rf @RTLOGSDIR@ + +load-sample-data: + ## This functionality is not available yet. + +clean-sample-data: + ## This functionality is not available yet. + +create-tables: + ./dbutil/dbexec < ./dbutil/create_tables.sql + +drop-tables: + ./dbutil/dbexec < ./dbutil/drop_tables.sql + +CLEANFILES = *~ diff --git a/NEWS b/NEWS new file mode 100644 index 000000000..27d7c9a97 --- /dev/null +++ b/NEWS @@ -0,0 +1,15 @@ +CERN DOCUMENT SERVER SOFTWARE (CDSware) NEWS +========================================= + +Revision: $Id$ + +User visible changes in the CDSware: + +version 0.9 -- aimed at spring 2002 + + * first public release of CDSware + + + - CDS Development Group + + diff --git a/README b/README new file mode 100644 index 000000000..398176713 --- /dev/null +++ b/README @@ -0,0 +1,46 @@ +CERN DOCUMENT SERVER SOFTWARE (CDSware) README +============================================== + +Revision: $Id$ + +CERN Document Server Software (CDSware) is the software developed by, +maintained by, and used at, the CERN Document Server. It enables you +to run your own electronic preprint server, your own online library +catalogue or a document system on the web. It complies with the Open +Archive Initiative metadata harvesting protocol and uses MARC-21 as +its underlying bibliographic standard. + +At CERN, the CDSware manages over 350 collections of data, consisting of +over 450,000 bibliographic records, including 170,000 fulltext +documents. (Covering preprints, articles, books, journals, +photographs, and more. Consult for details.) + +We aim at user friendliness and speed. Among the features of CDS are: + + - Configurable portal-like interfaces for hosting various kind of + collections. + + - Powerful search engine with Google-like syntax. + + - User personalization, including document baskets and email + notification alerts. + +The CDS Software is free software licenced under terms of GNU General +Public Licence (GPL). It is provided on an "as is" basis. However, +please note that a support contract can be arranged with the CDS +Development Group in which we, the developers, can help you to +install, configure, and maintain the system (featuring email and +telnet support throughout the year), including development of new +local features should a need arise. If you are interested in +concluding a support contract with us, please contact the CDS +Development Group at . + +The CDS software runs on top of MySQL database server and Apache/PHP +web application server. To install the CDS Software, please consult +the INSTALL file. + +Good luck, and thanks for choosing the CERN Document Server Software. + + - CDS Development Group + + diff --git a/UNINSTALL b/UNINSTALL new file mode 100644 index 000000000..135642f6e --- /dev/null +++ b/UNINSTALL @@ -0,0 +1,72 @@ +CERN DOCUMENT SERVER SOFTWARE (CDSware) UNINSTALLATION +====================================================== + +Revision: $Id$ + +About +===== + +This document specifies how to uninstall the CERN Document +Server Software (CDSware). (See 'INSTALL' file if you look +for information on how to install the system!) + +Contents +======== + +1. Quick instructions for the impatient CDSware admin +2. Detailed instructions for the patient CDSware admin + +1. Quick instructions for the impatient CDSware admin +================================================== + + $ cd /usr/local/src/cdsware-0.9 + $ gmake uninstall ## NOTE: This has not been tested yet!! + $ cd .. + $ rm -rf cdsware-0.9.tar.gz cdsware-0.9 + $ mysql -h sqlserver.domain.com -u root -p mysql + mysql> DROP DATABASE cdsware; + mysql> REVOKE ALL PRIVILEGES ON cdsware.* FROM cdsware@webserver.domain.com; + +2. Detailed instructions for the patient CDSware admin +=================================================== + + $ cd /usr/local/src/cdsware-0.9 + + Change to the directory where you have configured and built + the CDS Software. + + $ gmake uninstall ## NOTE: This has not been tested yet!! + + This will uninstall all the installed web pages, cgi scripts + and database utilities from their respective directories. + + Note that it may happen that you will need to clean manually + HTDOCS directory where all the collection pages were + created. We'll test this in the coming future. + + Also, you may want to remove the directories manually in + case you have added some non-CDSware files to the same place. + + $ cd .. + + Go to the parent directory. + + $ rm -rf cdsware-0.9.tar.gz cdsware-0.9 + + Wipe out the downloaded tarball and all the CDSware sources. + + $ mysql -h sqlserver.domain.com -u root -p mysql + mysql> DROP DATABASE cdsware; + mysql> REVOKE ALL PRIVILEGES ON cdsware.* FROM cdsware@webserver.domain.com; + + Ask your MySQL administrator to execute the above commands + that will drop the CDSware databases and revoke access rights + to the CDSware user. + +Good luck, and thanks for testing the CERN Document Server Software. +We would be glad to hear from you on your CDSware experience: please tell +us what you think and thus help us to improve the system. Thanks! + + - CDS Development Group + + diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 000000000..58ddd1cd9 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,104 @@ +dnl aclocal.m4 generated automatically by aclocal 1.4-p4 + +dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +# Do all the work for Automake. This macro actually does too much -- +# some checks are only needed if your package does certain things. +# But this isn't really a big deal. + +# serial 1 + +dnl Usage: +dnl AM_INIT_AUTOMAKE(package,version, [no-define]) + +AC_DEFUN(AM_INIT_AUTOMAKE, +[AC_REQUIRE([AC_PROG_INSTALL]) +PACKAGE=[$1] +AC_SUBST(PACKAGE) +VERSION=[$2] +AC_SUBST(VERSION) +dnl test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi +ifelse([$3],, +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) +AC_REQUIRE([AM_SANITY_CHECK]) +AC_REQUIRE([AC_ARG_PROGRAM]) +dnl FIXME This is truly gross. +missing_dir=`cd $ac_aux_dir && pwd` +AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) +AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) +AC_REQUIRE([AC_PROG_MAKE_SET])]) + +# +# Check to make sure that the build environment is sane. +# + +AC_DEFUN(AM_SANITY_CHECK, +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftestfile +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` + if test "[$]*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftestfile` + fi + if test "[$]*" != "X $srcdir/configure conftestfile" \ + && test "[$]*" != "X conftestfile $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "[$]2" = conftestfile + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +rm -f conftest* +AC_MSG_RESULT(yes)]) + +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) +dnl The program must properly implement --version. +AC_DEFUN(AM_MISSING_PROG, +[AC_MSG_CHECKING(for working $2) +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if ($2 --version) < /dev/null > /dev/null 2>&1; then + $1=$2 + AC_MSG_RESULT(found) +else + $1="$3/missing $2" + AC_MSG_RESULT(missing) +fi +AC_SUBST($1)]) + diff --git a/config/.cvsignore b/config/.cvsignore new file mode 100644 index 000000000..288e9829d --- /dev/null +++ b/config/.cvsignore @@ -0,0 +1,6 @@ +Makefile +Makefile.in +z_* +*.O +*~ +configbis.wml diff --git a/config/Makefile.am b/config/Makefile.am new file mode 100644 index 000000000..9f11c0bd9 --- /dev/null +++ b/config/Makefile.am @@ -0,0 +1,24 @@ +## $Id$ + +## This file is part of the CERN Document Server Software (CDSware). +## Copyright (C) 2002 CERN. +## +## The CDSware 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. +## +## The CDSware 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 CDSware; if not, write to the Free Software Foundation, Inc., +## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +noinst_SCRIPTS=configbis.wml + +EXTRA_DIST = cdsnavbar.wml cdsnavtrail.wml cdspage.wml config.wml configbis.wml.in + +CLEANFILES = *~ $(noinst_SCRIPTS) diff --git a/config/cdsnavbar.wml b/config/cdsnavbar.wml new file mode 100644 index 000000000..578f92e8d --- /dev/null +++ b/config/cdsnavbar.wml @@ -0,0 +1,141 @@ +## $Id$ +## This file defines CDSware navbar and subnavbars. + +## This file is part of the CERN Document Server Software (CDSware). +## Copyright (C) 2002 CERN. +## +## The CDSware 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. +## +## The CDSware 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 CDSware; if not, write to the Free Software Foundation, Inc., +## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +## You probably went here from "config.wml", so let's continue with +## its numerotation of CDSware configuration parts... + +################################ +## Part 4: CDS navigation bar ## +################################ + +## The navigation bar and sub-bars are defined here. You may modify +## the definitions now, if you wish, and if you really know what you +## are doing. :-). After that return to "config.wml" file, and the +## main CDSware source directory, and type "make clean && make". + +#use wml::des::navbar + +## navbar_main: + + + + + + + + + +
+ + + + + + +
+ +
+ +## navbar_search: + + + + + + + + +
+ + + + + + +
+ +
+ +## navbar_submit: + + + + + + + + +
+ + + + + + +
+ +
+ +## navbar_personalize: + + + + + + + + +
    + + + + + + +
+ +
+ +## navbar_documentation: + + + + + + + + +
    + + + + + +
+ +
+ +## End of file. Please return to "config.wml" file, and the main CDSware +## source directory, and type "make clean && make". diff --git a/config/cdsnavtrail.wml b/config/cdsnavtrail.wml new file mode 100644 index 000000000..433fe3209 --- /dev/null +++ b/config/cdsnavtrail.wml @@ -0,0 +1,112 @@ +## $Id$ +## CERN Document Server navigation trail generation. + +## This file is part of the CERN Document Server Software (CDSware). +## Copyright (C) 2002 CERN. +## +## The CDSware 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. +## +## The CDSware 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 CDSware; if not, write to the Free Software Foundation, Inc., +## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +<: + + sub navTrail{ + + # prints out default layout of makeTrial + + $PATH = $ENV{'PWD'}; # current path + $menuitem = "title"; # TEXT taken from *.wml file + + @TITLE = &makeTrail($PATH,$ROOT); + + if ($WML_SRC_FILENAME eq "index.wml") { + pop @TITLE; + } + +:> +$(header) +<: + foreach $title(@TITLE){ + + $filename = $title . "/index.wml"; + $out = &readWMLTitle($filename,$menuitem); + if ($out) { +:> +$(prolog) +<: + print " $out"; +:> +$(epilog) +<: + } + } +:> +$(footer) +<: + } + +#<= + + sub makeTrail{ + + # returns list of relative directories in the trail + + my ($PATH,$rot) = @_; + + @DIR = split(/\//,$PATH); # PATH values of current directory to be considered + @PATH = split(/\//,$rot); # directory relative to ROOT + + if ($rot ne '.'){ # + + while (@PATH){ # at each level + $trail = pop(@DIR); # ..get its value + $path = pop(@PATH); # + push(@TRAIL,$trail); # ..and build an array of dirnames + } + @TRAIL = reverse(@TRAIL); + } + + $out = $rot; + push(@OUT,$out); + + foreach $ITEM(@TRAIL){ + $out = $out . "/" . $ITEM; + push(@OUT,$out); + } + + return @OUT ; + } + +#<= + + sub readWMLTitle($file,$key){ + + # read text from file to display in navtrail + + ($file,$key) = @_; + if(open(IN,$file)){ + $done = 0; + while($line = ){ + if((!$done) && (($out) = $line=~/$key="(.*?)"/)){ + $done = 1; + } + } + close(IN); + } + else{ + $out = ""; + } + return($out); + } + +:> diff --git a/config/cdspage.wml b/config/cdspage.wml new file mode 100644 index 000000000..360f1ac95 --- /dev/null +++ b/config/cdspage.wml @@ -0,0 +1,168 @@ +## $Id$ +## CERN Document Server general web page template. + +## This file is part of the CERN Document Server Software (CDSware). +## Copyright (C) 2002 CERN. +## +## The CDSware 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. +## +## The CDSware 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 CDSware; if not, write to the Free Software Foundation, Inc., +## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +## include local config and customization of this CDS installation: +#include "config.wml" +#include "configbis.wml" + +## include navigation trail and bar definitions: +#include "cdsnavtrail.wml" \ + header="" +#include "cdsnavbar.wml" + +## HTML header: + + + + <CDSNAME>: $(title) + + + + + + + +## CDS page header (first common, then local): + + +## CDS navigation trail: +<: + if ('$(navtrail_body)' =~ /\w/) { + print ''; + } else { + &navTrail(); + } +:> + +## CDS page content: + + + + ### Stripe 2 prolog: make some space to separate stripes + + + ### Stripe 2 epilog: make some space to separate stripes + + + +
align=left class=pagestripeleft> + ### Stripe 1: CDS page left stripe + + + + + + + +
+ + + + + ## first common "left top" CDS page box + <: if ('' =~ /\w/) { + print ''; + } + :> + ## then optional "left top" page box that each page can define on its own + <: if ('$(cdspageboxlefttopadd)' =~ /\w/) { + print ''; + } + :> +
+ ## navbar is by default in the the left top box + +
$(cdspageboxlefttopadd)
+
+ + ## first optional "left bottom" page box that each page can define on its own + <: if ('$(cdspageboxleftbottomadd)' =~ /\w/) { + print ''; + } + :> + ## then common "left bottom" CDS page box + <: if ('' =~ /\w/) { + print ''; + } + :> +
$(cdspageboxleftbottomadd)
+
+
+ + ### Stripe 2: CDS page right stripe +

$(title)

+ {#BODY#} +
+ align=right class=pagestriperight> + ### Stripe 3: CDS page right stripe + + + + + + + +
+ + ## first common "right top" CDS page box + <: if ('' =~ /\w/) { + print ''; + } + :> + ## then optional "right top" page box that each page can define on its own + <: if ('$(cdspageboxrighttopadd)' =~ /\w/) { + print ''; + } + :> +
$(cdspageboxrighttopadd)
+
+ + ## first optional "right bottom" page box that each page can define on its own + <: if ('$(cdspageboxrightbottomadd)' =~ /\w/) { + print ''; + } + :> + ## then common "right bottom" CDS page box + <: if ('' =~ /\w/) { + print ''; + } + :> +
$(cdspageboxrightbottomadd)
+
+
+ +## CDS page footer (first local, then common): + + +## CDS page ends: + + + +## by default we are in the body: +{#BODY#: diff --git a/config/config.wml b/config/config.wml new file mode 100644 index 000000000..c66d25eb6 --- /dev/null +++ b/config/config.wml @@ -0,0 +1,247 @@ +## $Id$ +## This file enables you to configure the parameters of your local CDS +## installation. It should be self-explanatory. Just go ahead and +## change the values within "define-tag" elements according to your +## needs. When done, return to the main CDSware source directory and +## type 'make'. + +## This file is part of the CERN Document Server Software (CDSware). +## Copyright (C) 2002 CERN. +## +## The CDSware 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. +## +## The CDSware 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 CDSware; if not, write to the Free Software Foundation, Inc., +## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +## ##################### +## About "config.wml" ## +## ##################### + +## This file ('config.wml') consists of several relatively independent +## configuration parts: +## Part 1: CDS internal parameters +## Part 2: CDS OAI parameters +## Part 3: CDS page elements +## Part 4: CDS navigation bar +## The configuration is done by editing the content of the "define-tag" +## WML elements below. Feel free to edit as many as you need. When done, +## return to the main CDSware source directory and type 'make'. Good luck! :-) + +##################################### +## Part 1: CDS internal parameters ## +##################################### + +## This part defines essential CDSware internal parameters that +## influence general CDSware behaviour, like the name of the server, +## the behaviour of alerting engine, etc. + +## CDSNAME -- the name of this particular CDSware installation: +## (example: "CERN Document Server") + +Max Planck Gesellschaft eDocument Server + + +## RUNTIMELOGDIR -- the dir of the CDS and OAI runtime log files: +## (example: "/log/cdsdev/cdsruntimelogs") + +/log/cdsdev/mpgruntimelogs + + +## ALERTENGINEEMAIL -- the email address from which the alert emails will appear to be send: +## (example: "cds.alert@cdsdev.cern.ch") + +cds.alert@cdsdev.cern.ch + + +## SUPPORTEMAIL -- the email address of the support team for this installation: + +cds.support@cern.ch + + +## ALERTMAXNUMDOCS -- the maximum number of document notices that the alert engine sends by email: +## (example: "50") + +50 + + +################################ +## Part 2: CDS OAI parameters ## +################################ + +## This part defines OAI parameters for the current installation of +## CDSware OAI repository. + +## OAIIDPREFIX -- OAI identifier prefix: +## (example: "oai:cerncds") + +oai:mpg + + +## OAISAMPLEIDENTIFIER -- OAI sample identifier: +## (example: "oai:mpg:101") + +oai:mpg:1001 + + +## OAIURLCONTENT -- OAI URL content: +## (example: "http://foo.com/") + +http://foo.com/ + + +## OAIMETADATAPOLICY -- OAI metadata policy: +## (example: "Free and unlimited use by anybody with obligation to refer to original record") + +Free and unlimited use by anybody with obligation to refer to original record + + +## OAIMETADATAPOLICYURL -- URL of the OAI metadata policy: +## (example: "http://foo.com/") + +http://foo.com/ + + +## OAIDATAPOLICY -- OAI data policy: +## (example: "Full content, i.e. preprints may not be harvested by robots") + +Full content, i.e. preprints may not be harvested by robots + + +## OAISUBMISSIONPOLICYURL -- OAI data policy: +## (example: "http://foo.com/") + +http://foo.com/ + + +################################ +## Part 3: CDS page elements ## +################################ + +## This part defines CDS portal-like page style and its elements. +## Here is a schematic overview of all the WML-configurable parts: +## +## +-----------------------------------------------------------------------------------------+ +## | CDSPAGEHEADER | +## | (cdspageheaderadd) | +## +-------------------------+------------------------------------+--------------------------+ +## | CDSPAGEBOXLEFTTOP | | CDSPAGEBOXRIGHTTOP | +## | (cdspageboxlefttopadd) | | (cdspageboxrighttopadd) | +## | | | | +## | | | | +## | | | | +## | | | | +## | | main page body | | +## | | | | +## | | | | +## | | | | +## | | | | +## | | | | +## | | | | +## |(cdspageboxleftbottomadd)| |(cdspageboxrightbottomadd)| +## | CDSPAGEBOXLEFTBOTTOM | | CDSPAGEBOXRIGHTBOTTOM | +## +-------------------------+------------------------------------+--------------------------+ +## | (cdspagefooteradd) | +## | CDSPAGEFOOTER | +## +-----------------------------------------------------------------------------------------+ +## +## Here, (i) the upper case elements like CDSPAGEHEADER are globally +## defined in this 'config.wml' file, see below. (ii) the lower case +## elements in parentheses like "(cdspageheaderadd)" are optional +## local add-ons that each WML page can define locally and pass to the +## global WML template as parameters. (iii) Note also that the style +## and colours of all these elements is defined in the cascading style +## sheet in the file 'htdocs/img/cds.css' that you can change at your +## will too. + +## CDSPAGEHEADER -- eventual global HTML page header: +## (example: "") + +
+ The website is in active development. + Some of its functionalities may not work fully yet. +
+
+ +## CDSPAGESTRIPEWIDTH -- width of CDS page stripe (left, right portal stripes) +## (example: "120") + +120 + + +## CDSPAGEBOXLEFTTOP -- eventual global HTML left top box: +## (example: "") + + + +## CDSPAGEBOXLEFTBOTTOM -- eventual global HTML left bottom box: +## (example: "") + + + +## CDSPAGEBOXRIGHTTOP -- eventual global HTML right top box: +## (example: "") + + + +## CDSPAGEBOXRIGHTBOTTOM -- eventual global HTML right bottom box: +## (example: "") + + + +## CDSPAGEFOOTER -- eventual global HTML page footer: +## (example: "") + +
+
+ + + + + + + + + + +
+
+ +################################ +## Part 4: CDS navigation bar ## +################################ + +## The navigation bar and sub-bars are defined in a separate +## "cdsnavbar.wml" file. You may want to modify it now, if you +## really know what you are doing. :-) + +## And this is the end of "config.wml" WML configuration phase. Now +## please return to the main CDS source directory and type 'make'. +## (Note: if you have bravely edited the "cdsnavbar.wml" file too, +## then please do "make clean" before doing "make".) + diff --git a/config/configbis.wml.in b/config/configbis.wml.in new file mode 100644 index 000000000..3034808c4 --- /dev/null +++ b/config/configbis.wml.in @@ -0,0 +1,63 @@ +## $Id$ +## DO NOT TOUCH THIS FILE -- IT WAS AUTOMATICALLY GENERATED BY AUTOCONF. +## IF YOU EDIT IT, BAD THINGS WILL HAPPEN. YOU HAVE BEEN WARNED!!! + +## This file is part of the CERN Document Server Software (CDSware). +## Copyright (C) 2002 CERN. +## +## The CDSware 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. +## +## The CDSware 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 CDSware; if not, write to the Free Software Foundation, Inc., +## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +## read autoconf parameters and define new WML tags out of them: + +@WML@ + + +@MYSQL@ + + +@PERL@ + + +@PYTHON@ + + +@HTDOCSDIR@ + + +@CGIBINDIR@ + + +@DBUTILDIR@ + + +@HTDOCSURL@ + + +@CGIBINURL@ + + +@DBHOST@ + + +@DBNAME@ + + +@DBUSER@ + + +@DBPASS@ + + + diff --git a/configure b/configure new file mode 100755 index 000000000..e676eda97 --- /dev/null +++ b/configure @@ -0,0 +1,2343 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by Autoconf 2.52 for cdsware 0.01. +# +# Report bugs to . +# +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# 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 + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` + +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 + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 + +# +# Initializations. +# +ac_default_prefix=/usr/local +cross_compiling=no +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Identity of this package. +PACKAGE_NAME='cdsware' +PACKAGE_TARNAME='cdsware' +PACKAGE_VERSION='0.01' +PACKAGE_STRING='cdsware 0.01' +PACKAGE_BUGREPORT='cds.support@cern.ch' + +ac_prev= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_option in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; + + -enable-* | --enable-*) + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "enable_$ac_feature='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package| sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "with_$ac_package='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: should be removed in autoconf 3.0. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 + { (exit 1); exit 1; }; } + else + { echo "$as_me: error: cannot find sources in $srcdir" >&2 + { (exit 1); exit 1; }; } + fi +fi +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <. +EOF +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=`pwd` + for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue + cd $ac_subdir + # A "../" for each directory in /$ac_subdir. + ac_dots=`echo $ac_subdir | + sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` + + case $srcdir in + .) # No --srcdir option. We are building in place. + ac_sub_srcdir=$srcdir ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_sub_srcdir=$srcdir/$ac_subdir ;; + *) # Relative path. + ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; + esac + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_sub_srcdir/configure.gnu; then + echo + $SHELL $ac_sub_srcdir/configure.gnu --help=recursive + elif test -f $ac_sub_srcdir/configure; then + echo + $SHELL $ac_sub_srcdir/configure --help=recursive + elif test -f $ac_sub_srcdir/configure.ac || + test -f $ac_sub_srcdir/configure.in; then + echo + $ac_configure --help + else + echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\EOF +cdsware configure 0.01 +generated by GNU Autoconf 2.52 + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +EOF + exit 0 +fi +exec 5>config.log +cat >&5 </dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +PATH = $PATH + +_ASUNAME +} >&5 + +cat >&5 <\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + ac_sep=" " ;; + *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" + ac_sep=" " ;; + esac + # Get rid of the leading space. +done + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + echo >&5 + echo "## ----------------- ##" >&5 + echo "## Cache variables. ##" >&5 + echo "## ----------------- ##" >&5 + echo >&5 + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} >&5 + sed "/^$/d" confdefs.h >conftest.log + if test -s conftest.log; then + echo >&5 + echo "## ------------ ##" >&5 + echo "## confdefs.h. ##" >&5 + echo "## ------------ ##" >&5 + echo >&5 + cat conftest.log >&5 + fi + (echo; echo) >&5 + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" >&5 + echo "$as_me: exit $exit_status" >&5 + rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >confdefs.h + +# Let the site file select an alternate cache file if it wants to. +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + { echo "$as_me:815: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + cat "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { echo "$as_me:826: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . $cache_file;; + *) . ./$cache_file;; + esac + fi +else + { echo "$as_me:834: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val="\$ac_cv_env_${ac_var}_value" + eval ac_new_val="\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:850: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:854: error: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:860: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:862: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:864: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. It doesn't matter if + # we pass some twice (in addition to the command line arguments). + if test "$ac_new_set" = set; then + case $ac_new_val in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args '$ac_arg'" + ;; + *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" + ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:883: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:885: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +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 +echo "#! $SHELL" >conftest.sh +echo "exit 0" >>conftest.sh +chmod +x conftest.sh +if { (echo "$as_me:905: PATH=\".;.\"; conftest.sh") >&5 + (PATH=".;."; conftest.sh) 2>&5 + ac_status=$? + echo "$as_me:908: \$? = $ac_status" >&5 + (exit $ac_status); }; then + ac_path_separator=';' +else + ac_path_separator=: +fi +PATH_SEPARATOR="$ac_path_separator" +rm -f conftest.sh + +ac_aux_dir= +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f $ac_dir/shtool; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { { echo "$as_me:934: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} + { (exit 1); exit 1; }; } +fi +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:954: checking for a BSD compatible install" >&5 +echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_save_IFS=$IFS; IFS=$ac_path_separator + for ac_dir in $PATH; do + IFS=$ac_save_IFS + # Account for people who put trailing slashes in PATH elements. + case $ac_dir/ in + / | ./ | .// | /cC/* \ + | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ + | /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if $as_executable_p "$ac_dir/$ac_prog"; then + if test $ac_prog = install && + grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:1003: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +echo "$as_me:1014: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 +# Just in case +sleep 1 +echo timestamp > conftestfile +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftestfile` + fi + if test "$*" != "X $srcdir/configure conftestfile" \ + && test "$*" != "X conftestfile $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { { echo "$as_me:1037: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&5 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" = conftestfile + ) +then + # Ok. + : +else + { { echo "$as_me:1050: error: newly created file is older than distributed files! +Check your system clock" >&5 +echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +rm -f conftest* +echo "$as_me:1057: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +test "$program_prefix" != NONE && + program_transform_name="s,^,$program_prefix,;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s,\$,$program_suffix,;$program_transform_name" +# Double any \ or $. echo might interpret backslashes. +# By default was `s,x,x', remove it if useless. +cat <<\_ACEOF >conftest.sed +s/[\\$]/&&/g;s/;s,x,x,$// +_ACEOF +program_transform_name=`echo $program_transform_name | sed -f conftest.sed` +rm conftest.sed + +echo "$as_me:1072: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftest.make +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$as_me:1092: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + SET_MAKE= +else + echo "$as_me:1096: result: no" >&5 +echo "${ECHO_T}no" >&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + +PACKAGE=cdsware + +VERSION=0.01 + +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then + { { echo "$as_me:1106: error: source directory already configured; run \"make distclean\" there first" >&5 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} + { (exit 1); exit 1; }; } +fi + +cat >>confdefs.h <>confdefs.h <&5 +echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (aclocal --version) < /dev/null > /dev/null 2>&1; then + ACLOCAL=aclocal + echo "$as_me:1127: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + ACLOCAL="$missing_dir/missing aclocal" + echo "$as_me:1131: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + +echo "$as_me:1135: checking for working autoconf" >&5 +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (autoconf --version) < /dev/null > /dev/null 2>&1; then + AUTOCONF=autoconf + echo "$as_me:1142: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + AUTOCONF="$missing_dir/missing autoconf" + echo "$as_me:1146: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + +echo "$as_me:1150: checking for working automake" >&5 +echo $ECHO_N "checking for working automake... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (automake --version) < /dev/null > /dev/null 2>&1; then + AUTOMAKE=automake + echo "$as_me:1157: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + AUTOMAKE="$missing_dir/missing automake" + echo "$as_me:1161: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + +echo "$as_me:1165: checking for working autoheader" >&5 +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (autoheader --version) < /dev/null > /dev/null 2>&1; then + AUTOHEADER=autoheader + echo "$as_me:1172: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + AUTOHEADER="$missing_dir/missing autoheader" + echo "$as_me:1176: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + +echo "$as_me:1180: checking for working makeinfo" >&5 +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (makeinfo --version) < /dev/null > /dev/null 2>&1; then + MAKEINFO=makeinfo + echo "$as_me:1187: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + MAKEINFO="$missing_dir/missing makeinfo" + echo "$as_me:1191: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:1207: checking for a BSD compatible install" >&5 +echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_save_IFS=$IFS; IFS=$ac_path_separator + for ac_dir in $PATH; do + IFS=$ac_save_IFS + # Account for people who put trailing slashes in PATH elements. + case $ac_dir/ in + / | ./ | .// | /cC/* \ + | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ + | /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if $as_executable_p "$ac_dir/$ac_prog"; then + if test $ac_prog = install && + grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:1256: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +# Extract the first word of "wml", so it can be a program name with args. +set dummy wml; ac_word=$2 +echo "$as_me:1269: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_WML+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $WML in + [\\/]* | ?:[\\/]*) + ac_cv_path_WML="$WML" # Let the user override the test with a path. + ;; + *) + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_WML="$ac_dir/$ac_word" + echo "$as_me:1286: found $ac_dir/$ac_word" >&5 + break +fi +done + + ;; +esac +fi +WML=$ac_cv_path_WML + +if test -n "$WML"; then + echo "$as_me:1297: result: $WML" >&5 +echo "${ECHO_T}$WML" >&6 +else + echo "$as_me:1300: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +if test -z "$WML"; then + { { echo "$as_me:1305: error: + WML (Website META Language) is required. Available from ." >&5 +echo "$as_me: error: + WML (Website META Language) is required. Available from ." >&2;} + { (exit 1); exit 1; }; } +fi + +# Extract the first word of "mysql", so it can be a program name with args. +set dummy mysql; ac_word=$2 +echo "$as_me:1314: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_MYSQL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $MYSQL in + [\\/]* | ?:[\\/]*) + ac_cv_path_MYSQL="$MYSQL" # Let the user override the test with a path. + ;; + *) + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_MYSQL="$ac_dir/$ac_word" + echo "$as_me:1331: found $ac_dir/$ac_word" >&5 + break +fi +done + + ;; +esac +fi +MYSQL=$ac_cv_path_MYSQL + +if test -n "$MYSQL"; then + echo "$as_me:1342: result: $MYSQL" >&5 +echo "${ECHO_T}$MYSQL" >&6 +else + echo "$as_me:1345: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +if test -z "$MYSQL"; then + { { echo "$as_me:1350: error: + MySQL client is required. Available from ." >&5 +echo "$as_me: error: + MySQL client is required. Available from ." >&2;} + { (exit 1); exit 1; }; } +fi + +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +echo "$as_me:1359: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_PERL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_PERL="$ac_dir/$ac_word" + echo "$as_me:1376: found $ac_dir/$ac_word" >&5 + break +fi +done + + ;; +esac +fi +PERL=$ac_cv_path_PERL + +if test -n "$PERL"; then + echo "$as_me:1387: result: $PERL" >&5 +echo "${ECHO_T}$PERL" >&6 +else + echo "$as_me:1390: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +if test -z "$PERL"; then + { { echo "$as_me:1395: error: + Perl is required. Available from ." >&5 +echo "$as_me: error: + Perl is required. Available from ." >&2;} + { (exit 1); exit 1; }; } +fi + +# Extract the first word of "python", so it can be a program name with args. +set dummy python; ac_word=$2 +echo "$as_me:1404: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_PYTHON+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $PYTHON in + [\\/]* | ?:[\\/]*) + ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. + ;; + *) + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_PYTHON="$ac_dir/$ac_word" + echo "$as_me:1421: found $ac_dir/$ac_word" >&5 + break +fi +done + + ;; +esac +fi +PYTHON=$ac_cv_path_PYTHON + +if test -n "$PYTHON"; then + echo "$as_me:1432: result: $PYTHON" >&5 +echo "${ECHO_T}$PYTHON" >&6 +else + echo "$as_me:1435: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +if test -z "$PYTHON"; then + { { echo "$as_me:1440: error: + Python is required. Available from ." >&5 +echo "$as_me: error: + Python is required. Available from ." >&2;} + { (exit 1); exit 1; }; } +fi + +# Check whether --with-htdocsdir or --without-htdocsdir was given. +if test "${with_htdocsdir+set}" = set; then + withval="$with_htdocsdir" + HTDOCSDIR=${withval} +fi; +if test -z "$HTDOCSDIR"; then + { { echo "$as_me:1453: error: + You have not used \"--with-htdocsdir\" argument that defines the installation directory for HTML documents. + Example: \"--with-htdocsdir=/soft/httpd/host/cdsdev/htdocs/MPI/\"." >&5 +echo "$as_me: error: + You have not used \"--with-htdocsdir\" argument that defines the installation directory for HTML documents. + Example: \"--with-htdocsdir=/soft/httpd/host/cdsdev/htdocs/MPI/\"." >&2;} + { (exit 1); exit 1; }; } +fi + +# Check whether --with-cgibindir or --without-cgibindir was given. +if test "${with_cgibindir+set}" = set; then + withval="$with_cgibindir" + CGIBINDIR=${withval} +fi; +if test -z "$CGIBINDIR"; then + { { echo "$as_me:1468: error: + You have not used \"--with-cgibindir\" argument that defines the installation directory for CGI scripts. + Example: \"--with-cgibindir=/soft/httpd/host/cdsdev/cgi-bin/MPI/\"." >&5 +echo "$as_me: error: + You have not used \"--with-cgibindir\" argument that defines the installation directory for CGI scripts. + Example: \"--with-cgibindir=/soft/httpd/host/cdsdev/cgi-bin/MPI/\"." >&2;} + { (exit 1); exit 1; }; } +fi + +# Check whether --with-dbutildir or --without-dbutildir was given. +if test "${with_dbutildir+set}" = set; then + withval="$with_dbutildir" + DBUTILDIR=${withval} +fi; +if test -z "$DBUTILDIR"; then + { { echo "$as_me:1483: error: + You have not used \"--with-dbutil\" argument that defines the installation directory for DB utilitites. + Example: \"--with-dbutildir=/usr/local/bin/MPI/\"." >&5 +echo "$as_me: error: + You have not used \"--with-dbutil\" argument that defines the installation directory for DB utilitites. + Example: \"--with-dbutildir=/usr/local/bin/MPI/\"." >&2;} + { (exit 1); exit 1; }; } +fi + +# Check whether --with-htdocsurl or --without-htdocsurl was given. +if test "${with_htdocsurl+set}" = set; then + withval="$with_htdocsurl" + HTDOCSURL=${withval} +fi; +if test -z "$HTDOCSURL"; then + { { echo "$as_me:1498: error: + You have not used \"--with-htdocsurl\" argument that defines the URL where the HTML documents will be reached. + Example: \"--with-htdocsurl=http://cdsdev.cern.ch/MPI/\"." >&5 +echo "$as_me: error: + You have not used \"--with-htdocsurl\" argument that defines the URL where the HTML documents will be reached. + Example: \"--with-htdocsurl=http://cdsdev.cern.ch/MPI/\"." >&2;} + { (exit 1); exit 1; }; } +fi + +# Check whether --with-cgibinurl or --without-cgibinurl was given. +if test "${with_cgibinurl+set}" = set; then + withval="$with_cgibinurl" + CGIBINURL=${withval} +fi; +if test -z "$CGIBINURL"; then + { { echo "$as_me:1513: error: + You have not used \"--with-cgibinurl\" argument that defines the URL where the HTML documents will be reached. + Example: \"--with-cgibinurl=http://cdsdev.cern.ch/cgi-bin/MPI/\"." >&5 +echo "$as_me: error: + You have not used \"--with-cgibinurl\" argument that defines the URL where the HTML documents will be reached. + Example: \"--with-cgibinurl=http://cdsdev.cern.ch/cgi-bin/MPI/\"." >&2;} + { (exit 1); exit 1; }; } +fi + +# Check whether --with-dbhost or --without-dbhost was given. +if test "${with_dbhost+set}" = set; then + withval="$with_dbhost" + DBHOST=${withval} +fi; +if test -z "$DBHOST"; then + { { echo "$as_me:1528: error: + You have not used \"--with-dbhost\" argument that defines which DB server to use. + Example: \"--with-dbhost=cdsdb.cern.ch\"." >&5 +echo "$as_me: error: + You have not used \"--with-dbhost\" argument that defines which DB server to use. + Example: \"--with-dbhost=cdsdb.cern.ch\"." >&2;} + { (exit 1); exit 1; }; } +fi + +# Check whether --with-dbname or --without-dbname was given. +if test "${with_dbname+set}" = set; then + withval="$with_dbname" + DBNAME=${withval} +fi; +if test -z "$DBNAME"; then + { { echo "$as_me:1543: error: + You have not used \"--with-dbname\" argument that defines CDSware database name. + Example: \"--with-dbname=cdsware\"." >&5 +echo "$as_me: error: + You have not used \"--with-dbname\" argument that defines CDSware database name. + Example: \"--with-dbname=cdsware\"." >&2;} + { (exit 1); exit 1; }; } +fi + +# Check whether --with-dbuser or --without-dbuser was given. +if test "${with_dbuser+set}" = set; then + withval="$with_dbuser" + DBUSER=${withval} +fi; +if test -z "$DBUSER"; then + { { echo "$as_me:1558: error: + You have not used \"--with-dbuser\" argument that defines DB user name. + Example: \"--with-dbuser=cdsware\"." >&5 +echo "$as_me: error: + You have not used \"--with-dbuser\" argument that defines DB user name. + Example: \"--with-dbuser=cdsware\"." >&2;} + { (exit 1); exit 1; }; } +fi + +# Check whether --with-dbpass or --without-dbpass was given. +if test "${with_dbpass+set}" = set; then + withval="$with_dbpass" + DBPASS=${withval} +fi; +if test -z "$DBPASS"; then + { { echo "$as_me:1573: error: + You have not used \"--with-dbpass\" argument that defines DB user password. + Example: \"--with-dbpass=myp1ss\"." >&5 +echo "$as_me: error: + You have not used \"--with-dbpass\" argument that defines DB user password. + Example: \"--with-dbpass=myp1ss\"." >&2;} + { (exit 1); exit 1; }; } +fi + +ac_config_commands="$ac_config_commands default-1" + +ac_config_commands="$ac_config_commands default-2" + +ac_config_commands="$ac_config_commands default-3" + +ac_config_commands="$ac_config_commands default-4" + +ac_config_commands="$ac_config_commands default-5" + +ac_config_commands="$ac_config_commands default-6" + +ac_config_commands="$ac_config_commands default-7" + +ac_config_commands="$ac_config_commands default-8" + +ac_config_commands="$ac_config_commands default-9" + +ac_config_commands="$ac_config_commands default-10" + +ac_config_commands="$ac_config_commands default-11" + +ac_config_commands="$ac_config_commands default-12" + +ac_config_commands="$ac_config_commands default-13" + +ac_config_commands="$ac_config_commands default-14" + +ac_config_commands="$ac_config_commands default-15" + +ac_config_commands="$ac_config_commands default-16" + +ac_config_commands="$ac_config_commands default-17" + +ac_config_commands="$ac_config_commands default-18" + +ac_config_commands="$ac_config_commands default-19" + +ac_config_commands="$ac_config_commands default-20" + +ac_config_files="$ac_config_files Makefile config/Makefile config/configbis.wml cgibin/Makefile dbutil/Makefile htdocs/Makefile htdocs/img/Makefile htdocs/submit/Makefile htdocs/personalize/Makefile htdocs/docs/Makefile htdocs/admin/Makefile" +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overriden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +{ + (set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + : end' >>confcache +if cmp -s $cache_file confcache; then :; else + if test -w $cache_file; then + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" + cat confcache >$cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' +fi + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then we branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +cat >confdef2opt.sed <<\EOF +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g +t quote +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g +t quote +d +: quote +s,[ `~#$^&*(){}\\|;'"<>?],\\&,g +s,\[,\\&,g +s,\],\\&,g +s,\$,$$,g +p +EOF +# We use echo to avoid assuming a particular line-breaking character. +# The extra dot is to prevent the shell from consuming trailing +# line-breaks from the sub-command output. A line-break within +# single-quotes doesn't work because, if this script is created in a +# platform that uses two characters for line-breaks (e.g., DOS), tr +# would break. +ac_LF_and_DOT=`echo; echo .` +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` +rm -f confdef2opt.sed + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:1732: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL +# Generated automatically 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 +SHELL=\${CONFIG_SHELL-$SHELL} +ac_cs_invocation="\$0 \$@" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` + +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 + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +exec 6>&1 + +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\EOF + +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 + -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 + +Configuration files: +$config_files + +Configuration commands: +$config_commands + +Report bugs to ." +EOF + +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +# 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[^=]*=\(.*\)'` + shift + set dummy "$ac_option" "$ac_optarg" ${1+"$@"} + shift + ;; + -*);; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_need_defaults=false;; + esac + + case $1 in + # Handling of the options. +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:1903: 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 ) + shift + CONFIG_FILES="$CONFIG_FILES $1" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + shift + CONFIG_HEADERS="$CONFIG_HEADERS $1" + ac_need_defaults=false;; + + # This is an error. + -*) { { echo "$as_me:1922: 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 + +exec 5>>config.log +cat >&5 << _ACEOF + +## ----------------------- ## +## Running config.status. ## +## ----------------------- ## + +This file was extended by $as_me (cdsware 0.01) 2.52, executed with + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + > $ac_cs_invocation +on `(hostname || uname -n) 2>/dev/null | sed 1q` + +_ACEOF +EOF + +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; + "config/configbis.wml" ) CONFIG_FILES="$CONFIG_FILES config/configbis.wml" ;; + "cgibin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgibin/Makefile" ;; + "dbutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbutil/Makefile" ;; + "htdocs/Makefile" ) CONFIG_FILES="$CONFIG_FILES htdocs/Makefile" ;; + "htdocs/img/Makefile" ) CONFIG_FILES="$CONFIG_FILES htdocs/img/Makefile" ;; + "htdocs/submit/Makefile" ) CONFIG_FILES="$CONFIG_FILES htdocs/submit/Makefile" ;; + "htdocs/personalize/Makefile" ) CONFIG_FILES="$CONFIG_FILES htdocs/personalize/Makefile" ;; + "htdocs/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES htdocs/docs/Makefile" ;; + "htdocs/admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES htdocs/admin/Makefile" ;; + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; + "default-3" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;; + "default-4" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-4" ;; + "default-5" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-5" ;; + "default-6" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-6" ;; + "default-7" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-7" ;; + "default-8" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-8" ;; + "default-9" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-9" ;; + "default-10" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-10" ;; + "default-11" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-11" ;; + "default-12" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-12" ;; + "default-13" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-13" ;; + "default-14" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-14" ;; + "default-15" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-15" ;; + "default-16" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-16" ;; + "default-17" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-17" ;; + "default-18" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-18" ;; + "default-19" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-19" ;; + "default-20" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-20" ;; + *) { { echo "$as_me:2005: 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_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# 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. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/cs$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + +EOF + +cat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@build_alias@,$build_alias,;t t +s,@host_alias@,$host_alias,;t t +s,@target_alias@,$target_alias,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@DEFS@,$DEFS,;t t +s,@LIBS@,$LIBS,;t t +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@PACKAGE@,$PACKAGE,;t t +s,@VERSION@,$VERSION,;t t +s,@ACLOCAL@,$ACLOCAL,;t t +s,@AUTOCONF@,$AUTOCONF,;t t +s,@AUTOMAKE@,$AUTOMAKE,;t t +s,@AUTOHEADER@,$AUTOHEADER,;t t +s,@MAKEINFO@,$MAKEINFO,;t t +s,@SET_MAKE@,$SET_MAKE,;t t +s,@WML@,$WML,;t t +s,@MYSQL@,$MYSQL,;t t +s,@PERL@,$PERL,;t t +s,@PYTHON@,$PYTHON,;t t +s,@HTDOCSDIR@,$HTDOCSDIR,;t t +s,@CGIBINDIR@,$CGIBINDIR,;t t +s,@DBUTILDIR@,$DBUTILDIR,;t t +s,@HTDOCSURL@,$HTDOCSURL,;t t +s,@CGIBINURL@,$CGIBINURL,;t t +s,@DBHOST@,$DBHOST,;t t +s,@DBNAME@,$DBNAME,;t t +s,@DBUSER@,$DBUSER,;t t +s,@DBPASS@,$DBPASS,;t t +CEOF + +EOF + + cat >>$CONFIG_STATUS <<\EOF + # 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" + +EOF +cat >>$CONFIG_STATUS <<\EOF +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=`$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 test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + { case "$ac_dir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="$ac_dir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; + *) + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` + else + ac_dir_suffix= ac_dots= + fi + + case $srcdir in + .) ac_srcdir=. + if test -z "$ac_dots"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_dots$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_dots$srcdir ;; + esac + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_dots$INSTALL ;; + esac + + if test x"$ac_file" != x-; then + { echo "$as_me:2224: 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 automatically by config.status. */ + configure_input="Generated automatically 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:2242: 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:2255: 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; } +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@srcdir@,$ac_srcdir,;t t +s,@top_srcdir@,$ac_top_srcdir,;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 +EOF +cat >>$CONFIG_STATUS <<\EOF + +# +# 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,[^:]*:,,'` + + case $ac_dest in + default-1 ) echo "*******************************************************************************" ;; + default-2 ) echo "Good, the CERN Document Server Software (CDSware) is now ready for installation!" ;; + default-3 ) echo "You have entered the following parameters:" ;; + default-4 ) echo " * HTML documents install directory: $X1" ;; + default-5 ) echo " * CGI scripts install directory: $X2" ;; + default-6 ) echo " * DB utilities install directory: $X3" ;; + default-7 ) echo " * HTML documents home URL: $X4" ;; + default-8 ) echo " * CGI scripts home URL: $X5" ;; + default-9 ) echo " * DB server: $X6" ;; + default-10 ) echo " * DB table name: $X7" ;; + default-11 ) echo " * DB username: $X8" ;; + default-12 ) echo " * DB password: $X9" ;; + default-13 ) echo "Here are the steps to continue the building process:" ;; + default-14 ) echo " - Firstly, customize the self-explanatory config file './config/config.wml'." ;; + default-15 ) echo " - Secondly, type 'make' to build your customized CDSware installation." ;; + default-16 ) echo " - Thirdly, type 'make create-tables' if you have not created CDSware tables yet." ;; + default-17 ) echo " - Finally, type 'make install' to install the system." ;; + default-18 ) echo "Good luck, and thanks for choosing the CERN Document Server Software." ;; + default-19 ) echo " -- CDSware Development Group " ;; + default-20 ) echo "*******************************************************************************" ;; + esac +done +EOF + +cat >>$CONFIG_STATUS <<\EOF + +{ (exit 0); exit 0; } +EOF +chmod +x $CONFIG_STATUS +ac_clean_files=$ac_clean_files_save + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + exec 5>/dev/null + $SHELL $CONFIG_STATUS || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi + +## end of file diff --git a/configure.ac b/configure.ac new file mode 100644 index 000000000..0093aafc2 --- /dev/null +++ b/configure.ac @@ -0,0 +1,181 @@ +## $Id$ +## Purpose: CERN Document Server Software (CDSware) main configure.ac file. +## Note: If you change this file, please run "autoreconf" to regenerate the "configure" script. + +## This file is part of the CERN Document Server Software (CDSware). +## Copyright (C) 2002 CERN. +## +## The CDSware 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. +## +## The CDSware 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 CDSware; if not, write to the Free Software Foundation, Inc., +## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +dnl Initialize autoconf and automake: +AC_INIT(cdsware, 0.01, cds.support@cern.ch) +AM_INIT_AUTOMAKE(cdsware, 0.01) + +dnl Check for install: +AC_PROG_INSTALL + +dnl Check for WML: +AC_PATH_PROG(WML, wml) +if test -z "$WML"; then + AC_MSG_ERROR([ + WML (Website META Language) is required. Available from .]) +fi + +dnl Check for MySQL client: +AC_PATH_PROG(MYSQL, mysql) +if test -z "$MYSQL"; then + AC_MSG_ERROR([ + MySQL client is required. Available from .]) +fi + +dnl Check for Perl: +AC_PATH_PROG(PERL, perl) +if test -z "$PERL"; then + AC_MSG_ERROR([ + Perl is required. Available from .]) +fi + +dnl Check for Python: +AC_PATH_PROG(PYTHON, python) +if test -z "$PYTHON"; then + AC_MSG_ERROR([ + Python is required. Available from .]) +fi + +dnl Define HTDOCSDIR directory: +AC_ARG_WITH(htdocsdir, AC_HELP_STRING([--with-htdocsdir], [specify where htdocs files go (e.g. /soft/httpd/host/cdsdev/htdocs/MPI/)]), HTDOCSDIR=${withval}) +if test -z "$HTDOCSDIR"; then + AC_MSG_ERROR([ + You have not used "--with-htdocsdir" argument that defines the installation directory for HTML documents. + Example: "--with-htdocsdir=/soft/httpd/host/cdsdev/htdocs/MPI/".]) +fi + +dnl Define CGIBIDIR directory: +AC_ARG_WITH(cgibindir, AC_HELP_STRING([--with-cgibindir], [specify where cgibin files go (e.g. /soft/httpd/host/cdsdev/cgi-bin/MPI/)]), CGIBINDIR=${withval}) +if test -z "$CGIBINDIR"; then + AC_MSG_ERROR([ + You have not used "--with-cgibindir" argument that defines the installation directory for CGI scripts. + Example: "--with-cgibindir=/soft/httpd/host/cdsdev/cgi-bin/MPI/".]) +fi + +dnl Define DBUTILDIR directory: +AC_ARG_WITH(dbutildir, AC_HELP_STRING([--with-dbutildir], [specify where dbutil files go (e.g. /usr/local/bin/MPI/)]), DBUTILDIR=${withval}) +if test -z "$DBUTILDIR"; then + AC_MSG_ERROR([ + You have not used "--with-dbutil" argument that defines the installation directory for DB utilitites. + Example: "--with-dbutildir=/usr/local/bin/MPI/".]) +fi + +dnl Define HTDOCSURL URL: +AC_ARG_WITH(htdocsurl, AC_HELP_STRING([--with-htdocsurl], [specify URL where htdocs files will be reached (e.g. http://cdsdev.cern.ch/MPI/)]), HTDOCSURL=${withval}) +if test -z "$HTDOCSURL"; then + AC_MSG_ERROR([ + You have not used "--with-htdocsurl" argument that defines the URL where the HTML documents will be reached. + Example: "--with-htdocsurl=http://cdsdev.cern.ch/MPI/".]) +fi + +dnl Define CGIBINURL URL: +AC_ARG_WITH(cgibinurl, AC_HELP_STRING([--with-cgibinurl], [specify URL where CGI scripts will be reached (e.g. http://cdsdev.cern.ch/cgi-bin/MPI/)]), CGIBINURL=${withval}) +if test -z "$CGIBINURL"; then + AC_MSG_ERROR([ + You have not used "--with-cgibinurl" argument that defines the URL where the HTML documents will be reached. + Example: "--with-cgibinurl=http://cdsdev.cern.ch/cgi-bin/MPI/".]) +fi + +dnl Define DBHOST database host: +AC_ARG_WITH(dbhost, AC_HELP_STRING([--with-dbhost], [specify DB server (e.g. cdsdb.cern.ch)]), DBHOST=${withval}) +if test -z "$DBHOST"; then + AC_MSG_ERROR([ + You have not used "--with-dbhost" argument that defines which DB server to use. + Example: "--with-dbhost=cdsdb.cern.ch".]) +fi + +dnl Define DBNAME database name: +AC_ARG_WITH(dbname, AC_HELP_STRING([--with-dbname], [specify DB name (e.g. cdsware)]), DBNAME=${withval}) +if test -z "$DBNAME"; then + AC_MSG_ERROR([ + You have not used "--with-dbname" argument that defines CDSware database name. + Example: "--with-dbname=cdsware".]) +fi + +dnl Define DBUSER user name: +AC_ARG_WITH(dbuser, AC_HELP_STRING([--with-dbuser], [specify DB user name (e.g. cdsware)]), DBUSER=${withval}) +if test -z "$DBUSER"; then + AC_MSG_ERROR([ + You have not used "--with-dbuser" argument that defines DB user name. + Example: "--with-dbuser=cdsware".]) +fi + +dnl Define DBPASS user password: +AC_ARG_WITH(dbpass, AC_HELP_STRING([--with-dbpass], [specify DB user password (e.g. myp1ss)]), DBPASS=${withval}) +if test -z "$DBPASS"; then + AC_MSG_ERROR([ + You have not used "--with-dbpass" argument that defines DB user password. + Example: "--with-dbpass=myp1ss".]) +fi + +dnl Test supplied DB user credentials: + +dnl Substitute variables: +AC_SUBST(WML) +AC_SUBST(MYSQL) +AC_SUBST(PERL) +AC_SUBST(PYTHON) +AC_SUBST(HTDOCSDIR) +AC_SUBST(CGIBINDIR) +AC_SUBST(DBUTILDIR) +AC_SUBST(HTDOCSURL) +AC_SUBST(CGIBINURL) +AC_SUBST(DBHOST) +AC_SUBST(DBNAME) +AC_SUBST(DBUSER) +AC_SUBST(DBPASS) + +dnl Write help: +AC_OUTPUT_COMMANDS([echo "*******************************************************************************"]) +AC_OUTPUT_COMMANDS([echo "Good, the CERN Document Server Software (CDSware) is now ready for installation!"]) +AC_OUTPUT_COMMANDS([echo "You have entered the following parameters:"]) +AC_OUTPUT_COMMANDS([echo " * HTML documents install directory: $X1"],X1=$HTDOCSDIR) +AC_OUTPUT_COMMANDS([echo " * CGI scripts install directory: $X2"],X2=$CGIBINDIR) +AC_OUTPUT_COMMANDS([echo " * DB utilities install directory: $X3"],X3=$DBUTILDIR) +AC_OUTPUT_COMMANDS([echo " * HTML documents home URL: $X4"],X4=$HTDOCSURL) +AC_OUTPUT_COMMANDS([echo " * CGI scripts home URL: $X5"],X5=$CGIBINURL) +AC_OUTPUT_COMMANDS([echo " * DB server: $X6"],X6=$DBHOST) +AC_OUTPUT_COMMANDS([echo " * DB table name: $X7"],X7=$DBNAME) +AC_OUTPUT_COMMANDS([echo " * DB username: $X8"],X8=$DBUSER) +AC_OUTPUT_COMMANDS([echo " * DB password: $X9"],X9=$DBPASS) +AC_OUTPUT_COMMANDS([echo "Here are the steps to continue the building process:"]) +AC_OUTPUT_COMMANDS([echo " - Firstly, customize the self-explanatory config file './config/config.wml'."]) +AC_OUTPUT_COMMANDS([echo " - Secondly, type 'make' to build your customized CDSware installation."]) +AC_OUTPUT_COMMANDS([echo " - Thirdly, type 'make create-tables' if you have not created CDSware tables yet."]) +AC_OUTPUT_COMMANDS([echo " - Finally, type 'make install' to install the system."]) +AC_OUTPUT_COMMANDS([echo "Good luck, and thanks for choosing the CERN Document Server Software."]) +AC_OUTPUT_COMMANDS([echo " -- CDSware Development Group "]) +AC_OUTPUT_COMMANDS([echo "*******************************************************************************"]) + +dnl Write output files: +AC_OUTPUT(Makefile \ + config/Makefile \ + config/configbis.wml \ + cgibin/Makefile \ + dbutil/Makefile \ + htdocs/Makefile \ + htdocs/img/Makefile \ + htdocs/submit/Makefile \ + htdocs/personalize/Makefile \ + htdocs/docs/Makefile \ + htdocs/admin/Makefile) + +## end of file diff --git a/install-sh b/install-sh new file mode 100755 index 000000000..e9de23842 --- /dev/null +++ b/install-sh @@ -0,0 +1,251 @@ +#!/bin/sh +# +# install - install a program, script, or datafile +# This comes from X11R5 (mit/util/scripts/install.sh). +# +# Copyright 1991 by the Massachusetts Institute of Technology +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of M.I.T. not be used in advertising or +# publicity pertaining to distribution of the software without specific, +# written prior permission. M.I.T. makes no representations about the +# suitability of this software for any purpose. It is provided "as is" +# without express or implied warranty. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +transformbasename="" +transform_arg="" +instcmd="$mvprog" +chmodcmd="$chmodprog 0755" +chowncmd="" +chgrpcmd="" +stripcmd="" +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src="" +dst="" +dir_arg="" + +while [ x"$1" != x ]; do + case $1 in + -c) instcmd="$cpprog" + shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd="$stripprog" + shift + continue;; + + -t=*) transformarg=`echo $1 | sed 's/-t=//'` + shift + continue;; + + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` + shift + continue;; + + *) if [ x"$src" = x ] + then + src=$1 + else + # this colon is to work around a 386BSD /bin/sh bug + : + dst=$1 + fi + shift + continue;; + esac +done + +if [ x"$src" = x ] +then + echo "install: no input file specified" + exit 1 +else + true +fi + +if [ x"$dir_arg" != x ]; then + dst=$src + src="" + + if [ -d $dst ]; then + instcmd=: + chmodcmd="" + else + instcmd=mkdir + fi +else + +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command +# might cause directories to be created, which would be especially bad +# if $src (and thus $dsttmp) contains '*'. + + if [ -f $src -o -d $src ] + then + true + else + echo "install: $src does not exist" + exit 1 + fi + + if [ x"$dst" = x ] + then + echo "install: no destination specified" + exit 1 + else + true + fi + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logic + + if [ -d $dst ] + then + dst="$dst"/`basename $src` + else + true + fi +fi + +## this sed command emulates the dirname command +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + +# Make sure that the destination directory exists. +# this part is taken from Noah Friedman's mkinstalldirs script + +# Skip lots of stat calls in the usual case. +if [ ! -d "$dstdir" ]; then +defaultIFS=' +' +IFS="${IFS-${defaultIFS}}" + +oIFS="${IFS}" +# Some sh's can't handle IFS=/ for some reason. +IFS='%' +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` +IFS="${oIFS}" + +pathcomp='' + +while [ $# -ne 0 ] ; do + pathcomp="${pathcomp}${1}" + shift + + if [ ! -d "${pathcomp}" ] ; + then + $mkdirprog "${pathcomp}" + else + true + fi + + pathcomp="${pathcomp}/" +done +fi + +if [ x"$dir_arg" != x ] +then + $doit $instcmd $dst && + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi +else + +# If we're going to rename the final executable, determine the name now. + + if [ x"$transformarg" = x ] + then + dstfile=`basename $dst` + else + dstfile=`basename $dst $transformbasename | + sed $transformarg`$transformbasename + fi + +# don't allow the sed command to completely eliminate the filename + + if [ x"$dstfile" = x ] + then + dstfile=`basename $dst` + else + true + fi + +# Make a temp file name in the proper directory. + + dsttmp=$dstdir/#inst.$$# + +# Move or copy the file name to the temp name + + $doit $instcmd $src $dsttmp && + + trap "rm -f ${dsttmp}" 0 && + +# and set any options; do chmod last to preserve setuid bits + +# If any of these fail, we abort the whole thing. If we want to +# ignore errors from any of these, just make sure not to ignore +# errors from the above "$doit $instcmd $src $dsttmp" command. + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && + +# Now rename the file to the real destination. + + $doit $rmcmd -f $dstdir/$dstfile && + $doit $mvcmd $dsttmp $dstdir/$dstfile + +fi && + + +exit 0 diff --git a/missing b/missing new file mode 100755 index 000000000..7789652e8 --- /dev/null +++ b/missing @@ -0,0 +1,190 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. +# Copyright (C) 1996, 1997 Free Software Foundation, Inc. +# Franc,ois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +case "$1" in + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + yacc create \`y.tab.[ch]', if possible, from existing .[ch]" + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing - GNU libit 0.0" + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + + aclocal) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acinclude.m4' or \`configure.in'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`configure.in'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acconfig.h' or \`configure.in'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case "$f" in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if [ ! -f y.tab.h ]; then + echo >y.tab.h + fi + if [ ! -f y.tab.c ]; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if [ ! -f lex.yy.c ]; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + makeinfo) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` + fi + touch $file + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and you do not seem to have it handy on your + system. You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequirements for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 diff --git a/mkinstalldirs b/mkinstalldirs new file mode 100755 index 000000000..59a00b34f --- /dev/null +++ b/mkinstalldirs @@ -0,0 +1,42 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman +# Created: 1993-05-16 +# Public domain +# Modified by Tibor Simko to add explicitly "umask 022". + +# $Id$ + +errstatus=0 +umask 022 + +for file +do + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` + shift + + pathcomp= + for d + do + pathcomp="$pathcomp$d" + case "$pathcomp" in + -* ) pathcomp=./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here