Project

General

Profile

Revision e2068500

View differences:

AUTHORS
1
Pierre-Loïc Garoche - ONERA, France
2
Xavier Thirioux - ENSEEIHT/INPT, France
3

  
4
Inital Typing/Clocking by Julien Forget - LIFL, France
LICENSE-LGPL.txt
1
		  GNU LESSER GENERAL PUBLIC LICENSE
2
		       Version 2.1, February 1999
3

  
4
 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5
     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6
 Everyone is permitted to copy and distribute verbatim copies
7
 of this license document, but changing it is not allowed.
8

  
9
[This is the first released version of the Lesser GPL.  It also counts
10
 as the successor of the GNU Library Public License, version 2, hence
11
 the version number 2.1.]
12

  
13
			    Preamble
14

  
15
  The licenses for most software are designed to take away your
16
freedom to share and change it.  By contrast, the GNU General Public
17
Licenses are intended to guarantee your freedom to share and change
18
free software--to make sure the software is free for all its users.
19

  
20
  This license, the Lesser General Public License, applies to some
21
specially designated software packages--typically libraries--of the
22
Free Software Foundation and other authors who decide to use it.  You
23
can use it too, but we suggest you first think carefully about whether
24
this license or the ordinary General Public License is the better
25
strategy to use in any particular case, based on the explanations below.
26

  
27
  When we speak of free software, we are referring to freedom of use,
28
not price.  Our General Public Licenses are designed to make sure that
29
you have the freedom to distribute copies of free software (and charge
30
for this service if you wish); that you receive source code or can get
31
it if you want it; that you can change the software and use pieces of
32
it in new free programs; and that you are informed that you can do
33
these things.
34

  
35
  To protect your rights, we need to make restrictions that forbid
36
distributors to deny you these rights or to ask you to surrender these
37
rights.  These restrictions translate to certain responsibilities for
38
you if you distribute copies of the library or if you modify it.
39

  
40
  For example, if you distribute copies of the library, whether gratis
41
or for a fee, you must give the recipients all the rights that we gave
42
you.  You must make sure that they, too, receive or can get the source
43
code.  If you link other code with the library, you must provide
44
complete object files to the recipients, so that they can relink them
45
with the library after making changes to the library and recompiling
46
it.  And you must show them these terms so they know their rights.
47

  
48
  We protect your rights with a two-step method: (1) we copyright the
49
library, and (2) we offer you this license, which gives you legal
50
permission to copy, distribute and/or modify the library.
51

  
52
  To protect each distributor, we want to make it very clear that
53
there is no warranty for the free library.  Also, if the library is
54
modified by someone else and passed on, the recipients should know
55
that what they have is not the original version, so that the original
56
author's reputation will not be affected by problems that might be
57
introduced by others.
58

59
  Finally, software patents pose a constant threat to the existence of
60
any free program.  We wish to make sure that a company cannot
61
effectively restrict the users of a free program by obtaining a
62
restrictive license from a patent holder.  Therefore, we insist that
63
any patent license obtained for a version of the library must be
64
consistent with the full freedom of use specified in this license.
65

  
66
  Most GNU software, including some libraries, is covered by the
67
ordinary GNU General Public License.  This license, the GNU Lesser
68
General Public License, applies to certain designated libraries, and
69
is quite different from the ordinary General Public License.  We use
70
this license for certain libraries in order to permit linking those
71
libraries into non-free programs.
72

  
73
  When a program is linked with a library, whether statically or using
74
a shared library, the combination of the two is legally speaking a
75
combined work, a derivative of the original library.  The ordinary
76
General Public License therefore permits such linking only if the
77
entire combination fits its criteria of freedom.  The Lesser General
78
Public License permits more lax criteria for linking other code with
79
the library.
80

  
81
  We call this license the "Lesser" General Public License because it
82
does Less to protect the user's freedom than the ordinary General
83
Public License.  It also provides other free software developers Less
84
of an advantage over competing non-free programs.  These disadvantages
85
are the reason we use the ordinary General Public License for many
86
libraries.  However, the Lesser license provides advantages in certain
87
special circumstances.
88

  
89
  For example, on rare occasions, there may be a special need to
90
encourage the widest possible use of a certain library, so that it becomes
91
a de-facto standard.  To achieve this, non-free programs must be
92
allowed to use the library.  A more frequent case is that a free
93
library does the same job as widely used non-free libraries.  In this
94
case, there is little to gain by limiting the free library to free
95
software only, so we use the Lesser General Public License.
96

  
97
  In other cases, permission to use a particular library in non-free
98
programs enables a greater number of people to use a large body of
99
free software.  For example, permission to use the GNU C Library in
100
non-free programs enables many more people to use the whole GNU
101
operating system, as well as its variant, the GNU/Linux operating
102
system.
103

  
104
  Although the Lesser General Public License is Less protective of the
105
users' freedom, it does ensure that the user of a program that is
106
linked with the Library has the freedom and the wherewithal to run
107
that program using a modified version of the Library.
108

  
109
  The precise terms and conditions for copying, distribution and
110
modification follow.  Pay close attention to the difference between a
111
"work based on the library" and a "work that uses the library".  The
112
former contains code derived from the library, whereas the latter must
113
be combined with the library in order to run.
114

115
		  GNU LESSER GENERAL PUBLIC LICENSE
116
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117

  
118
  0. This License Agreement applies to any software library or other
119
program which contains a notice placed by the copyright holder or
120
other authorized party saying it may be distributed under the terms of
121
this Lesser General Public License (also called "this License").
122
Each licensee is addressed as "you".
123

  
124
  A "library" means a collection of software functions and/or data
125
prepared so as to be conveniently linked with application programs
126
(which use some of those functions and data) to form executables.
127

  
128
  The "Library", below, refers to any such software library or work
