xaizek / vide (License: GPLv2+) (since 2018-12-07)
Graphical predecessor of vifm that uses GTK+.
Commit 695cdb530483b2b27a1f0039884267292099c3ed

Import Vide v0.5.2

This is graphical (uses GTK+) predecessor of vifm.

Author: xaizek
Author date (UTC): 2014-05-18 15:10
Committer: xaizek
Commit date (UTC): 2014-05-18 15:10
Tree: 1248ff796bd7bd3d21a97ff9eccc38fdf503532e
File Lines added Lines deleted
AUTHORS 12 0
COPYING 339 0
ChangeLog 148 0
INSTALL 18 0
Makefile.am 6 0
Makefile.in 377 0
NEWS 0 0
README 4 0
TODO 11 0
acconfig.h 9 0
aclocal.m4 849 0
autogen.sh 148 0
config.h.in 27 0
configure 3242 0
configure.in 55 0
install-sh 251 0
macros/Makefile 234 0
macros/Makefile.am 41 0
macros/Makefile.in 234 0
macros/aclocal-include.m4 16 0
macros/autogen.sh 169 0
macros/compiler-flags.m4 109 0
macros/curses.m4 318 0
macros/gnome-bonobo-check.m4 150 0
macros/gnome-common.m4 14 0
macros/gnome-fileutils.m4 414 0
macros/gnome-ghttp-check.m4 14 0
macros/gnome-gnorba-check.m4 35 0
macros/gnome-guile-checks.m4 119 0
macros/gnome-libgtop-check.m4 217 0
macros/gnome-objc-checks.m4 83 0
macros/gnome-orbit-check.m4 33 0
macros/gnome-print-check.m4 171 0
macros/gnome-pthread-check.m4 16 0
macros/gnome-support.m4 68 0
macros/gnome-undelfs.m4 20 0
macros/gnome-vfs.m4 120 0
macros/gnome-x-checks.m4 80 0
macros/gnome-xml-check.m4 30 0
macros/gnome.m4 128 0
macros/gperf-check.m4 79 0
macros/linger.m4 28 0
macros/need-declaration.m4 42 0
missing 190 0
mkinstalldirs 40 0
src/Makefile.am 56 0
src/Makefile.in 413 0
src/add_ext_dialog.c 173 0
src/bookmarks.c 271 0
src/buffer_menu.c 115 0
src/callbacks.c 132 0
src/command_mode.c 796 0
src/command_mode_menu.c 128 0
src/config_dialog.c 1729 0
src/config_files.c 1166 0
src/confirm_dialog.c 126 0
src/copy_here_dialog.c 93 0
src/date_filter_dialog.c 182 0
src/file_info_dialog.c 264 0
src/filelist.c 887 0
src/filename_filter_dialog.c 115 0
src/fileops.c 338 0
src/fileselector.c 390 0
src/filetype.c 132 0
src/filetype_dialog.c 237 0
src/filetype_popup.c 326 0
src/for_each_dialog.c 144 0
src/history.c 77 0
src/icon_dirparent.xpm 72 0
src/init_filetype_dialog.c 151 0
src/main_menu.c 336 0
src/misc_dialogs.c 238 0
src/ownership_dialog.c 254 0
src/pauseme 8 0
src/permissions_dialog.c 338 0
src/programs_dialog.c 128 0
src/programs_menu.c 101 0
src/rename_ext_dialog.c 121 0
src/search_mode.c 342 0
src/size_filter_dialog.c 176 0
src/term.c 928 0
src/term_menu.c 336 0
src/user_command.c 32 0
src/user_command_dialog.c 128 0
src/user_prompt.c 97 0
src/utils.c 512 0
src/vide.c 534 0
src/vide.h 585 0
src/vide0.5.2.txt 159 0
src/view_dialog.c 92 0
src/widget_utils.c 340 0
src/window.c 1150 0
stamp-h.in 1 0

File AUTHORS added (mode: 100644) (index 0000000..42efe0c)
1 Vide is based on the source code of emelfm by Michael Clark.
2
3 Sergei Gnezdov worked on the FreeBSD port of Vide0.5 and contributed several
4 patches including Ctrl + G to show the file information on the status bar.
5
6 Colman Reilly careilly@thecia.ie maintains the FreeBSD port available from
7 http://www.freebsd.org/ports/x11-fm.html
8
9
10 Bug reports or questions should be sent to ksteen@users.sourceforge.net
11
12

File COPYING added (mode: 100644) (index 0000000..a43ea21)
1 GNU GENERAL PUBLIC LICENSE
2 Version 2, June 1991
3
4 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5 675 Mass Ave, Cambridge, MA 02139, USA
6 Everyone is permitted to copy and distribute verbatim copies
7 of this license document, but changing it is not allowed.
8
9 Preamble
10
11 The licenses for most software are designed to take away your
12 freedom to share and change it. By contrast, the GNU General Public
13 License is intended to guarantee your freedom to share and change free
14 software--to make sure the software is free for all its users. This
15 General Public License applies to most of the Free Software
16 Foundation's software and to any other program whose authors commit to
17 using it. (Some other Free Software Foundation software is covered by
18 the GNU Library General Public License instead.) You can apply it to
19 your programs, too.
20
21 When we speak of free software, we are referring to freedom, not
22 price. Our General Public Licenses are designed to make sure that you
23 have the freedom to distribute copies of free software (and charge for
24 this service if you wish), that you receive source code or can get it
25 if you want it, that you can change the software or use pieces of it
26 in new free programs; and that you know you can do these things.
27
28 To protect your rights, we need to make restrictions that forbid
29 anyone to deny you these rights or to ask you to surrender the rights.
30 These restrictions translate to certain responsibilities for you if you
31 distribute copies of the software, or if you modify it.
32
33 For example, if you distribute copies of such a program, whether
34 gratis or for a fee, you must give the recipients all the rights that
35 you have. You must make sure that they, too, receive or can get the
36 source code. And you must show them these terms so they know their
37 rights.
38
39 We protect your rights with two steps: (1) copyright the software, and
40 (2) offer you this license which gives you legal permission to copy,
41 distribute and/or modify the software.
42
43 Also, for each author's protection and ours, we want to make certain
44 that everyone understands that there is no warranty for this free
45 software. If the software is modified by someone else and passed on, we
46 want its recipients to know that what they have is not the original, so
47 that any problems introduced by others will not reflect on the original
48 authors' reputations.
49
50 Finally, any free program is threatened constantly by software
51 patents. We wish to avoid the danger that redistributors of a free
52 program will individually obtain patent licenses, in effect making the
53 program proprietary. To prevent this, we have made it clear that any
54 patent must be licensed for everyone's free use or not licensed at all.
55
56 The precise terms and conditions for copying, distribution and
57 modification follow.
58
59 GNU GENERAL PUBLIC LICENSE
60 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
62 0. This License applies to any program or other work which contains
63 a notice placed by the copyright holder saying it may be distributed
64 under the terms of this General Public License. The "Program", below,
65 refers to any such program or work, and a "work based on the Program"
66 means either the Program or any derivative work under copyright law:
67 that is to say, a work containing the Program or a portion of it,
68 either verbatim or with modifications and/or translated into another
69 language. (Hereinafter, translation is included without limitation in
70 the term "modification".) Each licensee is addressed as "you".
71
72 Activities other than copying, distribution and modification are not
73 covered by this License; they are outside its scope. The act of
74 running the Program is not restricted, and the output from the Program
75 is covered only if its contents constitute a work based on the
76 Program (independent of having been made by running the Program).
77 Whether that is true depends on what the Program does.
78
79 1. You may copy and distribute verbatim copies of the Program's
80 source code as you receive it, in any medium, provided that you
81 conspicuously and appropriately publish on each copy an appropriate
82 copyright notice and disclaimer of warranty; keep intact all the
83 notices that refer to this License and to the absence of any warranty;
84 and give any other recipients of the Program a copy of this License
85 along with the Program.
86
87 You may charge a fee for the physical act of transferring a copy, and
88 you may at your option offer warranty protection in exchange for a fee.
89
90 2. You may modify your copy or copies of the Program or any portion
91 of it, thus forming a work based on the Program, and copy and
92 distribute such modifications or work under the terms of Section 1
93 above, provided that you also meet all of these conditions:
94
95 a) You must cause the modified files to carry prominent notices
96 stating that you changed the files and the date of any change.
97
98 b) You must cause any work that you distribute or publish, that in
99 whole or in part contains or is derived from the Program or any
100 part thereof, to be licensed as a whole at no charge to all third
101 parties under the terms of this License.
102
103 c) If the modified program normally reads commands interactively
104 when run, you must cause it, when started running for such
105 interactive use in the most ordinary way, to print or display an
106 announcement including an appropriate copyright notice and a
107 notice that there is no warranty (or else, saying that you provide
108 a warranty) and that users may redistribute the program under
109 these conditions, and telling the user how to view a copy of this
110 License. (Exception: if the Program itself is interactive but
111 does not normally print such an announcement, your work based on
112 the Program is not required to print an announcement.)
113
114 These requirements apply to the modified work as a whole. If
115 identifiable sections of that work are not derived from the Program,
116 and can be reasonably considered independent and separate works in
117 themselves, then this License, and its terms, do not apply to those
118 sections when you distribute them as separate works. But when you
119 distribute the same sections as part of a whole which is a work based
120 on the Program, the distribution of the whole must be on the terms of
121 this License, whose permissions for other licensees extend to the
122 entire whole, and thus to each and every part regardless of who wrote it.
123
124 Thus, it is not the intent of this section to claim rights or contest
125 your rights to work written entirely by you; rather, the intent is to
126 exercise the right to control the distribution of derivative or
127 collective works based on the Program.
128
129 In addition, mere aggregation of another work not based on the Program
130 with the Program (or with a work based on the Program) on a volume of
131 a storage or distribution medium does not bring the other work under
132 the scope of this License.
133
134 3. You may copy and distribute the Program (or a work based on it,
135 under Section 2) in object code or executable form under the terms of
136 Sections 1 and 2 above provided that you also do one of the following:
137
138 a) Accompany it with the complete corresponding machine-readable
139 source code, which must be distributed under the terms of Sections
140 1 and 2 above on a medium customarily used for software interchange; or,
141
142 b) Accompany it with a written offer, valid for at least three
143 years, to give any third party, for a charge no more than your
144 cost of physically performing source distribution, a complete
145 machine-readable copy of the corresponding source code, to be
146 distributed under the terms of Sections 1 and 2 above on a medium
147 customarily used for software interchange; or,
148
149 c) Accompany it with the information you received as to the offer
150 to distribute corresponding source code. (This alternative is
151 allowed only for noncommercial distribution and only if you
152 received the program in object code or executable form with such
153 an offer, in accord with Subsection b above.)
154
155 The source code for a work means the preferred form of the work for
156 making modifications to it. For an executable work, complete source
157 code means all the source code for all modules it contains, plus any
158 associated interface definition files, plus the scripts used to
159 control compilation and installation of the executable. However, as a
160 special exception, the source code distributed need not include
161 anything that is normally distributed (in either source or binary
162 form) with the major components (compiler, kernel, and so on) of the
163 operating system on which the executable runs, unless that component
164 itself accompanies the executable.
165
166 If distribution of executable or object code is made by offering
167 access to copy from a designated place, then offering equivalent
168 access to copy the source code from the same place counts as
169 distribution of the source code, even though third parties are not
170 compelled to copy the source along with the object code.
171
172 4. You may not copy, modify, sublicense, or distribute the Program
173 except as expressly provided under this License. Any attempt
174 otherwise to copy, modify, sublicense or distribute the Program is
175 void, and will automatically terminate your rights under this License.
176 However, parties who have received copies, or rights, from you under
177 this License will not have their licenses terminated so long as such
178 parties remain in full compliance.
179
180 5. You are not required to accept this License, since you have not
181 signed it. However, nothing else grants you permission to modify or
182 distribute the Program or its derivative works. These actions are
183 prohibited by law if you do not accept this License. Therefore, by
184 modifying or distributing the Program (or any work based on the
185 Program), you indicate your acceptance of this License to do so, and
186 all its terms and conditions for copying, distributing or modifying
187 the Program or works based on it.
188
189 6. Each time you redistribute the Program (or any work based on the
190 Program), the recipient automatically receives a license from the
191 original licensor to copy, distribute or modify the Program subject to
192 these terms and conditions. You may not impose any further
193 restrictions on the recipients' exercise of the rights granted herein.
194 You are not responsible for enforcing compliance by third parties to
195 this License.
196
197 7. If, as a consequence of a court judgment or allegation of patent
198 infringement or for any other reason (not limited to patent issues),
199 conditions are imposed on you (whether by court order, agreement or
200 otherwise) that contradict the conditions of this License, they do not
201 excuse you from the conditions of this License. If you cannot
202 distribute so as to satisfy simultaneously your obligations under this
203 License and any other pertinent obligations, then as a consequence you
204 may not distribute the Program at all. For example, if a patent
205 license would not permit royalty-free redistribution of the Program by
206 all those who receive copies directly or indirectly through you, then
207 the only way you could satisfy both it and this License would be to
208 refrain entirely from distribution of the Program.
209
210 If any portion of this section is held invalid or unenforceable under
211 any particular circumstance, the balance of the section is intended to
212 apply and the section as a whole is intended to apply in other
213 circumstances.
214
215 It is not the purpose of this section to induce you to infringe any
216 patents or other property right claims or to contest validity of any
217 such claims; this section has the sole purpose of protecting the
218 integrity of the free software distribution system, which is
219 implemented by public license practices. Many people have made
220 generous contributions to the wide range of software distributed
221 through that system in reliance on consistent application of that
222 system; it is up to the author/donor to decide if he or she is willing
223 to distribute software through any other system and a licensee cannot
224 impose that choice.
225
226 This section is intended to make thoroughly clear what is believed to
227 be a consequence of the rest of this License.
228
229 8. If the distribution and/or use of the Program is restricted in
230 certain countries either by patents or by copyrighted interfaces, the
231 original copyright holder who places the Program under this License
232 may add an explicit geographical distribution limitation excluding
233 those countries, so that distribution is permitted only in or among
234 countries not thus excluded. In such case, this License incorporates
235 the limitation as if written in the body of this License.
236
237 9. The Free Software Foundation may publish revised and/or new versions
238 of the General Public License from time to time. Such new versions will
239 be similar in spirit to the present version, but may differ in detail to
240 address new problems or concerns.
241
242 Each version is given a distinguishing version number. If the Program
243 specifies a version number of this License which applies to it and "any
244 later version", you have the option of following the terms and conditions
245 either of that version or of any later version published by the Free
246 Software Foundation. If the Program does not specify a version number of
247 this License, you may choose any version ever published by the Free Software
248 Foundation.
249
250 10. If you wish to incorporate parts of the Program into other free
251 programs whose distribution conditions are different, write to the author
252 to ask for permission. For software which is copyrighted by the Free
253 Software Foundation, write to the Free Software Foundation; we sometimes
254 make exceptions for this. Our decision will be guided by the two goals
255 of preserving the free status of all derivatives of our free software and
256 of promoting the sharing and reuse of software generally.
257
258 NO WARRANTY
259
260 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268 REPAIR OR CORRECTION.
269
270 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278 POSSIBILITY OF SUCH DAMAGES.
279
280 END OF TERMS AND CONDITIONS
281
282 Appendix: How to Apply These Terms to Your New Programs
283
284 If you develop a new program, and you want it to be of the greatest
285 possible use to the public, the best way to achieve this is to make it
286 free software which everyone can redistribute and change under these terms.
287
288 To do so, attach the following notices to the program. It is safest
289 to attach them to the start of each source file to most effectively
290 convey the exclusion of warranty; and each file should have at least
291 the "copyright" line and a pointer to where the full notice is found.
292
293 <one line to give the program's name and a brief idea of what it does.>
294 Copyright (C) 19yy <name of author>
295
296 This program is free software; you can redistribute it and/or modify
297 it under the terms of the GNU General Public License as published by
298 the Free Software Foundation; either version 2 of the License, or
299 (at your option) any later version.
300
301 This program is distributed in the hope that it will be useful,
302 but WITHOUT ANY WARRANTY; without even the implied warranty of
303 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304 GNU General Public License for more details.
305
306 You should have received a copy of the GNU General Public License
307 along with this program; if not, write to the Free Software
308 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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) 19yy 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.

File ChangeLog added (mode: 100644) (index 0000000..75b7798)
1 Changes 0.5 to 0.5.2
2 Fixed annoying bug when using vim that would cause the clist to display
3 incorrectly.
4
5 A menu bar was added to each zvt term widget
6
7 The notebook page can now contain more than one terminal.
8
9 The terminals can now be detached from the notebook page.
10
11 New keybindings for the terms.
12 <alt>w j moves down one term
13 <alt>w k moves up one term
14 <alt>w n creates a new terminal on the notebook page.
15 <alt>w m creates a new term running man + word under the cursor.
16 This is similar to pressing K in vim with the added benefit of still
17 being able to see the original code while reading the man page.
18
19 When selecting a file from the term menu bar you can use your normal
20 bookmarks with ' and search for files with /pattern. You cannot use
21 :commands.
22
23 The status bar message was changed to show a brief summary of the
24 selected file. If more than one file is selected, the number of
25 selected files is shown
26
27 :path command was changed to :pwd or :pw
28 or you can just use ctrl g which will show the full path and the file
29 information.
30
31 Changes 0.4 to 0.5
32 All terminal colors may now be customized.
33 Fixed support for vile, elvis, and nvi.
34 Added hidden notebook tab option.
35 Fixed memory leak when using regcomp();
36 :ls command creates a popup menu and jumps to the notebook page selected.
37 All notebook tabs now show the notebook page number.
38 Added relative directory to :cd and :sb commands - :cd projects
39 or :cd ~/misc
40 :q quit unless there are stll terminals open
41 :q! quit even if there are terminals open
42 :x write current vi and close page unless readonly.
43 Added a cancel option to all main menus.
44 Added :!! command :!![command] creates a shell and executes pauseme + the
45 executed command. :!!ls instead of :!pauseme ls
46 :path or :pa will show the full path of the current directory on the status
47 bar - patch submited by Sergei Gnezdov
48 Ctrl+G will show the file properties of the current selected file on
49 the status bar - patch submited by Sergei Gnezdov
50 %f may be use inside of a %{} prompt command to put the current selected
51 file inside of the popup entry - this probably should be expanded to
52 enable %d or %D to be use also. - patch submited by Eric Johnson
53
54 Changes 0.3 to 0.4
55 added sorting function to bookmarks
56 added notebook interface and zvt
57 removed pauseme from the :! command
58 fixed bug with setting a :com without enough arguments.
59 If you use the mouse to select the notebook page, move the scrollbars,
60 or click on the column title the clist now grabs the focus back like
61 it should. The up directory button still does not work properly.
62 Ctrl Q was changed to alt q.
63
64 Changes 0.2.9 to 0.3
65 Fixed column title lists to change sort.
66 Fixed to work with gnome-terminal as it takes different arguments than
67 xterm or rxvt
68 Added support for vimclient. Only works with gvim6.0
69 :vs command for vim6.0 running in a console
70 Removed the -f option from the mv command as it will delete a file if you
71 tried to move the file into the same directory.
72 Changed the copy command to cp -R to allow copying of directories
73
74 Changes 0.2.8 to 0.2.9
75
76 fixed bug in using a search pattern in a command. :com backup /~$
77 fixed command mode to use all the selected files with the command instead of
78 just the first selected file.
79 vi_server can now accept multiple files up to 100 files
80 The 100 file limit is just an arbitrary number that could be increased.
81 You can load multiple files into vi with :e
82 /[Return] will now search for the previous pattern
83 t will tag or untag files in a directory
84 Added filters to the Options menu
85 Date, Size, Name
86 :fil[ter]
87 :nofil[ter]
88 :set filter [pattern]
89 :set filter invert [pattern]
90 :in[vert]
91 :on[ly] will hide the command list and other file list
92 :new will show the hidden file list
93
94
95 Changes vide 0.27 to vide 0.28
96
97 numbers used to show vi sessions are reused
98 vide will reattach to vi sessions from a previous vide session
99 support for nvi, elvis, vile
100 added code to handle vi_server from the filetypes popup menu
101 fixed bug when emptying trash directory from the other view that would
102 not let you move back into the trash directory.
103
104 Changes vide 0.26 to vide 0.2.7
105
106 fixed reloading of trash directory when removing a large amount of files
107 fixed focus bug when useing dd on last file in a directory
108 added up directory button
109 added :x command same as :q
110 added '' will return to last position
111 added :his[tory] command
112 initial support for loading of files into a running vim.
113
114
115
116 Changes vide 0.2.5 to vide-0.2.6
117
118 vide can now handle file names with spaces
119 Scrollbars are now configurable
120 Mouse double click in command menu executes selected command
121 Mouse right click will create filetype popup menu
122 Changed updating of clists to reduce flicker
123 Fixed directory history when moving up a directory
124 :commands are now user defineable
125 :com popup menu of user commands
126 :com name action to set user commands
127 :exe command to execute a program
128 :/ command to allow searches in user commands
129 :delc popup menu to delete commands
130
131
132
133 Changes vide-0.2.4 to vide-0.2.5
134
135 bug fixes for grab focus and update of file lists
136
137 Changes vide0.2.3 to vide0.2.4
138
139 gg now moves to row 0 instead of g
140 dd will delete the selected file
141 N will search backwards for the last search pattern.
142 m will set marks.
143 ' will goto set marks.
144 :sp will change the other file list to the current file list directory or
145 to a set path.
146 :cd will change the current file list to your home enviroment or to a set path.
147 configure option to allow starting vide in the current working directory.
148

