Package list squidview / 660d68b
Imported Upstream version 0.63 Willi Mann 9 years ago
26 changed file(s) with 9909 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
(New empty file)
0 --Bugs
1
2 I said:
3
4 > On my system the program can segfault when a report is being
5 > generated under certain conditions. This happens when the c++
6 > STL sort function is called too often. Sorting is used to
7 > speed up access to the tables and reduce the time you have
8 > to wait for a report to complete.
9
10 The problem has been found and fixed by Mike Reid (a fellow New
11 Zealander.) I was dereferencing a null pointer in one function
12 and writing to a string that had been c_str() in another - pretty
13 big coding mistakes if you ask me. Naughty boy etc.
14
15 So the sorting should be fine now (provided I haven't coded other
16 errors) so please use the STL sort (for faster results too) and let
17 me know if it breaks for you: set "bRepMySort" to "no" and as I
18 previously explained:
19
20 > There are two variables in squidview.conf which direct
21 > sorting operations. "bRepMySort" can be set to "yes" to use
22 > my sort routines, or "no" otherwise. "iRepFast" is an integer.
23 > After this many lines of processing a sort is made. Therefore
24 > the smaller this number the more often sorts are made. I've
25 > settled on a 10000 value for this; your mileage may vary.
26 > Making "iRepFast" 0 disables sorting completely.
27
28 > Squidview catches segfaults and will tell you if it happened during
29 > the STL sort.
0 GNU GENERAL PUBLIC LICENSE
1 Version 2, June 1991
2
3 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
4 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
5 Everyone is permitted to copy and distribute verbatim copies
6 of this license document, but changing it is not allowed.
7
8 Preamble
9
10 The licenses for most software are designed to take away your
11 freedom to share and change it. By contrast, the GNU General Public
12 License is intended to guarantee your freedom to share and change free
13 software--to make sure the software is free for all its users. This
14 General Public License applies to most of the Free Software
15 Foundation's software and to any other program whose authors commit to
16 using it. (Some other Free Software Foundation software is covered by
17 the GNU Library General Public License instead.) You can apply it to
18 your programs, too.
19
20 When we speak of free software, we are referring to freedom, not
21 price. Our General Public Licenses are designed to make sure that you
22 have the freedom to distribute copies of free software (and charge for
23 this service if you wish), that you receive source code or can get it
24 if you want it, that you can change the software or use pieces of it
25 in new free programs; and that you know you can do these things.
26
27 To protect your rights, we need to make restrictions that forbid
28 anyone to deny you these rights or to ask you to surrender the rights.
29 These restrictions translate to certain responsibilities for you if you
30 distribute copies of the software, or if you modify it.
31
32 For example, if you distribute copies of such a program, whether
33 gratis or for a fee, you must give the recipients all the rights that
34 you have. You must make sure that they, too, receive or can get the
35 source code. And you must show them these terms so they know their
36 rights.
37
38 We protect your rights with two steps: (1) copyright the software, and
39 (2) offer you this license which gives you legal permission to copy,
40 distribute and/or modify the software.
41
42 Also, for each author's protection and ours, we want to make certain
43 that everyone understands that there is no warranty for this free
44 software. If the software is modified by someone else and passed on, we
45 want its recipients to know that what they have is not the original, so
46 that any problems introduced by others will not reflect on the original
47 authors' reputations.
48
49 Finally, any free program is threatened constantly by software
50 patents. We wish to avoid the danger that redistributors of a free
51 program will individually obtain patent licenses, in effect making the
52 program proprietary. To prevent this, we have made it clear that any
53 patent must be licensed for everyone's free use or not licensed at all.
54
55 The precise terms and conditions for copying, distribution and
56 modification follow.
57
58 GNU GENERAL PUBLIC LICENSE
59 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
60
61 0. This License applies to any program or other work which contains
62 a notice placed by the copyright holder saying it may be distributed
63 under the terms of this General Public License. The "Program", below,
64 refers to any such program or work, and a "work based on the Program"
65 means either the Program or any derivative work under copyright law:
66 that is to say, a work containing the Program or a portion of it,
67 either verbatim or with modifications and/or translated into another
68 language. (Hereinafter, translation is included without limitation in
69 the term "modification".) Each licensee is addressed as "you".
70
71 Activities other than copying, distribution and modification are not
72 covered by this License; they are outside its scope. The act of
73 running the Program is not restricted, and the output from the Program
74 is covered only if its contents constitute a work based on the
75 Program (independent of having been made by running the Program).
76 Whether that is true depends on what the Program does.
77
78 1. You may copy and distribute verbatim copies of the Program's
79 source code as you receive it, in any medium, provided that you
80 conspicuously and appropriately publish on each copy an appropriate
81 copyright notice and disclaimer of warranty; keep intact all the
82 notices that refer to this License and to the absence of any warranty;
83 and give any other recipients of the Program a copy of this License
84 along with the Program.
85
86 You may charge a fee for the physical act of transferring a copy, and
87 you may at your option offer warranty protection in exchange for a fee.
88
89 2. You may modify your copy or copies of the Program or any portion
90 of it, thus forming a work based on the Program, and copy and
91 distribute such modifications or work under the terms of Section 1
92 above, provided that you also meet all of these conditions:
93
94 a) You must cause the modified files to carry prominent notices
95 stating that you changed the files and the date of any change.
96
97 b) You must cause any work that you distribute or publish, that in
98 whole or in part contains or is derived from the Program or any
99 part thereof, to be licensed as a whole at no charge to all third
100 parties under the terms of this License.
101
102 c) If the modified program normally reads commands interactively
103 when run, you must cause it, when started running for such
104 interactive use in the most ordinary way, to print or display an
105 announcement including an appropriate copyright notice and a
106 notice that there is no warranty (or else, saying that you provide
107 a warranty) and that users may redistribute the program under
108 these conditions, and telling the user how to view a copy of this
109 License. (Exception: if the Program itself is interactive but
110 does not normally print such an announcement, your work based on
111 the Program is not required to print an announcement.)
112
113 These requirements apply to the modified work as a whole. If
114 identifiable sections of that work are not derived from the Program,
115 and can be reasonably considered independent and separate works in
116 themselves, then this License, and its terms, do not apply to those
117 sections when you distribute them as separate works. But when you
118 distribute the same sections as part of a whole which is a work based
119 on the Program, the distribution of the whole must be on the terms of
120 this License, whose permissions for other licensees extend to the
121 entire whole, and thus to each and every part regardless of who wrote it.
122
123 Thus, it is not the intent of this section to claim rights or contest
124 your rights to work written entirely by you; rather, the intent is to
125 exercise the right to control the distribution of derivative or
126 collective works based on the Program.
127
128 In addition, mere aggregation of another work not based on the Program
129 with the Program (or with a work based on the Program) on a volume of
130 a storage or distribution medium does not bring the other work under
131 the scope of this License.
132
133 3. You may copy and distribute the Program (or a work based on it,
134 under Section 2) in object code or executable form under the terms of
135 Sections 1 and 2 above provided that you also do one of the following:
136
137 a) Accompany it with the complete corresponding machine-readable
138 source code, which must be distributed under the terms of Sections
139 1 and 2 above on a medium customarily used for software interchange; or,
140
141 b) Accompany it with a written offer, valid for at least three
142 years, to give any third party, for a charge no more than your
143 cost of physically performing source distribution, a complete
144 machine-readable copy of the corresponding source code, to be
145 distributed under the terms of Sections 1 and 2 above on a medium
146 customarily used for software interchange; or,
147
148 c) Accompany it with the information you received as to the offer
149 to distribute corresponding source code. (This alternative is
150 allowed only for noncommercial distribution and only if you
151 received the program in object code or executable form with such
152 an offer, in accord with Subsection b above.)
153
154 The source code for a work means the preferred form of the work for
155 making modifications to it. For an executable work, complete source
156 code means all the source code for all modules it contains, plus any
157 associated interface definition files, plus the scripts used to
158 control compilation and installation of the executable. However, as a
159 special exception, the source code distributed need not include
160 anything that is normally distributed (in either source or binary
161 form) with the major components (compiler, kernel, and so on) of the
162 operating system on which the executable runs, unless that component
163 itself accompanies the executable.
164
165 If distribution of executable or object code is made by offering
166 access to copy from a designated place, then offering equivalent
167 access to copy the source code from the same place counts as
168 distribution of the source code, even though third parties are not
169 compelled to copy the source along with the object code.
170
171 4. You may not copy, modify, sublicense, or distribute the Program
172 except as expressly provided under this License. Any attempt
173 otherwise to copy, modify, sublicense or distribute the Program is
174 void, and will automatically terminate your rights under this License.
175 However, parties who have received copies, or rights, from you under
176 this License will not have their licenses terminated so long as such
177 parties remain in full compliance.
178
179 5. You are not required to accept this License, since you have not
180 signed it. However, nothing else grants you permission to modify or
181 distribute the Program or its derivative works. These actions are
182 prohibited by law if you do not accept this License. Therefore, by
183 modifying or distributing the Program (or any work based on the
184 Program), you indicate your acceptance of this License to do so, and
185 all its terms and conditions for copying, distributing or modifying
186 the Program or works based on it.
187
188 6. Each time you redistribute the Program (or any work based on the
189 Program), the recipient automatically receives a license from the
190 original licensor to copy, distribute or modify the Program subject to
191 these terms and conditions. You may not impose any further
192 restrictions on the recipients' exercise of the rights granted herein.
193 You are not responsible for enforcing compliance by third parties to
194 this License.
195
196 7. If, as a consequence of a court judgment or allegation of patent
197 infringement or for any other reason (not limited to patent issues),
198 conditions are imposed on you (whether by court order, agreement or
199 otherwise) that contradict the conditions of this License, they do not
200 excuse you from the conditions of this License. If you cannot
201 distribute so as to satisfy simultaneously your obligations under this
202 License and any other pertinent obligations, then as a consequence you
203 may not distribute the Program at all. For example, if a patent
204 license would not permit royalty-free redistribution of the Program by
205 all those who receive copies directly or indirectly through you, then
206 the only way you could satisfy both it and this License would be to
207 refrain entirely from distribution of the Program.
208
209 If any portion of this section is held invalid or unenforceable under
210 any particular circumstance, the balance of the section is intended to
211 apply and the section as a whole is intended to apply in other
212 circumstances.
213
214 It is not the purpose of this section to induce you to infringe any
215 patents or other property right claims or to contest validity of any
216 such claims; this section has the sole purpose of protecting the
217 integrity of the free software distribution system, which is
218 implemented by public license practices. Many people have made
219 generous contributions to the wide range of software distributed
220 through that system in reliance on consistent application of that
221 system; it is up to the author/donor to decide if he or she is willing
222 to distribute software through any other system and a licensee cannot
223 impose that choice.
224
225 This section is intended to make thoroughly clear what is believed to
226 be a consequence of the rest of this License.
227
228 8. If the distribution and/or use of the Program is restricted in
229 certain countries either by patents or by copyrighted interfaces, the
230 original copyright holder who places the Program under this License
231 may add an explicit geographical distribution limitation excluding
232 those countries, so that distribution is permitted only in or among
233 countries not thus excluded. In such case, this License incorporates
234 the limitation as if written in the body of this License.
235
236 9. The Free Software Foundation may publish revised and/or new versions
237 of the General Public License from time to time. Such new versions will
238 be similar in spirit to the present version, but may differ in detail to
239 address new problems or concerns.
240
241 Each version is given a distinguishing version number. If the Program
242 specifies a version number of this License which applies to it and "any
243 later version", you have the option of following the terms and conditions
244 either of that version or of any later version published by the Free
245 Software Foundation. If the Program does not specify a version number of
246 this License, you may choose any version ever published by the Free Software
247 Foundation.
248
249 10. If you wish to incorporate parts of the Program into other free
250 programs whose distribution conditions are different, write to the author
251 to ask for permission. For software which is copyrighted by the Free
252 Software Foundation, write to the Free Software Foundation; we sometimes
253 make exceptions for this. Our decision will be guided by the two goals
254 of preserving the free status of all derivatives of our free software and
255 of promoting the sharing and reuse of software generally.
256
257 NO WARRANTY
258
259 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
260 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
261 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
262 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
263 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
264 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
265 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
266 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
267 REPAIR OR CORRECTION.
268
269 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
270 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
271 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
272 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
273 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
274 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
275 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
276 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
277 POSSIBILITY OF SUCH DAMAGES.
278
279 END OF TERMS AND CONDITIONS
280
281 How to Apply These Terms to Your New Programs
282
283 If you develop a new program, and you want it to be of the greatest
284 possible use to the public, the best way to achieve this is to make it
285 free software which everyone can redistribute and change under these terms.
286
287 To do so, attach the following notices to the program. It is safest
288 to attach them to the start of each source file to most effectively
289 convey the exclusion of warranty; and each file should have at least
290 the "copyright" line and a pointer to where the full notice is found.
291
292 <one line to give the program's name and a brief idea of what it does.>
293 Copyright (C) <year> <name of author>
294
295 This program is free software; you can redistribute it and/or modify
296 it under the terms of the GNU General Public License as published by
297 the Free Software Foundation; either version 2 of the License, or
298 (at your option) any later version.
299
300 This program is distributed in the hope that it will be useful,
301 but WITHOUT ANY WARRANTY; without even the implied warranty of
302 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
303 GNU General Public License for more details.
304
305 You should have received a copy of the GNU General Public License
306 along with this program; if not, write to the Free Software
307 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
308
309
310 Also add information on how to contact you by electronic and paper mail.
311
312 If the program is interactive, make it output a short notice like this
313 when it starts in an interactive mode:
314
315 Gnomovision version 69, Copyright (C) year name of author
316 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317 This is free software, and you are welcome to redistribute it
318 under certain conditions; type `show c' for details.
319
320 The hypothetical commands `show w' and `show c' should show the appropriate
321 parts of the General Public License. Of course, the commands you use may
322 be called something other than `show w' and `show c'; they could even be
323 mouse-clicks or menu items--whatever suits your program.
324
325 You should also get your employer (if you work as a programmer) or your
326 school, if any, to sign a "copyright disclaimer" for the program, if
327 necessary. Here is a sample; alter the names:
328
329 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330 `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
332 <signature of Ty Coon>, 1 April 1989
333 Ty Coon, President of Vice
334
335 This General Public License does not permit incorporating your program into
336 proprietary programs. If your program is a subroutine library, you may
337 consider it more useful to permit linking proprietary applications with the
338 library. If this is what you want to do, use the GNU Library General
339 Public License instead of this License.
0 >> Squidview history:
1
2 v0.63: 17 December 2003:
3 - fixes to allow compiling in some environments
4
5 v0.62: 16 December 2003
6 - bugs found and fixed by Mike Reid - thanks:
7 - dereference of null pointer in NullText()
8 - using c_str() to write to a string in StrLwr()
9 - above bug fixes allow fast STL sort to run, so it is now default.
10 but requires an edit of conf file if upgrading - see BUGS
11 - more bugs fixed:
12 - false positive in CheckEmail()
13 - better shown progress in report generation
14
15 v0.61: 9 December 2003
16 - example.log included
17
18 v0.60: 17 November 2003
19 - repackaged to use GNU make
20 - better at determining location of shared data
21
22 v0.51: 18 September 2003
23 - remembers some tally preferences
24 - minor bug fixed
25
26 v0.50: 16 September 2003
27 - took in the 0.4 beta series:
28 -- tally mode
29 -- one user history mode
30 - and added documentation
31
32 v0.36: 1 March 2003
33 - aliases of IP client numbers
34 - option changes to support that
35
36 v0.35: 13 January 2003
37 - documentation improvements
38 - minor bug (non fatal) fixes
39
40 v0.30 patch3: 3 January 2003
41 - IP addresses replace null names
42 - a few other minor improvements
43
44 v0.30 patch 2: 30 December 2002
45 - distribution includes sample access.log
46
47 v0.30 patch 1: 22 August 2002
48 - compiles with g++ 3 and not just 2.9x
49
50 v0.30: 17 August 2002
51 - documentation improvements
52 - misc. improvements
53 - Makefile amended for package distributors
54 - self contained sort routine implemented and used by
55 default as a work around to external segfault - refer
56 to readme about this(*)
57
58 v0.20: 11 July 2002
59 - initial public release
60
61 >> Future plans:
62
63 - compile smoothly on other platforms, eg Solaris (please help
64 with this one)
65 - fix the above segfault problem * (advice sought also)
66 - non-interactive reports (maybe, according to demand)
67
68 The squidview home page is:
69 http://www.rillion.net/squidview
+215
-0
HOWTO less more
0 squidview 0.6 (c) 2001 - 2003 Graeme Sheppard - GPL software
1 www.rillion.net/squidview
2
3 --Overview
4
5 Squidview is a program meant to display the squid proxy server log
6 file in a nice fashion, providing the log file is in squid's
7 native reporting fashion. It has features such as search, report
8 generation, monitor mode and supports three log files.
9
10 Thus, the program can be used to monitor Internet usage on a
11 networked site. But please note squid has to be running first and
12 this program is not a proactive resource controller. What it can
13 do is tell you who and which sites are consuming the most bandwidth.
14
15 --Using squidview
16
17 Squidview shows each proxy request on one line starting with the
18 user's name (ie the name of the user on the client machine as
19 reported by identd or similar), flags and then the target (ie
20 destination) of the request.
21
22 Should an identd process not be running on the client, squidview
23 can display the client IP address instead of "-", or if you are
24 using an aliases file it can get a name from that. See Reports
25 about this.
26
27 The target bit is truncated if necessary so as to fit the
28 information on one line. There are two methods of truncation
29 (discussed in Reports.)
30
31 Change the selected line with the cursor control keys or the number
32 keypad. Down the bottom, on the status bar, is the time the selected
33 request was made as well how far through the log it is (as a
34 percentage: 0% top, 100% end). Press 'h' to get some help or 'r'
35 for this readme file.
36
37 Also on the status bar will be "Mon Pri". "Mon" means the program
38 will update the screen if new proxy requests are made. Toggle this
39 off by pressing 'm' if you want to remain on a selected line.
40 "Pri" is the primary log file, to switch to another log file press
41 the appropriate key (press 'h' for keys.)
42
43 --Flags
44
45 Between the user and URL columns is the flags field. For example
46 it may be "w2Rf":
47
48 'w': a word match on the URL (see Searches below)
49 '2': bytes transferred was between 0.25MB and 1MB
50 'R': the request was a cache refresh hit
51 'f': part of the current focus
52
53 For a bit of help about these flags select the relevant line and
54 press 'v'.
55
56 --Searching
57
58 A search forward is made by the right arrow key, backwards is
59 handled by the left arrow key. But first you need something to
60 search for. Press 'f' to find a piece of text. Both user names and
61 http/ftp addresses can cause a match. Request lines which match
62 are noted by a 'w' in the flags column.
63
64 Multiple search strings are possible, and are necessary when you
65 use skips. Skips tell squidview not to match some requests, such
66 as when the word "sex" is searched for but not when the target is
67 on doubleclick.net (that advertisement server likes to use the word
68 "sex" in URLs.) The following will accomplish that:
69
70 !doubleclick.net
71 sex
72
73 The requests with "doubleclick.net" in them will be skipped
74 because that piece of text is first and it is preceded with an
75 "!". In doubleclick.net cases the flags column will have a
76 '-' where the word match would have been.
77
78 Note that text you enter with 'f' is placed at the top of the
79 search list so it has priority. Using 'F' (capital F) will add
80 search text to the bottom.
81
82 Your search words can be saved from the search options menu, and
83 you can do some other things there: pick up large requests and
84 focus on a particular user. These two can be turned off when not
85 needed.
86
87 --Navigating the log file
88
89 As well as jumping to the beginning or end of the log file, you
90 can go to a certain percentage through with 'g', or to the
91 beginning of a certain day with 'j' or 'J'. Of course 'home' and
92 'end' work too, if you are using a remote shell and they don't,
93 press '7' or '1' respectfully (look at your number keypad.)
94
95 --User lookup
96
97 On a selected line you can press 'v' to get a verbose description
98 of it - this is actually a dump of the line to the screen.
99 Squidview will try to match the user to those known in a file
100 called "users", displaying that line in the file. For example
101 the "users" file could have in it:-
102
103 root system administrator
104
105 The first word on each line must be the login name with no spaces
106 between it and the real name.
107
108 --Common options
109
110 By default if no login name is available the client's IP number is
111 displayed instead. Change this with "ip instead of null user" to
112 get, instead, reports of bandwidth attributed to "-". The aliases
113 file is another option here. You might specify that 192.168.0.15
114 be displayed as "server4". You need to enable this one because
115 it's off by default.
116
117 Keeping the filename of target also affects the main window. When
118 on, the target URL is shifted left - but not over the domain - so that
119 the type of file can be seen on one line. Otherwise the line is
120 simply truncated to be displayed.
121
122 --Log a report
123
124 Make a text or CSV report of search hits. A few options are there.
125 You will need to specify a report file name to view the details.
126 Otherwise you will just get a summary. Reports are placed in ~/.squidview.
127
128 To start or finish the report at a particular point in the log file
129 highlight the line in the main window, press 'l' and then either
130 'a' or 'b'. Press 'a' or 'b' again to toggle it.
131
132 User bandwidth totals can be calculated. The options are search hits
133 or "not veto" (which is mostly everything excluding skips mentioned
134 above.) These are sorted so you can find the heavy internet users.
135
136 Bandwidth totals will find the most popular sites for you. This can
137 be done for one user specifically or for all users as a whole.
138
139 When a word hit is detected it can be written in the report (eg
140 "word hit action: normal text").
141 Text reports are good for viewing with "less"; CSV ones are intended
142 for spreadsheets.
143
144 In the case of normal text reports you may or may not want to see
145 the request size. This information takes up a column. Splitting long
146 lines will show the details on more than one line if need be. Then
147 again, you may only want all "hits" to be shown on just one line.
148
149 The other options are straight forward. Be a bit picky about the CSV
150 field separator - they put just about any characters in URLs. Try a
151 tab (yes, just press 'tab', 'enter') or "*".
152
153 To get a summary report about a particular user, say "graeme", do
154 this:
155 - in search options focus on "graeme"
156 - go to log a report
157 - select "domain bandwidth totals"
158 - select "only focus user graeme"
159 - and press enter on the previous screen where it says go
160
161 You will need to unset the above options for reports to come
162 out normally again, and for searches (cursor <-, ->) too.
163
164 --Filtered reports
165
166 After making a general report it is possible to filter it for
167 just one user. That way you don't have to rescan the log file
168 with a focus. The downside of this is the target totals the
169 user surfed to can't be calculated.
170
171 --Tally Mode
172
173 This mode tells you some statistics about each user's usage of the Web.
174 Given any given starting point, it doesn't have to be at the begining of the
175 log, squidview will gather the data, display it, and then keep it up to
176 date.
177
178 So from the main screen press T (capital) and let it work. Then you should
179 get the tally screen that has the list of users down the left hand side and
180 their statistics to the right. Most numbers are self explanatory. "Points"
181 indicate who has used the Web a lot recently. Every web byte is counted and
182 added to that user's number of points. Then after a certain period of time
183 the points list is aged, eg multiplied by 0.75. This means big users will
184 rise to the top quickly and then slowly progress further down the list if
185 they stop surfing.
186
187 Tally mode can be set to go in monitor mode. Turn that off if you need to
188 stay selected on one user. There are other views and options mentioned in
189 help (h). One of these toggles what to do about requests that have been
190 denied. You may not want to see attempts by computers (often by themselves)
191 "phoning home" regularly. If the status line shows "-d" you won't get
192 these cluttering up your view.
193
194 --One User History
195
196 This mode is like the main view of the request log, just that it contains
197 entries only by the specified user. It is useful to discover that user's
198 recent activity, warranted for example by a spike in his/her tally points.
199
200 Pressing O (capital) will bring you into this mode using as the user the
201 one currently selected. u will switch to another user.
202
203 The numbers on the status line deserve explanation. If they say:
204
205 (98.32% to 100.00%) 90.90%
206
207 it means that request entries have been found and stored in memory for that
208 user from 98.32% of the way through the log to the end of it (100%.) By
209 scrolling up you can progress further and further backward through the log
210 file.
211
212 The 90.90% indicates the selected line is that far down the request entries
213 in memory. For your information the request lines aren't actually in
214 memory - just their positions in the log file are.
0 --Compiling squidview
1
2 $ ./configure
3 $ make
4
5 The program is c/c++ and uses the ncurses library for obtaining
6 some keystrokes. Old gcc compilers can fail compiling this
7 program; if so start afresh and:
8
9 $ cp Makefile.old Makefile
10 $ make oldgcc
11
12 ... and install manually.
13
14 If you are compiling on Solaris I have heard of one instance where
15 it is necessary to link against Solaris' own curses library. To do
16 this you need to link against lcurses rather than lncurses.
17
18 --Installation
19
20 If "configure" and "make" are successful:
21
22 # make install
23
24 Or if you aren't the superuser the program will still run if
25 you have read access to the squid log file.
26
27 This program assumes the main squid log file is here:
28 /usr/local/squid/var/logs/access.log
29 If it isn't just symlink it appropriately from the following
30 default. This directory and links are made in the user's home
31 space when first run by the user.
32
33 graeme@localhost:~/.squidview$ ls -l
34 HOWTO -> /usr/local/share/doc/squidview/HOWTO
35 log1 -> /usr/local/squid/var/logs/access.log
36 log2 -> log1
37 log3 -> log1
38 users
39 words
40
41 In this case squidview expects the primary log to be "log1",
42 and the symlink redirects it to where the file actually is.
43 The same thing applies to the readme.
44
45 This tar.gz archive comes with an example access.log named
46 example.log. Symlink it to view it with squidview.
47
48 "users" and "words" are reporting files - these can be symlinks
49 to /etc if you would rather have these files there. "aliases" is
50 another text file, this time for mapping IP numbers to user-
51 defined names.
52
53 This package comes with example "users", "words" and "aliases"
54 files you can build on.
0 bin_PROGRAMS = squidview
1 squidview_SOURCES = squidview.cpp squidview.h
2 pkgdata_DATA = HOWTO BUGS users words aliases example.log
3 EXTRA_DIST = Makefile.old HOWTO BUGS users words aliases example.log
0 # Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
1
2 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
3 # This Makefile.in is free software; the Free Software Foundation
4 # gives unlimited permission to copy and/or distribute it,
5 # with or without modifications, as long as this notice is preserved.
6
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
9 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10 # PARTICULAR PURPOSE.
11
12
13 SHELL = @SHELL@
14
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 prefix = @prefix@
19 exec_prefix = @exec_prefix@
20
21 bindir = @bindir@
22 sbindir = @sbindir@
23 libexecdir = @libexecdir@
24 datadir = @datadir@
25 sysconfdir = @sysconfdir@
26 sharedstatedir = @sharedstatedir@
27 localstatedir = @localstatedir@
28 libdir = @libdir@
29 infodir = @infodir@
30 mandir = @mandir@
31 includedir = @includedir@
32 oldincludedir = /usr/include
33
34 DESTDIR =
35
36 pkgdatadir = $(datadir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkgincludedir = $(includedir)/@PACKAGE@
39
40 top_builddir = .
41
42 ACLOCAL = @ACLOCAL@
43 AUTOCONF = @AUTOCONF@
44 AUTOMAKE = @AUTOMAKE@
45 AUTOHEADER = @AUTOHEADER@
46
47 INSTALL = @INSTALL@
48 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
49 INSTALL_DATA = @INSTALL_DATA@
50 INSTALL_SCRIPT = @INSTALL_SCRIPT@
51 transform = @program_transform_name@
52
53 NORMAL_INSTALL = :
54 PRE_INSTALL = :
55 POST_INSTALL = :
56 NORMAL_UNINSTALL = :
57 PRE_UNINSTALL = :
58 POST_UNINSTALL = :
59 CXX = @CXX@
60 MAKEINFO = @MAKEINFO@
61 PACKAGE = @PACKAGE@
62 VERSION = @VERSION@
63
64 bin_PROGRAMS = squidview
65 squidview_SOURCES = squidview.cpp squidview.h
66 pkgdata_DATA = HOWTO BUGS users words aliases example.log
67 EXTRA_DIST = Makefile.old HOWTO BUGS users words aliases example.log
68 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
69 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
70 CONFIG_HEADER = config.h
71 CONFIG_CLEAN_FILES =
72 PROGRAMS = $(bin_PROGRAMS)
73
74
75 DEFS = @DEFS@ -I. -I$(srcdir) -I.
76 CPPFLAGS = @CPPFLAGS@
77 LDFLAGS = @LDFLAGS@
78 LIBS = @LIBS@
79 squidview_OBJECTS = squidview.o
80 squidview_LDADD = $(LDADD)
81 squidview_DEPENDENCIES =
82 squidview_LDFLAGS =
83 CXXFLAGS = @CXXFLAGS@
84 CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
85 CXXLD = $(CXX)
86 CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
87 CFLAGS = @CFLAGS@
88 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
89 CCLD = $(CC)
90 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
91 DATA = $(pkgdata_DATA)
92
93 DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
94 Makefile.am Makefile.in NEWS acconfig.h aclocal.m4 config.h.in \
95 configure configure.in install-sh missing mkinstalldirs
96
97
98 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
99
100 TAR = tar
101 GZIP_ENV = --best
102 SOURCES = $(squidview_SOURCES)
103 OBJECTS = $(squidview_OBJECTS)
104
105 all: all-redirect
106 .SUFFIXES:
107 .SUFFIXES: .S .c .cpp .o .s
108 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
109 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
110
111 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
112 cd $(top_builddir) \
113 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
114
115 $(ACLOCAL_M4): configure.in
116 cd $(srcdir) && $(ACLOCAL)
117
118 config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES)
119 $(SHELL) ./config.status --recheck
120 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
121 cd $(srcdir) && $(AUTOCONF)
122
123 config.h: stamp-h
124 @if test ! -f $@; then \
125 rm -f stamp-h; \
126 $(MAKE) stamp-h; \
127 else :; fi
128 stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
129 cd $(top_builddir) \
130 && CONFIG_FILES= CONFIG_HEADERS=config.h \
131 $(SHELL) ./config.status
132 @echo timestamp > stamp-h 2> /dev/null
133 $(srcdir)/config.h.in: $(srcdir)/stamp-h.in
134 @if test ! -f $@; then \
135 rm -f $(srcdir)/stamp-h.in; \
136 $(MAKE) $(srcdir)/stamp-h.in; \
137 else :; fi
138 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
139 cd $(top_srcdir) && $(AUTOHEADER)
140 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
141
142 mostlyclean-hdr:
143
144 clean-hdr:
145
146 distclean-hdr:
147 -rm -f config.h
148
149 maintainer-clean-hdr:
150
151 mostlyclean-binPROGRAMS:
152
153 clean-binPROGRAMS:
154 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
155
156 distclean-binPROGRAMS:
157
158 maintainer-clean-binPROGRAMS:
159
160 install-binPROGRAMS: $(bin_PROGRAMS)
161 @$(NORMAL_INSTALL)
162 $(mkinstalldirs) $(DESTDIR)$(bindir)
163 @list='$(bin_PROGRAMS)'; for p in $$list; do \
164 if test -f $$p; then \
165 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
166 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
167 else :; fi; \
168 done
169
170 uninstall-binPROGRAMS:
171 @$(NORMAL_UNINSTALL)
172 list='$(bin_PROGRAMS)'; for p in $$list; do \
173 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
174 done
175
176 .c.o:
177 $(COMPILE) -c $<
178
179 .s.o:
180 $(COMPILE) -c $<
181
182 .S.o:
183 $(COMPILE) -c $<
184
185 mostlyclean-compile:
186 -rm -f *.o core *.core
187
188 clean-compile:
189
190 distclean-compile:
191 -rm -f *.tab.c
192
193 maintainer-clean-compile:
194
195 squidview: $(squidview_OBJECTS) $(squidview_DEPENDENCIES)
196 @rm -f squidview
197 $(CXXLINK) $(squidview_LDFLAGS) $(squidview_OBJECTS) $(squidview_LDADD) $(LIBS)
198 .cpp.o:
199 $(CXXCOMPILE) -c $<
200
201 install-pkgdataDATA: $(pkgdata_DATA)
202 @$(NORMAL_INSTALL)
203 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
204 @list='$(pkgdata_DATA)'; for p in $$list; do \
205 if test -f $(srcdir)/$$p; then \
206 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p"; \
207 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p; \
208 else if test -f $$p; then \
209 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p"; \
210 $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \
211 fi; fi; \
212 done
213
214 uninstall-pkgdataDATA:
215 @$(NORMAL_UNINSTALL)
216 list='$(pkgdata_DATA)'; for p in $$list; do \
217 rm -f $(DESTDIR)$(pkgdatadir)/$$p; \
218 done
219
220 tags: TAGS
221
222 ID: $(HEADERS) $(SOURCES) $(LISP)
223 list='$(SOURCES) $(HEADERS)'; \
224 unique=`for i in $$list; do echo $$i; done | \
225 awk ' { files[$$0] = 1; } \
226 END { for (i in files) print i; }'`; \
227 here=`pwd` && cd $(srcdir) \
228 && mkid -f$$here/ID $$unique $(LISP)
229
230 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
231 tags=; \
232 here=`pwd`; \
233 list='$(SOURCES) $(HEADERS)'; \
234 unique=`for i in $$list; do echo $$i; done | \
235 awk ' { files[$$0] = 1; } \
236 END { for (i in files) print i; }'`; \
237 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
238 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
239
240 mostlyclean-tags:
241
242 clean-tags:
243
244 distclean-tags:
245 -rm -f TAGS ID
246
247 maintainer-clean-tags:
248
249 distdir = $(PACKAGE)-$(VERSION)
250 top_distdir = $(distdir)
251
252 # This target untars the dist file and tries a VPATH configuration. Then
253 # it guarantees that the distribution is self-contained by making another
254 # tarfile.
255 distcheck: dist
256 -rm -rf $(distdir)
257 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
258 mkdir $(distdir)/=build
259 mkdir $(distdir)/=inst
260 dc_install_base=`cd $(distdir)/=inst && pwd`; \
261 cd $(distdir)/=build \
262 && ../configure --srcdir=.. --prefix=$$dc_install_base \
263 && $(MAKE) $(AM_MAKEFLAGS) \
264 && $(MAKE) $(AM_MAKEFLAGS) dvi \
265 && $(MAKE) $(AM_MAKEFLAGS) check \
266 && $(MAKE) $(AM_MAKEFLAGS) install \
267 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
268 && $(MAKE) $(AM_MAKEFLAGS) dist
269 -rm -rf $(distdir)
270 @banner="$(distdir).tar.gz is ready for distribution"; \
271 dashes=`echo "$$banner" | sed s/./=/g`; \
272 echo "$$dashes"; \
273 echo "$$banner"; \
274 echo "$$dashes"
275 dist: distdir
276 -chmod -R a+r $(distdir)
277 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
278 -rm -rf $(distdir)
279 dist-all: distdir
280 -chmod -R a+r $(distdir)
281 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
282 -rm -rf $(distdir)
283 distdir: $(DISTFILES)
284 -rm -rf $(distdir)
285 mkdir $(distdir)
286 -chmod 777 $(distdir)
287 @for file in $(DISTFILES); do \
288 d=$(srcdir); \
289 if test -d $$d/$$file; then \
290 cp -pr $$d/$$file $(distdir)/$$file; \
291 else \
292 test -f $(distdir)/$$file \
293 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
294 || cp -p $$d/$$file $(distdir)/$$file || :; \
295 fi; \
296 done
297 squidview.o: squidview.cpp config.h squidview.h
298
299 info-am:
300 info: info-am
301 dvi-am:
302 dvi: dvi-am
303 check-am: all-am
304 check: check-am
305 installcheck-am:
306 installcheck: installcheck-am
307 all-recursive-am: config.h
308 $(MAKE) $(AM_MAKEFLAGS) all-recursive
309
310 install-exec-am: install-binPROGRAMS
311 install-exec: install-exec-am
312
313 install-data-am: install-pkgdataDATA
314 install-data: install-data-am
315
316 install-am: all-am
317 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
318 install: install-am
319 uninstall-am: uninstall-binPROGRAMS uninstall-pkgdataDATA
320 uninstall: uninstall-am
321 all-am: Makefile $(PROGRAMS) $(DATA) config.h
322 all-redirect: all-am
323 install-strip:
324 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
325 installdirs:
326 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(pkgdatadir)
327
328
329 mostlyclean-generic:
330
331 clean-generic:
332
333 distclean-generic:
334 -rm -f Makefile $(CONFIG_CLEAN_FILES)
335 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
336
337 maintainer-clean-generic:
338 mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
339 mostlyclean-compile mostlyclean-tags \
340 mostlyclean-generic
341
342 mostlyclean: mostlyclean-am
343
344 clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \
345 clean-generic mostlyclean-am
346
347 clean: clean-am
348
349 distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \
350 distclean-tags distclean-generic clean-am
351
352 distclean: distclean-am
353 -rm -f config.status
354
355 maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \
356 maintainer-clean-compile maintainer-clean-tags \
357 maintainer-clean-generic distclean-am
358 @echo "This command is intended for maintainers to use;"
359 @echo "it deletes files that may require special tools to rebuild."
360
361 maintainer-clean: maintainer-clean-am
362 -rm -f config.status
363
364 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
365 mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
366 maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
367 mostlyclean-compile distclean-compile clean-compile \
368 maintainer-clean-compile uninstall-pkgdataDATA install-pkgdataDATA tags \
369 mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
370 distdir info-am info dvi-am dvi check check-am installcheck-am \
371 installcheck all-recursive-am install-exec-am install-exec \
372 install-data-am install-data install-am install uninstall-am uninstall \
373 all-redirect all-am all installdirs mostlyclean-generic \
374 distclean-generic clean-generic maintainer-clean-generic clean \
375 mostlyclean distclean maintainer-clean
376
377
378 # Tell versions [3.59,3.63) of GNU make to not export all variables.
379 # Otherwise a system limit (for SysV at least) may be exceeded.
380 .NOEXPORT:
0 # squidview makefile
1
2 # For the curious, see if my code conforms to standards.
3 # It doesn't on Debian 3.0 or Redhat 9.0 ie no 64-bit
4 # long long integer in ansi c++. Remove/add some of the
5 # below directives as you please. I use -Wall -Werror.
6 #CXXFLAGS = -Wall -ansi -pedantic -Werror
7 CXXFLAGS =
8
9 CXX = c++
10 PREFIX = /usr/local
11 BINDIR = $(PREFIX)/bin
12 DATADIR = $(PREFIX)/share
13 DOCDIR = $(DATADIR)/doc
14
15 squidview: squidview.cpp squidview.h
16 $(CXX) squidview.cpp $(CXXFLAGS) -lncurses -o squidview
17
18 oldgcc: squidview.cpp squidview.h
19 $(CXX) squidview.cpp $(CXXFLAGS) -fhandle-exceptions -lncurses -o squidview
20
21 install:
22 install -d $(DESTDIR)$(BINDIR)
23 install squidview $(DESTDIR)$(BINDIR)
(New empty file)
0 squidview 0.60 (c) 2001 - 2003 Graeme Sheppard - GPL software
1 www.rillion.net/squidview
2
3 --Overview
4
5 Squidview is a program meant to display the squid proxy server log
6 file in a nice fashion, providing the log file is in squid's
7 native reporting fashion. It has features such as search, report
8 generation, monitor mode and supports three log files.
9
10 Thus, the program can be used to monitor Internet usage on a
11 networked site. But please note squid has to be running first and
12 this program is not a proactive resource controller. What it can
13 do is tell you who and which sites are consuming the most bandwidth.
14
15 You will need the ncurses library.
0 /* Name of package. */
1 #undef PACKAGE
2
3 /* Version of package. */
4 #undef VERSION
5
6 #undef SHAREDIR
0 dnl aclocal.m4 generated automatically by aclocal 1.4-p4
1
2 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 dnl This program is distributed in the hope that it will be useful,
8 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
9 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10 dnl PARTICULAR PURPOSE.
11
12 # Like AC_CONFIG_HEADER, but automatically create stamp file.
13
14 AC_DEFUN(AM_CONFIG_HEADER,
15 [AC_PREREQ([2.12])
16 AC_CONFIG_HEADER([$1])
17 dnl When config.status generates a header, we must update the stamp-h file.
18 dnl This file resides in the same directory as the config header
19 dnl that is generated. We must strip everything past the first ":",
20 dnl and everything past the last "/".
21 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
22 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
23 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
24 <<am_indx=1
25 for am_file in <<$1>>; do
26 case " <<$>>CONFIG_HEADERS " in
27 *" <<$>>am_file "*<<)>>
28 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
29 ;;
30 esac
31 am_indx=`expr "<<$>>am_indx" + 1`
32 done<<>>dnl>>)
33 changequote([,]))])
34
35 # Do all the work for Automake. This macro actually does too much --
36 # some checks are only needed if your package does certain things.
37 # But this isn't really a big deal.
38
39 # serial 1
40
41 dnl Usage:
42 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
43
44 AC_DEFUN(AM_INIT_AUTOMAKE,
45 [AC_REQUIRE([AC_PROG_INSTALL])
46 PACKAGE=[$1]
47 AC_SUBST(PACKAGE)
48 VERSION=[$2]
49 AC_SUBST(VERSION)
50 dnl test to see if srcdir already configured
51 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
52 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
53 fi
54 ifelse([$3],,
55 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
56 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
57 AC_REQUIRE([AM_SANITY_CHECK])
58 AC_REQUIRE([AC_ARG_PROGRAM])
59 dnl FIXME This is truly gross.
60 missing_dir=`cd $ac_aux_dir && pwd`
61 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
62 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
63 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
64 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
65 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
66 AC_REQUIRE([AC_PROG_MAKE_SET])])
67
68 #
69 # Check to make sure that the build environment is sane.
70 #
71
72 AC_DEFUN(AM_SANITY_CHECK,
73 [AC_MSG_CHECKING([whether build environment is sane])
74 # Just in case
75 sleep 1
76 echo timestamp > conftestfile
77 # Do `set' in a subshell so we don't clobber the current shell's
78 # arguments. Must try -L first in case configure is actually a
79 # symlink; some systems play weird games with the mod time of symlinks
80 # (eg FreeBSD returns the mod time of the symlink's containing
81 # directory).
82 if (
83 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
84 if test "[$]*" = "X"; then
85 # -L didn't work.
86 set X `ls -t $srcdir/configure conftestfile`
87 fi
88 if test "[$]*" != "X $srcdir/configure conftestfile" \
89 && test "[$]*" != "X conftestfile $srcdir/configure"; then
90
91 # If neither matched, then we have a broken ls. This can happen
92 # if, for instance, CONFIG_SHELL is bash and it inherits a
93 # broken ls alias from the environment. This has actually
94 # happened. Such a system could not be considered "sane".
95 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
96 alias in your environment])
97 fi
98
99 test "[$]2" = conftestfile
100 )
101 then
102 # Ok.
103 :
104 else
105 AC_MSG_ERROR([newly created file is older than distributed files!
106 Check your system clock])
107 fi
108 rm -f conftest*
109 AC_MSG_RESULT(yes)])
110
111 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
112 dnl The program must properly implement --version.
113 AC_DEFUN(AM_MISSING_PROG,
114 [AC_MSG_CHECKING(for working $2)
115 # Run test in a subshell; some versions of sh will print an error if
116 # an executable is not found, even if stderr is redirected.
117 # Redirect stdin to placate older versions of autoconf. Sigh.
118 if ($2 --version) < /dev/null > /dev/null 2>&1; then
119 $1=$2
120 AC_MSG_RESULT(found)
121 else
122 $1="$3/missing $2"
123 AC_MSG_RESULT(missing)
124 fi
125 AC_SUBST($1)])
126
0 owls 192.168.0.150 192.168.0.146
1 suspect 193.109.122.5
0 /* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
1
2 #undef SHAREDIR
3
4 /* Define if you have the <curses.h> header file. */
5 #undef HAVE_CURSES_H
6
7 /* Define if you have the <fcntl.h> header file. */
8 #undef HAVE_FCNTL_H
9
10 /* Define if you have the <math.h> header file. */
11 #undef HAVE_MATH_H
12
13 /* Define if you have the <signal.h> header file. */
14 #undef HAVE_SIGNAL_H
15
16 /* Define if you have the <stdlib.h> header file. */
17 #undef HAVE_STDLIB_H
18
19 /* Define if you have the <sys/stat.h> header file. */
20 #undef HAVE_SYS_STAT_H
21
22 /* Define if you have the <sys/time.h> header file. */
23 #undef HAVE_SYS_TIME_H
24
25 /* Define if you have the <sys/types.h> header file. */
26 #undef HAVE_SYS_TYPES_H
27
28 /* Define if you have the <time.h> header file. */
29 #undef HAVE_TIME_H
30
31 /* Define if you have the <unistd.h> header file. */
32 #undef HAVE_UNISTD_H
33
34 /* Define if you have the ncurses library (-lncurses). */
35 #undef HAVE_LIBNCURSES
36
37 /* Name of package */
38 #undef PACKAGE
39
40 /* Version number of package */
41 #undef VERSION
42
0 #! /bin/sh
1
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated automatically using autoconf version 2.13
4 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
5 #
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8
9 # Defaults:
10 ac_help=
11 ac_default_prefix=/usr/local
12 # Any additions from configure.in:
13
14 # Initialize some variables set by options.
15 # The variables have the same names as the options, with
16 # dashes changed to underlines.
17 build=NONE
18 cache_file=./config.cache
19 exec_prefix=NONE
20 host=NONE
21 no_create=
22 nonopt=NONE
23 no_recursion=
24 prefix=NONE
25 program_prefix=NONE
26 program_suffix=NONE
27 program_transform_name=s,x,x,
28 silent=
29 site=
30 srcdir=
31 target=NONE
32 verbose=
33 x_includes=NONE
34 x_libraries=NONE
35 bindir='${exec_prefix}/bin'
36 sbindir='${exec_prefix}/sbin'
37 libexecdir='${exec_prefix}/libexec'
38 datadir='${prefix}/share'
39 sysconfdir='${prefix}/etc'
40 sharedstatedir='${prefix}/com'
41 localstatedir='${prefix}/var'
42 libdir='${exec_prefix}/lib'
43 includedir='${prefix}/include'
44 oldincludedir='/usr/include'
45 infodir='${prefix}/info'
46 mandir='${prefix}/man'
47
48 # Initialize some other variables.
49 subdirs=
50 MFLAGS= MAKEFLAGS=
51 SHELL=${CONFIG_SHELL-/bin/sh}
52 # Maximum number of lines to put in a shell here document.
53 ac_max_here_lines=12
54
55 ac_prev=
56 for ac_option
57 do
58
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
62 ac_prev=
63 continue
64 fi
65
66 case "$ac_option" in
67 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68 *) ac_optarg= ;;
69 esac
70
71 # Accept the important Cygnus configure options, so we can diagnose typos.
72
73 case "$ac_option" in
74
75 -bindir | --bindir | --bindi | --bind | --bin | --bi)
76 ac_prev=bindir ;;
77 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78 bindir="$ac_optarg" ;;
79
80 -build | --build | --buil | --bui | --bu)
81 ac_prev=build ;;
82 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83 build="$ac_optarg" ;;
84
85 -cache-file | --cache-file | --cache-fil | --cache-fi \
86 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87 ac_prev=cache_file ;;
88 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90 cache_file="$ac_optarg" ;;
91
92 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
93 ac_prev=datadir ;;
94 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
95 | --da=*)
96 datadir="$ac_optarg" ;;
97
98 -disable-* | --disable-*)
99 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103 fi
104 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
106
107 -enable-* | --enable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 fi
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 case "$ac_option" in
115 *=*) ;;
116 *) ac_optarg=yes ;;
117 esac
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
119
120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122 | --exec | --exe | --ex)
123 ac_prev=exec_prefix ;;
124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126 | --exec=* | --exe=* | --ex=*)
127 exec_prefix="$ac_optarg" ;;
128
129 -gas | --gas | --ga | --g)
130 # Obsolete; use --with-gas.
131 with_gas=yes ;;
132
133 -help | --help | --hel | --he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
136 cat << EOF
137 Usage: configure [options] [host]
138 Options: [defaults in brackets after descriptions]
139 Configuration:
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145 Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
147 [$ac_default_prefix]
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
149 [same as prefix]
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
154 [PREFIX/share]
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
157 [PREFIX/com]
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
169 EOF
170 cat << EOF
171 Host type:
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
182 EOF
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
185 fi
186 exit 0 ;;
187
188 -host | --host | --hos | --ho)
189 ac_prev=host ;;
190 -host=* | --host=* | --hos=* | --ho=*)
191 host="$ac_optarg" ;;
192
193 -includedir | --includedir | --includedi | --included | --include \
194 | --includ | --inclu | --incl | --inc)
195 ac_prev=includedir ;;
196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197 | --includ=* | --inclu=* | --incl=* | --inc=*)
198 includedir="$ac_optarg" ;;
199
200 -infodir | --infodir | --infodi | --infod | --info | --inf)
201 ac_prev=infodir ;;
202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203 infodir="$ac_optarg" ;;
204
205 -libdir | --libdir | --libdi | --libd)
206 ac_prev=libdir ;;
207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
208 libdir="$ac_optarg" ;;
209
210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211 | --libexe | --libex | --libe)
212 ac_prev=libexecdir ;;
213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214 | --libexe=* | --libex=* | --libe=*)
215 libexecdir="$ac_optarg" ;;
216
217 -localstatedir | --localstatedir | --localstatedi | --localstated \
218 | --localstate | --localstat | --localsta | --localst \
219 | --locals | --local | --loca | --loc | --lo)
220 ac_prev=localstatedir ;;
221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224 localstatedir="$ac_optarg" ;;
225
226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
227 ac_prev=mandir ;;
228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229 mandir="$ac_optarg" ;;
230
231 -nfp | --nfp | --nf)
232 # Obsolete; use --without-fp.
233 with_fp=no ;;
234
235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
236 | --no-cr | --no-c)
237 no_create=yes ;;
238
239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
241 no_recursion=yes ;;
242
243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245 | --oldin | --oldi | --old | --ol | --o)
246 ac_prev=oldincludedir ;;
247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250 oldincludedir="$ac_optarg" ;;
251
252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
253 ac_prev=prefix ;;
254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255 prefix="$ac_optarg" ;;
256
257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
258 | --program-pre | --program-pr | --program-p)
259 ac_prev=program_prefix ;;
260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262 program_prefix="$ac_optarg" ;;
263
264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
265 | --program-suf | --program-su | --program-s)
266 ac_prev=program_suffix ;;
267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269 program_suffix="$ac_optarg" ;;
270
271 -program-transform-name | --program-transform-name \
272 | --program-transform-nam | --program-transform-na \
273 | --program-transform-n | --program-transform- \
274 | --program-transform | --program-transfor \
275 | --program-transfo | --program-transf \
276 | --program-trans | --program-tran \
277 | --progr-tra | --program-tr | --program-t)
278 ac_prev=program_transform_name ;;
279 -program-transform-name=* | --program-transform-name=* \
280 | --program-transform-nam=* | --program-transform-na=* \
281 | --program-transform-n=* | --program-transform-=* \
282 | --program-transform=* | --program-transfor=* \
283 | --program-transfo=* | --program-transf=* \
284 | --program-trans=* | --program-tran=* \
285 | --progr-tra=* | --program-tr=* | --program-t=*)
286 program_transform_name="$ac_optarg" ;;
287
288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289 | -silent | --silent | --silen | --sile | --sil)
290 silent=yes ;;
291
292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
293 ac_prev=sbindir ;;
294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
295 | --sbi=* | --sb=*)
296 sbindir="$ac_optarg" ;;
297
298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300 | --sharedst | --shareds | --shared | --share | --shar \
301 | --sha | --sh)
302 ac_prev=sharedstatedir ;;
303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
306 | --sha=* | --sh=*)
307 sharedstatedir="$ac_optarg" ;;
308
309 -site | --site | --sit)
310 ac_prev=site ;;
311 -site=* | --site=* | --sit=*)
312 site="$ac_optarg" ;;
313
314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
315 ac_prev=srcdir ;;
316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317 srcdir="$ac_optarg" ;;
318
319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320 | --syscon | --sysco | --sysc | --sys | --sy)
321 ac_prev=sysconfdir ;;
322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324 sysconfdir="$ac_optarg" ;;
325
326 -target | --target | --targe | --targ | --tar | --ta | --t)
327 ac_prev=target ;;
328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329 target="$ac_optarg" ;;
330
331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
332 verbose=yes ;;
333
334 -version | --version | --versio | --versi | --vers)
335 echo "configure generated by autoconf version 2.13"
336 exit 0 ;;
337
338 -with-* | --with-*)
339 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343 fi
344 ac_package=`echo $ac_package| sed 's/-/_/g'`
345 case "$ac_option" in
346 *=*) ;;
347 *) ac_optarg=yes ;;
348 esac
349 eval "with_${ac_package}='$ac_optarg'" ;;
350
351 -without-* | --without-*)
352 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 fi
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
359
360 --x)
361 # Obsolete; use --with-x.
362 with_x=yes ;;
363
364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365 | --x-incl | --x-inc | --x-in | --x-i)
366 ac_prev=x_includes ;;
367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369 x_includes="$ac_optarg" ;;
370
371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373 ac_prev=x_libraries ;;
374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376 x_libraries="$ac_optarg" ;;
377
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
379 ;;
380
381 *)
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
384 fi
385 if test "x$nonopt" != xNONE; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
387 fi
388 nonopt="$ac_option"
389 ;;
390
391 esac
392 done
393
394 if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396 fi
397
398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399
400 # File descriptor usage:
401 # 0 standard input
402 # 1 file creation
403 # 2 errors and warnings
404 # 3 some systems may open it to /dev/tty
405 # 4 used on the Kubota Titan
406 # 6 checking for... messages and results
407 # 5 compiler messages saved in config.log
408 if test "$silent" = yes; then
409 exec 6>/dev/null
410 else
411 exec 6>&1
412 fi
413 exec 5>./config.log
414
415 echo "\
416 This file contains any messages produced by compilers while
417 running configure, to aid debugging if configure makes a mistake.
418 " 1>&5
419
420 # Strip out --no-create and --no-recursion so they do not pile up.
421 # Also quote any args containing shell metacharacters.
422 ac_configure_args=
423 for ac_arg
424 do
425 case "$ac_arg" in
426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 | --no-cr | --no-c) ;;
428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
433 esac
434 done
435
436 # NLS nuisances.
437 # Only set these to C if already set. These must not be set unconditionally
438 # because not all systems understand e.g. LANG=C (notably SCO).
439 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440 # Non-C LC_CTYPE values break the ctype check.
441 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
445
446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
447 rm -rf conftest* confdefs.h
448 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
449 echo > confdefs.h
450
451 # A filename unique to this package, relative to the directory that
452 # configure is in, which we can look for to find out if srcdir is correct.
453 ac_unique_file=squidview.cpp
454
455 # Find the source files, if location was not specified.
456 if test -z "$srcdir"; then
457 ac_srcdir_defaulted=yes
458 # Try the directory containing this script, then its parent.
459 ac_prog=$0
460 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
462 srcdir=$ac_confdir
463 if test ! -r $srcdir/$ac_unique_file; then
464 srcdir=..
465 fi
466 else
467 ac_srcdir_defaulted=no
468 fi
469 if test ! -r $srcdir/$ac_unique_file; then
470 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
472 else
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
474 fi
475 fi
476 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477
478 # Prefer explicitly selected file to automatically selected ones.
479 if test -z "$CONFIG_SITE"; then
480 if test "x$prefix" != xNONE; then
481 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
482 else
483 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
484 fi
485 fi
486 for ac_site_file in $CONFIG_SITE; do
487 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
489 . "$ac_site_file"
490 fi
491 done
492
493 if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
495 . $cache_file
496 else
497 echo "creating cache $cache_file"
498 > $cache_file
499 fi
500
501 ac_ext=c
502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503 ac_cpp='$CPP $CPPFLAGS'
504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 cross_compiling=$ac_cv_prog_cc_cross
507
508 ac_exeext=
509 ac_objext=o
510 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
511 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
512 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
513 ac_n= ac_c='
514 ' ac_t=' '
515 else
516 ac_n=-n ac_c= ac_t=
517 fi
518 else
519 ac_n= ac_c='\c' ac_t=
520 fi
521
522
523
524
525
526 ac_aux_dir=
527 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
528 if test -f $ac_dir/install-sh; then
529 ac_aux_dir=$ac_dir
530 ac_install_sh="$ac_aux_dir/install-sh -c"
531 break
532 elif test -f $ac_dir/install.sh; then
533 ac_aux_dir=$ac_dir
534 ac_install_sh="$ac_aux_dir/install.sh -c"
535 break
536 fi
537 done
538 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
540 fi
541 ac_config_guess=$ac_aux_dir/config.guess
542 ac_config_sub=$ac_aux_dir/config.sub
543 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544
545 # Find a good install program. We prefer a C program (faster),
546 # so one script is as good as another. But avoid the broken or
547 # incompatible versions:
548 # SysV /etc/install, /usr/sbin/install
549 # SunOS /usr/etc/install
550 # IRIX /sbin/install
551 # AIX /bin/install
552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
555 # ./install, which can be erroneously created by make from ./install.sh.
556 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
557 echo "configure:559: checking for a BSD compatible install" >&5
558 if test -z "$INSTALL"; then
559 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
561 else
562 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
563 for ac_dir in $PATH; do
564 # Account for people who put trailing slashes in PATH elements.
565 case "$ac_dir/" in
566 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
567 *)
568 # OSF1 and SCO ODT 3.0 have their own names for install.
569 # Don't use installbsd from OSF since it installs stuff as root
570 # by default.
571 for ac_prog in ginstall scoinst install; do
572 if test -f $ac_dir/$ac_prog; then
573 if test $ac_prog = install &&
574 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
575 # AIX install. It has an incompatible calling convention.
576 :
577 else
578 ac_cv_path_install="$ac_dir/$ac_prog -c"
579 break 2
580 fi
581 fi
582 done
583 ;;
584 esac
585 done
586 IFS="$ac_save_IFS"
587
588 fi
589 if test "${ac_cv_path_install+set}" = set; then
590 INSTALL="$ac_cv_path_install"
591 else
592 # As a last resort, use the slow shell script. We don't cache a
593 # path for INSTALL within a source directory, because that will
594 # break other packages using the cache if that directory is
595 # removed, or if the path is relative.
596 INSTALL="$ac_install_sh"
597 fi
598 fi
599 echo "$ac_t""$INSTALL" 1>&6
600
601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
602 # It thinks the first close brace ends the variable substitution.
603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
604
605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
606
607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
608
609 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
610 echo "configure:612: checking whether build environment is sane" >&5
611 # Just in case
612 sleep 1
613 echo timestamp > conftestfile
614 # Do `set' in a subshell so we don't clobber the current shell's
615 # arguments. Must try -L first in case configure is actually a
616 # symlink; some systems play weird games with the mod time of symlinks
617 # (eg FreeBSD returns the mod time of the symlink's containing
618 # directory).
619 if (
620 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
621 if test "$*" = "X"; then
622 # -L didn't work.
623 set X `ls -t $srcdir/configure conftestfile`
624 fi
625 if test "$*" != "X $srcdir/configure conftestfile" \
626 && test "$*" != "X conftestfile $srcdir/configure"; then
627
628 # If neither matched, then we have a broken ls. This can happen
629 # if, for instance, CONFIG_SHELL is bash and it inherits a
630 # broken ls alias from the environment. This has actually
631 # happened. Such a system could not be considered "sane".
632 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
633 alias in your environment" 1>&2; exit 1; }
634 fi
635
636 test "$2" = conftestfile
637 )
638 then
639 # Ok.
640 :
641 else
642 { echo "configure: error: newly created file is older than distributed files!
643 Check your system clock" 1>&2; exit 1; }
644 fi
645 rm -f conftest*
646 echo "$ac_t""yes" 1>&6
647 if test "$program_transform_name" = s,x,x,; then
648 program_transform_name=
649 else
650 # Double any \ or $. echo might interpret backslashes.
651 cat <<\EOF_SED > conftestsed
652 s,\\,\\\\,g; s,\$,$$,g
653 EOF_SED
654 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
655 rm -f conftestsed
656 fi
657 test "$program_prefix" != NONE &&
658 program_transform_name="s,^,${program_prefix},; $program_transform_name"
659 # Use a double $ so make ignores it.
660 test "$program_suffix" != NONE &&
661 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
662
663 # sed with no file args requires a program.
664 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
665
666 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
667 echo "configure:669: checking whether ${MAKE-make} sets \${MAKE}" >&5
668 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
669 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
671 else
672 cat > conftestmake <<\EOF
673 all:
674 @echo 'ac_maketemp="${MAKE}"'
675 EOF
676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
677 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
678 if test -n "$ac_maketemp"; then
679 eval ac_cv_prog_make_${ac_make}_set=yes
680 else
681 eval ac_cv_prog_make_${ac_make}_set=no
682 fi
683 rm -f conftestmake
684 fi
685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
686 echo "$ac_t""yes" 1>&6
687 SET_MAKE=
688 else
689 echo "$ac_t""no" 1>&6
690 SET_MAKE="MAKE=${MAKE-make}"
691 fi
692
693
694 PACKAGE=squidview
695
696 VERSION=0.63
697
698 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
699 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
700 fi
701 cat >> confdefs.h <<EOF
702 #define PACKAGE "$PACKAGE"
703 EOF
704
705 cat >> confdefs.h <<EOF
706 #define VERSION "$VERSION"
707 EOF
708
709
710
711 missing_dir=`cd $ac_aux_dir && pwd`
712 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
713 echo "configure:715: checking for working aclocal" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf. Sigh.
717 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
718 ACLOCAL=aclocal
719 echo "$ac_t""found" 1>&6
720 else
721 ACLOCAL="$missing_dir/missing aclocal"
722 echo "$ac_t""missing" 1>&6
723 fi
724
725 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
726 echo "configure:728: checking for working autoconf" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
731 AUTOCONF=autoconf
732 echo "$ac_t""found" 1>&6
733 else
734 AUTOCONF="$missing_dir/missing autoconf"
735 echo "$ac_t""missing" 1>&6
736 fi
737
738 echo $ac_n "checking for working automake""... $ac_c" 1>&6
739 echo "configure:741: checking for working automake" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (automake --version) < /dev/null > /dev/null 2>&1; then
744 AUTOMAKE=automake
745 echo "$ac_t""found" 1>&6
746 else
747 AUTOMAKE="$missing_dir/missing automake"
748 echo "$ac_t""missing" 1>&6
749 fi
750
751 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
752 echo "configure:754: checking for working autoheader" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
757 AUTOHEADER=autoheader
758 echo "$ac_t""found" 1>&6
759 else
760 AUTOHEADER="$missing_dir/missing autoheader"
761 echo "$ac_t""missing" 1>&6
762 fi
763
764 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
765 echo "configure:767: checking for working makeinfo" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
770 MAKEINFO=makeinfo
771 echo "$ac_t""found" 1>&6
772 else
773 MAKEINFO="$missing_dir/missing makeinfo"
774 echo "$ac_t""missing" 1>&6
775 fi
776
777
778 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
779 do
780 # Extract the first word of "$ac_prog", so it can be a program name with args.
781 set dummy $ac_prog; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:785: checking for $ac_word" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786 else
787 if test -n "$CXX"; then
788 ac_cv_prog_CXX="$CXX" # Let the user override the test.
789 else
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
791 ac_dummy="$PATH"
792 for ac_dir in $ac_dummy; do
793 test -z "$ac_dir" && ac_dir=.
794 if test -f $ac_dir/$ac_word; then
795 ac_cv_prog_CXX="$ac_prog"
796 break
797 fi
798 done
799 IFS="$ac_save_ifs"
800 fi
801 fi
802 CXX="$ac_cv_prog_CXX"
803 if test -n "$CXX"; then
804 echo "$ac_t""$CXX" 1>&6
805 else
806 echo "$ac_t""no" 1>&6
807 fi
808
809 test -n "$CXX" && break
810 done
811 test -n "$CXX" || CXX="gcc"
812
813
814 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
815 echo "configure:817: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
816
817 ac_ext=C
818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
819 ac_cpp='$CXXCPP $CPPFLAGS'
820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
822 cross_compiling=$ac_cv_prog_cxx_cross
823
824 cat > conftest.$ac_ext << EOF
825
826 #line 828 "configure"
827 #include "confdefs.h"
828
829 int main(){return(0);}
830 EOF
831 if { (eval echo configure:833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
832 ac_cv_prog_cxx_works=yes
833 # If we can't run a trivial program, we are probably using a cross compiler.
834 if (./conftest; exit) 2>/dev/null; then
835 ac_cv_prog_cxx_cross=no
836 else
837 ac_cv_prog_cxx_cross=yes
838 fi
839 else
840 echo "configure: failed program was:" >&5
841 cat conftest.$ac_ext >&5
842 ac_cv_prog_cxx_works=no
843 fi
844 rm -fr conftest*
845 ac_ext=c
846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
847 ac_cpp='$CPP $CPPFLAGS'
848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
850 cross_compiling=$ac_cv_prog_cc_cross
851
852 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
853 if test $ac_cv_prog_cxx_works = no; then
854 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
855 fi
856 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
857 echo "configure:859: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
858 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
859 cross_compiling=$ac_cv_prog_cxx_cross
860
861 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
862 echo "configure:864: checking whether we are using GNU C++" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
865 else
866 cat > conftest.C <<EOF
867 #ifdef __GNUC__
868 yes;
869 #endif
870 EOF
871 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
872 ac_cv_prog_gxx=yes
873 else
874 ac_cv_prog_gxx=no
875 fi
876 fi
877
878 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
879
880 if test $ac_cv_prog_gxx = yes; then
881 GXX=yes
882 else
883 GXX=
884 fi
885
886 ac_test_CXXFLAGS="${CXXFLAGS+set}"
887 ac_save_CXXFLAGS="$CXXFLAGS"
888 CXXFLAGS=
889 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
890 echo "configure:892: checking whether ${CXX-g++} accepts -g" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
893 else
894 echo 'void f(){}' > conftest.cc
895 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
896 ac_cv_prog_cxx_g=yes
897 else
898 ac_cv_prog_cxx_g=no
899 fi
900 rm -f conftest*
901
902 fi
903
904 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
905 if test "$ac_test_CXXFLAGS" = set; then
906 CXXFLAGS="$ac_save_CXXFLAGS"
907 elif test $ac_cv_prog_cxx_g = yes; then
908 if test "$GXX" = yes; then
909 CXXFLAGS="-g -O2"
910 else
911 CXXFLAGS="-g"
912 fi
913 else
914 if test "$GXX" = yes; then
915 CXXFLAGS="-O2"
916 else
917 CXXFLAGS=
918 fi
919 fi
920
921 # Find a good install program. We prefer a C program (faster),
922 # so one script is as good as another. But avoid the broken or
923 # incompatible versions:
924 # SysV /etc/install, /usr/sbin/install
925 # SunOS /usr/etc/install
926 # IRIX /sbin/install
927 # AIX /bin/install
928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
931 # ./install, which can be erroneously created by make from ./install.sh.
932 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
933 echo "configure:935: checking for a BSD compatible install" >&5
934 if test -z "$INSTALL"; then
935 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
937 else
938 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
939 for ac_dir in $PATH; do
940 # Account for people who put trailing slashes in PATH elements.
941 case "$ac_dir/" in
942 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
943 *)
944 # OSF1 and SCO ODT 3.0 have their own names for install.
945 # Don't use installbsd from OSF since it installs stuff as root
946 # by default.
947 for ac_prog in ginstall scoinst install; do
948 if test -f $ac_dir/$ac_prog; then
949 if test $ac_prog = install &&
950 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
951 # AIX install. It has an incompatible calling convention.
952 :
953 else
954 ac_cv_path_install="$ac_dir/$ac_prog -c"
955 break 2
956 fi
957 fi
958 done
959 ;;
960 esac
961 done
962 IFS="$ac_save_IFS"
963
964 fi
965 if test "${ac_cv_path_install+set}" = set; then
966 INSTALL="$ac_cv_path_install"
967 else
968 # As a last resort, use the slow shell script. We don't cache a
969 # path for INSTALL within a source directory, because that will
970 # break other packages using the cache if that directory is
971 # removed, or if the path is relative.
972 INSTALL="$ac_install_sh"
973 fi
974 fi
975 echo "$ac_t""$INSTALL" 1>&6
976
977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
978 # It thinks the first close brace ends the variable substitution.
979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
980
981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
982
983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
984
985
986 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
987 echo "configure:989: checking how to run the C preprocessor" >&5
988 # On Suns, sometimes $CPP names a directory.
989 if test -n "$CPP" && test -d "$CPP"; then
990 CPP=
991 fi
992 if test -z "$CPP"; then
993 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
995 else
996 # This must be in double quotes, not single quotes, because CPP may get
997 # substituted into the Makefile and "${CC-cc}" will confuse make.
998 CPP="${CC-cc} -E"
999 # On the NeXT, cc -E runs the code through the compiler's parser,
1000 # not just through cpp.
1001 cat > conftest.$ac_ext <<EOF
1002 #line 1004 "configure"
1003 #include "confdefs.h"
1004 #include <assert.h>
1005 Syntax Error
1006 EOF
1007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008 { (eval echo configure:1010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1010 if test -z "$ac_err"; then
1011 :
1012 else
1013 echo "$ac_err" >&5
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1016 rm -rf conftest*
1017 CPP="${CC-cc} -E -traditional-cpp"
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1021 "configure"
1020 #include "confdefs.h"
1021 #include <assert.h>
1022 Syntax Error
1023 EOF
1024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1027 if test -z "$ac_err"; then
1028 :
1029 else
1030 echo "$ac_err" >&5
1031 echo "configure: failed program was:" >&5
1032 cat conftest.$ac_ext >&5
1033 rm -rf conftest*
1034 CPP="${CC-cc} -nologo -E"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1038 "configure"
1037 #include "confdefs.h"
1038 #include <assert.h>
1039 Syntax Error
1040 EOF
1041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1042 { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1044 if test -z "$ac_err"; then
1045 :
1046 else
1047 echo "$ac_err" >&5
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1050 rm -rf conftest*
1051 CPP=/lib/cpp
1052 fi
1053 rm -f conftest*
1054 fi
1055 rm -f conftest*
1056 fi
1057 rm -f conftest*
1058 ac_cv_prog_CPP="$CPP"
1059 fi
1060 CPP="$ac_cv_prog_CPP"
1061 else
1062 ac_cv_prog_CPP="$CPP"
1063 fi
1064 echo "$ac_t""$CPP" 1>&6
1065
1066 for ac_hdr in curses.h signal.h sys/time.h sys/types.h sys/stat.h \
1067 unistd.h fcntl.h time.h stdlib.h math.h
1068 do
1069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1071 echo "configure:1073: checking for $ac_hdr" >&5
1072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074 else
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1078 "configure"
1077 #include "confdefs.h"
1078 #include <$ac_hdr>
1079 EOF
1080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1081 { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1083 if test -z "$ac_err"; then
1084 rm -rf conftest*
1085 eval "ac_cv_header_$ac_safe=yes"
1086 else
1087 echo "$ac_err" >&5
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1090 rm -rf conftest*
1091 eval "ac_cv_header_$ac_safe=no"
1092 fi
1093 rm -f conftest*
1094 fi
1095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1096 echo "$ac_t""yes" 1>&6
1097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1098 cat >> confdefs.h <<EOF
1099 #define $ac_tr_hdr 1
1100 EOF
1101
1102 else
1103 echo "$ac_t""no" 1>&6
1104 \
1105 { echo "configure: error: header missing" 1>&2; exit 1; }
1106 fi
1107 done
1108
1109 echo $ac_n "checking for wgetch in -lncurses""... $ac_c" 1>&6
1110 echo "configure:1112: checking for wgetch in -lncurses" >&5
1111 ac_lib_var=`echo ncurses'_'wgetch | sed 'y%./+-%__p_%'`
1112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114 else
1115 ac_save_LIBS="$LIBS"
1116 LIBS="-lncurses $LIBS"
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1120 "configure"
1119 #include "confdefs.h"
1120 /* Override any gcc2 internal prototype to avoid an error. */
1121 /* We use char because int might match the return type of a gcc2
1122 builtin and then its argument prototype would still apply. */
1123 char wgetch();
1124
1125 int main() {
1126 wgetch()
1127 ; return 0; }
1128 EOF
1129 if { (eval echo configure:1131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1130 rm -rf conftest*
1131 eval "ac_cv_lib_$ac_lib_var=yes"
1132 else
1133 echo "configure: failed program was:" >&5
1134 cat conftest.$ac_ext >&5
1135 rm -rf conftest*
1136 eval "ac_cv_lib_$ac_lib_var=no"
1137 fi
1138 rm -f conftest*
1139 LIBS="$ac_save_LIBS"
1140
1141 fi
1142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1143 echo "$ac_t""yes" 1>&6
1144 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1146 cat >> confdefs.h <<EOF
1147 #define $ac_tr_lib 1
1148 EOF
1149
1150 LIBS="-lncurses $LIBS"
1151
1152 else
1153 echo "$ac_t""no" 1>&6
1154 { echo "configure: error: recent ncurses installed?" 1>&2; exit 1; }
1155 fi
1156
1157
1158 ac_ext=C
1159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1160 ac_cpp='$CXXCPP $CPPFLAGS'
1161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1163 cross_compiling=$ac_cv_prog_cxx_cross
1164
1165 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1166 echo "configure:1168: checking how to run the C++ preprocessor" >&5
1167 if test -z "$CXXCPP"; then
1168 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171 ac_ext=C
1172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1173 ac_cpp='$CXXCPP $CPPFLAGS'
1174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1176 cross_compiling=$ac_cv_prog_cxx_cross
1177 CXXCPP="${CXX-g++} -E"
1178 cat > conftest.$ac_ext <<EOF
1179 #line 1181 "configure"
1180 #include "confdefs.h"
1181 #include <stdlib.h>
1182 EOF
1183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1184 { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1186 if test -z "$ac_err"; then
1187 :
1188 else
1189 echo "$ac_err" >&5
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1192 rm -rf conftest*
1193 CXXCPP=/lib/cpp
1194 fi
1195 rm -f conftest*
1196 ac_cv_prog_CXXCPP="$CXXCPP"
1197 ac_ext=C
1198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1199 ac_cpp='$CXXCPP $CPPFLAGS'
1200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1202 cross_compiling=$ac_cv_prog_cxx_cross
1203 fi
1204 fi
1205 CXXCPP="$ac_cv_prog_CXXCPP"
1206 echo "$ac_t""$CXXCPP" 1>&6
1207
1208 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
1209 echo $ac_n "checking for string""... $ac_c" 1>&6
1210 echo "configure:1212: checking for string" >&5
1211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1217 "configure"
1216 #include "confdefs.h"
1217 #include <string>
1218 EOF
1219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1220 { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1222 if test -z "$ac_err"; then
1223 rm -rf conftest*
1224 eval "ac_cv_header_$ac_safe=yes"
1225 else
1226 echo "$ac_err" >&5
1227 echo "configure: failed program was:" >&5
1228 cat conftest.$ac_ext >&5
1229 rm -rf conftest*
1230 eval "ac_cv_header_$ac_safe=no"
1231 fi
1232 rm -f conftest*
1233 fi
1234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1235 echo "$ac_t""yes" 1>&6
1236 :
1237 else
1238 echo "$ac_t""no" 1>&6
1239 { echo "configure: error: C++ STL string class missing" 1>&2; exit 1; }
1240 fi
1241
1242 ac_safe=`echo "vector" | sed 'y%./+-%__p_%'`
1243 echo $ac_n "checking for vector""... $ac_c" 1>&6
1244 echo "configure:1246: checking for vector" >&5
1245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1251 "configure"
1250 #include "confdefs.h"
1251 #include <vector>
1252 EOF
1253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1254 { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1256 if test -z "$ac_err"; then
1257 rm -rf conftest*
1258 eval "ac_cv_header_$ac_safe=yes"
1259 else
1260 echo "$ac_err" >&5
1261 echo "configure: failed program was:" >&5
1262 cat conftest.$ac_ext >&5
1263 rm -rf conftest*
1264 eval "ac_cv_header_$ac_safe=no"
1265 fi
1266 rm -f conftest*
1267 fi
1268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1269 echo "$ac_t""yes" 1>&6
1270 :
1271 else
1272 echo "$ac_t""no" 1>&6
1273 { echo "configure: error: C++ STL vector class missing" 1>&2; exit 1; }
1274 fi
1275
1276 ac_safe=`echo "algorithm" | sed 'y%./+-%__p_%'`
1277 echo $ac_n "checking for algorithm""... $ac_c" 1>&6
1278 echo "configure:1280: checking for algorithm" >&5
1279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1281 else
1282 cat > conftest.$ac_ext <<EOF
1283 #line 1285 "configure"
1284 #include "confdefs.h"
1285 #include <algorithm>
1286 EOF
1287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1288 { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1290 if test -z "$ac_err"; then
1291 rm -rf conftest*
1292 eval "ac_cv_header_$ac_safe=yes"
1293 else
1294 echo "$ac_err" >&5
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1297 rm -rf conftest*
1298 eval "ac_cv_header_$ac_safe=no"
1299 fi
1300 rm -f conftest*
1301 fi
1302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1303 echo "$ac_t""yes" 1>&6
1304 :
1305 else
1306 echo "$ac_t""no" 1>&6
1307 { echo "configure: error: C++ STL algorithm class missing" 1>&2; exit 1; }
1308 fi
1309
1310
1311 sv1="$prefix"
1312 test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
1313 sv2=`eval echo $datadir/$PACKAGE`
1314 prefix="$sv1"
1315 cat >> confdefs.h <<EOF
1316 #define SHAREDIR "$sv2"
1317 EOF
1318
1319 trap '' 1 2 15
1320 cat > confcache <<\EOF
1321 # This file is a shell script that caches the results of configure
1322 # tests run on this system so they can be shared between configure
1323 # scripts and configure runs. It is not useful on other systems.
1324 # If it contains results you don't want to keep, you may remove or edit it.
1325 #
1326 # By default, configure uses ./config.cache as the cache file,
1327 # creating it if it does not exist already. You can give configure
1328 # the --cache-file=FILE option to use a different cache file; that is
1329 # what configure does when it calls configure scripts in
1330 # subdirectories, so they share the cache.
1331 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1332 # config.status only pays attention to the cache file if you give it the
1333 # --recheck option to rerun configure.
1334 #
1335 EOF
1336 # The following way of writing the cache mishandles newlines in values,
1337 # but we know of no workaround that is simple, portable, and efficient.
1338 # So, don't put newlines in cache variables' values.
1339 # Ultrix sh set writes to stderr and can't be redirected directly,
1340 # and sets the high bit in the cache file unless we assign to the vars.
1341 (set) 2>&1 |
1342 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1343 *ac_space=\ *)
1344 # `set' does not quote correctly, so add quotes (double-quote substitution
1345 # turns \\\\ into \\, and sed turns \\ into \).
1346 sed -n \
1347 -e "s/'/'\\\\''/g" \
1348 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1349 ;;
1350 *)
1351 # `set' quotes correctly as required by POSIX, so do not add quotes.
1352 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1353 ;;
1354 esac >> confcache
1355 if cmp -s $cache_file confcache; then
1356 :
1357 else
1358 if test -w $cache_file; then
1359 echo "updating cache $cache_file"
1360 cat confcache > $cache_file
1361 else
1362 echo "not updating unwritable cache $cache_file"
1363 fi
1364 fi
1365 rm -f confcache
1366
1367 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1368
1369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1370 # Let make expand exec_prefix.
1371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1372
1373 # Any assignment to VPATH causes Sun make to only execute
1374 # the first set of double-colon rules, so remove it if not needed.
1375 # If there is a colon in the path, we need to keep it.
1376 if test "x$srcdir" = x.; then
1377 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1378 fi
1379
1380 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1381
1382 DEFS=-DHAVE_CONFIG_H
1383
1384 # Without the "./", some shells look in PATH for config.status.
1385 : ${CONFIG_STATUS=./config.status}
1386
1387 echo creating $CONFIG_STATUS
1388 rm -f $CONFIG_STATUS
1389 cat > $CONFIG_STATUS <<EOF
1390 #! /bin/sh
1391 # Generated automatically by configure.
1392 # Run this file to recreate the current configuration.
1393 # This directory was configured as follows,
1394 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1395 #
1396 # $0 $ac_configure_args
1397 #
1398 # Compiler output produced by configure, useful for debugging
1399 # configure, is in ./config.log if it exists.
1400
1401 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1402 for ac_option
1403 do
1404 case "\$ac_option" in
1405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1406 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1407 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1408 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1409 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1410 exit 0 ;;
1411 -help | --help | --hel | --he | --h)
1412 echo "\$ac_cs_usage"; exit 0 ;;
1413 *) echo "\$ac_cs_usage"; exit 1 ;;
1414 esac
1415 done
1416
1417 ac_given_srcdir=$srcdir
1418 ac_given_INSTALL="$INSTALL"
1419
1420 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1421 EOF
1422 cat >> $CONFIG_STATUS <<EOF
1423
1424 # Protect against being on the right side of a sed subst in config.status.
1425 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1426 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1427 $ac_vpsub
1428 $extrasub
1429 s%@SHELL@%$SHELL%g
1430 s%@CFLAGS@%$CFLAGS%g
1431 s%@CPPFLAGS@%$CPPFLAGS%g
1432 s%@CXXFLAGS@%$CXXFLAGS%g
1433 s%@FFLAGS@%$FFLAGS%g
1434 s%@DEFS@%$DEFS%g
1435 s%@LDFLAGS@%$LDFLAGS%g
1436 s%@LIBS@%$LIBS%g
1437 s%@exec_prefix@%$exec_prefix%g
1438 s%@prefix@%$prefix%g
1439 s%@program_transform_name@%$program_transform_name%g
1440 s%@bindir@%$bindir%g
1441 s%@sbindir@%$sbindir%g
1442 s%@libexecdir@%$libexecdir%g
1443 s%@datadir@%$datadir%g
1444 s%@sysconfdir@%$sysconfdir%g
1445 s%@sharedstatedir@%$sharedstatedir%g
1446 s%@localstatedir@%$localstatedir%g
1447 s%@libdir@%$libdir%g
1448 s%@includedir@%$includedir%g
1449 s%@oldincludedir@%$oldincludedir%g
1450 s%@infodir@%$infodir%g
1451 s%@mandir@%$mandir%g
1452 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1453 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1454 s%@INSTALL_DATA@%$INSTALL_DATA%g
1455 s%@PACKAGE@%$PACKAGE%g
1456 s%@VERSION@%$VERSION%g
1457 s%@ACLOCAL@%$ACLOCAL%g
1458 s%@AUTOCONF@%$AUTOCONF%g
1459 s%@AUTOMAKE@%$AUTOMAKE%g
1460 s%@AUTOHEADER@%$AUTOHEADER%g
1461 s%@MAKEINFO@%$MAKEINFO%g
1462 s%@SET_MAKE@%$SET_MAKE%g
1463 s%@CXX@%$CXX%g
1464 s%@CPP@%$CPP%g
1465 s%@CXXCPP@%$CXXCPP%g
1466
1467 CEOF
1468 EOF
1469
1470 cat >> $CONFIG_STATUS <<\EOF
1471
1472 # Split the substitutions into bite-sized pieces for seds with
1473 # small command number limits, like on Digital OSF/1 and HP-UX.
1474 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1475 ac_file=1 # Number of current file.
1476 ac_beg=1 # First line for current file.
1477 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1478 ac_more_lines=:
1479 ac_sed_cmds=""
1480 while $ac_more_lines; do
1481 if test $ac_beg -gt 1; then
1482 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1483 else
1484 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1485 fi
1486 if test ! -s conftest.s$ac_file; then
1487 ac_more_lines=false
1488 rm -f conftest.s$ac_file
1489 else
1490 if test -z "$ac_sed_cmds"; then
1491 ac_sed_cmds="sed -f conftest.s$ac_file"
1492 else
1493 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1494 fi
1495 ac_file=`expr $ac_file + 1`
1496 ac_beg=$ac_end
1497 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1498 fi
1499 done
1500 if test -z "$ac_sed_cmds"; then
1501 ac_sed_cmds=cat
1502 fi
1503 EOF
1504
1505 cat >> $CONFIG_STATUS <<EOF
1506
1507 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1508 EOF
1509 cat >> $CONFIG_STATUS <<\EOF
1510 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1512 case "$ac_file" in
1513 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1514 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1515 *) ac_file_in="${ac_file}.in" ;;
1516 esac
1517
1518 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1519
1520 # Remove last slash and all that follows it. Not all systems have dirname.
1521 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1522 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1523 # The file is in a subdirectory.
1524 test ! -d "$ac_dir" && mkdir "$ac_dir"
1525 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1526 # A "../" for each directory in $ac_dir_suffix.
1527 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1528 else
1529 ac_dir_suffix= ac_dots=
1530 fi
1531
1532 case "$ac_given_srcdir" in
1533 .) srcdir=.
1534 if test -z "$ac_dots"; then top_srcdir=.
1535 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1536 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1537 *) # Relative path.
1538 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1539 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1540 esac
1541
1542 case "$ac_given_INSTALL" in
1543 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1544 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1545 esac
1546
1547 echo creating "$ac_file"
1548 rm -f "$ac_file"
1549 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1550 case "$ac_file" in
1551 *Makefile*) ac_comsub="1i\\
1552 # $configure_input" ;;
1553 *) ac_comsub= ;;
1554 esac
1555
1556 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1557 sed -e "$ac_comsub
1558 s%@configure_input@%$configure_input%g
1559 s%@srcdir@%$srcdir%g
1560 s%@top_srcdir@%$top_srcdir%g
1561 s%@INSTALL@%$INSTALL%g
1562 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1563 fi; done
1564 rm -f conftest.s*
1565
1566 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1567 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1568 #
1569 # ac_d sets the value in "#define NAME VALUE" lines.
1570 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1571 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1572 ac_dC='\3'
1573 ac_dD='%g'
1574 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1575 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1576 ac_uB='\([ ]\)%\1#\2define\3'
1577 ac_uC=' '
1578 ac_uD='\4%g'
1579 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1580 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1581 ac_eB='$%\1#\2define\3'
1582 ac_eC=' '
1583 ac_eD='%g'
1584
1585 if test "${CONFIG_HEADERS+set}" != set; then
1586 EOF
1587 cat >> $CONFIG_STATUS <<EOF
1588 CONFIG_HEADERS="config.h"
1589 EOF
1590 cat >> $CONFIG_STATUS <<\EOF
1591 fi
1592 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1593 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1594 case "$ac_file" in
1595 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1596 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1597 *) ac_file_in="${ac_file}.in" ;;
1598 esac
1599
1600 echo creating $ac_file
1601
1602 rm -f conftest.frag conftest.in conftest.out
1603 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1604 cat $ac_file_inputs > conftest.in
1605
1606 EOF
1607
1608 # Transform confdefs.h into a sed script conftest.vals that substitutes
1609 # the proper values into config.h.in to produce config.h. And first:
1610 # Protect against being on the right side of a sed subst in config.status.
1611 # Protect against being in an unquoted here document in config.status.
1612 rm -f conftest.vals
1613 cat > conftest.hdr <<\EOF
1614 s/[\\&%]/\\&/g
1615 s%[\\$`]%\\&%g
1616 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1617 s%ac_d%ac_u%gp
1618 s%ac_u%ac_e%gp
1619 EOF
1620 sed -n -f conftest.hdr confdefs.h > conftest.vals
1621 rm -f conftest.hdr
1622
1623 # This sed command replaces #undef with comments. This is necessary, for
1624 # example, in the case of _POSIX_SOURCE, which is predefined and required
1625 # on some systems where configure will not decide to define it.
1626 cat >> conftest.vals <<\EOF
1627 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1628 EOF
1629
1630 # Break up conftest.vals because some shells have a limit on
1631 # the size of here documents, and old seds have small limits too.
1632
1633 rm -f conftest.tail
1634 while :
1635 do
1636 ac_lines=`grep -c . conftest.vals`
1637 # grep -c gives empty output for an empty file on some AIX systems.
1638 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1639 # Write a limited-size here document to conftest.frag.
1640 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1641 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1642 echo 'CEOF
1643 sed -f conftest.frag conftest.in > conftest.out
1644 rm -f conftest.in
1645 mv conftest.out conftest.in
1646 ' >> $CONFIG_STATUS
1647 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1648 rm -f conftest.vals
1649 mv conftest.tail conftest.vals
1650 done
1651 rm -f conftest.vals
1652
1653 cat >> $CONFIG_STATUS <<\EOF
1654 rm -f conftest.frag conftest.h
1655 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1656 cat conftest.in >> conftest.h
1657 rm -f conftest.in
1658 if cmp -s $ac_file conftest.h 2>/dev/null; then
1659 echo "$ac_file is unchanged"
1660 rm -f conftest.h
1661 else
1662 # Remove last slash and all that follows it. Not all systems have dirname.
1663 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1664 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1665 # The file is in a subdirectory.
1666 test ! -d "$ac_dir" && mkdir "$ac_dir"
1667 fi
1668 rm -f $ac_file
1669 mv conftest.h $ac_file
1670 fi
1671 fi; done
1672
1673 EOF
1674 cat >> $CONFIG_STATUS <<EOF
1675
1676
1677 EOF
1678 cat >> $CONFIG_STATUS <<\EOF
1679 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
1680
1681 exit 0
1682 EOF
1683 chmod +x $CONFIG_STATUS
1684 rm -fr confdefs* $ac_clean_files
1685 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1686
0 AC_INIT(squidview.cpp)
1 AM_CONFIG_HEADER(config.h)
2 AM_INIT_AUTOMAKE(squidview,0.63)
3 AC_PROG_CXX
4 AC_PROG_INSTALL
5
6 AC_CHECK_HEADERS(curses.h signal.h sys/time.h sys/types.h sys/stat.h \
7 unistd.h fcntl.h time.h stdlib.h math.h,, \
8 AC_MSG_ERROR([header missing]))
9 AC_CHECK_LIB(ncurses, wgetch,,AC_MSG_ERROR([recent ncurses installed?]))
10
11 AC_LANG_CPLUSPLUS
12 AC_CHECK_HEADER(string,,AC_MSG_ERROR(C++ STL string class missing))
13 AC_CHECK_HEADER(vector,,AC_MSG_ERROR(C++ STL vector class missing))
14 AC_CHECK_HEADER(algorithm,,AC_MSG_ERROR(C++ STL algorithm class missing))
15
16 sv1="$prefix"
17 test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
18 sv2=`eval echo $datadir/$PACKAGE`
19 prefix="$sv1"
20 AC_DEFINE_UNQUOTED(SHAREDIR, "$sv2")
21 AC_OUTPUT(Makefile)
0 1007949021.553 86 192.168.0.103 TCP_MEM_HIT/200 6947 GET http://us.a1.yimg.com/us.yimg.com/i/ww/m5v6.gif graeme NONE/- image/gif
1 1007949022.484 4374 192.168.0.103 TCP_MISS/200 22349 GET http://www.yahoo.com/ graeme DIRECT/64.58.76.223 text/html
2 1007949022.884 74 192.168.0.103 TCP_HIT/200 4043 GET http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_promotions/fp2.gif graeme NONE/- image/gif
3 1007949027.488 4418 192.168.0.103 TCP_MISS/000 0 GET http://us.a1.yimg.com/us.yimg.com/i/us/auc/b/auc16_1.gif graeme NONE/- -
4 1007949028.056 4569 192.168.0.103 TCP_MISS/000 0 GET http://us.i1.yimg.com/us.yimg.com/i/us/sh/pr/hol01/rib.gif graeme NONE/- -
5 1007949028.059 4604 192.168.0.103 TCP_MISS/000 0 GET http://us.i1.yimg.com/us.yimg.com/i/us/sh/pr/hol01/bow.gif graeme NONE/- -
6 1007949028.061 4544 192.168.0.103 TCP_MISS/000 0 GET http://us.i1.yimg.com/us.yimg.com/i/space.gif graeme NONE/- -
7 1007949028.063 4346 192.168.0.103 TCP_MISS/000 0 GET http://us.a1.yimg.com/us.yimg.com/i/sh/h99/holly.gif graeme NONE/- -
8 1007949028.065 4258 192.168.0.103 TCP_MISS/000 0 GET http://us.a1.yimg.com/us.yimg.com/a/an/anchor/shopping/ads/new37/dell.gif graeme NONE/- -
9