129
which has been distributed under these terms.  A "work based on the
130
Library" means either the Library or any derivative work under
131
copyright law: that is to say, a work containing the Library or a
132
portion of it, either verbatim or with modifications and/or translated
133
straightforwardly into another language.  (Hereinafter, translation is
134
included without limitation in the term "modification".)
135

  
136
  "Source code" for a work means the preferred form of the work for
137
making modifications to it.  For a library, complete source code means
138
all the source code for all modules it contains, plus any associated
139
interface definition files, plus the scripts used to control compilation
140
and installation of the library.
141

  
142
  Activities other than copying, distribution and modification are not
143
covered by this License; they are outside its scope.  The act of
144
running a program using the Library is not restricted, and output from
145
such a program is covered only if its contents constitute a work based
146
on the Library (independent of the use of the Library in a tool for
147
writing it).  Whether that is true depends on what the Library does
148
and what the program that uses the Library does.
149
  
150
  1. You may copy and distribute verbatim copies of the Library's
151
complete source code as you receive it, in any medium, provided that
152
you conspicuously and appropriately publish on each copy an
153
appropriate copyright notice and disclaimer of warranty; keep intact
154
all the notices that refer to this License and to the absence of any
155
warranty; and distribute a copy of this License along with the
156
Library.
157

  
158
  You may charge a fee for the physical act of transferring a copy,
159
and you may at your option offer warranty protection in exchange for a
160
fee.
161

162
  2. You may modify your copy or copies of the Library or any portion
163
of it, thus forming a work based on the Library, and copy and
164
distribute such modifications or work under the terms of Section 1
165
above, provided that you also meet all of these conditions:
166

  
167
    a) The modified work must itself be a software library.
168

  
169
    b) You must cause the files modified to carry prominent notices
170
    stating that you changed the files and the date of any change.
171

  
172
    c) You must cause the whole of the work to be licensed at no
173
    charge to all third parties under the terms of this License.
174

  
175
    d) If a facility in the modified Library refers to a function or a
176
    table of data to be supplied by an application program that uses
177
    the facility, other than as an argument passed when the facility
178
    is invoked, then you must make a good faith effort to ensure that,
179
    in the event an application does not supply such function or
180
    table, the facility still operates, and performs whatever part of
181
    its purpose remains meaningful.
182

  
183
    (For example, a function in a library to compute square roots has
184
    a purpose that is entirely well-defined independent of the
185
    application.  Therefore, Subsection 2d requires that any
186
    application-supplied function or table used by this function must
187
    be optional: if the application does not supply it, the square
188
    root function must still compute square roots.)
189

  
190
These requirements apply to the modified work as a whole.  If
191
identifiable sections of that work are not derived from the Library,
192
and can be reasonably considered independent and separate works in
193
themselves, then this License, and its terms, do not apply to those
194
sections when you distribute them as separate works.  But when you
195
distribute the same sections as part of a whole which is a work based
196
on the Library, the distribution of the whole must be on the terms of
197
this License, whose permissions for other licensees extend to the
198
entire whole, and thus to each and every part regardless of who wrote
199
it.
200

  
201
Thus, it is not the intent of this section to claim rights or contest
202
your rights to work written entirely by you; rather, the intent is to
203
exercise the right to control the distribution of derivative or
204
collective works based on the Library.
205

  
206
In addition, mere aggregation of another work not based on the Library
207
with the Library (or with a work based on the Library) on a volume of
208
a storage or distribution medium does not bring the other work under
209
the scope of this License.
210

  
211
  3. You may opt to apply the terms of the ordinary GNU General Public
212
License instead of this License to a given copy of the Library.  To do
213
this, you must alter all the notices that refer to this License, so
214
that they refer to the ordinary GNU General Public License, version 2,
215
instead of to this License.  (If a newer version than version 2 of the
216
ordinary GNU General Public License has appeared, then you can specify
217
that version instead if you wish.)  Do not make any other change in
218
these notices.
219

220
  Once this change is made in a given copy, it is irreversible for
221
that copy, so the ordinary GNU General Public License applies to all
222
subsequent copies and derivative works made from that copy.
223

  
224
  This option is useful when you wish to copy part of the code of
225
the Library into a program that is not a library.
226

  
227
  4. You may copy and distribute the Library (or a portion or
228
derivative of it, under Section 2) in object code or executable form
229
under the terms of Sections 1 and 2 above provided that you accompany
230
it with the complete corresponding machine-readable source code, which
231
must be distributed under the terms of Sections 1 and 2 above on a
232
medium customarily used for software interchange.
233

  
234
  If distribution of object code is made by offering access to copy
235
from a designated place, then offering equivalent access to copy the
236
source code from the same place satisfies the requirement to
237
distribute the source code, even though third parties are not
238
compelled to copy the source along with the object code.
239

  
240
  5. A program that contains no derivative of any portion of the
241
Library, but is designed to work with the Library by being compiled or
242
linked with it, is called a "work that uses the Library".  Such a
243
work, in isolation, is not a derivative work of the Library, and
244
therefore falls outside the scope of this License.
245

  
246
  However, linking a "work that uses the Library" with the Library
247
creates an executable that is a derivative of the Library (because it
248
contains portions of the Library), rather than a "work that uses the
249
library".  The executable is therefore covered by this License.
250
Section 6 states terms for distribution of such executables.
251

  
252
  When a "work that uses the Library" uses material from a header file
253
that is part of the Library, the object code for the work may be a
254
derivative work of the Library even though the source code is not.
255
Whether this is true is especially significant if the work can be
256
linked without the Library, or if the work is itself a library.  The
257
threshold for this to be true is not precisely defined by law.
258

  
259
  If such an object file uses only numerical parameters, data
260
structure layouts and accessors, and small macros and small inline
261
functions (ten lines or less in length), then the use of the object
262
file is unrestricted, regardless of whether it is legally a derivative
263
work.  (Executables containing this object code plus portions of the
264
Library will still fall under Section 6.)
265

  
266
  Otherwise, if the work is a derivative of the Library, you may