File INSTALL added (mode: 100644) (index 0000000..0435a1b)
1 Installation
2 ~~~~~~~~~~~~
3 You need:
4
5 Gnome libraries installed.
6
7 ./configure
8 make
9 ("su" if you don't have access to /usr/local/bin)
10 make install
11
12 Start Vide, type :h[Enter] and play with the commands listed in the
13 help file.
14
15
16
17
18

File Makefile.am added (mode: 100644) (index 0000000..bf9d389)
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = src
4
5
6

File Makefile.in added (mode: 100644) (index 0000000..01c8c88)
1 # Makefile.in generated automatically by automake 1.4a from Makefile.am
2
3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13
14 SHELL = @SHELL@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 prefix = @prefix@
20 exec_prefix = @exec_prefix@
21
22 bindir = @bindir@
23 sbindir = @sbindir@
24 libexecdir = @libexecdir@
25 datadir = @datadir@
26 sysconfdir = @sysconfdir@
27 sharedstatedir = @sharedstatedir@
28 localstatedir = @localstatedir@
29 libdir = @libdir@
30 infodir = @infodir@
31 mandir = @mandir@
32 includedir = @includedir@
33 oldincludedir = /usr/include
34
35 DESTDIR =
36
37 pkgdatadir = $(datadir)/@PACKAGE@
38 pkglibdir = $(libdir)/@PACKAGE@
39 pkgincludedir = $(includedir)/@PACKAGE@
40
41 top_builddir = .
42
43 ACLOCAL = @ACLOCAL@
44 AUTOCONF = @AUTOCONF@
45 AUTOMAKE = @AUTOMAKE@
46 AUTOHEADER = @AUTOHEADER@
47
48 INSTALL = @INSTALL@
49 INSTALL_PROGRAM = @INSTALL_PROGRAM@
50 INSTALL_DATA = @INSTALL_DATA@
51 INSTALL_SCRIPT = @INSTALL_SCRIPT@
52 INSTALL_STRIP_FLAG =
53 transform = @program_transform_name@
54
55 NORMAL_INSTALL = :
56 PRE_INSTALL = :
57 POST_INSTALL = :
58 NORMAL_UNINSTALL = :
59 PRE_UNINSTALL = :
60 POST_UNINSTALL = :
61 CC = @CC@
62 GNOMEGNORBA_LIBS = @GNOMEGNORBA_LIBS@
63 GNOMEUI_LIBS = @GNOMEUI_LIBS@
64 GNOME_APPLETS_LIBS = @GNOME_APPLETS_LIBS@
65 GNOME_CAPPLET_LIBS = @GNOME_CAPPLET_LIBS@
66 GNOME_CONFIG = @GNOME_CONFIG@
67 GNOME_DOCKLETS_LIBS = @GNOME_DOCKLETS_LIBS@
68 GNOME_INCLUDEDIR = @GNOME_INCLUDEDIR@
69 GNOME_LIBDIR = @GNOME_LIBDIR@
70 GNOME_LIBS = @GNOME_LIBS@
71 GNORBA_CFLAGS = @GNORBA_CFLAGS@
72 GNORBA_LIBS = @GNORBA_LIBS@
73 GTKXMHTML_LIBS = @GTKXMHTML_LIBS@
74 GTK_CFLAGS = @GTK_CFLAGS@
75 GTK_CONFIG = @GTK_CONFIG@
76 GTK_LIBS = @GTK_LIBS@
77 MAKEINFO = @MAKEINFO@
78 ORBIT_CFLAGS = @ORBIT_CFLAGS@
79 ORBIT_CONFIG = @ORBIT_CONFIG@
80 ORBIT_IDL = @ORBIT_IDL@
81 ORBIT_LIBS = @ORBIT_LIBS@
82 PACKAGE = @PACKAGE@
83 PTHREAD_LIB = @PTHREAD_LIB@
84 VERSION = @VERSION@
85 XPM_LIBS = @XPM_LIBS@
86 ZVT_LIBS = @ZVT_LIBS@
87 cflags_set = @cflags_set@
88 cxxflags_set = @cxxflags_set@
89
90 SUBDIRS = src
91 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
93 CONFIG_HEADER = config.h
94 CONFIG_CLEAN_FILES =
95 DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
96 Makefile.am Makefile.in NEWS TODO acconfig.h aclocal.m4 config.h.in \
97 configure configure.in install-sh missing mkinstalldirs
98
99
100 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
101
102 TAR = gtar
103 GZIP_ENV = --best
104 all: all-redirect
105 .SUFFIXES:
106 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
107 cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
108
109 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
110 cd $(top_builddir) \
111 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
112
113 $(ACLOCAL_M4): configure.in
114 cd $(srcdir) && $(ACLOCAL)
115
116 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
117 $(SHELL) ./config.status --recheck
118 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
119 cd $(srcdir) && $(AUTOCONF)
120
121 config.h: stamp-h
122 @if test ! -f $@; then \
123 rm -f stamp-h; \
124 $(MAKE) stamp-h; \
125 else :; fi
126 stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
127 cd $(top_builddir) \
128 && CONFIG_FILES= CONFIG_HEADERS=config.h \
129 $(SHELL) ./config.status
130 @echo timestamp > stamp-h 2> /dev/null
131 $(srcdir)/config.h.in: $(srcdir)/stamp-h.in
132 @if test ! -f $@; then \
133 rm -f $(srcdir)/stamp-h.in; \
134 $(MAKE) $(srcdir)/stamp-h.in; \
135 else :; fi
136 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
137 cd $(top_srcdir) && $(AUTOHEADER)
138 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
139
140 mostlyclean-hdr:
141
142 clean-hdr:
143
144 distclean-hdr:
145 -rm -f config.h
146
147 maintainer-clean-hdr:
148
149 # This directory's subdirectories are mostly independent; you can cd
150 # into them and run `make' without going through this Makefile.
151 # To change the values of `make' variables: instead of editing Makefiles,
152 # (1) if the variable is set in `config.status', edit `config.status'
153 # (which will cause the Makefiles to be regenerated when you run `make');
154 # (2) otherwise, pass the desired values on the `make' command line.
155
156 @SET_MAKE@
157
158 all-recursive install-data-recursive install-exec-recursive \
159 installdirs-recursive install-recursive uninstall-recursive \
160 check-recursive installcheck-recursive info-recursive dvi-recursive:
161 @set fnord $(MAKEFLAGS); amf=$$2; \
162 dot_seen=no; \
163 target=`echo $@ | sed s/-recursive//`; \
164 list='$(SUBDIRS)'; for subdir in $$list; do \
165 echo "Making $$target in $$subdir"; \
166 if test "$$subdir" = "."; then \
167 dot_seen=yes; \
168 local_target="$$target-am"; \
169 else \
170 local_target="$$target"; \
171 fi; \
172 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
173 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
174 done; \
175 if test "$$dot_seen" = "no"; then \
176 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
177 fi; test -z "$$fail"
178
179 mostlyclean-recursive clean-recursive distclean-recursive \
180 maintainer-clean-recursive:
181 @set fnord $(MAKEFLAGS); amf=$$2; \
182 dot_seen=no; \
183 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
184 rev="$$subdir $$rev"; \
185 test "$$subdir" = "." && dot_seen=yes; \
186 done; \
187 test "$$dot_seen" = "no" && rev=". $$rev"; \
188 target=`echo $@ | sed s/-recursive//`; \
189 for subdir in $$rev; do \
190 echo "Making $$target in $$subdir"; \
191 if test "$$subdir" = "."; then \
192 local_target="$$target-am"; \
193 else \
194 local_target="$$target"; \
195 fi; \
196 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
197 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
198 done && test -z "$$fail"
199 tags-recursive:
200 list='$(SUBDIRS)'; for subdir in $$list; do \
201 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
202 done
203
204 tags: TAGS
205
206 ID: $(HEADERS) $(SOURCES) $(LISP)
207 list='$(SOURCES) $(HEADERS)'; \
208 unique=`for i in $$list; do echo $$i; done | \
209 awk ' { files[$$0] = 1; } \
210 END { for (i in files) print i; }'`; \
211 here=`pwd` && cd $(srcdir) \
212 && mkid -f$$here/ID $$unique $(LISP)
213
214 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
215 tags=; \
216 here=`pwd`; \
217 list='$(SUBDIRS)'; for subdir in $$list; do \
218 if test "$$subdir" = .; then :; else \
219 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
220 fi; \
221 done; \
222 list='$(SOURCES) $(HEADERS)'; \
223 unique=`for i in $$list; do echo $$i; done | \
224 awk ' { files[$$0] = 1; } \
225 END { for (i in files) print i; }'`; \
226 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
227 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
228
229 mostlyclean-tags:
230
231 clean-tags:
232
233 distclean-tags:
234 -rm -f TAGS ID
235
236 maintainer-clean-tags:
237
238 distdir = $(PACKAGE)-$(VERSION)
239 top_distdir = $(distdir)
240
241 # This target untars the dist file and tries a VPATH configuration. Then
242 # it guarantees that the distribution is self-contained by making another
243 # tarfile.
244 distcheck: dist
245 -rm -rf $(distdir)
246 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
247 mkdir $(distdir)/=build
248 mkdir $(distdir)/=inst
249 dc_install_base=`cd $(distdir)/=inst && pwd`; \
250 cd $(distdir)/=build \
251 && ../configure --srcdir=.. --prefix=$$dc_install_base \
252 && $(MAKE) $(AM_MAKEFLAGS) \
253 && $(MAKE) $(AM_MAKEFLAGS) dvi \
254 && $(MAKE) $(AM_MAKEFLAGS) check \
255 && $(MAKE) $(AM_MAKEFLAGS) install \
256 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
257 && $(MAKE) $(AM_MAKEFLAGS) dist
258 -rm -rf $(distdir)
259 @banner="$(distdir).tar.gz is ready for distribution"; \
260 dashes=`echo "$$banner" | sed s/./=/g`; \
261 echo "$$dashes"; \
262 echo "$$banner"; \
263 echo "$$dashes"
264 dist: distdir
265 -chmod -R a+r $(distdir)
266 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
267 -rm -rf $(distdir)
268 dist-all: distdir
269 -chmod -R a+r $(distdir)
270 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
271 -rm -rf $(distdir)
272 distdir: $(DISTFILES)
273 -rm -rf $(distdir)
274 mkdir $(distdir)
275 -chmod 777 $(distdir)
276 here=`cd $(top_builddir) && pwd`; \
277 top_distdir=`cd $(distdir) && pwd`; \
278 distdir=`cd $(distdir) && pwd`; \
279 cd $(top_srcdir) \
280 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
281 @for file in $(DISTFILES); do \
282 d=$(srcdir); \
283 if test -d $$d/$$file; then \
284 cp -pr $$d/$$file $(distdir)/$$file; \
285 else \
286 test -f $(distdir)/$$file \
287 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
288 || cp -p $$d/$$file $(distdir)/$$file || :; \
289 fi; \
290 done
291 for subdir in $(SUBDIRS); do \
292 if test "$$subdir" = .; then :; else \
293 test -d $(distdir)/$$subdir \
294 || mkdir $(distdir)/$$subdir \
295 || exit 1; \
296 chmod 777 $(distdir)/$$subdir; \
297 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
298 || exit 1; \
299 fi; \
300 done
301 info-am:
302 info: info-recursive
303 dvi-am:
304 dvi: dvi-recursive
305 check-am: all-am
306 check: check-recursive
307 installcheck-am:
308 installcheck: installcheck-recursive
309 all-recursive-am: config.h
310 $(MAKE) $(AM_MAKEFLAGS) all-recursive
311
312 install-exec-am:
313 install-exec: install-exec-recursive
314
315 install-data-am:
316 install-data: install-data-recursive
317
318 install-am: all-am
319 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
320 install: install-recursive
321 uninstall-am:
322 uninstall: uninstall-recursive
323 all-am: Makefile config.h
324 all-redirect: all-recursive-am
325 install-strip:
326 $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
327 installdirs: installdirs-recursive
328 installdirs-am:
329
330
331 mostlyclean-generic:
332
333 clean-generic:
334
335 distclean-generic:
336 -rm -f Makefile $(CONFIG_CLEAN_FILES)
337 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
338
339 maintainer-clean-generic:
340 mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
341
342 mostlyclean: mostlyclean-recursive
343
344 clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
345
346 clean: clean-recursive
347
348 distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
349
350 distclean: distclean-recursive
351 -rm -f config.status
352
353 maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
354 maintainer-clean-generic distclean-am
355 @echo "This command is intended for maintainers to use;"
356 @echo "it deletes files that may require special tools to rebuild."
357
358 maintainer-clean: maintainer-clean-recursive
359 -rm -f config.status
360
361 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
362 install-data-recursive uninstall-data-recursive install-exec-recursive \
363 uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
364 all-recursive check-recursive installcheck-recursive info-recursive \
365 dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
366 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
367 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
368 dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
369 install-exec-am install-exec install-data-am install-data install-am \
370 install uninstall-am uninstall all-redirect all-am all installdirs-am \
371 installdirs mostlyclean-generic distclean-generic clean-generic \
372 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
373
374
375 # Tell versions [3.59,3.63) of GNU make to not export all variables.
376 # Otherwise a system limit (for SysV at least) may be exceeded.
377 .NOEXPORT:

File NEWS added (mode: 100644) (index 0000000..e69de29)

File README added (mode: 100644) (index 0000000..56bdb71)
1 The help menu lists all of the commands used in vide. :h [Enter] or [Alt] h
2 will activate the help memu.
3
4

File TODO added (mode: 100644) (index 0000000..3d7f8e3)
1 The Gnome requirement should be removed. The only Gnome libraries that are
2 used by Vide are the zvt terminal and gdk_imlib. Everything else is written
3 in Gtk+. Gdk_imlib is already available as an addition to Gtk+ without
4 requiring Gnome. The zvt term can be separated from Gnome by writting a
5 new autoconf for zvt as it only requires Gtk+ and gdk_imlib.
6
7 The most requested feature is a ncurses based version. This is on hold until
8 the current gui is fully established and stable.
9
10
11

File acconfig.h added (mode: 100644) (index 0000000..4a321c8)
1 #undef ENABLE_NLS
2 #undef HAVE_CATGETS
3 #undef HAVE_GETTEXT
4 #undef HAVE_LC_MESSAGES
5 #undef HAVE_STPCPY
6 #undef HAVE_LIBSM
7 #undef PACKAGE_LOCALE_DIR
8 #undef PACKAGE_DATA_DIR
9 #undef PACKAGE_SOURCE_DIR

File aclocal.m4 added (mode: 100644) (index 0000000..11a96d1)
1 dnl aclocal.m4 generated automatically by aclocal 1.4a
2
3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
12
13 # Do all the work for Automake. This macro actually does too much --
14 # some checks are only needed if your package does certain things.
15 # But this isn't really a big deal.
16
17 # serial 1
18
19 dnl Usage:
20 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
21
22 AC_DEFUN(AM_INIT_AUTOMAKE,
23 [AC_REQUIRE([AC_PROG_INSTALL])
24 dnl We require 2.13 because we rely on SHELL being computed by configure.
25 AC_PREREQ([2.13])
26 PACKAGE=[$1]
27 AC_SUBST(PACKAGE)
28 VERSION=[$2]
29 AC_SUBST(VERSION)
30 dnl test to see if srcdir already configured
31 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
32 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
33 fi
34 ifelse([$3],,
35 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
36 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
37 AC_REQUIRE([AM_SANITY_CHECK])
38 AC_REQUIRE([AC_ARG_PROGRAM])
39 dnl FIXME This is truly gross.
40 missing_dir=`cd $ac_aux_dir && pwd`
41 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
42 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
43 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
44 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
45 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
46 AC_REQUIRE([AC_PROG_MAKE_SET])])
47
48 #
49 # Check to make sure that the build environment is sane.
50 #
51
52 AC_DEFUN(AM_SANITY_CHECK,
53 [AC_MSG_CHECKING([whether build environment is sane])
54 # Just in case
55 sleep 1
56 echo timestamp > conftestfile
57 # Do `set' in a subshell so we don't clobber the current shell's
58 # arguments. Must try -L first in case configure is actually a
59 # symlink; some systems play weird games with the mod time of symlinks
60 # (eg FreeBSD returns the mod time of the symlink's containing
61 # directory).
62 if (
63 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
64 if test "[$]*" = "X"; then
65 # -L didn't work.
66 set X `ls -t $srcdir/configure conftestfile`
67 fi
68 if test "[$]*" != "X $srcdir/configure conftestfile" \
69 && test "[$]*" != "X conftestfile $srcdir/configure"; then
70
71 # If neither matched, then we have a broken ls. This can happen
72 # if, for instance, CONFIG_SHELL is bash and it inherits a
73 # broken ls alias from the environment. This has actually
74 # happened. Such a system could not be considered "sane".
75 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
76 alias in your environment])
77 fi
78
79 test "[$]2" = conftestfile
80 )
81 then
82 # Ok.
83 :
84 else
85 AC_MSG_ERROR([newly created file is older than distributed files!
86 Check your system clock])
87 fi
88 rm -f conftest*
89 AC_MSG_RESULT(yes)])
90
91 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
92 dnl The program must properly implement --version.
93 AC_DEFUN(AM_MISSING_PROG,
94 [AC_MSG_CHECKING(for working $2)
95 # Run test in a subshell; some versions of sh will print an error if
96 # an executable is not found, even if stderr is redirected.
97 # Redirect stdin to placate older versions of autoconf. Sigh.
98 if ($2 --version) < /dev/null > /dev/null 2>&1; then
99 $1=$2
100 AC_MSG_RESULT(found)
101 else
102 $1="$3/missing $2"
103 AC_MSG_RESULT(missing)
104 fi
105 AC_SUBST($1)])
106
107 # Like AC_CONFIG_HEADER, but automatically create stamp file.
108
109 AC_DEFUN(AM_CONFIG_HEADER,
110 [AC_PREREQ([2.12])
111 AC_CONFIG_HEADER([$1])
112 dnl When config.status generates a header, we must update the stamp-h file.
113 dnl This file resides in the same directory as the config header
114 dnl that is generated. We must strip everything past the first ":",
115 dnl and everything past the last "/".
116 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
117 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
118 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
119 <<am_indx=1
120 for am_file in <<$1>>; do
121 case " <<$>>CONFIG_HEADERS " in
122 *" <<$>>am_file "*<<)>>
123 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
124 ;;
125 esac
126 am_indx=`expr "<<$>>am_indx" + 1`
127 done<<>>dnl>>)
128 changequote([,]))])
129
130 # aclocal-include.m4
131 #
132 # This macro adds the name macrodir to the set of directories
133 # that `aclocal' searches for macros.
134
135 # serial 1
136
137 dnl AM_ACLOCAL_INCLUDE(macrodir)
138 AC_DEFUN([AM_ACLOCAL_INCLUDE],
139 [
140 AM_CONDITIONAL(INSIDE_GNOME_COMMON, test x = y)
141
142 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
143
144 for k in $1 ; do ACLOCAL="$ACLOCAL -I $k" ; done
145 ])
146
147 # Define a conditional.
148
149 AC_DEFUN(AM_CONDITIONAL,
150 [AC_SUBST($1_TRUE)
151 AC_SUBST($1_FALSE)
152 if $2; then
153 $1_TRUE=
154 $1_FALSE='#'
155 else
156 $1_TRUE='#'
157 $1_FALSE=
158 fi])
159
160 dnl
161 dnl GNOME_INIT_HOOK (script-if-gnome-enabled, [failflag], [additional-inits])
162 dnl
163 dnl if failflag is "fail" then GNOME_INIT_HOOK will abort if gnomeConf.sh
164 dnl is not found.
165 dnl
166
167 AC_DEFUN([GNOME_INIT_HOOK],[
168 AC_SUBST(GNOME_LIBS)
169 AC_SUBST(GNOMEUI_LIBS)
170 AC_SUBST(GNOMEGNORBA_LIBS)
171 AC_SUBST(GTKXMHTML_LIBS)
172 AC_SUBST(ZVT_LIBS)
173 AC_SUBST(GNOME_LIBDIR)
174 AC_SUBST(GNOME_INCLUDEDIR)
175
176 AC_ARG_WITH(gnome-includes,
177 [ --with-gnome-includes Specify location of GNOME headers],[
178 CFLAGS="$CFLAGS -I$withval"
179 ])
180
181 AC_ARG_WITH(gnome-libs,
182 [ --with-gnome-libs Specify location of GNOME libs],[
183 LDFLAGS="$LDFLAGS -L$withval"
184 gnome_prefix=$withval
185 ])
186
187 AC_ARG_WITH(gnome,
188 [ --with-gnome Specify prefix for GNOME files],
189 if test x$withval = xyes; then
190 want_gnome=yes
191 dnl Note that an empty true branch is not
192 dnl valid sh syntax.
193 ifelse([$1], [], :, [$1])
194 else
195 if test "x$withval" = xno; then
196 want_gnome=no
197 else
198 want_gnome=yes
199 LDFLAGS="$LDFLAGS -L$withval/lib"
200 CFLAGS="$CFLAGS -I$withval/include"
201 gnome_prefix=$withval/lib
202 fi
203 fi,
204 want_gnome=yes)
205
206 if test "x$want_gnome" = xyes; then
207
208 AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
209 if test "$GNOME_CONFIG" = "no"; then
210 no_gnome_config="yes"
211 else
212 AC_MSG_CHECKING(if $GNOME_CONFIG works)
213 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
214 AC_MSG_RESULT(yes)
215 GNOME_GNORBA_HOOK([],$2)
216 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
217 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
218 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
219 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
220 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
221 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
222 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
223 $1
224 else
225 AC_MSG_RESULT(no)
226 no_gnome_config="yes"
227 fi
228 fi
229
230 if test x$exec_prefix = xNONE; then
231 if test x$prefix = xNONE; then
232 gnome_prefix=$ac_default_prefix/lib
233 else
234 gnome_prefix=$prefix/lib
235 fi
236 else
237 gnome_prefix=`eval echo \`echo $libdir\``
238 fi
239
240 if test "$no_gnome_config" = "yes"; then
241 AC_MSG_CHECKING(for gnomeConf.sh file in $gnome_prefix)
242 if test -f $gnome_prefix/gnomeConf.sh; then
243 AC_MSG_RESULT(found)
244 echo "loading gnome configuration from" \
245 "$gnome_prefix/gnomeConf.sh"
246 . $gnome_prefix/gnomeConf.sh
247 $1
248 else
249 AC_MSG_RESULT(not found)
250 if test x$2 = xfail; then
251 AC_MSG_ERROR(Could not find the gnomeConf.sh file that is generated by gnome-libs install)
252 fi
253 fi
254 fi
255 fi
256
257 if test -n "$3"; then
258 n="$3"
259 for i in $n; do
260 AC_MSG_CHECKING(extra library \"$i\")
261 case $i in
262 applets)
263 AC_SUBST(GNOME_APPLETS_LIBS)
264 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
265 AC_MSG_RESULT($GNOME_APPLETS_LIBS);;
266 docklets)
267 AC_SUBST(GNOME_DOCKLETS_LIBS)
268 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
269 AC_MSG_RESULT($GNOME_DOCKLETS_LIBS);;
270 capplet)
271 AC_SUBST(GNOME_CAPPLET_LIBS)
272 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
273 AC_MSG_RESULT($GNOME_CAPPLET_LIBS);;
274 *)
275 AC_MSG_RESULT(unknown library)
276 esac
277 done
278 fi
279 ])
280
281 dnl
282 dnl GNOME_INIT ([additional-inits])
283 dnl
284
285 AC_DEFUN([GNOME_INIT],[
286 GNOME_INIT_HOOK([],fail,$1)
287 ])
288
289 dnl
290 dnl GNOME_GNORBA_HOOK (script-if-gnorba-found, failflag)
291 dnl
292 dnl if failflag is "failure" it aborts if gnorba is not found.
293 dnl
294
295 AC_DEFUN([GNOME_GNORBA_HOOK],[
296 GNOME_ORBIT_HOOK([],$2)
297 AC_CACHE_CHECK([for gnorba libraries],gnome_cv_gnorba_found,[
298 gnome_cv_gnorba_found=no
299 if test x$gnome_cv_orbit_found = xyes; then
300 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
301 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
302 if test -n "$GNORBA_LIBS"; then
303 gnome_cv_gnorba_found=yes
304 fi
305 fi
306 ])
307 AM_CONDITIONAL(HAVE_GNORBA, test x$gnome_cv_gnorba_found = xyes)
308 if test x$gnome_cv_orbit_found = xyes; then
309 $1
310 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
311 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
312 AC_SUBST(GNORBA_CFLAGS)
313 AC_SUBST(GNORBA_LIBS)
314 else
315 if test x$2 = xfailure; then
316 AC_MSG_ERROR(gnorba library not installed or installation problem)
317 fi
318 fi
319 ])
320
321 AC_DEFUN([GNOME_GNORBA_CHECK], [
322 GNOME_GNORBA_HOOK([],failure)
323 ])
324
325 dnl
326 dnl GNOME_ORBIT_HOOK (script-if-orbit-found, failflag)
327 dnl
328 dnl if failflag is "failure" it aborts if orbit is not found.
329 dnl
330
331 AC_DEFUN([GNOME_ORBIT_HOOK],[
332 AC_PATH_PROG(ORBIT_CONFIG,orbit-config,no)
333 AC_PATH_PROG(ORBIT_IDL,orbit-idl,no)
334 AC_CACHE_CHECK([for working ORBit environment],gnome_cv_orbit_found,[
335 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
336 gnome_cv_orbit_found=no
337 else
338 gnome_cv_orbit_found=yes
339 fi
340 ])
341 AM_CONDITIONAL(HAVE_ORBIT, test x$gnome_cv_orbit_found = xyes)
342 if test x$gnome_cv_orbit_found = xyes; then
343 $1
344 ORBIT_CFLAGS=`orbit-config --cflags client server`
345 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
346 AC_SUBST(ORBIT_CFLAGS)
347 AC_SUBST(ORBIT_LIBS)
348 else
349 if test x$2 = xfailure; then
350 AC_MSG_ERROR(ORBit not installed or installation problem)
351 fi
352 fi
353 ])
354
355 AC_DEFUN([GNOME_ORBIT_CHECK], [
356 GNOME_ORBIT_HOOK([],failure)
357 ])
358
359
360 # serial 1
361
362 # @defmac AC_PROG_CC_STDC
363 # @maindex PROG_CC_STDC
364 # @ovindex CC
365 # If the C compiler in not in ANSI C mode by default, try to add an option
366 # to output variable @code{CC} to make it so. This macro tries various
367 # options that select ANSI C on some system or another. It considers the
368 # compiler to be in ANSI C mode if it handles function prototypes correctly.
369 #
370 # If you use this macro, you should check after calling it whether the C
371 # compiler has been set to accept ANSI C; if not, the shell variable
372 # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
373 # code in ANSI C, you can make an un-ANSIfied copy of it by using the
374 # program @code{ansi2knr}, which comes with Ghostscript.
375 # @end defmac
376
377 AC_DEFUN(AM_PROG_CC_STDC,
378 [AC_REQUIRE([AC_PROG_CC])
379 AC_BEFORE([$0], [AC_C_INLINE])
380 AC_BEFORE([$0], [AC_C_CONST])
381 dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
382 dnl a magic option to avoid problems with ANSI preprocessor commands
383 dnl like #elif.
384 dnl FIXME: can't do this because then AC_AIX won't work due to a
385 dnl circular dependency.
386 dnl AC_BEFORE([$0], [AC_PROG_CPP])
387 AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
388 AC_CACHE_VAL(am_cv_prog_cc_stdc,
389 [am_cv_prog_cc_stdc=no
390 ac_save_CC="$CC"
391 # Don't try gcc -ansi; that turns off useful extensions and
392 # breaks some systems' header files.
393 # AIX -qlanglvl=ansi
394 # Ultrix and OSF/1 -std1
395 # HP-UX -Aa -D_HPUX_SOURCE
396 # SVR4 -Xc -D__EXTENSIONS__
397 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
398 do
399 CC="$ac_save_CC $ac_arg"
400 AC_TRY_COMPILE(
401 [#include <stdarg.h>
402 #include <stdio.h>
403 #include <sys/types.h>
404 #include <sys/stat.h>
405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
406 struct buf { int x; };
407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
408 static char *e (p, i)
409 char **p;
410 int i;
411 {
412 return p[i];
413 }
414 static char *f (char * (*g) (char **, int), char **p, ...)
415 {
416 char *s;
417 va_list v;
418 va_start (v,p);
419 s = g (p, va_arg (v,int));
420 va_end (v);
421 return s;
422 }
423 int test (int i, double x);
424 struct s1 {int (*f) (int a);};
425 struct s2 {int (*f) (double a);};
426 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
427 int argc;
428 char **argv;
429 ], [
430 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
431 ],
432 [am_cv_prog_cc_stdc="$ac_arg"; break])
433 done
434 CC="$ac_save_CC"
435 ])
436 if test -z "$am_cv_prog_cc_stdc"; then
437 AC_MSG_RESULT([none needed])
438 else
439 AC_MSG_RESULT($am_cv_prog_cc_stdc)
440 fi
441 case "x$am_cv_prog_cc_stdc" in
442 x|xno) ;;
443 *) CC="$CC $am_cv_prog_cc_stdc" ;;
444 esac
445 ])
446
447 dnl GNOME_COMPILE_WARNINGS
448 dnl Turn on many useful compiler warnings
449 dnl For now, only works on GCC
450 AC_DEFUN([GNOME_COMPILE_WARNINGS],[
451 AC_ARG_ENABLE(compile-warnings,
452 [ --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings.],,enable_compile_warnings=minimum)
453
454 AC_MSG_CHECKING(what warning flags to pass to the C compiler)
455 warnCFLAGS=
456 if test "x$GCC" != xyes; then
457 enable_compile_warnings=no
458 fi
459
460 if test "x$enable_compile_warnings" != "xno"; then
461 if test "x$GCC" = "xyes"; then
462 case " $CFLAGS " in
463 *[\ \ ]-Wall[\ \ ]*) ;;
464 *) warnCFLAGS="-Wall -Wunused" ;;
465 esac
466
467 ## -W is not all that useful. And it cannot be controlled
468 ## with individual -Wno-xxx flags, unlike -Wall
469 if test "x$enable_compile_warnings" = "xyes"; then
470 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
471 fi
472 fi
473 fi
474 AC_MSG_RESULT($warnCFLAGS)
475
476 AC_ARG_ENABLE(iso-c,
477 [ --enable-iso-c Try to warn if code is not ISO C ],,
478 enable_iso_c=no)
479
480 AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
481 complCFLAGS=
482 if test "x$enable_iso_c" != "xno"; then
483 if test "x$GCC" = "xyes"; then
484 case " $CFLAGS " in
485 *[\ \ ]-ansi[\ \ ]*) ;;
486 *) complCFLAGS="$complCFLAGS -ansi" ;;
487 esac
488
489 case " $CFLAGS " in
490 *[\ \ ]-pedantic[\ \ ]*) ;;
491 *) complCFLAGS="$complCFLAGS -pedantic" ;;
492 esac
493 fi
494 fi
495 AC_MSG_RESULT($complCFLAGS)
496 if test "x$cflags_set" != "xyes"; then
497 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
498 cflags_set=yes
499 AC_SUBST(cflags_set)
500 fi
501 ])
502
503 dnl For C++, do basically the same thing.
504
505 AC_DEFUN([GNOME_CXX_WARNINGS],[
506 AC_ARG_ENABLE(cxx-warnings,
507 [ --enable-cxx-warnings=[no/minimum/yes] Turn on compiler warnings.],,enable_cxx_warnings=minimum)
508
509 AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
510 warnCXXFLAGS=
511 if test "x$GCC" != xyes; then
512 enable_compile_warnings=no
513 fi
514 if test "x$enable_cxx_warnings" != "xno"; then
515 if test "x$GCC" = "xyes"; then
516 case " $CXXFLAGS " in
517 *[\ \ ]-Wall[\ \ ]*) ;;
518 *) warnCXXFLAGS="-Wall -Wno-unused" ;;
519 esac
520
521 ## -W is not all that useful. And it cannot be controlled
522 ## with individual -Wno-xxx flags, unlike -Wall
523 if test "x$enable_cxx_warnings" = "xyes"; then
524 warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes -Wmissing-declarations -Wshadow -Woverloaded-virtual"
525 fi
526 fi
527 fi
528 AC_MSG_RESULT($warnCXXFLAGS)
529
530 AC_ARG_ENABLE(iso-cxx,
531 [ --enable-iso-cxx Try to warn if code is not ISO C++ ],,
532 enable_iso_cxx=no)
533
534 AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
535 complCXXFLAGS=
536 if test "x$enable_iso_cxx" != "xno"; then
537 if test "x$GCC" = "xyes"; then
538 case " $CXXFLAGS " in
539 *[\ \ ]-ansi[\ \ ]*) ;;
540 *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
541 esac
542
543 case " $CXXFLAGS " in
544 *[\ \ ]-pedantic[\ \ ]*) ;;
545 *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
546 esac
547 fi
548 fi
549 AC_MSG_RESULT($complCXXFLAGS)
550 if test "x$cxxflags_set" != "xyes"; then
551 CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
552 cxxflags_set=yes
553 AC_SUBST(cxxflags_set)
554 fi
555 ])
556
557 dnl GNOME_X_CHECKS
558 dnl
559 dnl Basic X11 related checks for X11. At the end, the following will be
560 dnl defined/changed:
561 dnl GTK_{CFLAGS,LIBS} From AM_PATH_GTK
562 dnl CPPFLAGS Will include $X_CFLAGS
563 dnl GNOME_HAVE_SM `true' or `false' depending on whether session
564 dnl management is available. It is available if
565 dnl both -lSM and X11/SM/SMlib.h exist. (Some
566 dnl Solaris boxes have the library but not the header)
567 dnl XPM_LIBS -lXpm if Xpm library is present, otherwise ""
568 dnl
569 dnl The following configure cache variables are defined (but not used):
570 dnl gnome_cv_passdown_{x_libs,X_LIBS,X_CFLAGS}
571 dnl
572 AC_DEFUN([GNOME_X_CHECKS],
573 [
574 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(GTK not installed, or gtk-config not in path))
575 dnl Hope that GTK_CFLAGS have only -I and -D. Otherwise, we could
576 dnl test -z "$x_includes" || CPPFLAGS="$CPPFLAGS -I$x_includes"
577 dnl
578 dnl Use CPPFLAGS instead of CFLAGS because AC_CHECK_HEADERS uses
579 dnl CPPFLAGS, not CFLAGS
580 CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
581
582 saved_ldflags="$LDFLAGS"
583 LDFLAGS="$LDFLAGS $GTK_LIBS"
584
585 gnome_cv_passdown_x_libs="$GTK_LIBS"
586 gnome_cv_passdown_X_LIBS="$GTK_LIBS"
587 gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
588 gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
589
590 LDFLAGS="$saved_ldflags $GTK_LIBS"
591
592 dnl We are requiring GTK >= 1.1.1, which means this will be fine anyhow.
593 USE_DEVGTK=true
594
595 dnl AC_MSG_CHECKING([whether to use features from (unstable) GTK+ 1.1.x])
596 dnl AC_EGREP_CPP(answer_affirmatively,
597 dnl [#include <gtk/gtkfeatures.h>
598 dnl #ifdef GTK_HAVE_FEATURES_1_1_0
599 dnl answer_affirmatively
600 dnl #endif
601 dnl ], dev_gtk=yes, dev_gtk=no)
602 dnl if test "$dev_gtk" = "yes"; then
603 dnl USE_DEVGTK=true
604 dnl fi
605 dnl AC_MSG_RESULT("$dev_gtk")
606
607 GNOME_HAVE_SM=true
608 case "$GTK_LIBS" in
609 *-lSM*)
610 dnl Already found it.
611 ;;
612 *)
613 dnl Assume that if we have -lSM then we also have -lICE.
614 AC_CHECK_LIB(SM, SmcSaveYourselfDone,
615 [GTK_LIBS="-lSM -lICE $GTK_LIBS"],GNOME_HAVE_SM=false,
616 $x_libs -lICE)
617 ;;
618 esac
619
620 if test "$GNOME_HAVE_SM" = true; then
621 AC_CHECK_HEADERS(X11/SM/SMlib.h,,GNOME_HAVE_SM=false)
622 fi
623
624 if test "$GNOME_HAVE_SM" = true; then
625 AC_DEFINE(HAVE_LIBSM)
626 fi
627
628 XPM_LIBS=""
629 AC_CHECK_LIB(Xpm, XpmFreeXpmImage, [XPM_LIBS="-lXpm"], , $x_libs)
630 AC_SUBST(XPM_LIBS)
631
632 AC_REQUIRE([GNOME_PTHREAD_CHECK])
633 LDFLAGS="$saved_ldflags"
634
635 AC_PROVIDE([GNOME_X_CHECKS])
636 ])
637
638 # Configure paths for GTK+
639 # Owen Taylor 97-11-3
640
641 dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
642 dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
643 dnl
644 AC_DEFUN(AM_PATH_GTK,
645 [dnl
646 dnl Get the cflags and libraries from the gtk-config script
647 dnl
648 AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
649 gtk_config_prefix="$withval", gtk_config_prefix="")
650 AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
651 gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
652 AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program],
653 , enable_gtktest=yes)
654
655 for module in . $4
656 do
657 case "$module" in
658 gthread)
659 gtk_config_args="$gtk_config_args gthread"
660 ;;
661 esac
662 done
663
664 if test x$gtk_config_exec_prefix != x ; then
665 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
666 if test x${GTK_CONFIG+set} != xset ; then
667 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
668 fi
669 fi
670 if test x$gtk_config_prefix != x ; then
671 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
672 if test x${GTK_CONFIG+set} != xset ; then
673 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
674 fi
675 fi
676
677 AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
678 min_gtk_version=ifelse([$1], ,0.99.7,$1)
679 AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
680 no_gtk=""
681 if test "$GTK_CONFIG" = "no" ; then
682 no_gtk=yes
683 else
684 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
685 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
686 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
687 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
688 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
689 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
690 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
691 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
692 if test "x$enable_gtktest" = "xyes" ; then
693 ac_save_CFLAGS="$CFLAGS"
694 ac_save_LIBS="$LIBS"
695 CFLAGS="$CFLAGS $GTK_CFLAGS"
696 LIBS="$GTK_LIBS $LIBS"
697 dnl
698 dnl Now check if the installed GTK is sufficiently new. (Also sanity
699 dnl checks the results of gtk-config to some extent
700 dnl
701 rm -f conf.gtktest
702 AC_TRY_RUN([
703 #include <gtk/gtk.h>
704 #include <stdio.h>
705 #include <stdlib.h>
706
707 int
708 main ()
709 {
710 int major, minor, micro;
711 char *tmp_version;
712
713 system ("touch conf.gtktest");
714
715 /* HP/UX 9 (%@#!) writes to sscanf strings */
716 tmp_version = g_strdup("$min_gtk_version");
717 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
718 printf("%s, bad version string\n", "$min_gtk_version");
719 exit(1);
720 }
721
722 if ((gtk_major_version != $gtk_config_major_version) ||
723 (gtk_minor_version != $gtk_config_minor_version) ||
724 (gtk_micro_version != $gtk_config_micro_version))
725 {
726 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
727 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
728 gtk_major_version, gtk_minor_version, gtk_micro_version);
729 printf ("*** was found! If gtk-config was correct, then it is best\n");
730 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
731 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
732 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
733 printf("*** required on your system.\n");
734 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
735 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
736 printf("*** before re-running configure\n");
737 }
738 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
739 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
740 (gtk_minor_version != GTK_MINOR_VERSION) ||
741 (gtk_micro_version != GTK_MICRO_VERSION))
742 {
743 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
744 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
745 printf("*** library (version %d.%d.%d)\n",
746 gtk_major_version, gtk_minor_version, gtk_micro_version);
747 }
748 #endif /* defined (GTK_MAJOR_VERSION) ... */
749 else
750 {
751 if ((gtk_major_version > major) ||
752 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
753 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
754 {
755 return 0;
756 }
757 else
758 {
759 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
760 gtk_major_version, gtk_minor_version, gtk_micro_version);
761 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
762 major, minor, micro);
763 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
764 printf("***\n");
765 printf("*** If you have already installed a sufficiently new version, this error\n");
766 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
767 printf("*** being found. The easiest way to fix this is to remove the old version\n");
768 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
769 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
770 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
771 printf("*** so that the correct libraries are found at run-time))\n");
772 }
773 }
774 return 1;
775 }
776 ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
777 CFLAGS="$ac_save_CFLAGS"
778 LIBS="$ac_save_LIBS"
779 fi
780 fi
781 if test "x$no_gtk" = x ; then
782 AC_MSG_RESULT(yes)
783 ifelse([$2], , :, [$2])
784 else
785 AC_MSG_RESULT(no)
786 if test "$GTK_CONFIG" = "no" ; then
787 echo "*** The gtk-config script installed by GTK could not be found"
788 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
789 echo "*** your path, or set the GTK_CONFIG environment variable to the"
790 echo "*** full path to gtk-config."
791 else
792 if test -f conf.gtktest ; then
793 :
794 else
795 echo "*** Could not run GTK test program, checking why..."
796 CFLAGS="$CFLAGS $GTK_CFLAGS"
797 LIBS="$LIBS $GTK_LIBS"
798 AC_TRY_LINK([
799 #include <gtk/gtk.h>
800 #include <stdio.h>
801 ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
802 [ echo "*** The test program compiled, but did not run. This usually means"
803 echo "*** that the run-time linker is not finding GTK or finding the wrong"
804 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
805 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
806 echo "*** to the installed location Also, make sure you have run ldconfig if that"
807 echo "*** is required on your system"
808 echo "***"
809 echo "*** If you have an old version installed, it is best to remove it, although"
810 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
811 echo "***"
812 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
813 echo "*** came with the system with the command"
814 echo "***"
815 echo "*** rpm --erase --nodeps gtk gtk-devel" ],
816 [ echo "*** The test program failed to compile or link. See the file config.log for the"
817 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
818 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
819 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
820 CFLAGS="$ac_save_CFLAGS"
821 LIBS="$ac_save_LIBS"
822 fi
823 fi
824 GTK_CFLAGS=""
825 GTK_LIBS=""
826 ifelse([$3], , :, [$3])
827 fi
828 AC_SUBST(GTK_CFLAGS)
829 AC_SUBST(GTK_LIBS)
830 rm -f conf.gtktest
831 ])
832
833 dnl
834 dnl And better, use gthreads instead...
835 dnl
836
837 AC_DEFUN([GNOME_PTHREAD_CHECK],[
838 PTHREAD_LIB=""
839 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
840 [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
841 [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
842 [AC_CHECK_FUNC(pthread_create)]
843 )]
844 )]
845 )
846 AC_SUBST(PTHREAD_LIB)
847 AC_PROVIDE([GNOME_PTHREAD_CHECK])
848 ])
849