267
distribute the object code for the work under the terms of Section 6.
268
Any executables containing that work also fall under Section 6,
269
whether or not they are linked directly with the Library itself.
270

271
  6. As an exception to the Sections above, you may also combine or
272
link a "work that uses the Library" with the Library to produce a
273
work containing portions of the Library, and distribute that work
274
under terms of your choice, provided that the terms permit
275
modification of the work for the customer's own use and reverse
276
engineering for debugging such modifications.
277

  
278
  You must give prominent notice with each copy of the work that the
279
Library is used in it and that the Library and its use are covered by
280
this License.  You must supply a copy of this License.  If the work
281
during execution displays copyright notices, you must include the
282
copyright notice for the Library among them, as well as a reference
283
directing the user to the copy of this License.  Also, you must do one
284
of these things:
285

  
286
    a) Accompany the work with the complete corresponding
287
    machine-readable source code for the Library including whatever
288
    changes were used in the work (which must be distributed under
289
    Sections 1 and 2 above); and, if the work is an executable linked
290
    with the Library, with the complete machine-readable "work that
291
    uses the Library", as object code and/or source code, so that the
292
    user can modify the Library and then relink to produce a modified
293
    executable containing the modified Library.  (It is understood
294
    that the user who changes the contents of definitions files in the
295
    Library will not necessarily be able to recompile the application
296
    to use the modified definitions.)
297

  
298
    b) Use a suitable shared library mechanism for linking with the
299
    Library.  A suitable mechanism is one that (1) uses at run time a
300
    copy of the library already present on the user's computer system,
301
    rather than copying library functions into the executable, and (2)
302
    will operate properly with a modified version of the library, if
303
    the user installs one, as long as the modified version is
304
    interface-compatible with the version that the work was made with.
305

  
306
    c) Accompany the work with a written offer, valid for at
307
    least three years, to give the same user the materials
308
    specified in Subsection 6a, above, for a charge no more
309
    than the cost of performing this distribution.
310

  
311
    d) If distribution of the work is made by offering access to copy
312
    from a designated place, offer equivalent access to copy the above
313
    specified materials from the same place.
314

  
315
    e) Verify that the user has already received a copy of these
316
    materials or that you have already sent this user a copy.
317

  
318
  For an executable, the required form of the "work that uses the
319
Library" must include any data and utility programs needed for
320
reproducing the executable from it.  However, as a special exception,
321
the materials to be distributed need not include anything that is
322
normally distributed (in either source or binary form) with the major
323
components (compiler, kernel, and so on) of the operating system on
324
which the executable runs, unless that component itself accompanies
325
the executable.
326

  
327
  It may happen that this requirement contradicts the license
328
restrictions of other proprietary libraries that do not normally
329
accompany the operating system.  Such a contradiction means you cannot
330
use both them and the Library together in an executable that you
331
distribute.
332

333
  7. You may place library facilities that are a work based on the
334
Library side-by-side in a single library together with other library
335
facilities not covered by this License, and distribute such a combined
336
library, provided that the separate distribution of the work based on
337
the Library and of the other library facilities is otherwise
338
permitted, and provided that you do these two things:
339

  
340
    a) Accompany the combined library with a copy of the same work
341
    based on the Library, uncombined with any other library
342
    facilities.  This must be distributed under the terms of the
343
    Sections above.
344

  
345
    b) Give prominent notice with the combined library of the fact
346
    that part of it is a work based on the Library, and explaining
347
    where to find the accompanying uncombined form of the same work.
348

  
349
  8. You may not copy, modify, sublicense, link with, or distribute
350
the Library except as expressly provided under this License.  Any
351
attempt otherwise to copy, modify, sublicense, link with, or
352
distribute the Library is void, and will automatically terminate your
353
rights under this License.  However, parties who have received copies,
354
or rights, from you under this License will not have their licenses
355
terminated so long as such parties remain in full compliance.
356

  
357
  9. You are not required to accept this License, since you have not
358
signed it.  However, nothing else grants you permission to modify or
359
distribute the Library or its derivative works.  These actions are
360
prohibited by law if you do not accept this License.  Therefore, by
361
modifying or distributing the Library (or any work based on the
362
Library), you indicate your acceptance of this License to do so, and
363
all its terms and conditions for copying, distributing or modifying
364
the Library or works based on it.
365

  
366
  10. Each time you redistribute the Library (or any work based on the
367
Library), the recipient automatically receives a license from the
368
original licensor to copy, distribute, link with or modify the Library
369
subject to these terms and conditions.  You may not impose any further
370
restrictions on the recipients' exercise of the rights granted herein.
371
You are not responsible for enforcing compliance by third parties with
372
this License.
373

374
  11. If, as a consequence of a court judgment or allegation of patent
375
infringement or for any other reason (not limited to patent issues),
376
conditions are imposed on you (whether by court order, agreement or
377
otherwise) that contradict the conditions of this License, they do not
378
excuse you from the conditions of this License.  If you cannot
379
distribute so as to satisfy simultaneously your obligations under this
380
License and any other pertinent obligations, then as a consequence you
381
may not distribute the Library at all.  For example, if a patent
382
license would not permit royalty-free redistribution of the Library by
383
all those who receive copies directly or indirectly through you, then
384
the only way you could satisfy both it and this License would be to
385
refrain entirely from distribution of the Library.
386

  
387
If any portion of this section is held invalid or unenforceable under any
388
particular circumstance, the balance of the section is intended to apply,
389
and the section as a whole is intended to apply in other circumstances.
390

  
391
It is not the purpose of this section to induce you to infringe any
392
patents or other property right claims or to contest validity of any
393
such claims; this section has the sole purpose of protecting the
394
integrity of the free software distribution system which is
395
implemented by public license practices.  Many people have made
396
generous contributions to the wide range of software distributed
397
through that system in reliance on consistent application of that
398
system; it is up to the author/donor to decide if he or she is willing
399
to distribute software through any other system and a licensee cannot
400
impose that choice.
401

  
402
This section is intended to make thoroughly clear what is believed to
403
be a consequence of the rest of this License.
404

  
405
  12. If the distribution and/or use of the Library is restricted in