File autogen.sh added (mode: 100755) (index 0000000..293b797)
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 srcdir=`dirname $0`
5 PKG_NAME="the package."
6
7 DIE=0
8
9 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
10 echo
11 echo "**Error**: You must have \`autoconf' installed to."
12 echo "Download the appropriate package for your distribution,"
13 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
14 DIE=1
15 }
16
17 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
18 (libtool --version) < /dev/null > /dev/null 2>&1 || {
19 echo
20 echo "**Error**: You must have \`libtool' installed."
21 echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
22 echo "(or a newer version if it is available)"
23 DIE=1
24 }
25 }
26
27 grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
28 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
29 (gettext --version) < /dev/null > /dev/null 2>&1 || {
30 echo
31 echo "**Error**: You must have \`gettext' installed."
32 echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
33 echo "(or a newer version if it is available)"
34 DIE=1
35 }
36 }
37
38 grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && {
39 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
40 (gettext --version) < /dev/null > /dev/null 2>&1 || {
41 echo
42 echo "**Error**: You must have \`gettext' installed."
43 echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
44 echo "(or a newer version if it is available)"
45 DIE=1
46 }
47 }
48
49 (automake --version) < /dev/null > /dev/null 2>&1 || {
50 echo
51 echo "**Error**: You must have \`automake' installed."
52 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
53 echo "(or a newer version if it is available)"
54 DIE=1
55 NO_AUTOMAKE=yes
56 }
57
58
59 # if no automake, don't bother testing for aclocal
60 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
61 echo
62 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
63 echo "installed doesn't appear recent enough."
64 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
65 echo "(or a newer version if it is available)"
66 DIE=1
67 }
68
69 if test "$DIE" -eq 1; then
70 exit 1
71 fi
72
73 if test -z "$*"; then
74 echo "**Warning**: I am going to run \`configure' with no arguments."
75 echo "If you wish to pass any to it, please specify them on the"
76 echo \`$0\'" command line."
77 echo
78 fi
79
80 case $CC in
81 xlc )
82 am_opt=--include-deps;;
83 esac
84
85 for coin in `find $srcdir -name configure.in -print`
86 do
87 dr=`dirname $coin`
88 if test -f $dr/NO-AUTO-GEN; then
89 echo skipping $dr -- flagged as no auto-gen
90 else
91 echo processing $dr
92 macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
93 ( cd $dr
94 aclocalinclude="$ACLOCAL_FLAGS"
95 for k in $macrodirs; do
96 if test -d $k; then
97 aclocalinclude="$aclocalinclude -I $k"
98 ##else
99 ## echo "**Warning**: No such directory \`$k'. Ignored."
100 fi
101 done
102 if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
103 if grep "sed.*POTFILES" configure.in >/dev/null; then
104 : do nothing -- we still have an old unmodified configure.in
105 else
106 echo "Creating $dr/aclocal.m4 ..."
107 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
108 echo "Running gettextize... Ignore non-fatal messages."
109 echo "no" | gettextize --force --copy
110 echo "Making $dr/aclocal.m4 writable ..."
111 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
112 fi
113 fi
114 if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then
115 echo "Creating $dr/aclocal.m4 ..."
116 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
117 echo "Running gettextize... Ignore non-fatal messages."
118 echo "no" | gettextize --force --copy
119 echo "Making $dr/aclocal.m4 writable ..."
120 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
121 fi
122 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
123 echo "Running libtoolize..."
124 libtoolize --force --copy
125 fi
126 echo "Running aclocal $aclocalinclude ..."
127 aclocal $aclocalinclude
128 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
129 echo "Running autoheader..."
130 autoheader
131 fi
132 echo "Running automake --gnu $am_opt ..."
133 automake --add-missing --gnu $am_opt
134 echo "Running autoconf ..."
135 autoconf
136 )
137 fi
138 done
139
140 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
141
142 if test x$NOCONFIGURE = x; then
143 echo Running $srcdir/configure $conf_flags "$@" ...
144 $srcdir/configure $conf_flags "$@" \
145 && echo Now type \`make\' to compile $PKG_NAME
146 else
147 echo Skipping configure process.
148 fi

File config.h.in added (mode: 100644) (index 0000000..8df5899)
1 /* config.h.in. Generated automatically from configure.in by autoheader. */
2
3 /* Define if you need to in order for stat and other things to work. */
4 #undef _POSIX_SOURCE
5
6 /* Define if you have the ANSI C header files. */
7 #undef STDC_HEADERS
8
9 #undef ENABLE_NLS
10 #undef HAVE_CATGETS
11 #undef HAVE_GETTEXT
12 #undef HAVE_LC_MESSAGES
13 #undef HAVE_STPCPY
14 #undef HAVE_LIBSM
15 #undef PACKAGE_LOCALE_DIR
16 #undef PACKAGE_DATA_DIR
17 #undef PACKAGE_SOURCE_DIR
18
19 /* Define if you have the <X11/SM/SMlib.h> header file. */
20 #undef HAVE_X11_SM_SMLIB_H
21
22 /* Name of package */
23 #undef PACKAGE
24
25 /* Version number of package */
26 #undef VERSION
27

File configure added (mode: 100755) (index 0000000..336c6c0)
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnome-includes Specify location of GNOME headers"
16 ac_help="$ac_help
17 --with-gnome-libs Specify location of GNOME libs"
18 ac_help="$ac_help
19 --with-gnome Specify prefix for GNOME files"
20 ac_help="$ac_help
21 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
22 ac_help="$ac_help
23 --enable-iso-c Try to warn if code is not ISO C "
24 ac_help="$ac_help
25 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
26 ac_help="$ac_help
27 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
28 ac_help="$ac_help
29 --disable-gtktest Do not try to compile and run a test GTK program"
30 ac_help="$ac_help
31 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
32 ac_help="$ac_help
33 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
34 ac_help="$ac_help
35 --disable-gtktest Do not try to compile and run a test GTK program"
36
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
40 build=NONE
41 cache_file=./config.cache
42 exec_prefix=NONE
43 host=NONE
44 no_create=
45 nonopt=NONE
46 no_recursion=
47 prefix=NONE
48 program_prefix=NONE
49 program_suffix=NONE
50 program_transform_name=s,x,x,
51 silent=
52 site=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
70
71 # Initialize some other variables.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
76 ac_max_here_lines=12
77
78 ac_prev=
79 for ac_option
80 do
81
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
85 ac_prev=
86 continue
87 fi
88
89 case "$ac_option" in
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 *) ac_optarg= ;;
92 esac
93
94 # Accept the important Cygnus configure options, so we can diagnose typos.
95
96 case "$ac_option" in
97
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 ac_prev=bindir ;;
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
102
103 -build | --build | --buil | --bui | --bu)
104 ac_prev=build ;;
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
107
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
114
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 ac_prev=datadir ;;
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 | --da=*)
119 datadir="$ac_optarg" ;;
120
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 fi
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
129
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 fi
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 case "$ac_option" in
138 *=*) ;;
139 *) ac_optarg=yes ;;
140 esac
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
142
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
151
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
154 with_gas=yes ;;
155
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
159 cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
170 [$ac_default_prefix]
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 [same as prefix]
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
177 [PREFIX/share]
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 [PREFIX/com]
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
192 EOF
193 cat << EOF
194 Host type:
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
205 EOF
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
208 fi
209 exit 0 ;;
210
211 -host | --host | --hos | --ho)
212 ac_prev=host ;;
213 -host=* | --host=* | --hos=* | --ho=*)
214 host="$ac_optarg" ;;
215
216 -includedir | --includedir | --includedi | --included | --include \
217 | --includ | --inclu | --incl | --inc)
218 ac_prev=includedir ;;
219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220 | --includ=* | --inclu=* | --incl=* | --inc=*)
221 includedir="$ac_optarg" ;;
222
223 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 ac_prev=infodir ;;
225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226 infodir="$ac_optarg" ;;
227
228 -libdir | --libdir | --libdi | --libd)
229 ac_prev=libdir ;;
230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
231 libdir="$ac_optarg" ;;
232
233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234 | --libexe | --libex | --libe)
235 ac_prev=libexecdir ;;
236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237 | --libexe=* | --libex=* | --libe=*)
238 libexecdir="$ac_optarg" ;;
239
240 -localstatedir | --localstatedir | --localstatedi | --localstated \
241 | --localstate | --localstat | --localsta | --localst \
242 | --locals | --local | --loca | --loc | --lo)
243 ac_prev=localstatedir ;;
244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247 localstatedir="$ac_optarg" ;;
248
249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 ac_prev=mandir ;;
251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252 mandir="$ac_optarg" ;;
253
254 -nfp | --nfp | --nf)
255 # Obsolete; use --without-fp.
256 with_fp=no ;;
257
258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 | --no-cr | --no-c)
260 no_create=yes ;;
261
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 no_recursion=yes ;;
265
266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268 | --oldin | --oldi | --old | --ol | --o)
269 ac_prev=oldincludedir ;;
270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273 oldincludedir="$ac_optarg" ;;
274
275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 ac_prev=prefix ;;
277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278 prefix="$ac_optarg" ;;
279
280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
281 | --program-pre | --program-pr | --program-p)
282 ac_prev=program_prefix ;;
283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285 program_prefix="$ac_optarg" ;;
286
287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
288 | --program-suf | --program-su | --program-s)
289 ac_prev=program_suffix ;;
290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292 program_suffix="$ac_optarg" ;;
293
294 -program-transform-name | --program-transform-name \
295 | --program-transform-nam | --program-transform-na \
296 | --program-transform-n | --program-transform- \
297 | --program-transform | --program-transfor \
298 | --program-transfo | --program-transf \
299 | --program-trans | --program-tran \
300 | --progr-tra | --program-tr | --program-t)
301 ac_prev=program_transform_name ;;
302 -program-transform-name=* | --program-transform-name=* \
303 | --program-transform-nam=* | --program-transform-na=* \
304 | --program-transform-n=* | --program-transform-=* \
305 | --program-transform=* | --program-transfor=* \
306 | --program-transfo=* | --program-transf=* \
307 | --program-trans=* | --program-tran=* \
308 | --progr-tra=* | --program-tr=* | --program-t=*)
309 program_transform_name="$ac_optarg" ;;
310
311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312 | -silent | --silent | --silen | --sile | --sil)
313 silent=yes ;;
314
315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 ac_prev=sbindir ;;
317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 | --sbi=* | --sb=*)
319 sbindir="$ac_optarg" ;;
320
321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323 | --sharedst | --shareds | --shared | --share | --shar \
324 | --sha | --sh)
325 ac_prev=sharedstatedir ;;
326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 | --sha=* | --sh=*)
330 sharedstatedir="$ac_optarg" ;;
331
332 -site | --site | --sit)
333 ac_prev=site ;;
334 -site=* | --site=* | --sit=*)
335 site="$ac_optarg" ;;
336
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 ac_prev=srcdir ;;
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
341
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347 sysconfdir="$ac_optarg" ;;
348
349 -target | --target | --targe | --targ | --tar | --ta | --t)
350 ac_prev=target ;;
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
353
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 verbose=yes ;;
356
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
359 exit 0 ;;
360
361 -with-* | --with-*)
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 fi
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 case "$ac_option" in
369 *=*) ;;
370 *) ac_optarg=yes ;;
371 esac
372 eval "with_${ac_package}='$ac_optarg'" ;;
373
374 -without-* | --without-*)
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 fi
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
382
383 --x)
384 # Obsolete; use --with-x.
385 with_x=yes ;;
386
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392 x_includes="$ac_optarg" ;;
393
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399 x_libraries="$ac_optarg" ;;
400
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 ;;
403
404 *)
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 fi
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 fi
411 nonopt="$ac_option"
412 ;;
413
414 esac
415 done
416
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 fi
420
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422
423 # File descriptor usage:
424 # 0 standard input
425 # 1 file creation
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
432 exec 6>/dev/null
433 else
434 exec 6>&1
435 fi
436 exec 5>./config.log
437
438 echo "\
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
441 " 1>&5
442
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
445 ac_configure_args=
446 for ac_arg
447 do
448 case "$ac_arg" in
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 esac
457 done
458
459 # NLS nuisances.
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 echo > confdefs.h
473
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=configure.in
477
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
482 ac_prog=$0
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 srcdir=$ac_confdir
486 if test ! -r $srcdir/$ac_unique_file; then
487 srcdir=..
488 fi
489 else
490 ac_srcdir_defaulted=no
491 fi
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 else
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 fi
498 fi
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE; then
504 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 else
506 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 fi
508 fi
509 for ac_site_file in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
512 . "$ac_site_file"
513 fi
514 done
515
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
518 . $cache_file
519 else
520 echo "creating cache $cache_file"
521 > $cache_file
522 fi
523
524 ac_ext=c
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
530
531 ac_exeext=
532 ac_objext=o
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='
537 ' ac_t=' '
538 else
539 ac_n=-n ac_c= ac_t=
540 fi
541 else
542 ac_n= ac_c='\c' ac_t=
543 fi
544
545
546 ac_aux_dir=
547 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
548 if test -f $ac_dir/install-sh; then
549 ac_aux_dir=$ac_dir
550 ac_install_sh="$ac_aux_dir/install-sh -c"
551 break
552 elif test -f $ac_dir/install.sh; then
553 ac_aux_dir=$ac_dir
554 ac_install_sh="$ac_aux_dir/install.sh -c"
555 break
556 fi
557 done
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 fi
561 ac_config_guess=$ac_aux_dir/config.guess
562 ac_config_sub=$ac_aux_dir/config.sub
563 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564
565 # Find a good install program. We prefer a C program (faster),
566 # so one script is as good as another. But avoid the broken or
567 # incompatible versions:
568 # SysV /etc/install, /usr/sbin/install
569 # SunOS /usr/etc/install
570 # IRIX /sbin/install
571 # AIX /bin/install
572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
575 # ./install, which can be erroneously created by make from ./install.sh.
576 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
577 echo "configure:578: checking for a BSD compatible install" >&5
578 if test -z "$INSTALL"; then
579 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
581 else
582 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
583 for ac_dir in $PATH; do
584 # Account for people who put trailing slashes in PATH elements.
585 case "$ac_dir/" in
586 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
587 *)
588 # OSF1 and SCO ODT 3.0 have their own names for install.
589 # Don't use installbsd from OSF since it installs stuff as root
590 # by default.
591 for ac_prog in ginstall scoinst install; do
592 if test -f $ac_dir/$ac_prog; then
593 if test $ac_prog = install &&
594 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
595 # AIX install. It has an incompatible calling convention.
596 :
597 else
598 ac_cv_path_install="$ac_dir/$ac_prog -c"
599 break 2
600 fi
601 fi
602 done
603 ;;
604 esac
605 done
606 IFS="$ac_save_IFS"
607
608 fi
609 if test "${ac_cv_path_install+set}" = set; then
610 INSTALL="$ac_cv_path_install"
611 else
612 # As a last resort, use the slow shell script. We don't cache a
613 # path for INSTALL within a source directory, because that will
614 # break other packages using the cache if that directory is
615 # removed, or if the path is relative.
616 INSTALL="$ac_install_sh"
617 fi
618 fi
619 echo "$ac_t""$INSTALL" 1>&6
620
621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
622 # It thinks the first close brace ends the variable substitution.
623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
624
625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
626
627 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
628
629 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
630 echo "configure:631: checking whether build environment is sane" >&5
631 # Just in case
632 sleep 1
633 echo timestamp > conftestfile
634 # Do `set' in a subshell so we don't clobber the current shell's
635 # arguments. Must try -L first in case configure is actually a
636 # symlink; some systems play weird games with the mod time of symlinks
637 # (eg FreeBSD returns the mod time of the symlink's containing
638 # directory).
639 if (
640 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
641 if test "$*" = "X"; then
642 # -L didn't work.
643 set X `ls -t $srcdir/configure conftestfile`
644 fi
645 if test "$*" != "X $srcdir/configure conftestfile" \
646 && test "$*" != "X conftestfile $srcdir/configure"; then
647
648 # If neither matched, then we have a broken ls. This can happen
649 # if, for instance, CONFIG_SHELL is bash and it inherits a
650 # broken ls alias from the environment. This has actually
651 # happened. Such a system could not be considered "sane".
652 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
653 alias in your environment" 1>&2; exit 1; }
654 fi
655
656 test "$2" = conftestfile
657 )
658 then
659 # Ok.
660 :
661 else
662 { echo "configure: error: newly created file is older than distributed files!
663 Check your system clock" 1>&2; exit 1; }
664 fi
665 rm -f conftest*
666 echo "$ac_t""yes" 1>&6
667 if test "$program_transform_name" = s,x,x,; then
668 program_transform_name=
669 else
670 # Double any \ or $. echo might interpret backslashes.
671 cat <<\EOF_SED > conftestsed
672 s,\\,\\\\,g; s,\$,$$,g
673 EOF_SED
674 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
675 rm -f conftestsed
676 fi
677 test "$program_prefix" != NONE &&
678 program_transform_name="s,^,${program_prefix},; $program_transform_name"
679 # Use a double $ so make ignores it.
680 test "$program_suffix" != NONE &&
681 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
682
683 # sed with no file args requires a program.
684 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
685
686 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
687 echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
688 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
689 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
691 else
692 cat > conftestmake <<\EOF
693 all:
694 @echo 'ac_maketemp="${MAKE}"'
695 EOF
696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
697 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
698 if test -n "$ac_maketemp"; then
699 eval ac_cv_prog_make_${ac_make}_set=yes
700 else
701 eval ac_cv_prog_make_${ac_make}_set=no
702 fi
703 rm -f conftestmake
704 fi
705 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
706 echo "$ac_t""yes" 1>&6
707 SET_MAKE=
708 else
709 echo "$ac_t""no" 1>&6
710 SET_MAKE="MAKE=${MAKE-make}"
711 fi
712
713
714
715 PACKAGE=vide
716
717 VERSION=0.5.2
718
719 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
720 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
721 fi
722 cat >> confdefs.h <<EOF
723 #define PACKAGE "$PACKAGE"
724 EOF
725
726 cat >> confdefs.h <<EOF
727 #define VERSION "$VERSION"
728 EOF
729
730
731
732 missing_dir=`cd $ac_aux_dir && pwd`
733 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
734 echo "configure:735: checking for working aclocal" >&5
735 # Run test in a subshell; some versions of sh will print an error if
736 # an executable is not found, even if stderr is redirected.
737 # Redirect stdin to placate older versions of autoconf. Sigh.
738 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
739 ACLOCAL=aclocal
740 echo "$ac_t""found" 1>&6
741 else
742 ACLOCAL="$missing_dir/missing aclocal"
743 echo "$ac_t""missing" 1>&6
744 fi
745
746 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
747 echo "configure:748: checking for working autoconf" >&5
748 # Run test in a subshell; some versions of sh will print an error if
749 # an executable is not found, even if stderr is redirected.
750 # Redirect stdin to placate older versions of autoconf. Sigh.
751 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
752 AUTOCONF=autoconf
753 echo "$ac_t""found" 1>&6
754 else
755 AUTOCONF="$missing_dir/missing autoconf"
756 echo "$ac_t""missing" 1>&6
757 fi
758
759 echo $ac_n "checking for working automake""... $ac_c" 1>&6
760 echo "configure:761: checking for working automake" >&5
761 # Run test in a subshell; some versions of sh will print an error if
762 # an executable is not found, even if stderr is redirected.
763 # Redirect stdin to placate older versions of autoconf. Sigh.
764 if (automake --version) < /dev/null > /dev/null 2>&1; then
765 AUTOMAKE=automake
766 echo "$ac_t""found" 1>&6
767 else
768 AUTOMAKE="$missing_dir/missing automake"
769 echo "$ac_t""missing" 1>&6
770 fi
771
772 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
773 echo "configure:774: checking for working autoheader" >&5
774 # Run test in a subshell; some versions of sh will print an error if
775 # an executable is not found, even if stderr is redirected.
776 # Redirect stdin to placate older versions of autoconf. Sigh.
777 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
778 AUTOHEADER=autoheader
779 echo "$ac_t""found" 1>&6
780 else
781 AUTOHEADER="$missing_dir/missing autoheader"
782 echo "$ac_t""missing" 1>&6
783 fi
784
785 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
786 echo "configure:787: checking for working makeinfo" >&5
787 # Run test in a subshell; some versions of sh will print an error if
788 # an executable is not found, even if stderr is redirected.
789 # Redirect stdin to placate older versions of autoconf. Sigh.
790 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
791 MAKEINFO=makeinfo
792 echo "$ac_t""found" 1>&6
793 else
794 MAKEINFO="$missing_dir/missing makeinfo"
795 echo "$ac_t""missing" 1>&6
796 fi
797
798
799
800
801
802
803
804
805
806 if test x = y; then
807 INSIDE_GNOME_COMMON_TRUE=
808 INSIDE_GNOME_COMMON_FALSE='#'
809 else
810 INSIDE_GNOME_COMMON_TRUE='#'
811 INSIDE_GNOME_COMMON_FALSE=
812 fi
813
814 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
815
816 for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
817
818
819
820
821
822
823
824
825
826
827
828
829 # Check whether --with-gnome-includes or --without-gnome-includes was given.
830 if test "${with_gnome_includes+set}" = set; then
831 withval="$with_gnome_includes"
832
833 CFLAGS="$CFLAGS -I$withval"
834
835 fi
836
837
838 # Check whether --with-gnome-libs or --without-gnome-libs was given.
839 if test "${with_gnome_libs+set}" = set; then
840 withval="$with_gnome_libs"
841
842 LDFLAGS="$LDFLAGS -L$withval"
843 gnome_prefix=$withval
844
845 fi
846
847
848 # Check whether --with-gnome or --without-gnome was given.
849 if test "${with_gnome+set}" = set; then
850 withval="$with_gnome"
851 if test x$withval = xyes; then
852 want_gnome=yes
853 :
854 else
855 if test "x$withval" = xno; then
856 want_gnome=no
857 else
858 want_gnome=yes
859 LDFLAGS="$LDFLAGS -L$withval/lib"
860 CFLAGS="$CFLAGS -I$withval/include"
861 gnome_prefix=$withval/lib
862 fi
863 fi
864 else
865 want_gnome=yes
866 fi
867
868
869 if test "x$want_gnome" = xyes; then
870
871 # Extract the first word of "gnome-config", so it can be a program name with args.
872 set dummy gnome-config; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 case "$GNOME_CONFIG" in
879 /*)
880 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
881 ;;
882 ?:/*)
883 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
884 ;;
885 *)
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
887 ac_dummy="$PATH"
888 for ac_dir in $ac_dummy; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
891 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
892 break
893 fi
894 done
895 IFS="$ac_save_ifs"
896 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
897 ;;
898 esac
899 fi
900 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
901 if test -n "$GNOME_CONFIG"; then
902 echo "$ac_t""$GNOME_CONFIG" 1>&6
903 else
904 echo "$ac_t""no" 1>&6
905 fi
906
907 if test "$GNOME_CONFIG" = "no"; then
908 no_gnome_config="yes"
909 else
910 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
911 echo "configure:912: checking if $GNOME_CONFIG works" >&5
912 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
913 echo "$ac_t""yes" 1>&6
914
915
916 # Extract the first word of "orbit-config", so it can be a program name with args.
917 set dummy orbit-config; ac_word=$2
918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
919 echo "configure:920: checking for $ac_word" >&5
920 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
922 else
923 case "$ORBIT_CONFIG" in
924 /*)
925 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
926 ;;
927 ?:/*)
928 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
929 ;;
930 *)
931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
932 ac_dummy="$PATH"
933 for ac_dir in $ac_dummy; do
934 test -z "$ac_dir" && ac_dir=.
935 if test -f $ac_dir/$ac_word; then
936 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
937 break
938 fi
939 done
940 IFS="$ac_save_ifs"
941 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
942 ;;
943 esac
944 fi
945 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
946 if test -n "$ORBIT_CONFIG"; then
947 echo "$ac_t""$ORBIT_CONFIG" 1>&6
948 else
949 echo "$ac_t""no" 1>&6
950 fi
951
952 # Extract the first word of "orbit-idl", so it can be a program name with args.
953 set dummy orbit-idl; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958 else
959 case "$ORBIT_IDL" in
960 /*)
961 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
962 ;;
963 ?:/*)
964 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
965 ;;
966 *)
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968 ac_dummy="$PATH"
969 for ac_dir in $ac_dummy; do
970 test -z "$ac_dir" && ac_dir=.
971 if test -f $ac_dir/$ac_word; then
972 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
973 break
974 fi
975 done
976 IFS="$ac_save_ifs"
977 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
978 ;;
979 esac
980 fi
981 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
982 if test -n "$ORBIT_IDL"; then
983 echo "$ac_t""$ORBIT_IDL" 1>&6
984 else
985 echo "$ac_t""no" 1>&6
986 fi
987
988 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
989 echo "configure:990: checking for working ORBit environment" >&5
990 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
992 else
993
994 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
995 gnome_cv_orbit_found=no
996 else
997 gnome_cv_orbit_found=yes
998 fi
999
1000 fi
1001
1002 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
1003
1004
1005 if test x$gnome_cv_orbit_found = xyes; then
1006 HAVE_ORBIT_TRUE=
1007 HAVE_ORBIT_FALSE='#'
1008 else
1009 HAVE_ORBIT_TRUE='#'
1010 HAVE_ORBIT_FALSE=
1011 fi
1012 if test x$gnome_cv_orbit_found = xyes; then
1013
1014 ORBIT_CFLAGS=`orbit-config --cflags client server`
1015 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
1016
1017
1018 else
1019 if test xfail = xfailure; then
1020 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
1021 fi
1022 fi
1023
1024 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
1025 echo "configure:1026: checking for gnorba libraries" >&5
1026 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1028 else
1029
1030 gnome_cv_gnorba_found=no
1031 if test x$gnome_cv_orbit_found = xyes; then
1032 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1033 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1034 if test -n "$GNORBA_LIBS"; then
1035 gnome_cv_gnorba_found=yes
1036 fi
1037 fi
1038
1039 fi
1040
1041 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
1042
1043
1044 if test x$gnome_cv_gnorba_found = xyes; then
1045 HAVE_GNORBA_TRUE=
1046 HAVE_GNORBA_FALSE='#'
1047 else
1048 HAVE_GNORBA_TRUE='#'
1049 HAVE_GNORBA_FALSE=
1050 fi
1051 if test x$gnome_cv_orbit_found = xyes; then
1052
1053 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1054 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1055
1056
1057 else
1058 if test xfail = xfailure; then
1059 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
1060 fi
1061 fi
1062
1063 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
1064 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
1065 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
1066 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
1067 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
1068 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
1069 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
1070
1071 else
1072 echo "$ac_t""no" 1>&6
1073 no_gnome_config="yes"
1074 fi
1075 fi
1076
1077 if test x$exec_prefix = xNONE; then
1078 if test x$prefix = xNONE; then
1079 gnome_prefix=$ac_default_prefix/lib
1080 else
1081 gnome_prefix=$prefix/lib
1082 fi
1083 else
1084 gnome_prefix=`eval echo \`echo $libdir\``
1085 fi
1086
1087 if test "$no_gnome_config" = "yes"; then
1088 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
1089 echo "configure:1090: checking for gnomeConf.sh file in $gnome_prefix" >&5
1090 if test -f $gnome_prefix/gnomeConf.sh; then
1091 echo "$ac_t""found" 1>&6
1092 echo "loading gnome configuration from" \
1093 "$gnome_prefix/gnomeConf.sh"
1094 . $gnome_prefix/gnomeConf.sh
1095
1096 else
1097 echo "$ac_t""not found" 1>&6
1098 if test xfail = xfail; then
1099 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
1100 fi
1101 fi
1102 fi
1103 fi
1104
1105 if test -n ""; then
1106 n=""
1107 for i in $n; do
1108 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
1109 echo "configure:1110: checking extra library \"$i\"" >&5
1110 case $i in
1111 applets)
1112
1113 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
1114 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
1115 docklets)
1116
1117 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
1118 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
1119 capplet)
1120
1121 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
1122 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
1123 *)
1124 echo "$ac_t""unknown library" 1>&6
1125 esac
1126 done
1127 fi
1128
1129
1130 # Extract the first word of "gcc", so it can be a program name with args.
1131 set dummy gcc; ac_word=$2
1132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1133 echo "configure:1134: checking for $ac_word" >&5
1134 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1136 else
1137 if test -n "$CC"; then
1138 ac_cv_prog_CC="$CC" # Let the user override the test.
1139 else
1140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1141 ac_dummy="$PATH"
1142 for ac_dir in $ac_dummy; do
1143 test -z "$ac_dir" && ac_dir=.
1144 if test -f $ac_dir/$ac_word; then
1145 ac_cv_prog_CC="gcc"
1146 break
1147 fi
1148 done
1149 IFS="$ac_save_ifs"
1150 fi
1151 fi
1152 CC="$ac_cv_prog_CC"
1153 if test -n "$CC"; then
1154 echo "$ac_t""$CC" 1>&6
1155 else
1156 echo "$ac_t""no" 1>&6
1157 fi
1158
1159 if test -z "$CC"; then
1160 # Extract the first word of "cc", so it can be a program name with args.
1161 set dummy cc; ac_word=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167 if test -n "$CC"; then
1168 ac_cv_prog_CC="$CC" # Let the user override the test.
1169 else
1170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1171 ac_prog_rejected=no
1172 ac_dummy="$PATH"
1173 for ac_dir in $ac_dummy; do
1174 test -z "$ac_dir" && ac_dir=.
1175 if test -f $ac_dir/$ac_word; then
1176 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1177 ac_prog_rejected=yes
1178 continue
1179 fi
1180 ac_cv_prog_CC="cc"
1181 break
1182 fi
1183 done
1184 IFS="$ac_save_ifs"
1185 if test $ac_prog_rejected = yes; then
1186 # We found a bogon in the path, so make sure we never use it.
1187 set dummy $ac_cv_prog_CC
1188 shift
1189 if test $# -gt 0; then
1190 # We chose a different compiler from the bogus one.
1191 # However, it has the same basename, so the bogon will be chosen
1192 # first if we set CC to just the basename; use the full file name.
1193 shift
1194 set dummy "$ac_dir/$ac_word" "$@"
1195 shift
1196 ac_cv_prog_CC="$@"
1197 fi
1198 fi
1199 fi
1200 fi
1201 CC="$ac_cv_prog_CC"
1202 if test -n "$CC"; then
1203 echo "$ac_t""$CC" 1>&6
1204 else
1205 echo "$ac_t""no" 1>&6
1206 fi
1207
1208 if test -z "$CC"; then
1209 case "`uname -s`" in
1210 *win32* | *WIN32*)
1211 # Extract the first word of "cl", so it can be a program name with args.
1212 set dummy cl; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 if test -n "$CC"; then
1219 ac_cv_prog_CC="$CC" # Let the user override the test.
1220 else
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1222 ac_dummy="$PATH"
1223 for ac_dir in $ac_dummy; do
1224 test -z "$ac_dir" && ac_dir=.
1225 if test -f $ac_dir/$ac_word; then
1226 ac_cv_prog_CC="cl"
1227 break
1228 fi
1229 done
1230 IFS="$ac_save_ifs"
1231 fi
1232 fi
1233 CC="$ac_cv_prog_CC"
1234 if test -n "$CC"; then
1235 echo "$ac_t""$CC" 1>&6
1236 else
1237 echo "$ac_t""no" 1>&6
1238 fi
1239 ;;
1240 esac
1241 fi
1242 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1243 fi
1244
1245 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1247
1248 ac_ext=c
1249 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1252 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1253 cross_compiling=$ac_cv_prog_cc_cross
1254
1255 cat > conftest.$ac_ext << EOF
1256
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1259
1260 main(){return(0);}
1261 EOF
1262 if { (eval echo configure:1263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1263 ac_cv_prog_cc_works=yes
1264 # If we can't run a trivial program, we are probably using a cross compiler.
1265 if (./conftest; exit) 2>/dev/null; then
1266 ac_cv_prog_cc_cross=no
1267 else
1268 ac_cv_prog_cc_cross=yes
1269 fi
1270 else
1271 echo "configure: failed program was:" >&5
1272 cat conftest.$ac_ext >&5
1273 ac_cv_prog_cc_works=no
1274 fi
1275 rm -fr conftest*
1276 ac_ext=c
1277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1281 cross_compiling=$ac_cv_prog_cc_cross
1282
1283 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1284 if test $ac_cv_prog_cc_works = no; then
1285 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1286 fi
1287 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1288 echo "configure:1289: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1289 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1290 cross_compiling=$ac_cv_prog_cc_cross
1291
1292 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether we are using GNU C" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1296 else
1297 cat > conftest.c <<EOF
1298 #ifdef __GNUC__
1299 yes;
1300 #endif
1301 EOF
1302 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1303 ac_cv_prog_gcc=yes
1304 else
1305 ac_cv_prog_gcc=no
1306 fi
1307 fi
1308
1309 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1310
1311 if test $ac_cv_prog_gcc = yes; then
1312 GCC=yes
1313 else
1314 GCC=
1315 fi
1316
1317 ac_test_CFLAGS="${CFLAGS+set}"
1318 ac_save_CFLAGS="$CFLAGS"
1319 CFLAGS=
1320 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1321 echo "configure:1322: checking whether ${CC-cc} accepts -g" >&5
1322 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1324 else
1325 echo 'void f(){}' > conftest.c
1326 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1327 ac_cv_prog_cc_g=yes
1328 else
1329 ac_cv_prog_cc_g=no
1330 fi
1331 rm -f conftest*
1332
1333 fi
1334
1335 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1336 if test "$ac_test_CFLAGS" = set; then
1337 CFLAGS="$ac_save_CFLAGS"
1338 elif test $ac_cv_prog_cc_g = yes; then
1339 if test "$GCC" = yes; then
1340 CFLAGS="-g -O2"
1341 else
1342 CFLAGS="-g"
1343 fi
1344 else
1345 if test "$GCC" = yes; then
1346 CFLAGS="-O2"
1347 else
1348 CFLAGS=
1349 fi
1350 fi
1351
1352 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1353 echo "configure:1354: checking for POSIXized ISC" >&5
1354 if test -d /etc/conf/kconfig.d &&
1355 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1356 then
1357 echo "$ac_t""yes" 1>&6
1358 ISC=yes # If later tests want to check for ISC.
1359 cat >> confdefs.h <<\EOF
1360 #define _POSIX_SOURCE 1
1361 EOF
1362
1363 if test "$GCC" = yes; then
1364 CC="$CC -posix"
1365 else
1366 CC="$CC -Xp"
1367 fi
1368 else
1369 echo "$ac_t""no" 1>&6
1370 ISC=
1371 fi
1372
1373 # Extract the first word of "gcc", so it can be a program name with args.
1374 set dummy gcc; ac_word=$2
1375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1376 echo "configure:1377: checking for $ac_word" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380 if test -n "$CC"; then
1381 ac_cv_prog_CC="$CC" # Let the user override the test.
1382 else
1383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1384 ac_dummy="$PATH"
1385 for ac_dir in $ac_dummy; do
1386 test -z "$ac_dir" && ac_dir=.
1387 if test -f $ac_dir/$ac_word; then
1388 ac_cv_prog_CC="gcc"
1389 break
1390 fi
1391 done
1392 IFS="$ac_save_ifs"
1393 fi
1394 fi
1395 CC="$ac_cv_prog_CC"
1396 if test -n "$CC"; then
1397 echo "$ac_t""$CC" 1>&6
1398 else
1399 echo "$ac_t""no" 1>&6
1400 fi
1401
1402 if test -z "$CC"; then
1403 # Extract the first word of "cc", so it can be a program name with args.
1404 set dummy cc; ac_word=$2
1405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1406 echo "configure:1407: checking for $ac_word" >&5
1407 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1409 else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1414 ac_prog_rejected=no
1415 ac_dummy="$PATH"
1416 for ac_dir in $ac_dummy; do
1417 test -z "$ac_dir" && ac_dir=.
1418 if test -f $ac_dir/$ac_word; then
1419 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1420 ac_prog_rejected=yes
1421 continue
1422 fi
1423 ac_cv_prog_CC="cc"
1424 break
1425 fi
1426 done
1427 IFS="$ac_save_ifs"
1428 if test $ac_prog_rejected = yes; then
1429 # We found a bogon in the path, so make sure we never use it.
1430 set dummy $ac_cv_prog_CC
1431 shift
1432 if test $# -gt 0; then
1433 # We chose a different compiler from the bogus one.
1434 # However, it has the same basename, so the bogon will be chosen
1435 # first if we set CC to just the basename; use the full file name.
1436 shift
1437 set dummy "$ac_dir/$ac_word" "$@"
1438 shift
1439 ac_cv_prog_CC="$@"
1440 fi
1441 fi
1442 fi
1443 fi
1444 CC="$ac_cv_prog_CC"
1445 if test -n "$CC"; then
1446 echo "$ac_t""$CC" 1>&6
1447 else
1448 echo "$ac_t""no" 1>&6
1449 fi
1450
1451 if test -z "$CC"; then
1452 case "`uname -s`" in
1453 *win32* | *WIN32*)
1454 # Extract the first word of "cl", so it can be a program name with args.
1455 set dummy cl; ac_word=$2
1456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_word" >&5
1458 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1460 else
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1463 else
1464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1465 ac_dummy="$PATH"
1466 for ac_dir in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir=.
1468 if test -f $ac_dir/$ac_word; then
1469 ac_cv_prog_CC="cl"
1470 break
1471 fi
1472 done
1473 IFS="$ac_save_ifs"
1474 fi
1475 fi
1476 CC="$ac_cv_prog_CC"
1477 if test -n "$CC"; then
1478 echo "$ac_t""$CC" 1>&6
1479 else
1480 echo "$ac_t""no" 1>&6
1481 fi
1482 ;;
1483 esac
1484 fi
1485 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1486 fi
1487
1488 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1489 echo "configure:1490: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1490
1491 ac_ext=c
1492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1496 cross_compiling=$ac_cv_prog_cc_cross
1497
1498 cat > conftest.$ac_ext << EOF
1499
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1502
1503 main(){return(0);}
1504 EOF
1505 if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1506 ac_cv_prog_cc_works=yes
1507 # If we can't run a trivial program, we are probably using a cross compiler.
1508 if (./conftest; exit) 2>/dev/null; then
1509 ac_cv_prog_cc_cross=no
1510 else
1511 ac_cv_prog_cc_cross=yes
1512 fi
1513 else
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 ac_cv_prog_cc_works=no
1517 fi
1518 rm -fr conftest*
1519 ac_ext=c
1520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1524 cross_compiling=$ac_cv_prog_cc_cross
1525
1526 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1527 if test $ac_cv_prog_cc_works = no; then
1528 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1529 fi
1530 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1531 echo "configure:1532: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1532 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1533 cross_compiling=$ac_cv_prog_cc_cross
1534
1535 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1536 echo "configure:1537: checking whether we are using GNU C" >&5
1537 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1539 else
1540 cat > conftest.c <<EOF
1541 #ifdef __GNUC__
1542 yes;
1543 #endif
1544 EOF
1545 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1546 ac_cv_prog_gcc=yes
1547 else
1548 ac_cv_prog_gcc=no
1549 fi
1550 fi
1551
1552 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1553
1554 if test $ac_cv_prog_gcc = yes; then
1555 GCC=yes
1556 else
1557 GCC=
1558 fi
1559
1560 ac_test_CFLAGS="${CFLAGS+set}"
1561 ac_save_CFLAGS="$CFLAGS"
1562 CFLAGS=
1563 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1564 echo "configure:1565: checking whether ${CC-cc} accepts -g" >&5
1565 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 echo 'void f(){}' > conftest.c
1569 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1570 ac_cv_prog_cc_g=yes
1571 else
1572 ac_cv_prog_cc_g=no
1573 fi
1574 rm -f conftest*
1575
1576 fi
1577
1578 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1579 if test "$ac_test_CFLAGS" = set; then
1580 CFLAGS="$ac_save_CFLAGS"
1581 elif test $ac_cv_prog_cc_g = yes; then
1582 if test "$GCC" = yes; then
1583 CFLAGS="-g -O2"
1584 else
1585 CFLAGS="-g"
1586 fi
1587 else
1588 if test "$GCC" = yes; then
1589 CFLAGS="-O2"
1590 else
1591 CFLAGS=
1592 fi
1593 fi
1594
1595
1596
1597
1598 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1599 echo "configure:1600: checking for ${CC-cc} option to accept ANSI C" >&5
1600 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603 am_cv_prog_cc_stdc=no
1604 ac_save_CC="$CC"
1605 # Don't try gcc -ansi; that turns off useful extensions and
1606 # breaks some systems' header files.
1607 # AIX -qlanglvl=ansi
1608 # Ultrix and OSF/1 -std1
1609 # HP-UX -Aa -D_HPUX_SOURCE
1610 # SVR4 -Xc -D__EXTENSIONS__
1611 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1612 do
1613 CC="$ac_save_CC $ac_arg"
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 #include <stdarg.h>
1618 #include <stdio.h>
1619 #include <sys/types.h>
1620 #include <sys/stat.h>
1621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1622 struct buf { int x; };
1623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1624 static char *e (p, i)
1625 char **p;
1626 int i;
1627 {
1628 return p[i];
1629 }
1630 static char *f (char * (*g) (char **, int), char **p, ...)
1631 {
1632 char *s;
1633 va_list v;
1634 va_start (v,p);
1635 s = g (p, va_arg (v,int));
1636 va_end (v);
1637 return s;
1638 }
1639 int test (int i, double x);
1640 struct s1 {int (*f) (int a);};
1641 struct s2 {int (*f) (double a);};
1642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1643 int argc;
1644 char **argv;
1645
1646 int main() {
1647
1648 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1649
1650 ; return 0; }
1651 EOF
1652 if { (eval echo configure:1653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1653 rm -rf conftest*
1654 am_cv_prog_cc_stdc="$ac_arg"; break
1655 else
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1658 fi
1659 rm -f conftest*
1660 done
1661 CC="$ac_save_CC"
1662
1663 fi
1664
1665 if test -z "$am_cv_prog_cc_stdc"; then
1666 echo "$ac_t""none needed" 1>&6
1667 else
1668 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1669 fi
1670 case "x$am_cv_prog_cc_stdc" in
1671 x|xno) ;;
1672 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1673 esac
1674
1675 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1676 echo "configure:1677: checking how to run the C preprocessor" >&5
1677 # On Suns, sometimes $CPP names a directory.
1678 if test -n "$CPP" && test -d "$CPP"; then
1679 CPP=
1680 fi
1681 if test -z "$CPP"; then
1682 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1684 else
1685 # This must be in double quotes, not single quotes, because CPP may get
1686 # substituted into the Makefile and "${CC-cc}" will confuse make.
1687 CPP="${CC-cc} -E"
1688 # On the NeXT, cc -E runs the code through the compiler's parser,
1689 # not just through cpp.
1690 cat > conftest.$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1693 #include <assert.h>
1694 Syntax Error
1695 EOF
1696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1697 { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1699 if test -z "$ac_err"; then
1700 :
1701 else
1702 echo "$ac_err" >&5
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1705 rm -rf conftest*
1706 CPP="${CC-cc} -E -traditional-cpp"
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 #include <assert.h>
1711 Syntax Error
1712 EOF
1713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714 { (eval echo configure:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1716 if test -z "$ac_err"; then
1717 :
1718 else
1719 echo "$ac_err" >&5
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1722 rm -rf conftest*
1723 CPP="${CC-cc} -nologo -E"
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1727 #include <assert.h>
1728 Syntax Error
1729 EOF
1730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731 { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733 if test -z "$ac_err"; then
1734 :
1735 else
1736 echo "$ac_err" >&5
1737 echo "configure: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1739 rm -rf conftest*
1740 CPP=/lib/cpp
1741 fi
1742 rm -f conftest*
1743 fi
1744 rm -f conftest*
1745 fi
1746 rm -f conftest*
1747 ac_cv_prog_CPP="$CPP"
1748 fi
1749 CPP="$ac_cv_prog_CPP"
1750 else
1751 ac_cv_prog_CPP="$CPP"
1752 fi
1753 echo "$ac_t""$CPP" 1>&6
1754
1755 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1756 echo "configure:1757: checking for ANSI C header files" >&5
1757 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1759 else
1760 cat > conftest.$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1763 #include <stdlib.h>
1764 #include <stdarg.h>
1765 #include <string.h>
1766 #include <float.h>
1767 EOF
1768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1769 { (eval echo configure:1770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1771 if test -z "$ac_err"; then
1772 rm -rf conftest*
1773 ac_cv_header_stdc=yes
1774 else
1775 echo "$ac_err" >&5
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1778 rm -rf conftest*
1779 ac_cv_header_stdc=no
1780 fi
1781 rm -f conftest*
1782
1783 if test $ac_cv_header_stdc = yes; then
1784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1788 #include <string.h>
1789 EOF
1790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1791 egrep "memchr" >/dev/null 2>&1; then
1792 :
1793 else
1794 rm -rf conftest*
1795 ac_cv_header_stdc=no
1796 fi
1797 rm -f conftest*
1798
1799 fi
1800
1801 if test $ac_cv_header_stdc = yes; then
1802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 #include <stdlib.h>
1807 EOF
1808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1809 egrep "free" >/dev/null 2>&1; then
1810 :
1811 else
1812 rm -rf conftest*
1813 ac_cv_header_stdc=no
1814 fi
1815 rm -f conftest*
1816
1817 fi
1818
1819 if test $ac_cv_header_stdc = yes; then
1820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1821 if test "$cross_compiling" = yes; then
1822 :
1823 else
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 #include <ctype.h>
1828 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1829 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1831 int main () { int i; for (i = 0; i < 256; i++)
1832 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1833 exit (0); }
1834
1835 EOF
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1837 then
1838 :
1839 else
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1842 rm -fr conftest*
1843 ac_cv_header_stdc=no
1844 fi
1845 rm -fr conftest*
1846 fi
1847
1848 fi
1849 fi
1850
1851 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1852 if test $ac_cv_header_stdc = yes; then
1853 cat >> confdefs.h <<\EOF
1854 #define STDC_HEADERS 1
1855 EOF
1856
1857 fi
1858
1859
1860
1861 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1862 if test "${enable_compile_warnings+set}" = set; then
1863 enableval="$enable_compile_warnings"
1864 :
1865 else
1866 enable_compile_warnings=minimum
1867 fi
1868
1869
1870 echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1871 echo "configure:1872: checking what warning flags to pass to the C compiler" >&5
1872 warnCFLAGS=
1873 if test "x$GCC" != xyes; then
1874 enable_compile_warnings=no
1875 fi
1876
1877 if test "x$enable_compile_warnings" != "xno"; then
1878 if test "x$GCC" = "xyes"; then
1879 case " $CFLAGS " in
1880 *\ \ -Wall\ \ *) ;;
1881 *) warnCFLAGS="-Wall -Wunused" ;;
1882 esac
1883
1884 ## -W is not all that useful. And it cannot be controlled
1885 ## with individual -Wno-xxx flags, unlike -Wall
1886 if test "x$enable_compile_warnings" = "xyes"; then
1887 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
1888 fi
1889 fi
1890 fi
1891 echo "$ac_t""$warnCFLAGS" 1>&6
1892
1893 # Check whether --enable-iso-c or --disable-iso-c was given.
1894 if test "${enable_iso_c+set}" = set; then
1895 enableval="$enable_iso_c"
1896 :
1897 else
1898 enable_iso_c=no
1899 fi
1900
1901
1902 echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1903 echo "configure:1904: checking what language compliance flags to pass to the C compiler" >&5
1904 complCFLAGS=
1905 if test "x$enable_iso_c" != "xno"; then
1906 if test "x$GCC" = "xyes"; then
1907 case " $CFLAGS " in
1908 *\ \ -ansi\ \ *) ;;
1909 *) complCFLAGS="$complCFLAGS -ansi" ;;
1910 esac
1911
1912 case " $CFLAGS " in
1913 *\ \ -pedantic\ \ *) ;;
1914 *) complCFLAGS="$complCFLAGS -pedantic" ;;
1915 esac
1916 fi
1917 fi
1918 echo "$ac_t""$complCFLAGS" 1>&6
1919 if test "x$cflags_set" != "xyes"; then
1920 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1921 cflags_set=yes
1922
1923 fi
1924
1925
1926 PTHREAD_LIB=""
1927 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1928 echo "configure:1929: checking for pthread_create in -lpthread" >&5
1929 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933 ac_save_LIBS="$LIBS"
1934 LIBS="-lpthread $LIBS"
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 /* Override any gcc2 internal prototype to avoid an error. */
1939 /* We use char because int might match the return type of a gcc2
1940 builtin and then its argument prototype would still apply. */
1941 char pthread_create();
1942
1943 int main() {
1944 pthread_create()
1945 ; return 0; }
1946 EOF
1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1948 rm -rf conftest*
1949 eval "ac_cv_lib_$ac_lib_var=yes"
1950 else
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1953 rm -rf conftest*
1954 eval "ac_cv_lib_$ac_lib_var=no"
1955 fi
1956 rm -f conftest*
1957 LIBS="$ac_save_LIBS"
1958
1959 fi
1960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1961 echo "$ac_t""yes" 1>&6
1962 PTHREAD_LIB="-lpthread"
1963 else
1964 echo "$ac_t""no" 1>&6
1965 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
1966 echo "configure:1967: checking for pthread_create in -lpthreads" >&5
1967 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
1968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1970 else
1971 ac_save_LIBS="$LIBS"
1972 LIBS="-lpthreads $LIBS"
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 /* Override any gcc2 internal prototype to avoid an error. */
1977 /* We use char because int might match the return type of a gcc2
1978 builtin and then its argument prototype would still apply. */
1979 char pthread_create();
1980
1981 int main() {
1982 pthread_create()
1983 ; return 0; }
1984 EOF
1985 if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1986 rm -rf conftest*
1987 eval "ac_cv_lib_$ac_lib_var=yes"
1988 else
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1991 rm -rf conftest*
1992 eval "ac_cv_lib_$ac_lib_var=no"
1993 fi
1994 rm -f conftest*
1995 LIBS="$ac_save_LIBS"
1996
1997 fi
1998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 PTHREAD_LIB="-lpthreads"
2001 else
2002 echo "$ac_t""no" 1>&6
2003 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2004 echo "configure:2005: checking for pthread_create in -lc_r" >&5
2005 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2008 else
2009 ac_save_LIBS="$LIBS"
2010 LIBS="-lc_r $LIBS"
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2014 /* Override any gcc2 internal prototype to avoid an error. */
2015 /* We use char because int might match the return type of a gcc2
2016 builtin and then its argument prototype would still apply. */
2017 char pthread_create();
2018
2019 int main() {
2020 pthread_create()
2021 ; return 0; }
2022 EOF
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2024 rm -rf conftest*
2025 eval "ac_cv_lib_$ac_lib_var=yes"
2026 else
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 rm -rf conftest*
2030 eval "ac_cv_lib_$ac_lib_var=no"
2031 fi
2032 rm -f conftest*
2033 LIBS="$ac_save_LIBS"
2034
2035 fi
2036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2037 echo "$ac_t""yes" 1>&6
2038 PTHREAD_LIB="-lc_r"
2039 else
2040 echo "$ac_t""no" 1>&6
2041 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2042 echo "configure:2043: checking for pthread_create" >&5
2043 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 /* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char pthread_create(); below. */
2051 #include <assert.h>
2052 /* Override any gcc2 internal prototype to avoid an error. */
2053 /* We use char because int might match the return type of a gcc2
2054 builtin and then its argument prototype would still apply. */
2055 char pthread_create();
2056
2057 int main() {
2058
2059 /* The GNU C library defines this for functions which it implements
2060 to always fail with ENOSYS. Some functions are actually named
2061 something starting with __ and the normal name is an alias. */
2062 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2063 choke me
2064 #else
2065 pthread_create();
2066 #endif
2067
2068 ; return 0; }
2069 EOF
2070 if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2071 rm -rf conftest*
2072 eval "ac_cv_func_pthread_create=yes"
2073 else
2074 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 rm -rf conftest*
2077 eval "ac_cv_func_pthread_create=no"
2078 fi
2079 rm -f conftest*
2080 fi
2081
2082 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2084 :
2085 else
2086 echo "$ac_t""no" 1>&6
2087 fi
2088
2089
2090 fi
2091
2092
2093 fi
2094
2095
2096 fi
2097
2098
2099
2100
2101
2102 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2103 if test "${with_gtk_prefix+set}" = set; then
2104 withval="$with_gtk_prefix"
2105 gtk_config_prefix="$withval"
2106 else
2107 gtk_config_prefix=""
2108 fi
2109
2110 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2111 if test "${with_gtk_exec_prefix+set}" = set; then
2112 withval="$with_gtk_exec_prefix"
2113 gtk_config_exec_prefix="$withval"
2114 else
2115 gtk_config_exec_prefix=""
2116 fi
2117
2118 # Check whether --enable-gtktest or --disable-gtktest was given.
2119 if test "${enable_gtktest+set}" = set; then
2120 enableval="$enable_gtktest"
2121 :
2122 else
2123 enable_gtktest=yes
2124 fi
2125
2126
2127 for module in .
2128 do
2129 case "$module" in
2130 gthread)
2131 gtk_config_args="$gtk_config_args gthread"
2132 ;;
2133 esac
2134 done
2135
2136 if test x$gtk_config_exec_prefix != x ; then
2137 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2138 if test x${GTK_CONFIG+set} != xset ; then
2139 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2140 fi
2141 fi
2142 if test x$gtk_config_prefix != x ; then
2143 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2144 if test x${GTK_CONFIG+set} != xset ; then
2145 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2146 fi
2147 fi
2148
2149 # Extract the first word of "gtk-config", so it can be a program name with args.
2150 set dummy gtk-config; ac_word=$2
2151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2152 echo "configure:2153: checking for $ac_word" >&5
2153 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2155 else
2156 case "$GTK_CONFIG" in
2157 /*)
2158 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2159 ;;
2160 ?:/*)
2161 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2162 ;;
2163 *)
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 ac_dummy="$PATH"
2166 for ac_dir in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir=.
2168 if test -f $ac_dir/$ac_word; then
2169 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2170 break
2171 fi
2172 done
2173 IFS="$ac_save_ifs"
2174 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2175 ;;
2176 esac
2177 fi
2178 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2179 if test -n "$GTK_CONFIG"; then
2180 echo "$ac_t""$GTK_CONFIG" 1>&6
2181 else
2182 echo "$ac_t""no" 1>&6
2183 fi
2184
2185 min_gtk_version=1.2.0
2186 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2187 echo "configure:2188: checking for GTK - version >= $min_gtk_version" >&5
2188 no_gtk=""
2189 if test "$GTK_CONFIG" = "no" ; then
2190 no_gtk=yes
2191 else
2192 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2193 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2194 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2195 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2196 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2197 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2198 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2199 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2200 if test "x$enable_gtktest" = "xyes" ; then
2201 ac_save_CFLAGS="$CFLAGS"
2202 ac_save_LIBS="$LIBS"
2203 CFLAGS="$CFLAGS $GTK_CFLAGS"
2204 LIBS="$GTK_LIBS $LIBS"
2205 rm -f conf.gtktest
2206 if test "$cross_compiling" = yes; then
2207 echo $ac_n "cross compiling; assumed OK... $ac_c"
2208 else
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212
2213 #include <gtk/gtk.h>
2214 #include <stdio.h>
2215 #include <stdlib.h>
2216
2217 int
2218 main ()
2219 {
2220 int major, minor, micro;
2221 char *tmp_version;
2222
2223 system ("touch conf.gtktest");
2224
2225 /* HP/UX 9 (%@#!) writes to sscanf strings */
2226 tmp_version = g_strdup("$min_gtk_version");
2227 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2228 printf("%s, bad version string\n", "$min_gtk_version");
2229 exit(1);
2230 }
2231
2232 if ((gtk_major_version != $gtk_config_major_version) ||
2233 (gtk_minor_version != $gtk_config_minor_version) ||
2234 (gtk_micro_version != $gtk_config_micro_version))
2235 {
2236 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2237 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2238 gtk_major_version, gtk_minor_version, gtk_micro_version);
2239 printf ("*** was found! If gtk-config was correct, then it is best\n");
2240 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2241 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2242 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2243 printf("*** required on your system.\n");
2244 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2245 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2246 printf("*** before re-running configure\n");
2247 }
2248 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
2249 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2250 (gtk_minor_version != GTK_MINOR_VERSION) ||
2251 (gtk_micro_version != GTK_MICRO_VERSION))
2252 {
2253 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2254 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2255 printf("*** library (version %d.%d.%d)\n",
2256 gtk_major_version, gtk_minor_version, gtk_micro_version);
2257 }
2258 #endif /* defined (GTK_MAJOR_VERSION) ... */
2259 else
2260 {
2261 if ((gtk_major_version > major) ||
2262 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2263 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2264 {
2265 return 0;
2266 }
2267 else
2268 {
2269 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2270 gtk_major_version, gtk_minor_version, gtk_micro_version);
2271 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2272 major, minor, micro);
2273 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2274 printf("***\n");
2275 printf("*** If you have already installed a sufficiently new version, this error\n");
2276 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2277 printf("*** being found. The easiest way to fix this is to remove the old version\n");
2278 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2279 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2280 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2281 printf("*** so that the correct libraries are found at run-time))\n");
2282 }
2283 }
2284 return 1;
2285 }
2286
2287 EOF
2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2289 then
2290 :
2291 else
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2294 rm -fr conftest*
2295 no_gtk=yes
2296 fi
2297 rm -fr conftest*
2298 fi
2299
2300 CFLAGS="$ac_save_CFLAGS"
2301 LIBS="$ac_save_LIBS"
2302 fi
2303 fi
2304 if test "x$no_gtk" = x ; then
2305 echo "$ac_t""yes" 1>&6
2306 :
2307 else
2308 echo "$ac_t""no" 1>&6
2309 if test "$GTK_CONFIG" = "no" ; then
2310 echo "*** The gtk-config script installed by GTK could not be found"
2311 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2312 echo "*** your path, or set the GTK_CONFIG environment variable to the"
2313 echo "*** full path to gtk-config."
2314 else
2315 if test -f conf.gtktest ; then
2316 :
2317 else
2318 echo "*** Could not run GTK test program, checking why..."
2319 CFLAGS="$CFLAGS $GTK_CFLAGS"
2320 LIBS="$LIBS $GTK_LIBS"
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324
2325 #include <gtk/gtk.h>
2326 #include <stdio.h>
2327
2328 int main() {
2329 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2330 ; return 0; }
2331 EOF
2332 if { (eval echo configure:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2333 rm -rf conftest*
2334 echo "*** The test program compiled, but did not run. This usually means"
2335 echo "*** that the run-time linker is not finding GTK or finding the wrong"
2336 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2337 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2338 echo "*** to the installed location Also, make sure you have run ldconfig if that"
2339 echo "*** is required on your system"
2340 echo "***"
2341 echo "*** If you have an old version installed, it is best to remove it, although"
2342 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2343 echo "***"
2344 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2345 echo "*** came with the system with the command"
2346 echo "***"
2347 echo "*** rpm --erase --nodeps gtk gtk-devel"
2348 else
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 rm -rf conftest*
2352 echo "*** The test program failed to compile or link. See the file config.log for the"
2353 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2354 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2355 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2356 fi
2357 rm -f conftest*
2358 CFLAGS="$ac_save_CFLAGS"
2359 LIBS="$ac_save_LIBS"
2360 fi
2361 fi
2362 GTK_CFLAGS=""
2363 GTK_LIBS=""
2364 { echo "configure: error: GTK not installed" 1>&2; exit 1; }
2365 fi
2366
2367
2368 rm -f conf.gtktest
2369
2370 CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
2371
2372 saved_ldflags="$LDFLAGS"
2373 LDFLAGS="$LDFLAGS $GTK_LIBS"
2374
2375 gnome_cv_passdown_x_libs="$GTK_LIBS"
2376 gnome_cv_passdown_X_LIBS="$GTK_LIBS"
2377 gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
2378 gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
2379
2380 LDFLAGS="$saved_ldflags $GTK_LIBS"
2381
2382 USE_DEVGTK=true
2383
2384
2385 GNOME_HAVE_SM=true
2386 case "$GTK_LIBS" in
2387 *-lSM*)
2388 ;;
2389 *)
2390 echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6
2391 echo "configure:2392: checking for SmcSaveYourselfDone in -lSM" >&5
2392 ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'`
2393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2396 ac_save_LIBS="$LIBS"
2397 LIBS="-lSM $x_libs -lICE $LIBS"
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 /* Override any gcc2 internal prototype to avoid an error. */
2402 /* We use char because int might match the return type of a gcc2
2403 builtin and then its argument prototype would still apply. */
2404 char SmcSaveYourselfDone();
2405
2406 int main() {
2407 SmcSaveYourselfDone()
2408 ; return 0; }
2409 EOF
2410 if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2411 rm -rf conftest*
2412 eval "ac_cv_lib_$ac_lib_var=yes"
2413 else
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 rm -rf conftest*
2417 eval "ac_cv_lib_$ac_lib_var=no"
2418 fi
2419 rm -f conftest*
2420 LIBS="$ac_save_LIBS"
2421
2422 fi
2423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 GTK_LIBS="-lSM -lICE $GTK_LIBS"
2426 else
2427 echo "$ac_t""no" 1>&6
2428 GNOME_HAVE_SM=false
2429 fi
2430
2431 ;;
2432 esac
2433
2434 if test "$GNOME_HAVE_SM" = true; then
2435 for ac_hdr in X11/SM/SMlib.h
2436 do
2437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_hdr" >&5
2440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2442 else
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 #include <$ac_hdr>
2447 EOF
2448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2449 { (eval echo configure:2450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2451 if test -z "$ac_err"; then
2452 rm -rf conftest*
2453 eval "ac_cv_header_$ac_safe=yes"
2454 else
2455 echo "$ac_err" >&5
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 rm -rf conftest*
2459 eval "ac_cv_header_$ac_safe=no"
2460 fi
2461 rm -f conftest*
2462 fi
2463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2466 cat >> confdefs.h <<EOF
2467 #define $ac_tr_hdr 1
2468 EOF
2469
2470 else
2471 echo "$ac_t""no" 1>&6
2472 GNOME_HAVE_SM=false
2473 fi
2474 done
2475
2476 fi
2477
2478 if test "$GNOME_HAVE_SM" = true; then
2479 cat >> confdefs.h <<\EOF
2480 #define HAVE_LIBSM 1
2481 EOF
2482
2483 fi
2484
2485 XPM_LIBS=""
2486 echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6
2487 echo "configure:2488: checking for XpmFreeXpmImage in -lXpm" >&5
2488 ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'`
2489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2491 else
2492 ac_save_LIBS="$LIBS"
2493 LIBS="-lXpm $x_libs $LIBS"
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 /* Override any gcc2 internal prototype to avoid an error. */
2498 /* We use char because int might match the return type of a gcc2
2499 builtin and then its argument prototype would still apply. */
2500 char XpmFreeXpmImage();
2501
2502 int main() {
2503 XpmFreeXpmImage()
2504 ; return 0; }
2505 EOF
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 rm -rf conftest*
2508 eval "ac_cv_lib_$ac_lib_var=yes"
2509 else
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2512 rm -rf conftest*
2513 eval "ac_cv_lib_$ac_lib_var=no"
2514 fi
2515 rm -f conftest*
2516 LIBS="$ac_save_LIBS"
2517
2518 fi
2519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2520 echo "$ac_t""yes" 1>&6
2521 XPM_LIBS="-lXpm"
2522 else
2523 echo "$ac_t""no" 1>&6
2524 fi
2525
2526
2527
2528
2529 LDFLAGS="$saved_ldflags"
2530
2531
2532
2533
2534 ZVT_LIBS=`$GNOME_CONFIG --libs zvt`
2535
2536
2537 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2538 if test "${with_gtk_prefix+set}" = set; then
2539 withval="$with_gtk_prefix"
2540 gtk_config_prefix="$withval"
2541 else
2542 gtk_config_prefix=""
2543 fi
2544
2545 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2546 if test "${with_gtk_exec_prefix+set}" = set; then
2547 withval="$with_gtk_exec_prefix"
2548 gtk_config_exec_prefix="$withval"
2549 else
2550 gtk_config_exec_prefix=""
2551 fi
2552
2553 # Check whether --enable-gtktest or --disable-gtktest was given.
2554 if test "${enable_gtktest+set}" = set; then
2555 enableval="$enable_gtktest"
2556 :
2557 else
2558 enable_gtktest=yes
2559 fi
2560
2561
2562 for module in . gthread
2563 do
2564 case "$module" in
2565 gthread)
2566 gtk_config_args="$gtk_config_args gthread"
2567 ;;
2568 esac
2569 done
2570
2571 if test x$gtk_config_exec_prefix != x ; then
2572 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2573 if test x${GTK_CONFIG+set} != xset ; then
2574 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2575 fi
2576 fi
2577 if test x$gtk_config_prefix != x ; then
2578 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2579 if test x${GTK_CONFIG+set} != xset ; then
2580 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2581 fi
2582 fi
2583
2584 # Extract the first word of "gtk-config", so it can be a program name with args.
2585 set dummy gtk-config; ac_word=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2590 else
2591 case "$GTK_CONFIG" in
2592 /*)
2593 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2594 ;;
2595 ?:/*)
2596 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2597 ;;
2598 *)
2599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2600 ac_dummy="$PATH"
2601 for ac_dir in $ac_dummy; do
2602 test -z "$ac_dir" && ac_dir=.
2603 if test -f $ac_dir/$ac_word; then
2604 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2605 break
2606 fi
2607 done
2608 IFS="$ac_save_ifs"
2609 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2610 ;;
2611 esac
2612 fi
2613 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2614 if test -n "$GTK_CONFIG"; then
2615 echo "$ac_t""$GTK_CONFIG" 1>&6
2616 else
2617 echo "$ac_t""no" 1>&6
2618 fi
2619
2620 min_gtk_version=1.2.0
2621 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2622 echo "configure:2623: checking for GTK - version >= $min_gtk_version" >&5
2623 no_gtk=""
2624 if test "$GTK_CONFIG" = "no" ; then
2625 no_gtk=yes
2626 else
2627 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2628 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2629 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2630 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2631 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2632 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2633 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2634 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2635 if test "x$enable_gtktest" = "xyes" ; then
2636 ac_save_CFLAGS="$CFLAGS"
2637 ac_save_LIBS="$LIBS"
2638 CFLAGS="$CFLAGS $GTK_CFLAGS"
2639 LIBS="$GTK_LIBS $LIBS"
2640 rm -f conf.gtktest
2641 if test "$cross_compiling" = yes; then
2642 echo $ac_n "cross compiling; assumed OK... $ac_c"
2643 else
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2647
2648 #include <gtk/gtk.h>
2649 #include <stdio.h>
2650 #include <stdlib.h>
2651
2652 int
2653 main ()
2654 {
2655 int major, minor, micro;
2656 char *tmp_version;
2657
2658 system ("touch conf.gtktest");
2659
2660 /* HP/UX 9 (%@#!) writes to sscanf strings */
2661 tmp_version = g_strdup("$min_gtk_version");
2662 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2663 printf("%s, bad version string\n", "$min_gtk_version");
2664 exit(1);
2665 }
2666
2667 if ((gtk_major_version != $gtk_config_major_version) ||
2668 (gtk_minor_version != $gtk_config_minor_version) ||
2669 (gtk_micro_version != $gtk_config_micro_version))
2670 {
2671 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2672 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2673 gtk_major_version, gtk_minor_version, gtk_micro_version);
2674 printf ("*** was found! If gtk-config was correct, then it is best\n");
2675 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2676 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2677 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2678 printf("*** required on your system.\n");
2679 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2680 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2681 printf("*** before re-running configure\n");
2682 }
2683 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
2684 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2685 (gtk_minor_version != GTK_MINOR_VERSION) ||
2686 (gtk_micro_version != GTK_MICRO_VERSION))
2687 {
2688 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2689 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2690 printf("*** library (version %d.%d.%d)\n",
2691 gtk_major_version, gtk_minor_version, gtk_micro_version);
2692 }
2693 #endif /* defined (GTK_MAJOR_VERSION) ... */
2694 else
2695 {
2696 if ((gtk_major_version > major) ||
2697 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2698 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2699 {
2700 return 0;
2701 }
2702 else
2703 {
2704 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2705 gtk_major_version, gtk_minor_version, gtk_micro_version);
2706 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2707 major, minor, micro);
2708 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2709 printf("***\n");
2710 printf("*** If you have already installed a sufficiently new version, this error\n");
2711 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2712 printf("*** being found. The easiest way to fix this is to remove the old version\n");
2713 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2714 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2715 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2716 printf("*** so that the correct libraries are found at run-time))\n");
2717 }
2718 }
2719 return 1;
2720 }
2721
2722 EOF
2723 if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2724 then
2725 :
2726 else
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2729 rm -fr conftest*
2730 no_gtk=yes
2731 fi
2732 rm -fr conftest*
2733 fi
2734
2735 CFLAGS="$ac_save_CFLAGS"
2736 LIBS="$ac_save_LIBS"
2737 fi
2738 fi
2739 if test "x$no_gtk" = x ; then
2740 echo "$ac_t""yes" 1>&6
2741 :
2742 else
2743 echo "$ac_t""no" 1>&6
2744 if test "$GTK_CONFIG" = "no" ; then
2745 echo "*** The gtk-config script installed by GTK could not be found"
2746 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2747 echo "*** your path, or set the GTK_CONFIG environment variable to the"
2748 echo "*** full path to gtk-config."
2749 else
2750 if test -f conf.gtktest ; then
2751 :
2752 else
2753 echo "*** Could not run GTK test program, checking why..."
2754 CFLAGS="$CFLAGS $GTK_CFLAGS"
2755 LIBS="$LIBS $GTK_LIBS"
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759
2760 #include <gtk/gtk.h>
2761 #include <stdio.h>
2762
2763 int main() {
2764 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2765 ; return 0; }
2766 EOF
2767 if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2768 rm -rf conftest*
2769 echo "*** The test program compiled, but did not run. This usually means"
2770 echo "*** that the run-time linker is not finding GTK or finding the wrong"
2771 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2772 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2773 echo "*** to the installed location Also, make sure you have run ldconfig if that"
2774 echo "*** is required on your system"
2775 echo "***"
2776 echo "*** If you have an old version installed, it is best to remove it, although"
2777 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2778 echo "***"
2779 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2780 echo "*** came with the system with the command"
2781 echo "***"
2782 echo "*** rpm --erase --nodeps gtk gtk-devel"
2783 else
2784 echo "configure: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 rm -rf conftest*
2787 echo "*** The test program failed to compile or link. See the file config.log for the"
2788 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2789 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2790 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2791 fi
2792 rm -f conftest*
2793 CFLAGS="$ac_save_CFLAGS"
2794 LIBS="$ac_save_LIBS"
2795 fi
2796 fi
2797 GTK_CFLAGS=""
2798 GTK_LIBS=""
2799 { echo "configure: error: Cannot find GTK: Is gtk-config in path?" 1>&2; exit 1; }
2800 fi
2801
2802
2803 rm -f conf.gtktest
2804
2805
2806 if test "x${datadir}" = 'x${prefix}/share'; then
2807 if test "x${prefix}" = "xNONE"; then
2808 cat >> confdefs.h <<EOF
2809 #define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}"
2810 EOF
2811
2812 else
2813 cat >> confdefs.h <<EOF
2814 #define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}"
2815 EOF
2816
2817 fi
2818 else
2819 cat >> confdefs.h <<EOF
2820 #define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}"
2821 EOF
2822
2823 fi
2824
2825
2826 packagesrcdir=`cd $srcdir && pwd`
2827 cat >> confdefs.h <<EOF
2828 #define PACKAGE_SOURCE_DIR "${packagesrcdir}"
2829 EOF
2830
2831
2832 if test "x$GCC" = "xyes"; then
2833 case " $CFLAGS " in
2834 *[\ \ ]-Wall[\ \ ]*) ;;
2835 *) CFLAGS="$CFLAGS -Wall" ;;
2836 esac
2837 fi
2838
2839 trap '' 1 2 15
2840 cat > confcache <<\EOF
2841 # This file is a shell script that caches the results of configure
2842 # tests run on this system so they can be shared between configure
2843 # scripts and configure runs. It is not useful on other systems.
2844 # If it contains results you don't want to keep, you may remove or edit it.
2845 #
2846 # By default, configure uses ./config.cache as the cache file,
2847 # creating it if it does not exist already. You can give configure
2848 # the --cache-file=FILE option to use a different cache file; that is
2849 # what configure does when it calls configure scripts in
2850 # subdirectories, so they share the cache.
2851 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2852 # config.status only pays attention to the cache file if you give it the
2853 # --recheck option to rerun configure.
2854 #
2855 EOF
2856 # The following way of writing the cache mishandles newlines in values,
2857 # but we know of no workaround that is simple, portable, and efficient.
2858 # So, don't put newlines in cache variables' values.
2859 # Ultrix sh set writes to stderr and can't be redirected directly,
2860 # and sets the high bit in the cache file unless we assign to the vars.
2861 (set) 2>&1 |
2862 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2863 *ac_space=\ *)
2864 # `set' does not quote correctly, so add quotes (double-quote substitution
2865 # turns \\\\ into \\, and sed turns \\ into \).
2866 sed -n \
2867 -e "s/'/'\\\\''/g" \
2868 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2869 ;;
2870 *)
2871 # `set' quotes correctly as required by POSIX, so do not add quotes.
2872 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2873 ;;
2874 esac >> confcache
2875 if cmp -s $cache_file confcache; then
2876 :
2877 else
2878 if test -w $cache_file; then
2879 echo "updating cache $cache_file"
2880 cat confcache > $cache_file
2881 else
2882 echo "not updating unwritable cache $cache_file"
2883 fi
2884 fi
2885 rm -f confcache
2886
2887 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2888
2889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2890 # Let make expand exec_prefix.
2891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2892
2893 # Any assignment to VPATH causes Sun make to only execute
2894 # the first set of double-colon rules, so remove it if not needed.
2895 # If there is a colon in the path, we need to keep it.
2896 if test "x$srcdir" = x.; then
2897 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2898 fi
2899
2900 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2901
2902 DEFS=-DHAVE_CONFIG_H
2903
2904 # Without the "./", some shells look in PATH for config.status.
2905 : ${CONFIG_STATUS=./config.status}
2906
2907 echo creating $CONFIG_STATUS
2908 rm -f $CONFIG_STATUS
2909 cat > $CONFIG_STATUS <<EOF
2910 #! /bin/sh
2911 # Generated automatically by configure.
2912 # Run this file to recreate the current configuration.
2913 # This directory was configured as follows,
2914 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2915 #
2916 # $0 $ac_configure_args
2917 #
2918 # Compiler output produced by configure, useful for debugging
2919 # configure, is in ./config.log if it exists.
2920
2921 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2922 for ac_option
2923 do
2924 case "\$ac_option" in
2925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2926 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2927 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2928 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2929 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2930 exit 0 ;;
2931 -help | --help | --hel | --he | --h)
2932 echo "\$ac_cs_usage"; exit 0 ;;
2933 *) echo "\$ac_cs_usage"; exit 1 ;;
2934 esac
2935 done
2936
2937 ac_given_srcdir=$srcdir
2938 ac_given_INSTALL="$INSTALL"
2939
2940 trap 'rm -fr `echo "
2941 Makefile
2942 macros/Makefile
2943 src/Makefile
2944 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2945 EOF
2946 cat >> $CONFIG_STATUS <<EOF
2947
2948 # Protect against being on the right side of a sed subst in config.status.
2949 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2950 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2951 $ac_vpsub
2952 $extrasub
2953 s%@SHELL@%$SHELL%g
2954 s%@CFLAGS@%$CFLAGS%g
2955 s%@CPPFLAGS@%$CPPFLAGS%g
2956 s%@CXXFLAGS@%$CXXFLAGS%g
2957 s%@FFLAGS@%$FFLAGS%g
2958 s%@DEFS@%$DEFS%g
2959 s%@LDFLAGS@%$LDFLAGS%g
2960 s%@LIBS@%$LIBS%g
2961 s%@exec_prefix@%$exec_prefix%g
2962 s%@prefix@%$prefix%g
2963 s%@program_transform_name@%$program_transform_name%g
2964 s%@bindir@%$bindir%g
2965 s%@sbindir@%$sbindir%g
2966 s%@libexecdir@%$libexecdir%g
2967 s%@datadir@%$datadir%g
2968 s%@sysconfdir@%$sysconfdir%g
2969 s%@sharedstatedir@%$sharedstatedir%g
2970 s%@localstatedir@%$localstatedir%g
2971 s%@libdir@%$libdir%g
2972 s%@includedir@%$includedir%g
2973 s%@oldincludedir@%$oldincludedir%g
2974 s%@infodir@%$infodir%g
2975 s%@mandir@%$mandir%g
2976 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2977 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2978 s%@INSTALL_DATA@%$INSTALL_DATA%g
2979 s%@PACKAGE@%$PACKAGE%g
2980 s%@VERSION@%$VERSION%g
2981 s%@ACLOCAL@%$ACLOCAL%g
2982 s%@AUTOCONF@%$AUTOCONF%g
2983 s%@AUTOMAKE@%$AUTOMAKE%g
2984 s%@AUTOHEADER@%$AUTOHEADER%g
2985 s%@MAKEINFO@%$MAKEINFO%g
2986 s%@SET_MAKE@%$SET_MAKE%g
2987 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
2988 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
2989 s%@GNOME_LIBS@%$GNOME_LIBS%g
2990 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
2991 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
2992 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
2993 s%@ZVT_LIBS@%$ZVT_LIBS%g
2994 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
2995 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
2996 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
2997 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
2998 s%@ORBIT_IDL@%$ORBIT_IDL%g
2999 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
3000 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
3001 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
3002 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
3003 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
3004 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
3005 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
3006 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
3007 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
3008 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
3009 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
3010 s%@CC@%$CC%g
3011 s%@CPP@%$CPP%g
3012 s%@cflags_set@%$cflags_set%g
3013 s%@GTK_CONFIG@%$GTK_CONFIG%g
3014 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
3015 s%@GTK_LIBS@%$GTK_LIBS%g
3016 s%@XPM_LIBS@%$XPM_LIBS%g
3017 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
3018
3019 CEOF
3020 EOF
3021
3022 cat >> $CONFIG_STATUS <<\EOF
3023
3024 # Split the substitutions into bite-sized pieces for seds with
3025 # small command number limits, like on Digital OSF/1 and HP-UX.
3026 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3027 ac_file=1 # Number of current file.
3028 ac_beg=1 # First line for current file.
3029 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3030 ac_more_lines=:
3031 ac_sed_cmds=""
3032 while $ac_more_lines; do
3033 if test $ac_beg -gt 1; then
3034 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3035 else
3036 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3037 fi
3038 if test ! -s conftest.s$ac_file; then
3039 ac_more_lines=false
3040 rm -f conftest.s$ac_file
3041 else
3042 if test -z "$ac_sed_cmds"; then
3043 ac_sed_cmds="sed -f conftest.s$ac_file"
3044 else
3045 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3046 fi
3047 ac_file=`expr $ac_file + 1`
3048 ac_beg=$ac_end
3049 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3050 fi
3051 done
3052 if test -z "$ac_sed_cmds"; then
3053 ac_sed_cmds=cat
3054 fi
3055 EOF
3056
3057 cat >> $CONFIG_STATUS <<EOF
3058
3059 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3060 macros/Makefile
3061 src/Makefile
3062 "}
3063 EOF
3064 cat >> $CONFIG_STATUS <<\EOF
3065 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3066 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3067 case "$ac_file" in
3068 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3069 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3070 *) ac_file_in="${ac_file}.in" ;;
3071 esac
3072
3073 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3074
3075 # Remove last slash and all that follows it. Not all systems have dirname.
3076 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3077 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3078 # The file is in a subdirectory.
3079 test ! -d "$ac_dir" && mkdir "$ac_dir"
3080 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3081 # A "../" for each directory in $ac_dir_suffix.
3082 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3083 else
3084 ac_dir_suffix= ac_dots=
3085 fi
3086
3087 case "$ac_given_srcdir" in
3088 .) srcdir=.
3089 if test -z "$ac_dots"; then top_srcdir=.
3090 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3091 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3092 *) # Relative path.
3093 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3094 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3095 esac
3096
3097 case "$ac_given_INSTALL" in
3098 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3099 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3100 esac
3101
3102 echo creating "$ac_file"
3103 rm -f "$ac_file"
3104 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3105 case "$ac_file" in
3106 *Makefile*) ac_comsub="1i\\
3107 # $configure_input" ;;
3108 *) ac_comsub= ;;
3109 esac
3110
3111 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3112 sed -e "$ac_comsub
3113 s%@configure_input@%$configure_input%g
3114 s%@srcdir@%$srcdir%g
3115 s%@top_srcdir@%$top_srcdir%g
3116 s%@INSTALL@%$INSTALL%g
3117 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3118 fi; done
3119 rm -f conftest.s*
3120
3121 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3122 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3123 #
3124 # ac_d sets the value in "#define NAME VALUE" lines.
3125 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3126 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3127 ac_dC='\3'
3128 ac_dD='%g'
3129 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3130 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3131 ac_uB='\([ ]\)%\1#\2define\3'
3132 ac_uC=' '
3133 ac_uD='\4%g'
3134 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3135 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3136 ac_eB='$%\1#\2define\3'
3137 ac_eC=' '
3138 ac_eD='%g'
3139
3140 if test "${CONFIG_HEADERS+set}" != set; then
3141 EOF
3142 cat >> $CONFIG_STATUS <<EOF
3143 CONFIG_HEADERS="config.h"
3144 EOF
3145 cat >> $CONFIG_STATUS <<\EOF
3146 fi
3147 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3149 case "$ac_file" in
3150 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3151 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3152 *) ac_file_in="${ac_file}.in" ;;
3153 esac
3154
3155 echo creating $ac_file
3156
3157 rm -f conftest.frag conftest.in conftest.out
3158 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3159 cat $ac_file_inputs > conftest.in
3160
3161 EOF
3162
3163 # Transform confdefs.h into a sed script conftest.vals that substitutes
3164 # the proper values into config.h.in to produce config.h. And first:
3165 # Protect against being on the right side of a sed subst in config.status.
3166 # Protect against being in an unquoted here document in config.status.
3167 rm -f conftest.vals
3168 cat > conftest.hdr <<\EOF
3169 s/[\\&%]/\\&/g
3170 s%[\\$`]%\\&%g
3171 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3172 s%ac_d%ac_u%gp
3173 s%ac_u%ac_e%gp
3174 EOF
3175 sed -n -f conftest.hdr confdefs.h > conftest.vals
3176 rm -f conftest.hdr
3177
3178 # This sed command replaces #undef with comments. This is necessary, for
3179 # example, in the case of _POSIX_SOURCE, which is predefined and required
3180 # on some systems where configure will not decide to define it.
3181 cat >> conftest.vals <<\EOF
3182 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3183 EOF
3184
3185 # Break up conftest.vals because some shells have a limit on
3186 # the size of here documents, and old seds have small limits too.
3187
3188 rm -f conftest.tail
3189 while :
3190 do
3191 ac_lines=`grep -c . conftest.vals`
3192 # grep -c gives empty output for an empty file on some AIX systems.
3193 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3194 # Write a limited-size here document to conftest.frag.
3195 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3196 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3197 echo 'CEOF
3198 sed -f conftest.frag conftest.in > conftest.out
3199 rm -f conftest.in
3200 mv conftest.out conftest.in
3201 ' >> $CONFIG_STATUS
3202 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3203 rm -f conftest.vals
3204 mv conftest.tail conftest.vals
3205 done
3206 rm -f conftest.vals
3207
3208 cat >> $CONFIG_STATUS <<\EOF
3209 rm -f conftest.frag conftest.h
3210 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3211 cat conftest.in >> conftest.h
3212 rm -f conftest.in
3213 if cmp -s $ac_file conftest.h 2>/dev/null; then
3214 echo "$ac_file is unchanged"
3215 rm -f conftest.h
3216 else
3217 # Remove last slash and all that follows it. Not all systems have dirname.
3218 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3219 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3220 # The file is in a subdirectory.
3221 test ! -d "$ac_dir" && mkdir "$ac_dir"
3222 fi
3223 rm -f $ac_file
3224 mv conftest.h $ac_file
3225 fi
3226 fi; done
3227
3228 EOF
3229 cat >> $CONFIG_STATUS <<EOF
3230
3231
3232 EOF
3233 cat >> $CONFIG_STATUS <<\EOF
3234 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3235
3236 exit 0
3237 EOF
3238 chmod +x $CONFIG_STATUS
3239 rm -fr confdefs* $ac_clean_files
3240 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3241
3242

File configure.in added (mode: 100644) (index 0000000..0ed14e2)
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_INIT(configure.in)
4 AM_INIT_AUTOMAKE(vide, 0.5.2)
5 AM_CONFIG_HEADER(config.h)
6
7 AM_ACLOCAL_INCLUDE(macros)
8
9 GNOME_INIT
10 AC_ISC_POSIX
11 AC_PROG_CC
12 AM_PROG_CC_STDC
13 AC_HEADER_STDC
14
15 GNOME_COMPILE_WARNINGS
16 GNOME_X_CHECKS
17
18 ZVT_LIBS=`$GNOME_CONFIG --libs zvt`
19 AC_SUBST(ZVT_LIBS)
20
21 AM_PATH_GTK(1.2.0, ,
22 AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?), gthread)
23
24 dnl Set PACKAGE_DATA_DIR in config.h.
25 if test "x${datadir}" = 'x${prefix}/share'; then
26 if test "x${prefix}" = "xNONE"; then
27 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}")
28 else
29 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}")
30 fi
31 else
32 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}")
33 fi
34
35
36 dnl Set PACKAGE_SOURCE_DIR in config.h.
37 packagesrcdir=`cd $srcdir && pwd`
38 AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")
39
40 dnl Use -Wall if we have gcc.
41 changequote(,)dnl
42 if test "x$GCC" = "xyes"; then
43 case " $CFLAGS " in
44 *[\ \ ]-Wall[\ \ ]*) ;;
45 *) CFLAGS="$CFLAGS -Wall" ;;
46 esac
47 fi
48 changequote([,])dnl
49
50 AC_OUTPUT([
51 Makefile
52 macros/Makefile
53 src/Makefile
54 ])
55

File install-sh added (mode: 100755) (index 0000000..e9de238)
1 #!/bin/sh
2 #
3 # install - install a program, script, or datafile
4 # This comes from X11R5 (mit/util/scripts/install.sh).
5 #
6 # Copyright 1991 by the Massachusetts Institute of Technology
7 #
8 # Permission to use, copy, modify, distribute, and sell this software and its
9 # documentation for any purpose is hereby granted without fee, provided that
10 # the above copyright notice appear in all copies and that both that
11 # copyright notice and this permission notice appear in supporting
12 # documentation, and that the name of M.I.T. not be used in advertising or
13 # publicity pertaining to distribution of the software without specific,
14 # written prior permission. M.I.T. makes no representations about the
15 # suitability of this software for any purpose. It is provided "as is"
16 # without express or implied warranty.
17 #
18 # Calling this script install-sh is preferred over install.sh, to prevent
19 # `make' implicit rules from creating a file called install from it
20 # when there is no Makefile.
21 #
22 # This script is compatible with the BSD install script, but was written
23 # from scratch. It can only install one file at a time, a restriction
24 # shared with many OS's install programs.
25
26
27 # set DOITPROG to echo to test this script
28
29 # Don't use :- since 4.3BSD and earlier shells don't like it.
30 doit="${DOITPROG-}"
31
32
33 # put in absolute paths if you don't have them in your path; or use env. vars.
34
35 mvprog="${MVPROG-mv}"
36 cpprog="${CPPROG-cp}"
37 chmodprog="${CHMODPROG-chmod}"
38 chownprog="${CHOWNPROG-chown}"
39 chgrpprog="${CHGRPPROG-chgrp}"
40 stripprog="${STRIPPROG-strip}"
41 rmprog="${RMPROG-rm}"
42 mkdirprog="${MKDIRPROG-mkdir}"
43
44 transformbasename=""
45 transform_arg=""
46 instcmd="$mvprog"
47 chmodcmd="$chmodprog 0755"
48 chowncmd=""
49 chgrpcmd=""
50 stripcmd=""
51 rmcmd="$rmprog -f"
52 mvcmd="$mvprog"
53 src=""
54 dst=""
55 dir_arg=""
56
57 while [ x"$1" != x ]; do
58 case $1 in
59 -c) instcmd="$cpprog"
60 shift
61 continue;;
62
63 -d) dir_arg=true
64 shift
65 continue;;
66
67 -m) chmodcmd="$chmodprog $2"
68 shift
69 shift
70 continue;;
71
72 -o) chowncmd="$chownprog $2"
73 shift
74 shift
75 continue;;
76
77 -g) chgrpcmd="$chgrpprog $2"
78 shift
79 shift
80 continue;;
81
82 -s) stripcmd="$stripprog"
83 shift
84 continue;;
85
86 -t=*) transformarg=`echo $1 | sed 's/-t=//'`
87 shift
88 continue;;
89
90 -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
91 shift
92 continue;;
93
94 *) if [ x"$src" = x ]
95 then
96 src=$1
97 else
98 # this colon is to work around a 386BSD /bin/sh bug
99 :
100 dst=$1
101 fi
102 shift
103 continue;;
104 esac
105 done
106
107 if [ x"$src" = x ]
108 then
109 echo "install: no input file specified"
110 exit 1
111 else
112 true
113 fi
114
115 if [ x"$dir_arg" != x ]; then
116 dst=$src
117 src=""
118
119 if [ -d $dst ]; then
120 instcmd=:
121 chmodcmd=""
122 else
123 instcmd=mkdir
124 fi
125 else
126
127 # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
128 # might cause directories to be created, which would be especially bad
129 # if $src (and thus $dsttmp) contains '*'.
130
131 if [ -f $src -o -d $src ]
132 then
133 true
134 else
135 echo "install: $src does not exist"
136 exit 1
137 fi
138
139 if [ x"$dst" = x ]
140 then
141 echo "install: no destination specified"
142 exit 1
143 else
144 true
145 fi
146
147 # If destination is a directory, append the input filename; if your system
148 # does not like double slashes in filenames, you may need to add some logic
149
150 if [ -d $dst ]
151 then
152 dst="$dst"/`basename $src`
153 else
154 true
155 fi
156 fi
157
158 ## this sed command emulates the dirname command
159 dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
160
161 # Make sure that the destination directory exists.
162 # this part is taken from Noah Friedman's mkinstalldirs script
163
164 # Skip lots of stat calls in the usual case.
165 if [ ! -d "$dstdir" ]; then
166 defaultIFS='
167 '
168 IFS="${IFS-${defaultIFS}}"
169
170 oIFS="${IFS}"
171 # Some sh's can't handle IFS=/ for some reason.
172 IFS='%'
173 set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
174 IFS="${oIFS}"
175
176 pathcomp=''
177
178 while [ $# -ne 0 ] ; do
179 pathcomp="${pathcomp}${1}"
180 shift
181
182 if [ ! -d "${pathcomp}" ] ;
183 then
184 $mkdirprog "${pathcomp}"
185 else
186 true
187 fi
188
189 pathcomp="${pathcomp}/"
190 done
191 fi
192
193 if [ x"$dir_arg" != x ]
194 then
195 $doit $instcmd $dst &&
196
197 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
198 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
199 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
200 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
201 else
202
203 # If we're going to rename the final executable, determine the name now.
204
205 if [ x"$transformarg" = x ]
206 then
207 dstfile=`basename $dst`
208 else
209 dstfile=`basename $dst $transformbasename |
210 sed $transformarg`$transformbasename
211 fi
212
213 # don't allow the sed command to completely eliminate the filename
214
215 if [ x"$dstfile" = x ]
216 then
217 dstfile=`basename $dst`
218 else
219 true
220 fi
221
222 # Make a temp file name in the proper directory.
223
224 dsttmp=$dstdir/#inst.$$#
225
226 # Move or copy the file name to the temp name
227
228 $doit $instcmd $src $dsttmp &&
229
230 trap "rm -f ${dsttmp}" 0 &&
231
232 # and set any options; do chmod last to preserve setuid bits
233
234 # If any of these fail, we abort the whole thing. If we want to
235 # ignore errors from any of these, just make sure not to ignore
236 # errors from the above "$doit $instcmd $src $dsttmp" command.
237
238 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
239 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
240 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
241 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
242
243 # Now rename the file to the real destination.
244
245 $doit $rmcmd -f $dstdir/$dstfile &&
246 $doit $mvcmd $dsttmp $dstdir/$dstfile
247
248 fi &&
249
250
251 exit 0

File macros/Makefile added (mode: 100644) (index 0000000..b715d31)
1 # Generated automatically from Makefile.in by configure.
2 # Makefile.in generated automatically by automake 1.4a from Makefile.am
3
4 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14
15 SHELL = /bin/sh
16
17 srcdir = .
18 top_srcdir = ..
19 prefix = /usr/local
20 exec_prefix = ${prefix}
21
22 bindir = ${exec_prefix}/bin
23 sbindir = ${exec_prefix}/sbin
24 libexecdir = ${exec_prefix}/libexec
25 datadir = ${prefix}/share
26 sysconfdir = ${prefix}/etc
27 sharedstatedir = ${prefix}/com
28 localstatedir = ${prefix}/var
29 libdir = ${exec_prefix}/lib
30 infodir = ${prefix}/info
31 mandir = ${prefix}/man
32 includedir = ${prefix}/include
33 oldincludedir = /usr/include
34
35 DESTDIR =
36
37 pkgdatadir = $(datadir)/vide
38 pkglibdir = $(libdir)/vide
39 pkgincludedir = $(includedir)/vide
40
41 top_builddir = ..
42
43 ACLOCAL = aclocal -I macros
44 AUTOCONF = autoconf
45 AUTOMAKE = automake
46 AUTOHEADER = autoheader
47
48 INSTALL = /usr/bin/install -c
49 INSTALL_PROGRAM = ${INSTALL}
50 INSTALL_DATA = ${INSTALL} -m 644
51 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
52 INSTALL_STRIP_FLAG =
53 transform = s,x,x,
54
55 NORMAL_INSTALL = :
56 PRE_INSTALL = :
57 POST_INSTALL = :
58 NORMAL_UNINSTALL = :
59 PRE_UNINSTALL = :
60 POST_UNINSTALL = :
61 CC = gcc
62 GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
63 GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
64 GNOME_APPLETS_LIBS =
65 GNOME_CAPPLET_LIBS =
66 GNOME_CONFIG = /usr/bin/gnome-config
67 GNOME_DOCKLETS_LIBS =
68 GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/lib/glib/include -I/usr/X11R6/include
69 GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib
70 GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
71 GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/lib/glib/include -I/usr/X11R6/include
72 GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
73 GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
74 GTK_CFLAGS = -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include
75 GTK_CONFIG = /usr/bin/gtk-config
76 GTK_LIBS = -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl -lXi -lXext -lX11 -lm
77 MAKEINFO = makeinfo
78 ORBIT_CFLAGS = -I/usr/lib/glib/include -I/usr/include
79 ORBIT_CONFIG = /usr/bin/orbit-config
80 ORBIT_IDL = /usr/bin/orbit-idl
81 ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm
82 PACKAGE = vide
83 PTHREAD_LIB = -lpthread
84 VERSION = 0.5.2
85 XPM_LIBS = -lXpm
86 ZVT_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lzvt -lutil -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
87 cflags_set = yes
88 cxxflags_set = @cxxflags_set@
89
90 MACROS = aclocal-include.m4 compiler-flags.m4 curses.m4 gnome-bonobo-check.m4 gnome-fileutils.m4 gnome-ghttp-check.m4 gnome-gnorba-check.m4 gnome-guile-checks.m4 gnome-libgtop-check.m4 gnome-objc-checks.m4 gnome-orbit-check.m4 gnome-print-check.m4 gnome-pthread-check.m4 gnome-support.m4 gnome-undelfs.m4 gnome-vfs.m4 gnome-x-checks.m4 gnome-xml-check.m4 gnome.m4 gperf-check.m4 linger.m4 need-declaration.m4
91
92
93 EXTRA_DIST = $(MACROS) gnome-common.m4 autogen.sh
94 MAINTAINERCLEANFILES = macros.dep
95
96 #gnome_aclocaldir = $(datadir)/aclocal/gnome
97
98 #gnome_aclocal_DATA = $(MACROS) gnome-macros.dep gnome-common.m4 autogen.sh
99 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
100 CONFIG_HEADER = ../config.h
101 CONFIG_CLEAN_FILES =
102 DATA = $(gnome_aclocal_DATA)
103
104 DIST_COMMON = Makefile.am Makefile.in
105
106
107 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
108
109 TAR = gtar
110 GZIP_ENV = --best
111 all: all-redirect
112 .SUFFIXES:
113 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
114 cd $(top_srcdir) && $(AUTOMAKE) --gnu macros/Makefile
115
116 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
117 cd $(top_builddir) \
118 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
119
120
121 install-gnome_aclocalDATA: $(gnome_aclocal_DATA)
122 @$(NORMAL_INSTALL)
123 $(mkinstalldirs) $(DESTDIR)$(gnome_aclocaldir)
124 @list='$(gnome_aclocal_DATA)'; for p in $$list; do \
125 if test -f $(srcdir)/$$p; then \
126 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(gnome_aclocaldir)/$$p"; \
127 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(gnome_aclocaldir)/$$p; \
128 else if test -f $$p; then \
129 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(gnome_aclocaldir)/$$p"; \
130 $(INSTALL_DATA) $$p $(DESTDIR)$(gnome_aclocaldir)/$$p; \
131 fi; fi; \
132 done
133
134 uninstall-gnome_aclocalDATA:
135 @$(NORMAL_UNINSTALL)
136 list='$(gnome_aclocal_DATA)'; for p in $$list; do \
137 rm -f $(DESTDIR)$(gnome_aclocaldir)/$$p; \
138 done
139 tags: TAGS
140 TAGS:
141
142
143 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
144
145 subdir = macros
146
147 distdir: $(DISTFILES)
148 here=`cd $(top_builddir) && pwd`; \
149 top_distdir=`cd $(top_distdir) && pwd`; \
150 distdir=`cd $(distdir) && pwd`; \
151 cd $(top_srcdir) \
152 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu macros/Makefile
153 @for file in $(DISTFILES); do \
154 d=$(srcdir); \
155 if test -d $$d/$$file; then \
156 cp -pr $$d/$$file $(distdir)/$$file; \
157 else \
158 test -f $(distdir)/$$file \
159 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
160 || cp -p $$d/$$file $(distdir)/$$file || :; \
161 fi; \
162 done
163 info-am:
164 info: info-am
165 dvi-am:
166 dvi: dvi-am
167 check-am: all-am
168 check: check-am
169 installcheck-am:
170 installcheck: installcheck-am
171 install-exec-am:
172 install-exec: install-exec-am
173
174 install-data-am: install-gnome_aclocalDATA
175 install-data: install-data-am
176
177 install-am: all-am
178 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
179 install: install-am
180 uninstall-am: uninstall-gnome_aclocalDATA
181 uninstall: uninstall-am
182 all-am: Makefile $(DATA)
183 all-redirect: all-am
184 install-strip:
185 $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
186 installdirs:
187 $(mkinstalldirs) $(DESTDIR)$(gnome_aclocaldir)
188
189
190 mostlyclean-generic:
191
192 clean-generic:
193
194 distclean-generic:
195 -rm -f Makefile $(CONFIG_CLEAN_FILES)
196 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
197
198 maintainer-clean-generic:
199 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
200 mostlyclean-am: mostlyclean-generic
201
202 mostlyclean: mostlyclean-am
203
204 clean-am: clean-generic mostlyclean-am
205
206 clean: clean-am
207
208 distclean-am: distclean-generic clean-am
209
210 distclean: distclean-am
211
212 maintainer-clean-am: maintainer-clean-generic distclean-am
213 @echo "This command is intended for maintainers to use;"
214 @echo "it deletes files that may require special tools to rebuild."
215
216 maintainer-clean: maintainer-clean-am
217
218 .PHONY: uninstall-gnome_aclocalDATA install-gnome_aclocalDATA tags \
219 distdir info-am info dvi-am dvi check check-am installcheck-am \
220 installcheck install-exec-am install-exec install-data-am install-data \
221 install-am install uninstall-am uninstall all-redirect all-am all \
222 installdirs mostlyclean-generic distclean-generic clean-generic \
223 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
224
225
226 macros.dep: Makefile.am
227 @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
228
229 #gnome-macros.dep: Makefile.am
230 # @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=$(gnome_aclocaldir)/%)' > $@
231
232 # Tell versions [3.59,3.63) of GNU make to not export all variables.
233 # Otherwise a system limit (for SysV at least) may be exceeded.
234 .NOEXPORT:

File macros/Makefile.am added (mode: 100644) (index 0000000..2b7b6eb)
1 ## Please update this variable if any new macros are created
2
3 MACROS= \
4 aclocal-include.m4 \
5 compiler-flags.m4 \
6 curses.m4 \
7 gnome-bonobo-check.m4 \
8 gnome-fileutils.m4 \
9 gnome-ghttp-check.m4 \
10 gnome-gnorba-check.m4 \
11 gnome-guile-checks.m4 \
12 gnome-libgtop-check.m4 \
13 gnome-objc-checks.m4 \
14 gnome-orbit-check.m4 \
15 gnome-print-check.m4 \
16 gnome-pthread-check.m4 \
17 gnome-support.m4 \
18 gnome-undelfs.m4 \
19 gnome-vfs.m4 \
20 gnome-x-checks.m4 \
21 gnome-xml-check.m4 \
22 gnome.m4 \
23 gperf-check.m4 \
24 linger.m4 \
25 need-declaration.m4
26
27 EXTRA_DIST=$(MACROS) gnome-common.m4 autogen.sh
28 MAINTAINERCLEANFILES=macros.dep
29
30 @MAINT@macros.dep: Makefile.am
31 @MAINT@ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
32
33 if INSIDE_GNOME_COMMON
34 gnome_aclocaldir = $(datadir)/aclocal/gnome
35
36 gnome-macros.dep: Makefile.am
37 @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=$(gnome_aclocaldir)/%)' > $@
38
39 gnome_aclocal_DATA = $(MACROS) gnome-macros.dep gnome-common.m4 autogen.sh
40
41 endif