406
certain countries either by patents or by copyrighted interfaces, the
407
original copyright holder who places the Library under this License may add
408
an explicit geographical distribution limitation excluding those countries,
409
so that distribution is permitted only in or among countries not thus
410
excluded.  In such case, this License incorporates the limitation as if
411
written in the body of this License.
412

  
413
  13. The Free Software Foundation may publish revised and/or new
414
versions of the Lesser General Public License from time to time.
415
Such new versions will be similar in spirit to the present version,
416
but may differ in detail to address new problems or concerns.
417

  
418
Each version is given a distinguishing version number.  If the Library
419
specifies a version number of this License which applies to it and
420
"any later version", you have the option of following the terms and
421
conditions either of that version or of any later version published by
422
the Free Software Foundation.  If the Library does not specify a
423
license version number, you may choose any version ever published by
424
the Free Software Foundation.
425

426
  14. If you wish to incorporate parts of the Library into other free
427
programs whose distribution conditions are incompatible with these,
428
write to the author to ask for permission.  For software which is
429
copyrighted by the Free Software Foundation, write to the Free
430
Software Foundation; we sometimes make exceptions for this.  Our
431
decision will be guided by the two goals of preserving the free status
432
of all derivatives of our free software and of promoting the sharing
433
and reuse of software generally.
434

  
435
			    NO WARRANTY
436

  
437
  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
438
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
439
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
440
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
441
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
442
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
443
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
444
LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
445
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
446

  
447
  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
448
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
449
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
450
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
451
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
452
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
453
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
454
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
455
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
456
DAMAGES.
457

  
458
		     END OF TERMS AND CONDITIONS
459

460
           How to Apply These Terms to Your New Libraries
461

  
462
  If you develop a new library, and you want it to be of the greatest
463
possible use to the public, we recommend making it free software that
464
everyone can redistribute and change.  You can do so by permitting
465
redistribution under these terms (or, alternatively, under the terms of the
466
ordinary General Public License).
467

  
468
  To apply these terms, attach the following notices to the library.  It is
469
safest to attach them to the start of each source file to most effectively
470
convey the exclusion of warranty; and each file should have at least the
471
"copyright" line and a pointer to where the full notice is found.
472

  
473
    <one line to give the library's name and a brief idea of what it does.>
474
    Copyright (C) <year>  <name of author>
475

  
476
    This library is free software; you can redistribute it and/or
477
    modify it under the terms of the GNU Lesser General Public
478
    License as published by the Free Software Foundation; either
479
    version 2.1 of the License, or (at your option) any later version.
480

  
481
    This library is distributed in the hope that it will be useful,
482
    but WITHOUT ANY WARRANTY; without even the implied warranty of
483
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
484
    Lesser General Public License for more details.
485

  
486
    You should have received a copy of the GNU Lesser General Public
487
    License along with this library; if not, write to the Free Software
488
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
489

  
490
Also add information on how to contact you by electronic and paper mail.
491

  
492
You should also get your employer (if you work as a programmer) or your
493
school, if any, to sign a "copyright disclaimer" for the library, if
494
necessary.  Here is a sample; alter the names:
495

  
496
  Yoyodyne, Inc., hereby disclaims all copyright interest in the
497
  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
498

  
499
  <signature of Ty Coon>, 1 April 1990
500
  Ty Coon, President of Vice
501

  
502
That's all there is to it!
503

  
504

  
Makefile.in
1
OCAMLBUILD=@OCAMLBUILD@ -classic-display -no-links 
2

  
3
prefix=@prefix@
4
exec_prefix=@exec_prefix@
5
bindir=@bindir@
6
datadir = ${prefix}/share
7
includedir = ${prefix}/include
8

  
9
LUSI_LIBS=include/math.lusi include/conv.lusi
10
LOCAL_BINDIR=bin
11
LOCAL_DOCDIR=doc/manual
12

  
13
lustrec:
14
	@echo Compiling binary lustrec
15
	@$(OCAMLBUILD) -cflags -I,@OCAMLGRAPH_PATH@ -lflag @OCAMLGRAPH_PATH@/graph.cmxa -I src -I src/backends/C src/main_lustre_compiler.native
16
	@mkdir -p $(LOCAL_BINDIR)
17
	@mv _build/src/main_lustre_compiler.native $(LOCAL_BINDIR)/lustrec
18

  
19
doc:
20
	@echo Generating doc
21
	@$(OCAMLBUILD) lustrec.docdir/index.html
22
	@rm -rf $(LOCAL_DOCDIR)
23
	@cp -rf _build/lustrec.docdir $(LOCAL_DOCDIR)
24

  
25
dot: doc
26
	$(OCAMLBUILD) lustrec.docdir/lustrec.dot
27
	dot -T ps -o lustrec.dot _build/lustrec.docdir/lustrec.dot
28
	mv _build/lustrec.docdir/lustrec.dot $(LOCAL_DOCDIR)
29

  
30
clean:
31
	$(OCAMLBUILD) -clean
32

  
33
dist-clean: clean
34
	rm -f Makefile myocamlbuild.ml config.log config.status configure include/*.lusic include/math.h include/conv.h
35

  
36
%.lusic: %.lusi
37
	@echo Compiling $<
38
	@$(LOCAL_BINDIR)/lustrec -verbose 0 -d include $< 
39

  
40
clean-lusic:
41
	rm $(LUSI_LIBS:%.lusi=%.lusic)
42

  
43
compile-lusi: $(LUSI_LIBS:%.lusi=%.lusic)
44

  
45
install: clean-lusic compile-lusi
46
	mkdir -p ${bindir}
47
	install -m 0755 $(LOCAL_BINDIR)/* ${bindir}
48
	mkdir -p ${includedir}/lustrec
49
	cp include/* ${includedir}/lustrec
50
	install -m 0655 share/FindLustre.cmake ${datadir}
51

  
52
.PHONY: compile-lusi doc dot lustrec lustrec.odocl clean install dist-clean
53

  
README.md
1
# lustrec
2
A modular Lustre to C / Horn clauses compiler
1
# LustreC
2

  
3
LustreC is a modular compiler of Lustre code into C and Horn Clauses.
4

  
5
# Build
6
```
7
> autoconf
8
> ./configure
9
> make
10
```
11

  
12
# Usage
13
```
14
> ./bin/lustrec -help
15
```
16

  
17
# People
18
* Pierre-Loic Garoche (ONERA)
19
* Xavier Thirioux (IRIT)
20
* Temesghen Kahsai (NASA Ames / CMU)
TODO.org
1
* TODO
2
** include files
3
** main function
4
*** add a clean test to forbid array arguments for main node
5
    (no available input/output methods)
6
** test suite
7
*** for complex dependency graphs (notably mem/mem cyclic dependencies)
8
*** for clocks
9
*** for arrays (non-generic nodes)
10
** compare with lus2c (verimag)
11
** extension
12
*** array access: done
13
*** add an option to dynamically check array accesses: done
14
*** power operator: done
15
*** automaton
16
*** annotations to ACSL
17
** init checking
18
*** to be done !!!
19
** normalization
20
*** sub-expression sharing seems to be not totally working: fixed
21
*** improve behavior for power and access operators:done
22
*** more type-directed normalization (notably to improve code gen for arrays): done
23
*** reuse of dead vars instead of systematically allocating new local vars
24
*** add a clean test for used but undefined nodes
25
** typing
26
*** correct typing of arith ops (real/int with subtyping ?)
27
*** display array dimensions with correct names: done
28
*** clocks must not be static inputs: done
29
** clock calculus
30
*** extension from named clocks to valued clocks ?
31
*** static inputs should be polymorphic, as global constants are: done
autom4te.cache/output.0
1
@%:@! /bin/sh
2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.69 for lustrec 1.0-Unversioned directory.
4
@%:@
5
@%:@ Report bugs to <ploc@garoche.net>.
6
@%:@ 
7
@%:@ 
8
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
@%:@ 
10
@%:@ 
11
@%:@ This configure script is free software; the Free Software Foundation
12
@%:@ gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16

  
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
  emulate sh
21
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25
  setopt NO_GLOB_SUBST
26
else
27
  case `(set -o) 2>/dev/null` in @%:@(
28
  *posix*) :
29
    set -o posix ;; @%:@(
30
  *) :
31
     ;;
32
esac
33
fi
34

  
35

  
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60
      case $arg in @%:@(
61
      *"$as_nl"*)
62
	expr "X$arg" : "X\\(.*\\)$as_nl";
63
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73

  
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82

  
83

  
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""	$as_nl"
90

  
91
# Find who we are.  Look in the path if we contain no directory separator.
92
as_myself=
93
case $0 in @%:@((
94
  *[\\/]* ) as_myself=$0 ;;
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96
for as_dir in $PATH
97
do
98
  IFS=$as_save_IFS
99
  test -z "$as_dir" && as_dir=.
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
  done
102
IFS=$as_save_IFS
103

  
104
     ;;
105
esac
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
109
  as_myself=$0
110
fi
111
if test ! -f "$as_myself"; then
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113
  exit 1
114
fi
115

  
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there.  '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127

  
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133

  
134
# CDPATH.
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136

  
137
# Use a proper internal environment variable to ensure we don't fall
138
  # into an infinite loop, continuously re-executing ourselves.
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
    _as_can_reexec=no; export _as_can_reexec;
141
    # We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
145
BASH_ENV=/dev/null
146
ENV=/dev/null
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
case $- in @%:@ ((((
149
  *v*x* | *x*v* ) as_opts=-vx ;;
150
  *v* ) as_opts=-v ;;
151
  *x* ) as_opts=-x ;;
152
  * ) as_opts= ;;
153
esac
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
as_fn_exit 255
159
  fi
160
  # We don't want this to propagate to other subprocesses.
161
          { _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
  emulate sh
165
  NULLCMD=:
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
  # is contrary to our usage.  Disable this feature.
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
  setopt NO_GLOB_SUBST
170
else
171
  case \`(set -o) 2>/dev/null\` in @%:@(
172
  *posix*) :
173
    set -o posix ;; @%:@(
174
  *) :
175
     ;;
176
esac
177
fi
178
"
179
  as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
184

  
185
exitcode=0
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
  
192
else
193
  exitcode=1; echo positional parameters were not saved.
194
fi
195
test x\$exitcode = x0 || exit 1
196
test -x / || exit 1"
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201
  if (eval "$as_required") 2>/dev/null; then :
202
  as_have_required=yes
203
else
204
  as_have_required=no
205
fi
206
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
  
208
else
209
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210
as_found=false
211
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212
do
213
  IFS=$as_save_IFS
214
  test -z "$as_dir" && as_dir=.
215
  as_found=:
216
  case $as_dir in @%:@(
217
	 /*)
218
	   for as_base in sh bash ksh sh5; do
219
	     # Try only shells that exist, to save several forks.
220
	     as_shell=$as_dir/$as_base
221
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223
  CONFIG_SHELL=$as_shell as_have_required=yes
224
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225
  break 2
226
fi
227
fi
228
	   done;;
229
       esac
230
  as_found=false
231
done
232
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234
  CONFIG_SHELL=$SHELL as_have_required=yes
235
fi; }
236
IFS=$as_save_IFS
237

  
238

  
239
      if test "x$CONFIG_SHELL" != x; then :
240
  export CONFIG_SHELL
241
             # We cannot yet assume a decent shell, so we have to provide a
242
# neutralization value for shells without unset; and this also
243
# works around shells that cannot unset nonexistent variables.
244
# Preserve -v and -x to the replacement shell.
245
BASH_ENV=/dev/null
246
ENV=/dev/null
247
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248
case $- in @%:@ ((((
249
  *v*x* | *x*v* ) as_opts=-vx ;;
250
  *v* ) as_opts=-v ;;
251
  *x* ) as_opts=-x ;;
252
  * ) as_opts= ;;
253
esac
254
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255
# Admittedly, this is quite paranoid, since all the known shells bail
256
# out after a failed `exec'.
257
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258
exit 255
259
fi
260

  
261
    if test x$as_have_required = xno; then :
262
  $as_echo "$0: This script requires a shell more modern than all"
263
  $as_echo "$0: the shells that I found on your system."
264
  if test x${ZSH_VERSION+set} = xset ; then
265
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267
  else
268
    $as_echo "$0: Please tell bug-autoconf@gnu.org and ploc@garoche.net
269
$0: about your system, including any error possibly output
270
$0: before this message. Then install a modern shell, or
271
$0: manually run the script under such a shell if you do
272
$0: have one."
273
  fi
274
  exit 1
275
fi
276
fi
277
fi
278
SHELL=${CONFIG_SHELL-/bin/sh}
279
export SHELL
280
# Unset more variables known to interfere with behavior of common tools.
281
CLICOLOR_FORCE= GREP_OPTIONS=
282
unset CLICOLOR_FORCE GREP_OPTIONS
283

  
284
## --------------------- ##
285
## M4sh Shell Functions. ##
286
## --------------------- ##
287
@%:@ as_fn_unset VAR
288
@%:@ ---------------
289
@%:@ Portably unset VAR.
290
as_fn_unset ()
291
{
292
  { eval $1=; unset $1;}
293
}
294
as_unset=as_fn_unset
295

  
296
@%:@ as_fn_set_status STATUS
297
@%:@ -----------------------
298
@%:@ Set @S|@? to STATUS, without forking.
299
as_fn_set_status ()
300
{
301
  return $1
302
} @%:@ as_fn_set_status
303

  
304
@%:@ as_fn_exit STATUS
305
@%:@ -----------------
306
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307
as_fn_exit ()
308
{
309
  set +e
310
  as_fn_set_status $1
311
  exit $1
312
} @%:@ as_fn_exit
313

  
314
@%:@ as_fn_mkdir_p
315
@%:@ -------------
316
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
317
as_fn_mkdir_p ()
318
{
319

  
320
  case $as_dir in #(
321
  -*) as_dir=./$as_dir;;
322
  esac
323
  test -d "$as_dir" || eval $as_mkdir_p || {
324
    as_dirs=
325
    while :; do
326
      case $as_dir in #(
327
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328
      *) as_qdir=$as_dir;;
329
      esac
330
      as_dirs="'$as_qdir' $as_dirs"
331
      as_dir=`$as_dirname -- "$as_dir" ||
332
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333
	 X"$as_dir" : 'X\(//\)[^/]' \| \
334
	 X"$as_dir" : 'X\(//\)$' \| \
335
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336
$as_echo X"$as_dir" |
337
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338
	    s//\1/
339
	    q
340
	  }
341
	  /^X\(\/\/\)[^/].*/{
342
	    s//\1/
343
	    q
344
	  }