File macros/Makefile.in added (mode: 100644) (index 0000000..0eb78cc)
1 # Makefile.in generated automatically by automake 1.4a from Makefile.am
2
3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13
14 SHELL = @SHELL@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 prefix = @prefix@
20 exec_prefix = @exec_prefix@
21
22 bindir = @bindir@
23 sbindir = @sbindir@
24 libexecdir = @libexecdir@
25 datadir = @datadir@
26 sysconfdir = @sysconfdir@
27 sharedstatedir = @sharedstatedir@
28 localstatedir = @localstatedir@
29 libdir = @libdir@
30 infodir = @infodir@
31 mandir = @mandir@
32 includedir = @includedir@
33 oldincludedir = /usr/include
34
35 DESTDIR =
36
37 pkgdatadir = $(datadir)/@PACKAGE@
38 pkglibdir = $(libdir)/@PACKAGE@
39 pkgincludedir = $(includedir)/@PACKAGE@
40
41 top_builddir = ..
42
43 ACLOCAL = @ACLOCAL@
44 AUTOCONF = @AUTOCONF@
45 AUTOMAKE = @AUTOMAKE@
46 AUTOHEADER = @AUTOHEADER@
47
48 INSTALL = @INSTALL@
49 INSTALL_PROGRAM = @INSTALL_PROGRAM@
50 INSTALL_DATA = @INSTALL_DATA@
51 INSTALL_SCRIPT = @INSTALL_SCRIPT@
52 INSTALL_STRIP_FLAG =
53 transform = @program_transform_name@
54
55 NORMAL_INSTALL = :
56 PRE_INSTALL = :
57 POST_INSTALL = :
58 NORMAL_UNINSTALL = :
59 PRE_UNINSTALL = :
60 POST_UNINSTALL = :
61 CC = @CC@
62 GNOMEGNORBA_LIBS = @GNOMEGNORBA_LIBS@
63 GNOMEUI_LIBS = @GNOMEUI_LIBS@
64 GNOME_APPLETS_LIBS = @GNOME_APPLETS_LIBS@
65 GNOME_CAPPLET_LIBS = @GNOME_CAPPLET_LIBS@
66 GNOME_CONFIG = @GNOME_CONFIG@
67 GNOME_DOCKLETS_LIBS = @GNOME_DOCKLETS_LIBS@
68 GNOME_INCLUDEDIR = @GNOME_INCLUDEDIR@
69 GNOME_LIBDIR = @GNOME_LIBDIR@
70 GNOME_LIBS = @GNOME_LIBS@
71 GNORBA_CFLAGS = @GNORBA_CFLAGS@
72 GNORBA_LIBS = @GNORBA_LIBS@
73 GTKXMHTML_LIBS = @GTKXMHTML_LIBS@
74 GTK_CFLAGS = @GTK_CFLAGS@
75 GTK_CONFIG = @GTK_CONFIG@
76 GTK_LIBS = @GTK_LIBS@
77 MAKEINFO = @MAKEINFO@
78 ORBIT_CFLAGS = @ORBIT_CFLAGS@
79 ORBIT_CONFIG = @ORBIT_CONFIG@
80 ORBIT_IDL = @ORBIT_IDL@
81 ORBIT_LIBS = @ORBIT_LIBS@
82 PACKAGE = @PACKAGE@
83 PTHREAD_LIB = @PTHREAD_LIB@
84 VERSION = @VERSION@
85 XPM_LIBS = @XPM_LIBS@
86 ZVT_LIBS = @ZVT_LIBS@
87 cflags_set = @cflags_set@
88 cxxflags_set = @cxxflags_set@
89
90 MACROS = aclocal-include.m4 compiler-flags.m4 curses.m4 gnome-bonobo-check.m4 gnome-fileutils.m4 gnome-ghttp-check.m4 gnome-gnorba-check.m4 gnome-guile-checks.m4 gnome-libgtop-check.m4 gnome-objc-checks.m4 gnome-orbit-check.m4 gnome-print-check.m4 gnome-pthread-check.m4 gnome-support.m4 gnome-undelfs.m4 gnome-vfs.m4 gnome-x-checks.m4 gnome-xml-check.m4 gnome.m4 gperf-check.m4 linger.m4 need-declaration.m4
91
92
93 EXTRA_DIST = $(MACROS) gnome-common.m4 autogen.sh
94 MAINTAINERCLEANFILES = macros.dep
95
96 @INSIDE_GNOME_COMMON_TRUE@gnome_aclocaldir = $(datadir)/aclocal/gnome
97
98 @INSIDE_GNOME_COMMON_TRUE@gnome_aclocal_DATA = $(MACROS) gnome-macros.dep gnome-common.m4 autogen.sh
99 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
100 CONFIG_HEADER = ../config.h
101 CONFIG_CLEAN_FILES =
102 DATA = $(gnome_aclocal_DATA)
103
104 DIST_COMMON = Makefile.am Makefile.in
105
106
107 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
108
109 TAR = gtar
110 GZIP_ENV = --best
111 all: all-redirect
112 .SUFFIXES:
113 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
114 cd $(top_srcdir) && $(AUTOMAKE) --gnu macros/Makefile
115
116 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
117 cd $(top_builddir) \
118 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
119
120
121 install-gnome_aclocalDATA: $(gnome_aclocal_DATA)
122 @$(NORMAL_INSTALL)
123 $(mkinstalldirs) $(DESTDIR)$(gnome_aclocaldir)
124 @list='$(gnome_aclocal_DATA)'; for p in $$list; do \
125 if test -f $(srcdir)/$$p; then \
126 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(gnome_aclocaldir)/$$p"; \
127 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(gnome_aclocaldir)/$$p; \
128 else if test -f $$p; then \
129 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(gnome_aclocaldir)/$$p"; \
130 $(INSTALL_DATA) $$p $(DESTDIR)$(gnome_aclocaldir)/$$p; \
131 fi; fi; \
132 done
133
134 uninstall-gnome_aclocalDATA:
135 @$(NORMAL_UNINSTALL)
136 list='$(gnome_aclocal_DATA)'; for p in $$list; do \
137 rm -f $(DESTDIR)$(gnome_aclocaldir)/$$p; \
138 done
139 tags: TAGS
140 TAGS:
141
142
143 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
144
145 subdir = macros
146
147 distdir: $(DISTFILES)
148 here=`cd $(top_builddir) && pwd`; \
149 top_distdir=`cd $(top_distdir) && pwd`; \
150 distdir=`cd $(distdir) && pwd`; \
151 cd $(top_srcdir) \
152 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu macros/Makefile
153 @for file in $(DISTFILES); do \
154 d=$(srcdir); \
155 if test -d $$d/$$file; then \
156 cp -pr $$d/$$file $(distdir)/$$file; \
157 else \
158 test -f $(distdir)/$$file \
159 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
160 || cp -p $$d/$$file $(distdir)/$$file || :; \
161 fi; \
162 done
163 info-am:
164 info: info-am
165 dvi-am:
166 dvi: dvi-am
167 check-am: all-am
168 check: check-am
169 installcheck-am:
170 installcheck: installcheck-am
171 install-exec-am:
172 install-exec: install-exec-am
173
174 install-data-am: install-gnome_aclocalDATA
175 install-data: install-data-am
176
177 install-am: all-am
178 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
179 install: install-am
180 uninstall-am: uninstall-gnome_aclocalDATA
181 uninstall: uninstall-am
182 all-am: Makefile $(DATA)
183 all-redirect: all-am
184 install-strip:
185 $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
186 installdirs:
187 $(mkinstalldirs) $(DESTDIR)$(gnome_aclocaldir)
188
189
190 mostlyclean-generic:
191
192 clean-generic:
193
194 distclean-generic:
195 -rm -f Makefile $(CONFIG_CLEAN_FILES)
196 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
197
198 maintainer-clean-generic:
199 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
200 mostlyclean-am: mostlyclean-generic
201
202 mostlyclean: mostlyclean-am
203
204 clean-am: clean-generic mostlyclean-am
205
206 clean: clean-am
207
208 distclean-am: distclean-generic clean-am
209
210 distclean: distclean-am
211
212 maintainer-clean-am: maintainer-clean-generic distclean-am
213 @echo "This command is intended for maintainers to use;"
214 @echo "it deletes files that may require special tools to rebuild."
215
216 maintainer-clean: maintainer-clean-am
217
218 .PHONY: uninstall-gnome_aclocalDATA install-gnome_aclocalDATA tags \
219 distdir info-am info dvi-am dvi check check-am installcheck-am \
220 installcheck install-exec-am install-exec install-data-am install-data \
221 install-am install uninstall-am uninstall all-redirect all-am all \
222 installdirs mostlyclean-generic distclean-generic clean-generic \
223 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
224
225
226 macros.dep: Makefile.am
227 @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
228
229 @INSIDE_GNOME_COMMON_TRUE@gnome-macros.dep: Makefile.am
230 @INSIDE_GNOME_COMMON_TRUE@ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=$(gnome_aclocaldir)/%)' > $@
231
232 # Tell versions [3.59,3.63) of GNU make to not export all variables.
233 # Otherwise a system limit (for SysV at least) may be exceeded.
234 .NOEXPORT:

File macros/aclocal-include.m4 added (mode: 100644) (index 0000000..abf6533)
1 # aclocal-include.m4
2 #
3 # This macro adds the name macrodir to the set of directories
4 # that `aclocal' searches for macros.
5
6 # serial 1
7
8 dnl AM_ACLOCAL_INCLUDE(macrodir)
9 AC_DEFUN([AM_ACLOCAL_INCLUDE],
10 [
11 AM_CONDITIONAL(INSIDE_GNOME_COMMON, test x = y)
12
13 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
14
15 for k in $1 ; do ACLOCAL="$ACLOCAL -I $k" ; done
16 ])

File macros/autogen.sh added (mode: 100644) (index 0000000..18cfd60)
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 DIE=0
5
6 if [ -n "$GNOME2_PATH" ]; then
7 ACLOCAL_FLAGS="-I $GNOME2_PATH/share/aclocal $ACLOCAL_FLAGS"
8 PATH="$GNOME2_PATH/bin:$PATH"
9 export PATH
10 fi
11
12 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
13 echo
14 echo "**Error**: You must have \`autoconf' installed to compile Gnome."
15 echo "Download the appropriate package for your distribution,"
16 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
17 DIE=1
18 }
19
20 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
21 (libtool --version) < /dev/null > /dev/null 2>&1 || {
22 echo
23 echo "**Error**: You must have \`libtool' installed to compile Gnome."
24 echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
25 echo "(or a newer version if it is available)"
26 DIE=1
27 }
28 }
29
30 grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
31 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
32 (gettext --version) < /dev/null > /dev/null 2>&1 || {
33 echo
34 echo "**Error**: You must have \`gettext' installed to compile Gnome."
35 echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
36 echo "(or a newer version if it is available)"
37 DIE=1
38 }
39 }
40
41 grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && {
42 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
43 (gettext --version) < /dev/null > /dev/null 2>&1 || {
44 echo
45 echo "**Error**: You must have \`gettext' installed to compile Gnome."
46 echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
47 echo "(or a newer version if it is available)"
48 DIE=1
49 }
50 }
51
52 (automake --version) < /dev/null > /dev/null 2>&1 || {
53 echo
54 echo "**Error**: You must have \`automake' installed to compile Gnome."
55 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
56 echo "(or a newer version if it is available)"
57 DIE=1
58 NO_AUTOMAKE=yes
59 }
60
61
62 # if no automake, don't bother testing for aclocal
63 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
64 echo
65 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
66 echo "installed doesn't appear recent enough."
67 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
68 echo "(or a newer version if it is available)"
69 DIE=1
70 }
71
72 if test "$DIE" -eq 1; then
73 exit 1
74 fi
75
76 if test -z "$*"; then
77 echo "**Warning**: I am going to run \`configure' with no arguments."
78 echo "If you wish to pass any to it, please specify them on the"
79 echo \`$0\'" command line."
80 echo
81 fi
82
83 case $CC in
84 xlc )
85 am_opt=--include-deps;;
86 esac
87
88 for coin in `find $srcdir -name configure.in -print`
89 do
90 dr=`dirname $coin`
91 if test -f $dr/NO-AUTO-GEN; then
92 echo skipping $dr -- flagged as no auto-gen
93 else
94 echo processing $dr
95 macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
96 ( cd $dr
97 macrosdir=`find . -name macros -print`
98 for i in $macrodirs; do
99 if test -f $i/gnome-gettext.m4; then
100 DELETEFILES="$DELETEFILES $i/gnome-gettext.m4"
101 fi
102 done
103
104 echo "deletefiles is $DELETEFILES"
105 aclocalinclude="$ACLOCAL_FLAGS"
106 for k in $aclocalinclude; do
107 if test -d $k; then
108 if [ -f $k/gnome.m4 -a "$GNOME_INTERFACE_VERSION" = "1" ]; then
109 rm -f $DELETEFILES
110 fi
111 fi
112 done
113 for k in $macrodirs; do
114 if test -d $k; then
115 aclocalinclude="$aclocalinclude -I $k"
116 if [ -f $k/gnome.m4 -a "$GNOME_INTERFACE_VERSION" = "1" ]; then
117 rm -f $DELETEFILES
118 fi
119 fi
120 done
121 if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
122 if grep "sed.*POTFILES" configure.in >/dev/null; then
123 : do nothing -- we still have an old unmodified configure.in
124 else
125 echo "Creating $dr/aclocal.m4 ..."
126 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
127 echo "Running gettextize... Ignore non-fatal messages."
128 echo "no" | gettextize --force --copy
129 echo "Making $dr/aclocal.m4 writable ..."
130 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
131 fi
132 fi
133 if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then
134 echo "Creating $dr/aclocal.m4 ..."
135 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
136 echo "Running gettextize... Ignore non-fatal messages."
137 echo "no" | gettextize --force --copy
138 echo "Making $dr/aclocal.m4 writable ..."
139 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
140 fi
141 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
142 if test -z "$NO_LIBTOOLIZE" ; then
143 echo "Running libtoolize..."
144 libtoolize --force --copy
145 fi
146 fi
147 echo "Running aclocal $aclocalinclude ..."
148 aclocal $aclocalinclude
149 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
150 echo "Running autoheader..."
151 autoheader
152 fi
153 echo "Running automake --gnu $am_opt ..."
154 automake --add-missing --gnu $am_opt
155 echo "Running autoconf ..."
156 autoconf
157 )
158 fi
159 done
160
161 conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
162
163 if test x$NOCONFIGURE = x; then
164 echo Running $srcdir/configure $conf_flags "$@" ...
165 $srcdir/configure $conf_flags "$@" \
166 && echo Now type \`make\' to compile $PKG_NAME || exit 1
167 else
168 echo Skipping configure process.
169 fi

File macros/compiler-flags.m4 added (mode: 100644) (index 0000000..63f8e2e)
1 dnl GNOME_COMPILE_WARNINGS
2 dnl Turn on many useful compiler warnings
3 dnl For now, only works on GCC
4 AC_DEFUN([GNOME_COMPILE_WARNINGS],[
5 AC_ARG_ENABLE(compile-warnings,
6 [ --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings.],,enable_compile_warnings=minimum)
7
8 AC_MSG_CHECKING(what warning flags to pass to the C compiler)
9 warnCFLAGS=
10 if test "x$GCC" != xyes; then
11 enable_compile_warnings=no
12 fi
13
14 if test "x$enable_compile_warnings" != "xno"; then
15 if test "x$GCC" = "xyes"; then
16 case " $CFLAGS " in
17 *[\ \ ]-Wall[\ \ ]*) ;;
18 *) warnCFLAGS="-Wall -Wunused" ;;
19 esac
20
21 ## -W is not all that useful. And it cannot be controlled
22 ## with individual -Wno-xxx flags, unlike -Wall
23 if test "x$enable_compile_warnings" = "xyes"; then
24 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
25 fi
26 fi
27 fi
28 AC_MSG_RESULT($warnCFLAGS)
29
30 AC_ARG_ENABLE(iso-c,
31 [ --enable-iso-c Try to warn if code is not ISO C ],,
32 enable_iso_c=no)
33
34 AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
35 complCFLAGS=
36 if test "x$enable_iso_c" != "xno"; then
37 if test "x$GCC" = "xyes"; then
38 case " $CFLAGS " in
39 *[\ \ ]-ansi[\ \ ]*) ;;
40 *) complCFLAGS="$complCFLAGS -ansi" ;;
41 esac
42
43 case " $CFLAGS " in
44 *[\ \ ]-pedantic[\ \ ]*) ;;
45 *) complCFLAGS="$complCFLAGS -pedantic" ;;
46 esac
47 fi
48 fi
49 AC_MSG_RESULT($complCFLAGS)
50 if test "x$cflags_set" != "xyes"; then
51 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
52 cflags_set=yes
53 AC_SUBST(cflags_set)
54 fi
55 ])
56
57 dnl For C++, do basically the same thing.
58
59 AC_DEFUN([GNOME_CXX_WARNINGS],[
60 AC_ARG_ENABLE(cxx-warnings,
61 [ --enable-cxx-warnings=[no/minimum/yes] Turn on compiler warnings.],,enable_cxx_warnings=minimum)
62
63 AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
64 warnCXXFLAGS=
65 if test "x$GCC" != xyes; then
66 enable_compile_warnings=no
67 fi
68 if test "x$enable_cxx_warnings" != "xno"; then
69 if test "x$GCC" = "xyes"; then
70 case " $CXXFLAGS " in
71 *[\ \ ]-Wall[\ \ ]*) ;;
72 *) warnCXXFLAGS="-Wall -Wno-unused" ;;
73 esac
74
75 ## -W is not all that useful. And it cannot be controlled
76 ## with individual -Wno-xxx flags, unlike -Wall
77 if test "x$enable_cxx_warnings" = "xyes"; then
78 warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes -Wmissing-declarations -Wshadow -Woverloaded-virtual"
79 fi
80 fi
81 fi
82 AC_MSG_RESULT($warnCXXFLAGS)
83
84 AC_ARG_ENABLE(iso-cxx,
85 [ --enable-iso-cxx Try to warn if code is not ISO C++ ],,
86 enable_iso_cxx=no)
87
88 AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
89 complCXXFLAGS=
90 if test "x$enable_iso_cxx" != "xno"; then
91 if test "x$GCC" = "xyes"; then
92 case " $CXXFLAGS " in
93 *[\ \ ]-ansi[\ \ ]*) ;;
94 *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
95 esac
96
97 case " $CXXFLAGS " in
98 *[\ \ ]-pedantic[\ \ ]*) ;;
99 *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
100 esac
101 fi
102 fi
103 AC_MSG_RESULT($complCXXFLAGS)
104 if test "x$cxxflags_set" != "xyes"; then
105 CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
106 cxxflags_set=yes
107 AC_SUBST(cxxflags_set)
108 fi
109 ])

File macros/curses.m4 added (mode: 100644) (index 0000000..3dd4ffa)
1 dnl Curses detection: Munged from Midnight Commander's configure.in
2 dnl
3 dnl What it does:
4 dnl =============
5 dnl
6 dnl - Determine which version of curses is installed on your system
7 dnl and set the -I/-L/-l compiler entries and add a few preprocessor
8 dnl symbols
9 dnl - Do an AC_SUBST on the CURSES_INCLUDEDIR and CURSES_LIBS so that
10 dnl @CURSES_INCLUDEDIR@ and @CURSES_LIBS@ will be available in
11 dnl Makefile.in's
12 dnl - Modify the following configure variables (these are the only
13 dnl curses.m4 variables you can access from within configure.in)
14 dnl CURSES_INCLUDEDIR - contains -I's and possibly -DRENAMED_CURSES if
15 dnl an ncurses.h that's been renamed to curses.h
16 dnl is found.
17 dnl CURSES_LIBS - sets -L and -l's appropriately
18 dnl CFLAGS - if --with-sco, add -D_SVID3
19 dnl has_curses - exports result of tests to rest of configure
20 dnl
21 dnl Usage:
22 dnl ======
23 dnl 1) Add lines indicated below to acconfig.h
24 dnl 2) call AC_CHECK_CURSES after AC_PROG_CC in your configure.in
25 dnl 3) Instead of #include <curses.h> you should use the following to
26 dnl properly locate ncurses or curses header file
27 dnl
28 dnl #if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
29 dnl #include <ncurses.h>
30 dnl #else
31 dnl #include <curses.h>
32 dnl #endif
33 dnl
34 dnl 4) Make sure to add @CURSES_INCLUDEDIR@ to your preprocessor flags
35 dnl 5) Make sure to add @CURSES_LIBS@ to your linker flags or LIBS
36 dnl
37 dnl Notes with automake:
38 dnl - call AM_CONDITIONAL(HAS_CURSES, test "$has_curses" = true) from
39 dnl configure.in
40 dnl - your Makefile.am can look something like this
41 dnl -----------------------------------------------
42 dnl INCLUDES= blah blah blah $(CURSES_INCLUDEDIR)
43 dnl if HAS_CURSES
44 dnl CURSES_TARGETS=name_of_curses_prog
45 dnl endif
46 dnl bin_PROGRAMS = other_programs $(CURSES_TARGETS)
47 dnl other_programs_SOURCES = blah blah blah
48 dnl name_of_curses_prog_SOURCES = blah blah blah
49 dnl other_programs_LDADD = blah
50 dnl name_of_curses_prog_LDADD = blah $(CURSES_LIBS)
51 dnl -----------------------------------------------
52 dnl
53 dnl
54 dnl The following lines should be added to acconfig.h:
55 dnl ==================================================
56 dnl
57 dnl /*=== Curses version detection defines ===*/
58 dnl /* Found some version of curses that we're going to use */
59 dnl #undef HAS_CURSES
60 dnl
61 dnl /* Use SunOS SysV curses? */
62 dnl #undef USE_SUNOS_CURSES
63 dnl
64 dnl /* Use old BSD curses - not used right now */
65 dnl #undef USE_BSD_CURSES
66 dnl
67 dnl /* Use SystemV curses? */
68 dnl #undef USE_SYSV_CURSES
69 dnl
70 dnl /* Use Ncurses? */
71 dnl #undef USE_NCURSES
72 dnl
73 dnl /* If you Curses does not have color define this one */
74 dnl #undef NO_COLOR_CURSES
75 dnl
76 dnl /* Define if you want to turn on SCO-specific code */
77 dnl #undef SCO_FLAVOR
78 dnl
79 dnl /* Set to reflect version of ncurses *
80 dnl * 0 = version 1.*
81 dnl * 1 = version 1.9.9g
82 dnl * 2 = version 4.0/4.1 */
83 dnl #undef NCURSES_970530
84 dnl
85 dnl /*=== End new stuff for acconfig.h ===*/
86 dnl
87
88
89 AC_DEFUN(AC_CHECK_CURSES,[
90 search_ncurses=true
91 screen_manager=""
92 has_curses=false
93
94 CFLAGS=${CFLAGS--O}
95
96 AC_SUBST(CURSES_LIBS)
97 AC_SUBST(CURSES_INCLUDEDIR)
98
99 AC_ARG_WITH(sco,
100 [ --with-sco Use this to turn on SCO-specific code],[
101 if test x$withval = xyes; then
102 AC_DEFINE(SCO_FLAVOR)
103 CFLAGS="$CFLAGS -D_SVID3"
104 fi
105 ])
106
107 AC_ARG_WITH(sunos-curses,
108 [ --with-sunos-curses Used to force SunOS 4.x curses],[
109 if test x$withval = xyes; then
110 AC_USE_SUNOS_CURSES
111 fi
112 ])
113
114 AC_ARG_WITH(osf1-curses,
115 [ --with-osf1-curses Used to force OSF/1 curses],[
116 if test x$withval = xyes; then
117 AC_USE_OSF1_CURSES
118 fi
119 ])
120
121 AC_ARG_WITH(vcurses,
122 [ --with-vcurses[=incdir] Used to force SysV curses],
123 if test x$withval != xyes; then
124 CURSES_INCLUDEDIR="-I$withval"
125 fi
126 AC_USE_SYSV_CURSES
127 )
128
129 AC_ARG_WITH(ncurses,
130 [ --with-ncurses[=dir] Compile with ncurses/locate base dir],
131 if test x$withval = xno ; then
132 search_ncurses=false
133 elif test x$withval != xyes ; then
134 CURSES_LIBS="$LIBS -L$withval/lib -lncurses"
135 CURSES_INCLUDEDIR="-I$withval/include"
136 search_ncurses=false
137 screen_manager="ncurses"
138 AC_DEFINE(USE_NCURSES)
139 AC_DEFINE(HAS_CURSES)
140 has_curses=true
141 fi
142 )
143
144 if $search_ncurses
145 then
146 AC_SEARCH_NCURSES()
147 fi
148
149
150 ])
151
152
153 AC_DEFUN(AC_USE_SUNOS_CURSES, [
154 search_ncurses=false
155 screen_manager="SunOS 4.x /usr/5include curses"
156 AC_MSG_RESULT(Using SunOS 4.x /usr/5include curses)
157 AC_DEFINE(USE_SUNOS_CURSES)
158 AC_DEFINE(HAS_CURSES)
159 has_curses=true
160 AC_DEFINE(NO_COLOR_CURSES)
161 AC_DEFINE(USE_SYSV_CURSES)
162 CURSES_INCLUDEDIR="-I/usr/5include"
163 CURSES_LIBS="/usr/5lib/libcurses.a /usr/5lib/libtermcap.a"
164 AC_MSG_RESULT(Please note that some screen refreshs may fail)
165 ])
166
167 AC_DEFUN(AC_USE_OSF1_CURSES, [
168 AC_MSG_RESULT(Using OSF1 curses)
169 search_ncurses=false
170 screen_manager="OSF1 curses"
171 AC_DEFINE(HAS_CURSES)
172 has_curses=true
173 AC_DEFINE(NO_COLOR_CURSES)
174 AC_DEFINE(USE_SYSV_CURSES)
175 CURSES_LIBS="-lcurses"
176 ])
177
178 AC_DEFUN(AC_USE_SYSV_CURSES, [
179 AC_MSG_RESULT(Using SysV curses)
180 AC_DEFINE(HAS_CURSES)
181 has_curses=true
182 AC_DEFINE(USE_SYSV_CURSES)
183 search_ncurses=false
184 screen_manager="SysV/curses"
185 CURSES_LIBS="-lcurses"
186 ])
187
188 dnl AC_ARG_WITH(bsd-curses,
189 dnl [--with-bsd-curses Used to compile with bsd curses, not very fancy],
190 dnl search_ncurses=false
191 dnl screen_manager="Ultrix/cursesX"
192 dnl if test $system = ULTRIX
193 dnl then
194 dnl THIS_CURSES=cursesX
195 dnl else
196 dnl THIS_CURSES=curses
197 dnl fi
198 dnl
199 dnl CURSES_LIBS="-l$THIS_CURSES -ltermcap"
200 dnl AC_DEFINE(HAS_CURSES)
201 dnl has_curses=true
202 dnl AC_DEFINE(USE_BSD_CURSES)
203 dnl AC_MSG_RESULT(Please note that some screen refreshs may fail)
204 dnl AC_WARN(Use of the bsdcurses extension has some)
205 dnl AC_WARN(display/input problems.)
206 dnl AC_WARN(Reconsider using xcurses)
207 dnl)
208
209
210 dnl
211 dnl Parameters: directory filename cureses_LIBS curses_INCLUDEDIR nicename
212 dnl
213 AC_DEFUN(AC_NCURSES, [
214 if $search_ncurses
215 then
216 if test -f $1/$2
217 then
218 AC_MSG_RESULT(Found ncurses on $1/$2)
219 CURSES_LIBS="$3"
220 CURSES_INCLUDEDIR="$4"
221 search_ncurses=false
222 screen_manager=$5
223 AC_DEFINE(HAS_CURSES)
224 has_curses=true
225 AC_DEFINE(USE_NCURSES)
226 fi
227 fi
228 ])
229
230 AC_DEFUN(AC_SEARCH_NCURSES, [
231 AC_CHECKING("location of ncurses.h file")
232
233 AC_NCURSES(/usr/include, ncurses.h, -lncurses,, "ncurses on /usr/include")
234 AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses")
235 AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib -lncurses, -I/usr/local/include, "ncurses on /usr/local")
236 AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses -lncurses, -I/usr/local/include/ncurses, "ncurses on /usr/local/include/ncurses")
237
238 AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib -lncurses, -I/usr/local/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/local/.../ncurses")
239
240 AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
241
242 dnl
243 dnl We couldn't find ncurses, try SysV curses
244 dnl
245 if $search_ncurses
246 then
247 AC_EGREP_HEADER(init_color, /usr/include/curses.h,
248 AC_USE_SYSV_CURSES)
249 AC_EGREP_CPP(USE_NCURSES,[
250 #include <curses.h>
251 #ifdef __NCURSES_H
252 #undef USE_NCURSES
253 USE_NCURSES
254 #endif
255 ],[
256 CURSES_INCLUDEDIR="$CURSES_INCLUDEDIR -DRENAMED_NCURSES"
257 AC_DEFINE(HAS_CURSES)
258 has_curses=true
259 AC_DEFINE(USE_NCURSES)
260 search_ncurses=false
261 screen_manager="ncurses installed as curses"
262 ])
263 fi
264
265 dnl
266 dnl Try SunOS 4.x /usr/5{lib,include} ncurses
267 dnl The flags USE_SUNOS_CURSES, USE_BSD_CURSES and BUGGY_CURSES
268 dnl should be replaced by a more fine grained selection routine
269 dnl
270 if $search_ncurses
271 then
272 if test -f /usr/5include/curses.h
273 then
274 AC_USE_SUNOS_CURSES
275 fi
276 else
277 # check for ncurses version, to properly ifdef mouse-fix
278 AC_MSG_CHECKING(for ncurses version)
279 ncurses_version=unknown
280 cat > conftest.$ac_ext <<EOF
281 [#]line __oline__ "configure"
282 #include "confdefs.h"
283 #ifdef RENAMED_NCURSES
284 #include <curses.h>
285 #else
286 #include <ncurses.h>
287 #endif
288 #undef VERSION
289 VERSION:NCURSES_VERSION
290 EOF
291 if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
292 egrep "VERSION:" >conftest.out 2>&1; then
293 changequote(,)dnl
294 ncurses_version=`cat conftest.out|sed -e 's/^[^"]*"//' -e 's/".*//'`
295 changequote([,])dnl
296 fi
297 rm -rf conftest*
298 AC_MSG_RESULT($ncurses_version)
299 case "$ncurses_version" in
300 changequote(,)dnl
301 4.[01])
302 changequote([,])dnl
303 AC_DEFINE(NCURSES_970530,2)
304 ;;
305 1.9.9g)
306 AC_DEFINE(NCURSES_970530,1)
307 ;;
308 1*)
309 AC_DEFINE(NCURSES_970530,0)
310 ;;
311 esac
312 fi
313 ])
314
315
316
317
318

File macros/gnome-bonobo-check.m4 added (mode: 100644) (index 0000000..7eb2b26)
1 # Configure paths for Bonobo
2 # Miguel de Icaza, 99-04-12
3 # Stolen from Chris Lahey 99-2-5
4 # stolen from Manish Singh again
5 # stolen back from Frank Belew
6 # stolen from Manish Singh
7 # Shamelessly stolen from Owen Taylor
8
9 dnl AM_PATH_BONOBO ([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
10 dnl Test for Bonobo, and define BONOBO_CFLAGS and BONOBO_LIBS
11 dnl
12 AC_DEFUN([AM_PATH_BONOBO],
13 [
14 dnl
15 dnl Get the cflags and libraries from the gnome-config script
16 dnl
17 AC_ARG_WITH(bonobo-prefix,[ --with-bonobo-prefix=PFX Prefix where Bonobo is installed (optional)],
18 bonobo_prefix="$withval", bonobo_prefix="")
19 AC_ARG_WITH(bonobo-exec-prefix,[ --with-bonobo-exec-prefix=PFX Exec prefix where Bonobo is installed (optional)],
20 bonobo_exec_prefix="$withval", bonobo_exec_prefix="")
21 AC_ARG_ENABLE(bonobotest, [ --disable-bonobotest Do not try to compile and run a test Bonobo program],
22 , enable_bonobotest=yes)
23
24 if test x$bonobo_exec_prefix != x ; then
25 bonobo_args="$bonobo_args --exec-prefix=$bonobo_exec_prefix"
26 if test x${GNOME_CONFIG+set} != xset ; then
27 GNOME_CONFIG=$bonobo_exec_prefix/bin/gnome-config
28 fi
29 fi
30 if test x$bonobo_prefix != x ; then
31 bonobo_args="$bonobo_args --prefix=$bonobo_prefix"
32 if test x${GNOME_CONFIG+set} != xset ; then
33 GNOME_CONFIG=$bonobo_prefix/bin/gnome-config
34 fi
35 fi
36
37 AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
38 min_bonobo_version=ifelse([$1], ,0.1.0,$1)
39 AC_MSG_CHECKING(for BONOBO - version >= $min_bonobo_version)
40 no_bonobo=""
41 if test "$GNOME_CONFIG" = "no" ; then
42 no_bonobo=yes
43 else
44 BONOBO_CFLAGS=`$GNOME_CONFIG $bonoboconf_args --cflags bonobo`
45 BONOBO_LIBS=`$GNOME_CONFIG $bonoboconf_args --libs bonobo`
46
47 bonobo_major_version=`$GNOME_CONFIG $bonobo_args --version | \
48 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
49 bonobo_minor_version=`$GNOME_CONFIG $bonobo_args --version | \
50 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
51 bonobo_micro_version=`$GNOME_CONFIG $bonobo_config_args --version | \
52 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
53 if test "x$enable_bonobotest" = "xyes" ; then
54 ac_save_CFLAGS="$CFLAGS"
55 ac_save_LIBS="$LIBS"
56 CFLAGS="$CFLAGS $BONOBO_CFLAGS"
57 LIBS="$LIBS $BONOBO_LIBS"
58 dnl
59 dnl Now check if the installed BONOBO is sufficiently new. (Also sanity
60 dnl checks the results of gnome-config to some extent
61 dnl
62 rm -f conf.bonobotest
63 AC_TRY_RUN([
64 #include <stdio.h>
65 #include <stdlib.h>
66 #include <string.h>
67 #include <bonobo.h>
68
69 static char*
70 my_strdup (char *str)
71 {
72 char *new_str;
73
74 if (str)
75 {
76 new_str = malloc ((strlen (str) + 1) * sizeof(char));
77 strcpy (new_str, str);
78 }
79 else
80 new_str = NULL;
81
82 return new_str;
83 }
84
85 int main ()
86 {
87 int major, minor, micro;
88 char *tmp_version;
89
90 system ("touch conf.bonobotest");
91 bonobo_object_get_type ();
92 return 0;
93 }
94
95 ],, no_bonobo=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
96 CFLAGS="$ac_save_CFLAGS"
97 LIBS="$ac_save_LIBS"
98 fi
99 fi
100 if test "x$no_bonobo" = x ; then
101 AC_MSG_RESULT(yes)
102 ifelse([$2], , :, [$2])
103 else
104 AC_MSG_RESULT(no)
105 if test "$GNOME_CONFIG" = "no" ; then
106 echo "*** The gnome-config script installed by GNOME-LIBS could not be found"
107 echo "*** If BONOBO was installed in PREFIX, make sure PREFIX/bin is in"
108 echo "*** your path, or set the GNOME_CONFIG environment variable to the"
109 echo "*** full path to gnome-config."
110 else
111 if test -f conf.bonobotest ; then
112 :
113 else
114 echo "*** Could not run BONOBO test program, checking why..."
115 CFLAGS="$CFLAGS $BONOBO_CFLAGS"
116 LIBS="$LIBS $BONOBO_LIBS"
117 AC_TRY_LINK([
118 #include <stdio.h>
119 #include <bonobo/gnome-object.h>
120 ], [ return 0; ],
121 [ echo "*** The test program compiled, but did not run. This usually means"
122 echo "*** that the run-time linker is not finding BONOBO or finding the wrong"
123 echo "*** version of BONOBO. If it is not finding BONOBO, you'll need to set your"
124 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
125 echo "*** to the installed location Also, make sure you have run ldconfig if that"
126 echo "*** is required on your system"
127 echo "***"
128 echo "*** If you have an old version installed, it is best to remove it, although"
129 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
130 [ echo "*** The test program failed to compile or link. See the file config.log for the"
131 echo "*** exact error that occured. This usually means BONOBO was incorrectly installed"
132 echo "*** or that you have moved BONOBO since it was installed. In the latter case, you"
133 echo "*** may want to edit the gnome-config script: $GNOME_CONFIG" ])
134 CFLAGS="$ac_save_CFLAGS"
135 LIBS="$ac_save_LIBS"
136 fi
137 fi
138 BONOBO_CFLAGS=""
139 BONOBO_LIBS=""
140 ifelse([$3], , :, [$3])
141 fi
142 AC_SUBST(BONOBO_CFLAGS)
143 AC_SUBST(BONOBO_LIBS)
144 rm -f conf.bonobotest
145 ])
146
147 AC_DEFUN([BONOBO_CHECK], [
148 AM_PATH_BONOBO(0.1.0,,[AC_MSG_ERROR(BONOBO not found)])
149 ])
150

File macros/gnome-common.m4 added (mode: 100644) (index 0000000..b723829)
1 # gnome-common.m4
2 #
3 # This only for packages that are not in the GNOME CVS tree.
4
5 dnl GNOME_COMMON_INIT
6
7 AC_DEFUN([GNOME_COMMON_INIT],
8 [
9 GNOME_ACLOCAL_DIR=`$ACLOCAL --print-ac-dir`/gnome
10 AC_SUBST(GNOME_ACLOCAL_DIR)
11
12 ACLOCAL="$ACLOCAL -I $GNOME_ACLOCAL_DIR"
13 ])
14

File macros/gnome-fileutils.m4 added (mode: 100644) (index 0000000..7c11a78)
1 dnl
2 dnl GNOME_FILEUTILS_CHECKS
3 dnl
4 dnl checks that are needed for the diskusage applet.
5 dnl
6
7 AC_DEFUN([GNOME_FILEUTILS_CHECKS],
8 [
9 AC_CHECK_HEADERS(fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
10 mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
11 sys/filsys.h sys/fs_types.h sys/f