345
	  /^X\(\/\/\)$/{
346
	    s//\1/
347
	    q
348
	  }
349
	  /^X\(\/\).*/{
350
	    s//\1/
351
	    q
352
	  }
353
	  s/.*/./; q'`
354
      test -d "$as_dir" && break
355
    done
356
    test -z "$as_dirs" || eval "mkdir $as_dirs"
357
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358

  
359

  
360
} @%:@ as_fn_mkdir_p
361

  
362
@%:@ as_fn_executable_p FILE
363
@%:@ -----------------------
364
@%:@ Test if FILE is an executable regular file.
365
as_fn_executable_p ()
366
{
367
  test -f "$1" && test -x "$1"
368
} @%:@ as_fn_executable_p
369
@%:@ as_fn_append VAR VALUE
370
@%:@ ----------------------
371
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
372
@%:@ advantage of any shell optimizations that allow amortized linear growth over
373
@%:@ repeated appends, instead of the typical quadratic growth present in naive
374
@%:@ implementations.
375
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376
  eval 'as_fn_append ()
377
  {
378
    eval $1+=\$2
379
  }'
380
else
381
  as_fn_append ()
382
  {
383
    eval $1=\$$1\$2
384
  }
385
fi # as_fn_append
386

  
387
@%:@ as_fn_arith ARG...
388
@%:@ ------------------
389
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
390
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
391
@%:@ must be portable across @S|@(()) and expr.
392
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393
  eval 'as_fn_arith ()
394
  {
395
    as_val=$(( $* ))
396
  }'
397
else
398
  as_fn_arith ()
399
  {
400
    as_val=`expr "$@" || test $? -eq 1`
401
  }
402
fi # as_fn_arith
403

  
404

  
405
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
406
@%:@ ----------------------------------------
407
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409
@%:@ script with STATUS, using 1 if that was 0.
410
as_fn_error ()
411
{
412
  as_status=$1; test $as_status -eq 0 && as_status=1
413
  if test "$4"; then
414
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416
  fi
417
  $as_echo "$as_me: error: $2" >&2
418
  as_fn_exit $as_status
419
} @%:@ as_fn_error
420

  
421
if expr a : '\(a\)' >/dev/null 2>&1 &&
422
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
423
  as_expr=expr
424
else
425
  as_expr=false
426
fi
427

  
428
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429
  as_basename=basename
430
else
431
  as_basename=false
432
fi
433

  
434
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435
  as_dirname=dirname
436
else
437
  as_dirname=false
438
fi
439

  
440
as_me=`$as_basename -- "$0" ||
441
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442
	 X"$0" : 'X\(//\)$' \| \
443
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444
$as_echo X/"$0" |
445
    sed '/^.*\/\([^/][^/]*\)\/*$/{
446
	    s//\1/
447
	    q
448
	  }
449
	  /^X\/\(\/\/\)$/{
450
	    s//\1/
451
	    q
452
	  }
453
	  /^X\/\(\/\).*/{
454
	    s//\1/
455
	    q
456
	  }
457
	  s/.*/./; q'`
458

  
459
# Avoid depending upon Character Ranges.
460
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463
as_cr_digits='0123456789'
464
as_cr_alnum=$as_cr_Letters$as_cr_digits
465

  
466

  
467
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
468
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
469
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
472
  sed -n '
473
    p
474
    /[$]LINENO/=
475
  ' <$as_myself |
476
    sed '
477
      s/[$]LINENO.*/&-/
478
      t lineno
479
      b
480
      :lineno
481
      N
482
      :loop
483
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484
      t loop
485
      s/-\n.*//
486
    ' >$as_me.lineno &&
487
  chmod +x "$as_me.lineno" ||
488
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489

  
490
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491
  # already done that, so ensure we don't try to do so again and fall
492
  # in an infinite loop.  This has already happened in practice.
493
  _as_can_reexec=no; export _as_can_reexec
494
  # Don't try to exec as it changes $[0], causing all sort of problems
495
  # (the dirname of $[0] is not the place where we might find the
496
  # original and so on.  Autoconf is especially sensitive to this).
497
  . "./$as_me.lineno"
498
  # Exit status is that of the last command.
499
  exit
500
}
501

  
502
ECHO_C= ECHO_N= ECHO_T=
503
case `echo -n x` in @%:@(((((
504
-n*)
505
  case `echo 'xy\c'` in
506
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
507
  xy)  ECHO_C='\c';;
508
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
509
       ECHO_T='	';;
510
  esac;;
511
*)
512
  ECHO_N='-n';;
513
esac
514

  
515
rm -f conf$$ conf$$.exe conf$$.file
516
if test -d conf$$.dir; then
517
  rm -f conf$$.dir/conf$$.file
518
else
519
  rm -f conf$$.dir
520
  mkdir conf$$.dir 2>/dev/null
521
fi
522
if (echo >conf$$.file) 2>/dev/null; then
523
  if ln -s conf$$.file conf$$ 2>/dev/null; then
524
    as_ln_s='ln -s'
525
    # ... but there are two gotchas:
526
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528
    # In both cases, we have to default to `cp -pR'.
529
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530
      as_ln_s='cp -pR'
531
  elif ln conf$$.file conf$$ 2>/dev/null; then
532
    as_ln_s=ln
533
  else
534
    as_ln_s='cp -pR'
535
  fi
536
else
537
  as_ln_s='cp -pR'
538
fi
539
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540
rmdir conf$$.dir 2>/dev/null
541

  
542
if mkdir -p . 2>/dev/null; then
543
  as_mkdir_p='mkdir -p "$as_dir"'
544
else
545
  test -d ./-p && rmdir ./-p
546
  as_mkdir_p=false
547
fi
548

  
549
as_test_x='test -x'
550
as_executable_p=as_fn_executable_p
551

  
552
# Sed expression to map a string onto a valid CPP name.
553
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554

  
555
# Sed expression to map a string onto a valid variable name.
556
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557

  
558

  
559
test -n "$DJDIR" || exec 7<&0 </dev/null
560
exec 6>&1
561

  
562
# Name of the host.
563
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564
# so uname gets run too.
565
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566

  
567
#
568
# Initializations.
569
#
570
ac_default_prefix=/usr/local
571
ac_clean_files=
572
ac_config_libobj_dir=.
573
LIB@&t@OBJS=
574
cross_compiling=no
575
subdirs=
576
MFLAGS=
577
MAKEFLAGS=
578

  
579
# Identity of this package.
580
PACKAGE_NAME='lustrec'
581
PACKAGE_TARNAME='lustrec'
582
PACKAGE_VERSION='1.0-Unversioned directory'
583
PACKAGE_STRING='lustrec 1.0-Unversioned directory'
584
PACKAGE_BUGREPORT='ploc@garoche.net'
585
PACKAGE_URL=''
586

  
587
ac_unique_file="src/main_lustre_compiler.ml"
588
ac_default_prefix=/usr/local
589
ac_subst_vars='LTLIBOBJS
590
LIB@&t@OBJS
591
abs_datadir
592
OCAMLBUILD
593
OCAMLC
594
OCAMLGRAPH_PATH
595
SVN_REVISION
596
target_alias
597
host_alias
598
build_alias
599
LIBS
600
ECHO_T
601
ECHO_N
602
ECHO_C
603
DEFS
604
mandir
605
localedir
606
libdir
607
psdir
608
pdfdir
609
dvidir
610
htmldir
611
infodir
612
docdir
613
oldincludedir
614
includedir
615
localstatedir
616
sharedstatedir
617
sysconfdir
618
datadir
619
datarootdir
620
libexecdir
621
sbindir
622
bindir
623
program_transform_name
624
prefix
625
exec_prefix
626
PACKAGE_URL
627
PACKAGE_BUGREPORT
628
PACKAGE_STRING
629
PACKAGE_VERSION
630
PACKAGE_TARNAME
631
PACKAGE_NAME
632
PATH_SEPARATOR
633
SHELL'
634
ac_subst_files=''
635
ac_user_opts='
636
enable_option_checking
637
with_ocamlgraph_path
638
'
639
      ac_precious_vars='build_alias
640
host_alias
641
target_alias'
642

  
643

  
644
# Initialize some variables set by options.
645
ac_init_help=
646
ac_init_version=false
647
ac_unrecognized_opts=
648
ac_unrecognized_sep=
649
# The variables have the same names as the options, with
650
# dashes changed to underlines.
651
cache_file=/dev/null
652
exec_prefix=NONE
653
no_create=
654
no_recursion=
655
prefix=NONE
656
program_prefix=NONE
657
program_suffix=NONE
658
program_transform_name=s,x,x,
659
silent=
660
site=
661
srcdir=
662
verbose=
663
x_includes=NONE
664
x_libraries=NONE
665

  
666
# Installation directory options.
667
# These are left unexpanded so users can "make install exec_prefix=/foo"
668
# and all the variables that are supposed to be based on exec_prefix
669
# by default will actually change.
670
# Use braces instead of parens because sh, perl, etc. also accept them.
671
# (The list follows the same order as the GNU Coding Standards.)
672
bindir='${exec_prefix}/bin'
673
sbindir='${exec_prefix}/sbin'
674
libexecdir='${exec_prefix}/libexec'
675
datarootdir='${prefix}/share'
676
datadir='${datarootdir}'
677
sysconfdir='${prefix}/etc'
678
sharedstatedir='${prefix}/com'
679
localstatedir='${prefix}/var'
680
includedir='${prefix}/include'
681
oldincludedir='/usr/include'
682
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
683
infodir='${datarootdir}/info'
684
htmldir='${docdir}'
685
dvidir='${docdir}'
686
pdfdir='${docdir}'
687
psdir='${docdir}'
688
libdir='${exec_prefix}/lib'
689
localedir='${datarootdir}/locale'
690
mandir='${datarootdir}/man'
691

  
692
ac_prev=
693
ac_dashdash=
694
for ac_option
695
do
696
  # If the previous option needs an argument, assign it.
697
  if test -n "$ac_prev"; then
698
    eval $ac_prev=\$ac_option
699
    ac_prev=
700
    continue
701
  fi
702

  
703
  case $ac_option in
704
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
705
  *=)   ac_optarg= ;;
706
  *)    ac_optarg=yes ;;
707
  esac
708

  
709
  # Accept the important Cygnus configure options, so we can diagnose typos.
710

  
711
  case $ac_dashdash$ac_option in
712
  --)
713
    ac_dashdash=yes ;;
714

  
715
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
716
    ac_prev=bindir ;;
717
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
718
    bindir=$ac_optarg ;;
719

  
720
  -build | --build | --buil | --bui | --bu)
721
    ac_prev=build_alias ;;
722
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
723
    build_alias=$ac_optarg ;;
724

  
725
  -cache-file | --cache-file | --cache-fil | --cache-fi \
726
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
727
    ac_prev=cache_file ;;
728
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
729
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
730
    cache_file=$ac_optarg ;;
731

  
732
  --config-cache | -C)
733
    cache_file=config.cache ;;
734

  
735
  -datadir | --datadir | --datadi | --datad)
736
    ac_prev=datadir ;;
737
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
738
    datadir=$ac_optarg ;;
739

  
740
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
741
  | --dataroo | --dataro | --datar)
742
    ac_prev=datarootdir ;;
743
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
744
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
745
    datarootdir=$ac_optarg ;;
746

  
747
  -disable-* | --disable-*)
748
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
749
    # Reject names that are not valid shell variable names.
750
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
751
      as_fn_error $? "invalid feature name: $ac_useropt"
752
    ac_useropt_orig=$ac_useropt
753
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
754
    case $ac_user_opts in
755
      *"
756
"enable_$ac_useropt"
757
"*) ;;
758
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
759
	 ac_unrecognized_sep=', ';;
760
    esac
761
    eval enable_$ac_useropt=no ;;
762

  
763
  -docdir | --docdir | --docdi | --doc | --do)
764
    ac_prev=docdir ;;
765
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
766
    docdir=$ac_optarg ;;
767

  
768
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
769
    ac_prev=dvidir ;;
770
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
771
    dvidir=$ac_optarg ;;
772

  
773
  -enable-* | --enable-*)
774
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
775
    # Reject names that are not valid shell variable names.
776
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
777
      as_fn_error $? "invalid feature name: $ac_useropt"
778
    ac_useropt_orig=$ac_useropt
779
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
780
    case $ac_user_opts in
781
      *"
782
"enable_$ac_useropt"
783
"*) ;;
784
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
785
	 ac_unrecognized_sep=', ';;
786
    esac
787
    eval enable_$ac_useropt=\$ac_optarg ;;
788

  
789
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
790
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
791
  | --exec | --exe | --ex)
792
    ac_prev=exec_prefix ;;
793
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
794
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
795
  | --exec=* | --exe=* | --ex=*)
796
    exec_prefix=$ac_optarg ;;
797

  
798
  -gas | --gas | --ga | --g)
799
    # Obsolete; use --with-gas.
800
    with_gas=yes ;;
801

  
802
  -help | --help | --hel | --he | -h)
803
    ac_init_help=long ;;
804
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
805
    ac_init_help=recursive ;;
806
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
807
    ac_init_help=short ;;
808

  
809
  -host | --host | --hos | --ho)
810
    ac_prev=host_alias ;;
811
  -host=* | --host=* | --hos=* | --ho=*)
812
    host_alias=$ac_optarg ;;
813

  
814
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
815
    ac_prev=htmldir ;;
816
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
817
  | --ht=*)
818
    htmldir=$ac_optarg ;;
819

  
820
  -includedir | --includedir | --includedi | --included | --include \
821
  | --includ | --inclu | --incl | --inc)
822
    ac_prev=includedir ;;
823
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
824
  | --includ=* | --inclu=* | --incl=* | --inc=*)
825
    includedir=$ac_optarg ;;
826

  
827
  -infodir | --infodir | --infodi | --infod | --info | --inf)
828
    ac_prev=infodir ;;
829
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
830
    infodir=$ac_optarg ;;
831

  
832
  -libdir | --libdir | --libdi | --libd)
833
    ac_prev=libdir ;;
834
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
835
    libdir=$ac_optarg ;;
836

  
837
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
838
  | --libexe | --libex | --libe)
839
    ac_prev=libexecdir ;;
840
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
841
  | --libexe=* | --libex=* | --libe=*)
842
    libexecdir=$ac_optarg ;;
843

  
844
  -localedir | --localedir | --localedi | --localed | --locale)
845
    ac_prev=localedir ;;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff