summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2001-07-29 14:54:07 +0000
committerWim Taymans <wim.taymans@gmail.com>2001-07-29 14:54:07 +0000
commit667036d780caeefdef0c3ac1a86363d37d926753 (patch)
tree537a38feb95ef6faabc720ff2fa038a3ee50b369
parent044f044e33a37f9de28db66aea714739be13f7e8 (diff)
Added the initial build system.
Original commit message from CVS: Added the initial build system. Code to build against uninstalled gstreamer is not added yet.
-rw-r--r--ABOUT-NLS0
-rw-r--r--AUTHORS1
-rw-r--r--COPYING340
-rw-r--r--COPYING.LIB481
-rw-r--r--ChangeLog0
-rw-r--r--INSTALL182
-rw-r--r--LICENSE18
-rw-r--r--Makefile.am61
-rw-r--r--NEWS0
-rw-r--r--README5
-rw-r--r--REQUIREMENTS3
-rw-r--r--acconfig.h21
-rw-r--r--acinclude.m4122
-rwxr-xr-xautogen.sh134
-rw-r--r--configure.base540
-rw-r--r--gnl/Makefile.am24
-rw-r--r--gnl/gnl.c75
-rw-r--r--gnl/gnl.h42
-rw-r--r--gnl/gnlversion.h.in28
-rw-r--r--gnonlin-config.143
-rw-r--r--gnonlin-config.in67
-rw-r--r--gnonlin-uninstalled.pc.in11
-rw-r--r--gnonlin.pc.in11
-rwxr-xr-xmakeconfigure17
-rw-r--r--stamp.h.in1
-rw-r--r--test/Makefile.am4
26 files changed, 2231 insertions, 0 deletions
diff --git a/ABOUT-NLS b/ABOUT-NLS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ABOUT-NLS
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..26da2f1
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1 @@
+Wim Taymans <wim.taymans@chello.be>
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..d60c31a
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
diff --git a/COPYING.LIB b/COPYING.LIB
new file mode 100644
index 0000000..eb685a5
--- /dev/null
+++ b/COPYING.LIB
@@ -0,0 +1,481 @@
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1991 Free Software Foundation, Inc.
+ 675 Mass Ave, Cambridge, MA 02139, USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the library GPL. It is
+ numbered 2 because it goes with version 2 of the ordinary GPL.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Library General Public License, applies to some
+specially designated Free Software Foundation software, and to any
+other libraries whose authors decide to use it. You can use it for
+your libraries, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if
+you distribute copies of the library, or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link a program with the library, you must provide
+complete object files to the recipients so that they can relink them
+with the library, after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ Our method of protecting your rights has two steps: (1) copyright
+the library, and (2) offer you this license which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ Also, for each distributor's protection, we want to make certain
+that everyone understands that there is no warranty for this free
+library. If the library is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original
+version, so that any problems introduced by others will not reflect on
+the original authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that companies distributing free
+software will individually obtain patent licenses, thus in effect
+transforming the program into proprietary software. To prevent this,
+we have made it clear that any patent must be licensed for everyone's
+free use or not licensed at all.
+
+ Most GNU software, including some libraries, is covered by the ordinary
+GNU General Public License, which was designed for utility programs. This
+license, the GNU Library General Public License, applies to certain
+designated libraries. This license is quite different from the ordinary
+one; be sure to read it in full, and don't assume that anything in it is
+the same as in the ordinary license.
+
+ The reason we have a separate public license for some libraries is that
+they blur the distinction we usually make between modifying or adding to a
+program and simply using it. Linking a program with a library, without
+changing the library, is in some sense simply using the library, and is
+analogous to running a utility program or application program. However, in
+a textual and legal sense, the linked executable is a combined work, a
+derivative of the original library, and the ordinary General Public License
+treats it as such.
+
+ Because of this blurred distinction, using the ordinary General
+Public License for libraries did not effectively promote software
+sharing, because most developers did not use the libraries. We
+concluded that weaker conditions might promote sharing better.
+
+ However, unrestricted linking of non-free programs would deprive the
+users of those programs of all benefit from the free status of the
+libraries themselves. This Library General Public License is intended to
+permit developers of non-free programs to use free libraries, while
+preserving your freedom as a user of such programs to change the free
+libraries that are incorporated in them. (We have not seen how to achieve
+this as regards changes in header files, but we have achieved it as regards
+changes in the actual functions of the Library.) The hope is that this
+will lead to faster development of free libraries.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, while the latter only
+works together with the library.
+
+ Note that it is possible for a library to be covered by the ordinary
+General Public License rather than by this special one.
+
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library which
+contains a notice placed by the copyright holder or other authorized
+party saying it may be distributed under the terms of this Library
+General Public License (also called "this License"). Each licensee is
+addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also compile or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ c) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ d) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the source code distributed need not include anything that is normally
+distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Library General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ Appendix: How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free
+ Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ChangeLog
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..b42a17a
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,182 @@
+Basic Installation
+==================
+
+ These are generic installation instructions.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, a file
+`config.cache' that saves the results of its tests to speed up
+reconfiguring, and a file `config.log' containing compiler output
+(useful mainly for debugging `configure').
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If at some point `config.cache'
+contains results you don't want to keep, you may remove or edit it.
+
+ The file `configure.in' is used to create `configure' by a program
+called `autoconf'. You only need `configure.in' if you want to change
+it or regenerate `configure' using a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system. If you're
+ using `csh' on an old version of System V, you might need to type
+ `sh ./configure' instead to prevent `csh' from trying to execute
+ `configure' itself.
+
+ Running `configure' takes awhile. While running, it prints some
+ messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+Compilers and Options
+=====================
+
+ Some systems require unusual options for compilation or linking that
+the `configure' script does not know about. You can give `configure'
+initial values for variables by setting them in the environment. Using
+a Bourne-compatible shell, you can do that on the command line like
+this:
+ CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
+
+Or on systems that have the `env' program, you can do it like this:
+ env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
+
+Compiling For Multiple Architectures
+====================================
+
+ You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ If you have to use a `make' that does not supports the `VPATH'
+variable, you have to compile the package for one architecture at a time
+in the source code directory. After you have installed the package for
+one architecture, use `make distclean' before reconfiguring for another
+architecture.
+
+Installation Names
+==================
+
+ By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc. You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PATH'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+give `configure' the option `--exec-prefix=PATH', the package will use
+PATH as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=PATH' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+ Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+ There may be some features `configure' can not figure out
+automatically, but needs to determine by the type of host the package
+will run on. Usually `configure' can figure that out, but if it prints
+a message saying it can not guess the host type, give it the
+`--host=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name with three fields:
+ CPU-COMPANY-SYSTEM
+
+See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the host type.
+
+ If you are building compiler tools for cross-compiling, you can also
+use the `--target=TYPE' option to select the type of system they will
+produce code for and the `--build=TYPE' option to select the type of
+system on which you are compiling the package.
+
+Sharing Defaults
+================
+
+ If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Operation Controls
+==================
+
+ `configure' recognizes the following options to control how it
+operates.
+
+`--cache-file=FILE'
+ Use and save the results of the tests in FILE instead of
+ `./config.cache'. Set FILE to `/dev/null' to disable caching, for
+ debugging `configure'.
+
+`--help'
+ Print a summary of the options to `configure', and exit.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`--version'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`configure' also accepts some other, not widely useful, options.
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..f349d90
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,18 @@
+/* Gnonlin
+ * Copyright (C) <2001> Wim Taymans <wim.taymans@chello.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..a057d99
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,61 @@
+PACKAGE = @PACKAGE@
+VERSION = @VERSION@
+
+if BUILD_DOCS
+SUBDIRS_DOCS = docs
+else
+SUBDIRS_DOCS =
+endif
+
+if BUILD_TESTS
+SUBDIRS_TESTS = test
+else
+SUBDIRS_TESTS =
+endif
+
+if BUILD_EXAMPLES
+SUBDIRS_EXAMPLES = examples
+else
+SUBDIRS_EXAMPLES =
+endif
+
+SUBDIRS = gnl $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) $(SUBDIRS_DOCS)
+
+# These are all the possible subdirs
+DIST_SUBDIRS = gnl test examples docs
+
+
+bin_SCRIPTS = gnonlin-config
+
+m4datadir = $(datadir)/aclocal
+m4data_DATA = gnonlin.m4
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gnonlin.pc
+
+man_MANS = gnonlin-config.1
+
+EXTRA_DIST = gnonlin.spec.in gnonlin-config.in gnonlin.m4 \
+ gnonlin.pc.in gnonlin-uninstalled.pc.in \
+ configure.base autogen.sh \
+ LICENSE REQUIREMENTS ABOUT-NLS $(man_MANS)
+
+dist-hook:
+ cp gnonlin.spec $(distdir)
+
+rpm: dist
+ rpm -ta $(distdir).tar.gz
+
+deb:
+ dpkg-buildpacakge -rfakeroot -us -uc
+
+deb-maint:
+ debuild
+
+# Rules to generate autoconf scripts if configure.base is updated
+$(top_srcdir)/configure.in: $(top_srcdir)/configure.base
+ $(top_srcdir)/makeconfigure <$(top_srcdir)/configure.base >$(top_srcdir)/configure.in configure.in
+
+$(top_srcdir)/configure.ac: $(top_srcdir)/configure.base
+ $(top_srcdir)/makeconfigure <$(top_srcdir)/configure.base >$(top_srcdir)/configure.ac configure.ac
+
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/NEWS
diff --git a/README b/README
new file mode 100644
index 0000000..af5214d
--- /dev/null
+++ b/README
@@ -0,0 +1,5 @@
+Gnonlin is a library built on top of GStreamer (http://gstreamer.net) which provides
+support for writing non-linear audio and video editing applications. It introduces
+the concept of a timeline.
+
+
diff --git a/REQUIREMENTS b/REQUIREMENTS
new file mode 100644
index 0000000..a3452d3
--- /dev/null
+++ b/REQUIREMENTS
@@ -0,0 +1,3 @@
+You need to have GStreamer (cvs version). You can use an installed version of
+GStreamer or from its build dir.
+
diff --git a/acconfig.h b/acconfig.h
new file mode 100644
index 0000000..2abfbaa
--- /dev/null
+++ b/acconfig.h
@@ -0,0 +1,21 @@
+#undef PACKAGE
+#undef VERSION
+
+/* Gettext stuff */
+#undef ENABLE_NLS
+#undef HAVE_CATGETS
+#undef HAVE_GETTEXT
+#undef HAVE_LC_MESSAGES
+#undef HAVE_STPCPY
+
+#undef USE_GLIB2
+
+#undef GNL_CONFIG_DIR
+
+#undef HAVE_ATOMIC_H
+
+#undef GST_DEBUG_ENABLED
+#undef GST_INFO_ENABLED
+#undef GST_DEBUG_COLOR
+
+#undef GST_DISABLE_LOADSAVE
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644
index 0000000..7d25780
--- /dev/null
+++ b/acinclude.m4
@@ -0,0 +1,122 @@
+dnl Perform a check for a feature for GStreamer
+dnl Richard Boulton <richard-alsa@tartarus.org>
+dnl Last modification: 25/06/2001
+dnl GNL_CHECK_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION,
+dnl DEPENDENT-PLUGINS, TEST-FOR-FEATURE,
+dnl DISABLE-BY-DEFAULT, ACTION-IF-USE, ACTION-IF-NOTUSE)
+dnl
+dnl This macro adds a command line argument to enable the user to enable
+dnl or disable a feature, and if the feature is enabled, performs a supplied
+dnl test to check if the feature is available.
+dnl
+dnl The test should define HAVE_<FEATURE-NAME> to "yes" or "no" depending
+dnl on whether the feature is available.
+dnl
+dnl The macro will set USE_<<FEATURE-NAME> to "yes" or "no" depending on
+dnl whether the feature is to be used.
+dnl
+dnl The macro will call AM_CONDITIONAL(USE_<<FEATURE-NAME>, ...) to allow
+dnl the feature to control what is built in Makefile.ams. If you want
+dnl additional actions resulting from the test, you can add them with the
+dnl ACTION-IF-USE and ACTION-IF-NOTUSE parameters.
+dnl
+dnl FEATURE-NAME is the name of the feature, and should be in
+dnl purely upper case characters.
+dnl FEATURE-DESCRIPTION is used to describe the feature in help text for
+dnl the command line argument.
+dnl DEPENDENT-PLUGINS lists any plugins which depend on this feature.
+dnl TEST-FOR-FEATURE is a test which sets HAVE_<FEATURE-NAME> to "yes"
+dnl or "no" depending on whether the feature is
+dnl available.
+dnl DISABLE-BY-DEFAULT if "disabled", the feature is disabled by default,
+dnl if any other value, the feature is enabled by default.
+dnl ACTION-IF-USE any extra actions to perform if the feature is to be
+dnl used.
+dnl ACTION-IF-NOTUSE any extra actions to perform if the feature is not to
+dnl be used.
+dnl
+AC_DEFUN(GNL_CHECK_FEATURE,
+[dnl
+builtin(define, [gst_endisable], ifelse($5, [disabled], [enable], [disable]))dnl
+AC_ARG_ENABLE(translit([$1], A-Z, a-z),
+ [ ]builtin(format, --%-26s gst_endisable %s, gst_endisable-translit([$1], A-Z, a-z), [$2]ifelse([$3],,,: [$3])),
+ [ case "${enableval}" in
+ yes) USE_[$1]=yes ;;
+ no) USE_[$1]=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-translit([$1], A-Z, a-z)) ;;
+ esac],
+ [ USE_$1=]ifelse($5, [disabled], [no], [yes])) dnl DEFAULT
+
+dnl *** If it's enabled
+if test x$USE_[$1] = xyes; then
+ gst_check_save_LIBS=$LIBS
+ gst_check_save_LDFLAGS=$LDFLAGS
+ gst_check_save_CFLAGS=$CFLAGS
+ gst_check_save_CPPFLAGS=$CPPFLAGS
+ gst_check_save_CXXFLAGS=$CXXFLAGS
+ HAVE_[$1]=no
+ $4
+ LIBS=$gst_check_save_LIBS
+ LDFLAGS=$gst_check_save_LDFLAGS
+ CFLAGS=$gst_check_save_CFLAGS
+ CPPFLAGS=$gst_check_save_CPPFLAGS
+ CXXFLAGS=$gst_check_save_CXXFLAGS
+
+ dnl If it isn't found, unset USE_[$1]
+ if test x$HAVE_[$1] = xno; then
+ USE_[$1]=no
+ fi
+fi
+dnl *** Warn if it's disabled or not found
+if test x$USE_[$1] = xyes; then
+ ifelse([$6], , :, [$6])
+else
+ ifelse([$3], , :, [AC_MSG_WARN(
+***** NOTE: These plugins won't be built: [$3]
+)])
+ ifelse([$7], , :, [$7])
+fi
+dnl *** Define the conditional as appropriate
+AM_CONDITIONAL(USE_[$1], test x$USE_[$1] = xyes)
+])
+
+dnl Use a -config program which accepts --cflags and --libs parameters
+dnl to set *_CFLAGS and *_LIBS and check existence of a feature.
+dnl Richard Boulton <richard-alsa@tartarus.org>
+dnl Last modification: 26/06/2001
+dnl GNL_CHECK_CONFIGPROG(FEATURE-NAME, CONFIG-PROG-FILENAME, MODULES)
+dnl
+dnl This check was written for GStreamer: it should be renamed and checked
+dnl for portability if you decide to use it elsewhere.
+dnl
+AC_DEFUN(GNL_CHECK_CONFIGPROG,
+[
+ AC_PATH_PROG([$1]_CONFIG, [$2], no)
+ if test x$[$1]_CONFIG = xno; then
+ [$1]_LIBS=
+ [$1]_CFLAGS=
+ HAVE_[$1]=no
+ else
+ [$1]_LIBS=`[$2] --libs [$3]`
+ [$1]_CFLAGS=`[$2] --cflags [$3]`
+ HAVE_[$1]=yes
+ fi
+ AC_SUBST([$1]_LIBS)
+ AC_SUBST([$1]_CFLAGS)
+])
+
+
+dnl sidplay stuff (taken from xmms)
+AC_DEFUN(AC_FIND_FILE,
+[
+ $3=NO
+ for i in $2; do
+ for j in $1; do
+ if test -r "$i/$j"; then
+ $3=$i
+ break 2
+ fi
+ done
+ done
+])
+
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..6daaa79
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,134 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+DIE=0
+package=Gnonlin
+srcfile=gnl/gnlsource.h
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile $package."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/"
+ DIE=1
+}
+
+(automake --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have automake installed to compile $package."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/"
+ DIE=1
+}
+automakevermin=`(automake --version|head -n 1|sed 's/^.* //;s/\./ /g;';echo "1 4")|sort -n|head -n 1`
+automakevergood=`(automake --version|head -n 1|sed 's/^.* //;s/\./ /g;';echo "1 4f")|sort -n|head -n 1`
+if test "x$automakevermin" != "x1 4"; then
+# version is less than 1.4, the minimum suitable version
+ echo
+ echo "You must have automake version 1.4 or greater installed."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/"
+ DIE=1
+fi
+
+
+(pkg-config --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have pkg-config installed to compile $package."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at:"
+ echo "http://www.freedesktop.org/software/pkgconfig/"
+ DIE=1
+}
+
+
+(libtool --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have libtool installed to compile $package."
+ echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
+ DIE=1
+}
+
+libtool_version=`libtool --version | sed 's/^.* \([0-9\.]*\) .*$/\1/'`
+libtool_major=`echo $libtool_version | cut -d. -f1`
+libtool_minor=`echo $libtool_version | cut -d. -f2`
+libtool_micro=`echo $libtool_version | cut -d. -f3`
+if [ x$libtool_micro = x ]; then
+ libtool_micro=0
+fi
+if [ $libtool_major -le 1 ]; then
+ if [ $libtool_major -lt 1 ]; then
+ echo
+ echo "You must have libtool 1.3.5 or greater to compile $package."
+ echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
+ DIE=1
+ elif [ $libtool_minor -le 3 ]; then
+ if [ $libtool_minor -lt 3 ]; then
+ echo
+ echo "You must have libtool 1.3.5 or greater to compile $package."
+ echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
+ DIE=1
+ elif [ $libtool_micro -lt 5 ]; then
+ echo
+ echo "You must have libtool 1.3.5 or greater to compile $package."
+ echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
+ DIE=1
+ fi
+ fi
+fi
+
+if test "$DIE" -eq 1; then
+ exit 1
+fi
+
+test -f $srcfile || {
+ echo "You must run this script in the top-level $package directory"
+ exit 1
+}
+
+if test -z "$*"; then
+ echo "I am going to run ./configure with no arguments - if you wish "
+ echo "to pass any to it, please specify them on the $0 command line."
+fi
+
+
+# Generate configure.in and configure.ac
+./makeconfigure <configure.base > configure.in configure.in
+./makeconfigure <configure.base > configure.ac configure.ac
+
+libtoolize --copy --force
+aclocal $ACLOCAL_FLAGS || {
+ echo
+ echo "aclocal failed - check that all needed development files are present on system"
+ exit 1
+}
+autoheader || {
+ echo
+ echo "autoheader failed"
+ exit 1
+}
+autoconf || {
+ echo
+ echo "autoconf failed"
+ #exit 1
+}
+automake --add-missing || {
+ echo
+ echo "automake failed"
+ #exit 1
+}
+
+# now remove the cache, because it can be considered dangerous in this case
+rm -f config.cache
+
+# The new configure options for busy application developers (Hadess)
+#./configure --enable-maintainer-mode --enable-debug --enable-debug-verbose
+
+./configure --enable-maintainer-mode --enable-plugin-builddir --enable-debug --enable-DEBUG "$@" || {
+ echo
+ echo "configure failed"
+ exit 1
+}
+
+echo
+echo "Now type 'make' to compile $package."
diff --git a/configure.base b/configure.base
new file mode 100644
index 0000000..2a74db1
--- /dev/null
+++ b/configure.base
@@ -0,0 +1,540 @@
+dnl Note: this file is generated from configure.base by autogen.sh
+SUBSTFOR configure.ac:AC_INIT
+SUBSTFOR configure.ac:AC_CONFIG_SRCDIR([gnl/gnlsource.h])
+SUBSTFOR configure.in:AC_INIT(gnl/gnlsource.h)
+
+SUBSTFOR configure.ac:AC_CANONICAL_TARGET([])
+SUBSTFOR configure.in:AC_CANONICAL_SYSTEM
+
+AM_CONFIG_HEADER(config.h)
+
+GNL_VERSION_MAJOR=0
+GNL_VERSION_MINOR=0
+GNL_VERSION_MICRO=1
+GNL_VERSION=$GNL_VERSION_MAJOR.$GNL_VERSION_MINOR.$GNL_VERSION_MICRO
+
+PACKAGE=gnonlin
+VERSION=$GNL_VERSION
+
+AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
+AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
+AC_SUBST(PACKAGE)
+AC_SUBST(VERSION)
+
+dnl libtool
+GNL_CURRENT=0
+GNL_REVISION=0
+GNL_AGE=0
+GNL_LIBVERSION=$GNL_CURRENT:$GNL_REVISION:$GNL_AGE
+
+AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
+dnl Add parameters for aclocal
+dnl (This must come after AM_INIT_AUTOMAKE, since it modifies ACLOCAL)
+ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
+
+AC_SUBST(GNL_VERSION_MAJOR)
+AC_SUBST(GNL_VERSION_MINOR)
+AC_SUBST(GNL_VERSION_MICRO)
+AC_SUBST(GNL_VERSION)
+
+AC_SUBST(GNL_CURRENT)
+AC_SUBST(GNL_REVISION)
+AC_SUBST(GNL_AGE)
+AC_SUBST(GNL_LIBVERSION)
+
+
+AM_MAINTAINER_MODE
+
+AC_PROG_CC
+AC_PROG_CXX
+AC_PROG_CXXCPP
+AC_ISC_POSIX
+SUBSTFOR configure.ac:AC_HEADER_STDC([])
+SUBSTFOR configure.in:AC_STDC_HEADERS
+AC_ARG_PROGRAM
+
+dnl We disable static building for development, for time savings
+dnl *NOTE*: dnl this line before release, so release does static too
+AM_DISABLE_STATIC
+AC_LIBTOOL_DLOPEN
+AM_PROG_LIBTOOL
+
+CFLAGS=""
+
+dnl This is used for the -config script...
+builddir=`pwd`
+AC_SUBST(builddir)
+
+dnl ##############################
+dnl # Do automated configuration #
+dnl ##############################
+
+dnl Check for tools:
+dnl ================
+
+dnl check for gtkdoc
+AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-mkdb, true, false)
+AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-scanobj, :, false)
+AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-scan, :, false)
+AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-mktmpl, :, false)
+AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-mkdb, :, false)
+AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-mkhtml, :, false)
+AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-fixxref, :, false)
+
+dnl check for docbook tools
+AC_CHECK_PROG(HAVE_DB2HTML, db2html, true, false)
+AC_CHECK_PROG(HAVE_DB2PS, db2ps, true, false)
+AC_CHECK_PROG(HAVE_PS2PDF, ps2pdf, true, false)
+
+dnl check for image conversion tool
+AC_CHECK_PROG(HAVE_FIG2DEV, fig2dev, true, false)
+
+dnl The following is a hack: if fig2dev doesn't display an error message
+dnl for the desired type, we assume it supports it.
+HAVE_FIG2DEV_PNG=false
+if test "x$HAVE_FIG2DEV" = "xtrue" ; then
+ fig2dev_quiet=`fig2dev -L png </dev/null 2>&1 >/dev/null`
+ if test "x$fig2dev_quiet" = "x" ; then
+ HAVE_FIG2DEV_PNG=true
+ fi
+fi
+HAVE_FIG2DEV_EPS=false
+if test "x$HAVE_FIG2DEV" = "xtrue" ; then
+ fig2dev_quiet=`fig2dev -L eps </dev/null 2>&1 >/dev/null`
+ if test "x$fig2dev_quiet" = "x" ; then
+ HAVE_FIG2DEV_EPS=true
+ fi
+fi
+
+
+dnl Check for essential libraries first:
+dnl ====================================
+
+dnl Check for glib2
+GNL_CHECK_FEATURE(GLIB2, [use of glib-2.0 and GObject], , [
+ PKG_CHECK_MODULES(GLIB2, glib-2.0 gobject-2.0 gthread-2.0 gmodule-2.0,
+ HAVE_GLIB2=yes,HAVE_GLIB2=no)
+ AC_SUBST(GLIB2_LIBS)
+ AC_SUBST(GLIB2_CFLAGS)
+], disabled, [
+ CORE_LIBS="$CORE_LIBS $GLIB2_LIBS"
+ CORE_CFLAGS="$CORE_CFLAGS $GLIB2_CFLAGS"
+
+ AC_DEFINE(USE_GLIB2)
+ GNL_DEFINE_CFLAGS="$GNL_DEFINE_CFLAGS -DUSE_GLIB2"
+])
+AC_SUBST(USE_GLIB2)
+
+dnl FIXME: check for gtk2 and gnome2 - these conditionals are currently
+dnl always false.
+AM_CONDITIONAL(USE_GTK2, test "x$USE_GTK2" = "xyes")
+AC_SUBST(USE_GTK2)
+AM_CONDITIONAL(USE_GNOME2, test "x$USE_GNOME2" = "xyes")
+AC_SUBST(USE_GNOME2)
+
+if test x$USE_GLIB2 = xno; then
+ dnl Check for glib and gtk
+ AM_PATH_GLIB(1.2.0,,
+ AC_MSG_ERROR(Cannot find glib: Is glib-config in path?),
+ glib gmodule gthread)
+ AM_PATH_GTK(1.2.0,,
+ AC_MSG_ERROR(Cannot find gtk: Is gtk-config in path?))
+
+ CORE_LIBS="$CORE_LIBS $GLIB_LIBS $GTK_LIBS"
+ CORE_CFLAGS="$CORE_CFLAGS $GLIB_CFLAGS $GTK_CFLAGS"
+fi
+
+
+dnl Check for libxml
+AC_PATH_PROG(XML_CONFIG, xml-config, no)
+if test x$XML_CONFIG = xno; then
+ AC_MSG_ERROR(Couldn't find xml-config)
+fi
+xml_save_LIBS=$LIBS
+xml_save_CFLAGS=$CFLAGS
+XML_LIBS=`xml-config --libs`
+XML_CFLAGS=`xml-config --cflags`
+LIBS=$XML_LIBS
+CFLAGS=$XML_CFLAGS
+AC_CHECK_LIB(xml, xmlDocGetRootElement, ,
+ [ AC_MSG_ERROR(Need version 1.8.1 or better of libxml) ],
+ $XML_LIBS)
+LIBS=$xml_save_LIBS
+CFLAGS=$xml_save_CFLAGS
+AC_SUBST(XML_LIBS)
+AC_SUBST(XML_CFLAGS)
+CORE_LIBS="$CORE_LIBS $XML_LIBS"
+CORE_CFLAGS="$CORE_CFLAGS $XML_CFLAGS"
+
+
+dnl ==========================================================================
+dnl ========================= Macro definitions ==============================
+dnl ==========================================================================
+
+if test x$USE_GLIB2 = xyes; then
+ dnl we don't support gnome/gtk with glib2.0 yet
+ GNOME_LIBS=
+ GNOME_CFLAGS=
+ HAVE_GNOME=no
+ AC_MSG_WARN(gnome disabled for glib2.0)
+else
+ dnl Check for libgnome
+ GNL_CHECK_CONFIGPROG(GNOME, gnome-config, gnome gnomeui)
+fi
+
+dnl Check for libglade
+HAVE_LIBGLADE_GNOME="no"
+if test x$USE_GLIB2 = xyes; then
+ dnl no glade for glib2.0
+ LIBGLADE_GNOME_LIBS=
+ LIBGLADE_GNOME_CFLAGS=
+ AC_MSG_WARN(libglade disabled for glib2.0)
+else
+ AC_PATH_PROG(LIBGLADE_CONFIG_PATH, libglade-config, no)
+ if test x$LIBGLADE_CONFIG_PATH = xno; then
+ AC_MSG_WARN(Couldn't find libglade-config - Can't build gnlplay)
+ LIBGLADE_GNOME_LIBS=
+ LIBGLADE_GNOME_CFLAGS=
+ else
+ LIBGLADE_GNOME_LIBS=`libglade-config --libs gnome`
+ LIBGLADE_GNOME_CFLAGS=`libglade-config --cflags gnome`
+ libglade_save_CFLAGS="$CFLAGS"
+ libglade_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $LIBGLADE_GNOME_CFLAGS $GTK_CFLAGS"
+ LIBS="$LIBS $LIBGLADE_GNOME_LIBS $GTK_LIBS"
+ AC_TRY_LINK([#include <glade/glade.h>],[glade_gnome_init();],
+ HAVE_LIBGLADE_GNOME="yes",
+ AC_MSG_WARN(
+ [Couldn't find gnome libraries for libglade - Can't build gnlmediaplay and gnleditor])
+ )
+ CFLAGS="$libglade_save_CFLAGS"
+ LIBS="$libglade_save_LIBS"
+ fi
+fi
+AC_SUBST(LIBGLADE_GNOME_LIBS)
+AC_SUBST(LIBGLADE_GNOME_CFLAGS)
+
+dnl Check for atomic.h
+dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter
+dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H)
+AC_CHECK_HEADER(asm/atomic.h, HAVE_ATOMIC_H=yes, HAVE_ATOMIC_H=no)
+dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't)
+if test x$HAVE_ATOMIC_H = xyes; then
+ AC_TRY_RUN([
+#include "asm/atomic.h"
+main() { atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;}
+ ],, [
+ # Not successful
+ if test x$HAVE_ATOMIC_H = xyes; then
+ AC_MSG_WARN(Atomic reference counting is out of date: doing without.)
+ fi
+ HAVE_ATOMIC_H=no
+ ], [
+ # Cross compiling
+ AC_MSG_RESULT(yes)
+ AC_MSG_WARN(Can't check properly for atomic reference counting. Assuming OK.)
+ ])
+fi
+
+
+dnl ######################################################################
+dnl # Check command line parameters, and set shell variables accordingly #
+dnl ######################################################################
+
+AC_ARG_ENABLE(libmmx,
+[ --enable-libmmx use libmmx, if available],
+[case "${enableval}" in
+ yes) USE_LIBMMX=$HAVE_LIBMMX ;;
+ no) USE_LIBMMX=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-libmmx) ;;
+esac],
+[USE_LIBMMX=$HAVE_LIBMMX]) dnl Default value
+
+AC_ARG_ENABLE(atomic,
+[ --enable-atomic use atomic reference counting header],
+[case "${enableval}" in
+ yes) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
+ noset) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
+ no) USE_ATOMIC_H=no;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-atomic) ;;
+esac],
+[USE_ATOMIC_H=$HAVE_ATOMIC_H]) dnl Default value
+
+AC_ARG_ENABLE(plugin-builddir,
+[ --enable-plugin-builddir allow tests/demos to use non-installed plugins ],
+[case "${enableval}" in
+ yes) PLUGINS_USE_BUILDDIR=yes ;;
+ no) PLUGINS_USE_BUILDDIR=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugin-builddir) ;;
+esac],
+[PLUGINS_USE_BUILDDIR=no]) dnl Default value
+
+AC_ARG_ENABLE(debug,
+[ --enable-debug compile with -g debugging info],
+[case "${enableval}" in
+ yes) USE_DEBUG=yes ;;
+ no) USE_DEBUG=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
+esac],
+[USE_DEBUG=no]) dnl Default value
+
+AC_ARG_ENABLE(DEBUG,
+[ --enable-DEBUG compiles in a large number of debugging messages],
+[case "${enableval}" in
+ yes) ENABLE_DEBUG=yes ;;
+ no) ENABLE_DEBUG=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-DEBUG) ;;
+esac],
+[ENABLE_DEBUG=no]) dnl Default value
+if test x$ENABLE_DEBUG = xyes; then
+ AC_DEFINE(GNL_DEBUG_ENABLED, 1, [Define if DEBUG statements should be compiled in])
+fi
+
+AC_ARG_ENABLE(INFO,
+[ --disable-INFO disables compilation of informational messages],
+[case "${enableval}" in
+ yes) ENABLE_INFO=yes ;;
+ no) ENABLE_INFO=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-INFO) ;;
+esac],
+[ENABLE_INFO=yes]) dnl Default value
+if test x$ENABLE_INFO = xyes; then
+ AC_DEFINE(GNL_INFO_ENABLED, 1, [Define if INFO statements should be compiled in])
+fi
+
+AC_ARG_ENABLE(debug-color,
+[ --disable-debug-color disables color output of DEBUG and INFO output],
+[case "${enableval}" in
+ yes) ENABLE_DEBUG_COLOR=yes ;;
+ no) ENABLE_DEBUG_COLOR=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug-color) ;;
+esac],
+[ENABLE_DEBUG_COLOR=yes]) dnl Default value
+if test "x$ENABLE_DEBUG_COLOR" = xyes; then
+ AC_DEFINE(GNL_DEBUG_COLOR, 1, [Define if debugging messages should be colorized])
+fi
+
+AC_ARG_ENABLE(profiling,
+[ --enable-profiling adds -pg to compiler commandline, for profiling],
+[case "${enableval}" in
+ yes) USE_PROFILING=yes ;;
+ no) UES_PROFILING=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-profiling) ;;
+esac],
+[USE_PROFILING=no]) dnl Default value
+
+dnl Default value
+GNL_CONFIG_DIR=${sysconfdir}/gnonlin
+AC_ARG_WITH(configdir,
+[ --with-configdir specify path to use for configdir],
+[case "${withval}" in
+ yes) AC_MSG_ERROR(bad value ${withval} for --with-configdir) ;;
+ no) AC_MSG_ERROR(bad value ${withval} for --with-configdir) ;;
+ *) GNL_CONFIG_DIR="${withval}" ;;
+esac],
+[:]) dnl Default value
+
+AC_ARG_ENABLE(docs-build,
+[ --enable-docs-build enable building of documentation],
+[case "${enableval}" in
+ yes) BUILD_DOCS=yes ;;
+ no) BUILD_DOCS=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-docs-build) ;;
+esac],
+[BUILD_DOCS=no]) dnl Default value
+
+AC_ARG_ENABLE(plugin-docs,
+[ --enable-plugin-docs enable the building of plugin documentation
+ (this is currently broken, so off by default)],
+[case "${enableval}" in
+ yes) BUILD_PLUGIN_DOCS=yes ;;
+ no) BUILD_PLUGIN_DOCS=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugin-docs) ;;
+esac],
+[BUILD_PLUGIN_DOCS=no]) dnl Default value
+
+AC_ARG_ENABLE(tests,
+[ --disable-tests disable building test apps],
+[case "${enableval}" in
+ yes) BUILD_TESTS=yes ;;
+ no) BUILD_TESTS=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;;
+esac],
+[BUILD_TESTS=yes]) dnl Default value
+
+AC_ARG_ENABLE(examples,
+[ --disable-examples disable building examples],
+[case "${enableval}" in
+ yes) BUILD_EXAMPLES=yes ;;
+ no) BUILD_EXAMPLES=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --disable-examples) ;;
+esac],
+[BUILD_EXAMPLES=yes]) dnl Default value
+
+dnl Next, check for the optional components:
+dnl ========================================
+
+
+AC_DEFUN(GNL_SUBSYSTEM_DISABLE,
+[dnl
+dnl Add a subsystem --disable flag and all the necessary symbols and substitions
+dnl
+AC_ARG_ENABLE(translit([$1], A-Z, a-z),
+[ ]builtin(format, --disable-%-17s disable %s, translit([$1], A-Z, a-z), $2),
+[ case "${enableval}" in
+ yes) GNL_DISABLE_[$1]=no ;;
+ no) GNL_DISABLE_[$1]=yes ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-translit([$1], A-Z, a-z)) ;;
+ esac],
+[GNL_DISABLE_[$1]=no]) dnl Default value
+if test x$GNL_DISABLE_[$1] = xyes; then
+ AC_DEFINE(GNL_DISABLE_[$1], 1, [Disable $2])
+ GNL_DISABLE_[$1]_DEFINE=-DGNL_DISABLE_[$1]
+fi
+AM_CONDITIONAL(GNL_DISABLE_[$1], test x$GNL_DISABLE_[$1] = xyes)
+AC_SUBST(GNL_DISABLE_[$1]_DEFINE)
+GNL_SUBSYSTEM_DISABLE_DEFINES="$GNL_SUBSYTEM_DISABLE_DEFINES $GNL_DISABLE_[$1]_DEFINE"
+])
+
+GNL_SUBSYSTEM_DISABLE(LOADSAVE,[pipeline XML load/save])
+GNL_SUBSYSTEM_DISABLE(TYPEFIND,[typefind plugin],)
+GNL_SUBSYSTEM_DISABLE(AUTOPLUG,[autoplugger subsystem])
+GNL_SUBSYSTEM_DISABLE(PARSE,[command-line parser])
+GNL_SUBSYSTEM_DISABLE(TRACE,[tracing subsystem])
+
+GNL_DEFINE_CFLAGS="$GNL_DEFINE_CFLAGS $GNL_SUBSYSTEM_DISABLE_DEFINES"
+
+
+dnl ################################################
+dnl # Set defines according to variables set above #
+dnl ################################################
+
+
+dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
+dnl HAVE_ and it is likely to be easier to stick with the old name
+
+if test "x$USE_LIBMMX" = xyes; then
+ AC_DEFINE(HAVE_LIBMMX, 1, [Define if libmmx is available])
+fi
+
+if test "x$USE_ATOMIC_H" = xyes; then
+ AC_DEFINE(HAVE_ATOMIC_H, 1, [Define if atomic.h header file is available])
+fi
+
+if test "x$USE_DEBUG" = xyes; then
+ CFLAGS="$CFLAGS -g"
+fi
+
+if test "x$USE_PROFILING" = xyes; then
+ CFLAGS="$CFLAGS -pg"
+ FOMIT_FRAME_POINTER=""
+else
+ FOMIT_FRAME_POINTER="-fomit-frame-pointer"
+fi
+
+dnl #############################
+dnl # Set automake conditionals #
+dnl #############################
+
+dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
+dnl HAVE_ and it is likely to be easier to stick with the old name
+AM_CONDITIONAL(HAVE_LIBMMX, test "x$USE_LIBMMX" = "xyes")
+AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes")
+AM_CONDITIONAL(HAVE_LIBGLADE_GNOME, test "x$HAVE_LIBGLADE_GNOME" = "xyes")
+AM_CONDITIONAL(HAVE_GNOME, test "x$HAVE_GNOME" = "xyes")
+AM_CONDITIONAL(HAVE_GTK_DOC, $HAVE_GTK_DOC)
+AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
+AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
+AM_CONDITIONAL(BUILD_EXAMPLES, test "x$BUILD_EXAMPLES" = "xyes")
+AM_CONDITIONAL(HAVE_DB2HTML, $HAVE_DB2HTML)
+AM_CONDITIONAL(HAVE_DB2PS, $HAVE_DB2PS)
+AM_CONDITIONAL(HAVE_PS2PDF, $HAVE_PS2PDF)
+AM_CONDITIONAL(HAVE_FIG2DEV_PNG, $HAVE_FIG2DEV_PNG)
+AM_CONDITIONAL(HAVE_FIG2DEV_EPS, $HAVE_FIG2DEV_EPS)
+
+
+dnl ############################
+dnl # Set up some more defines #
+dnl ############################
+
+dnl Set location of configuration dir.
+dnl AC_DEFINE_UNQUOTED(GNL_CONFIG_DIR,"$GNL_CONFIG_DIR")
+AC_SUBST(GNL_CONFIG_DIR)
+
+
+dnl ##############################
+dnl # Set up the defaults cflags #
+dnl ##############################
+dnl CC="kgcc"
+if test "x$USE_PROFILING" = xyes; then
+ CFLAGS="$CORE_CFLAGS $CFLAGS -Wall"
+else
+ CFLAGS="$CORE_CFLAGS $CFLAGS -O6 -Wall"
+fi
+LIBS="$CORE_LIBS $LIBS"
+AC_SUBST(CORE_LIBS)
+AC_SUBST(CORE_CFLAGS)
+
+dnl Vars for everyone else
+GNL_LIBS="\$(top_builddir)/gnl/libgnl.la"
+GNL_CFLAGS="-I\$(top_srcdir) -I\$(top_srcdir)/include"
+AC_SUBST(GNL_LIBS)
+AC_SUBST(GNL_CFLAGS)
+
+dnl Private vars for libgnl only
+LIBGNL_LIBS="$LIBS"
+LIBGNL_CFLAGS="$CFLAGS $GNL_CFLAGS"
+AC_SUBST(LIBGNL_LIBS)
+AC_SUBST(LIBGNL_CFLAGS)
+
+dnl CFLAGS for everyone else
+CFLAGS="$GNL_CFLAGS $CFLAGS"
+
+dnl Needed to make automake 1.4g happy.
+dnl FIXME: find as properly, rather than just using CC
+AS="\$(CC)"
+
+dnl Having to AC_SUBST these is messy, but doesn't seem to do any harm.
+dnl I'm not sure whether it's really necessary, but it removes some warnings
+dnl when automake 1.4g runs, and may be beneficial elsewhere.
+AC_SUBST(LIBS)
+AC_SUBST(CFLAGS)
+AC_SUBST(CPPFLAGS)
+AC_SUBST(LDFLAGS)
+AC_SUBST(AS)
+AC_SUBST(ASFLAGS)
+
+AC_SUBST(GNL_DEFINE_CFLAGS)
+
+dnl #############################
+dnl # Configure the subpackages #
+dnl #############################
+
+dnl AC_CONFIG_SUBDIRS(gist)
+dnl AC_CONFIG_SUBDIRS(plugins/mp3decode/xing/libxing)
+
+dnl ##################################################
+dnl # Prepare informative messages to display at end #
+dnl ##################################################
+
+
+dnl #########################
+dnl # Make the output files #
+dnl #########################
+
+SUBSTFOR configure.ac:AC_OUTPUT(
+SUBSTFOR configure.ac:Makefile
+SUBSTFOR configure.in:AC_OUTPUT([Makefile
+gnl/Makefile
+gnl/gnlversion.h
+test/Makefile
+stamp.h
+gnonlin-config
+gnonlin.pc
+gnonlin-uninstalled.pc
+SUBSTFOR configure.in:])
+SUBSTFOR configure.in:AC_OUTPUT_COMMANDS([chmod +x gnonlin-config;
+SUBSTFOR configure.in:echo "$infomessages"], infomessages="$infomessages")
+SUBSTFOR configure.ac:,chmod +x gnonlin-config
+SUBSTFOR configure.ac:echo "$infomessages", infomessages="$infomessages"
+SUBSTFOR configure.ac:)
diff --git a/gnl/Makefile.am b/gnl/Makefile.am
new file mode 100644
index 0000000..6524d79
--- /dev/null
+++ b/gnl/Makefile.am
@@ -0,0 +1,24 @@
+# cheap trick to build . first...
+
+lib_LTLIBRARIES = libgnl.la
+
+EXTRA_libgnl_la_SOURCES =
+
+SUBDIRS = .
+DIST_SUBDIRS =
+
+libgnl_la_SOURCES = \
+ gnl.c \
+ gnlsource.c
+
+libgnlincludedir = $(includedir)/gnl
+libgnlinclude_HEADERS = \
+ gnl.h \
+ gnlsource.h
+
+noinst_HEADERS =
+
+CFLAGS = $(LIBGNL_CFLAGS) -D_GNU_SOURCE -DGST_CONFIG_DIR=\""@sysconfdir@/gnonlin"\"
+LIBS = $(LIBGNL_LIBS)
+libgnl_la_LDFLAGS = -version-info $(GNL_LIBVERSION)
+
diff --git a/gnl/gnl.c b/gnl/gnl.c
new file mode 100644
index 0000000..aef2fa1
--- /dev/null
+++ b/gnl/gnl.c
@@ -0,0 +1,75 @@
+
+#include <stdlib.h>
+
+#include "gnl.h"
+
+#define MAX_PATH_SPLIT 16
+
+gchar *_gnl_progname;
+
+
+static gboolean gnl_init_check (int *argc, gchar ***argv);
+
+/**
+ * gnl_init:
+ * @argc: pointer to application's argc
+ * @argv: pointer to application's argv
+ *
+ * Initializes the GStreamer library, setting up internal path lists,
+ * registering built-in elements, and loading standard plugins.
+ */
+void
+gnl_init (int *argc, char **argv[])
+{
+ if (!gnl_init_check (argc,argv)) {
+ exit (0);
+ }
+
+ gst_init (argc, argv);
+}
+
+/* returns FALSE if the program can be aborted */
+static gboolean
+gnl_init_check (int *argc,
+ gchar ***argv)
+{
+ gboolean ret = TRUE;
+ gboolean showhelp = FALSE;
+
+ _gnl_progname = NULL;
+
+ if (argc && argv) {
+ _gnl_progname = g_strdup(*argv[0]);
+
+ if (_gnl_progname == NULL) {
+ _gnl_progname = g_strdup("gnlprog");
+ }
+
+ return ret;
+}
+
+/**
+ * gnl_main:
+ *
+ * Enter the main GStreamer processing loop
+ */
+void
+gnl_main (void)
+{
+#ifndef USE_GLIB2
+ gtk_main ();
+#endif
+}
+
+/**
+ * gnl_main_quit:
+ *
+ * Exits the main GStreamer processing loop
+ */
+void
+gnl_main_quit (void)
+{
+#ifndef USE_GLIB2
+ gtk_main_quit ();
+#endif
+}
diff --git a/gnl/gnl.h b/gnl/gnl.h
new file mode 100644
index 0000000..d267d09
--- /dev/null
+++ b/gnl/gnl.h
@@ -0,0 +1,42 @@
+/* Gnonlin
+ * Copyright (C) <2001> Wim Taymans <wim.taymans@chello.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GNL_H__
+#define __GNL_H__
+
+#include <glib.h>
+#include <gst/gst.h>
+
+#include <gnl/gnlversion.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/* initialize GNL */
+void gnl_init(int *argc,char **argv[]);
+
+void gnl_main (void);
+void gnl_main_quit (void);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __GST_H__ */
diff --git a/gnl/gnlversion.h.in b/gnl/gnlversion.h.in
new file mode 100644
index 0000000..e60e491
--- /dev/null
+++ b/gnl/gnlversion.h.in
@@ -0,0 +1,28 @@
+/* Gnonlin
+ * Copyright (C) <2001> Wim Taymans <wim.taymans@chello.be>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GNL_VERSION_H__
+#define __GNL_VERSION_H__
+
+#define GNL_VERSION_MAJOR @GNL_VERSION_MAJOR@
+#define GNL_VERSION_MINOR @GNL_VERSION_MINOR@
+#define GNL_VERSION_MICRO @GNL_VERSION_MICRO@
+
+#endif /* __GNL_H__ */
+
diff --git a/gnonlin-config.1 b/gnonlin-config.1
new file mode 100644
index 0000000..254ae31
--- /dev/null
+++ b/gnonlin-config.1
@@ -0,0 +1,43 @@
+.TH GStreamer 1 "March 2001"
+.SH NAME
+gstreamer\-config - script to get information about the installed version of GStreamer
+.SH SYNOPSIS
+.B gstreamer\-config [\-\-prefix\fI[=DIR]\fP] [\-\-exec\-prefix\fI[=DIR]\fP] [\-\-version] [\-\-libs] [\-\-cflags]
+.SH DESCRIPTION
+.PP
+\fIgstreamer\-config\fP is a tool that is used to configure to determine
+the compiler and linker flags that should be used to compile
+and link programs that use \fIGStreamer\fP. It is also used internally
+to the .m4 macros for GNU autoconf that are included with \fIGStreamer\fP.
+.
+.SH OPTIONS
+.l
+\fIgstreamer\-config\fP accepts the following options:
+.TP 8
+.B \-\-version
+Print the currently installed version of \fIGStreamer\fP on the standard output.
+.TP 8
+.B \-\-libs
+Print the linker flags that are necessary to link a \fIGStreamer\fP program.
+.TP 8
+.B \-\-cflags
+Print the compiler flags that are necessary to compile a \fIGStreamer\fP program.
+.TP 8
+.B \-\-prefix=PREFIX
+If specified, use PREFIX instead of the installation prefix that \fIGStreamer\fP
+was built with when computing the output for the \-\-cflags and
+\-\-libs options. This option is also used for the exec prefix
+if \-\-exec\-prefix was not specified. This option must be specified
+before any \-\-libs or \-\-cflags options.
+.TP 8
+.B \-\-exec\-prefix=PREFIX
+If specified, use PREFIX instead of the installation exec prefix that
+\fIGStreamer\fP was built with when computing the output for the \-\-cflags
+and \-\-libs options. This option must be specified before any
+\-\-libs or \-\-cflags options.
+.SH SEE ALSO
+.BR gstreamer\-register (1),
+.BR gstreamer\-inspect (1),
+.BR gstreamer\-launch (1)
+.SH AUTHOR
+The GStreamer team at http://gstreamer.net/
diff --git a/gnonlin-config.in b/gnonlin-config.in
new file mode 100644
index 0000000..7bbbed0
--- /dev/null
+++ b/gnonlin-config.in
@@ -0,0 +1,67 @@
+#!/bin/sh
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+exec_prefix_set=no
+
+usage="\
+Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
+
+if test $# -eq 0; then
+ echo "${usage}" 1>&2
+ exit 1
+fi
+
+while test $# -gt 0; do
+ case "$1" in
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg= ;;
+ esac
+
+ case $1 in
+ --prefix=*)
+ prefix=$optarg
+ if `echo $prefix | grep -v -q '^/'` ; then
+ prefix=`pwd`/$prefix
+ fi
+ if test $exec_prefix_set = no ; then
+ exec_prefix=$optarg
+ fi
+ ;;
+ --prefix)
+ echo $prefix
+ ;;
+ --exec-prefix=*)
+ exec_prefix=$optarg
+ exec_prefix_set=yes
+ ;;
+ --exec-prefix)
+ echo $exec_prefix
+ ;;
+ --version)
+ echo @VERSION@
+ ;;
+ --cflags)
+ if test $prefix -ef @builddir@ ; then
+ includes=-I@builddir@
+ elif test @includedir@ != /usr/include ; then
+ includes=-I@includedir@
+ fi
+ echo $includes @CORE_CFLAGS@ @GNL_DEFINE_CFLAGS@
+ ;;
+ --libs)
+ if test $prefix -ef @builddir@ ; then
+ echo @builddir@/libgnl.la @CORE_LIBS@
+ else
+ libdirs=-L@libdir@
+ echo $libdirs -lgnl @CORE_LIBS@
+ fi
+ ;;
+ *)
+ echo "${usage}" 1>&2
+ exit 1
+ ;;
+ esac
+ shift
+done
+
diff --git a/gnonlin-uninstalled.pc.in b/gnonlin-uninstalled.pc.in
new file mode 100644
index 0000000..0ee1289
--- /dev/null
+++ b/gnonlin-uninstalled.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: GStreamer Uninstalled
+Description: Streaming-media framework, Not Installed
+Version: @VERSION@
+Requires: glib >= 1.2.0, gtk+ >= 1.2.0, libxml >= 1.8.1
+Libs: ${pcbuilddir}/${pcfiledir}/gst/libgst.la
+Cflags: -I${pcbuilddir}/${pcfiledir} @GST_DEFINE_CFLAGS@
diff --git a/gnonlin.pc.in b/gnonlin.pc.in
new file mode 100644
index 0000000..253d642
--- /dev/null
+++ b/gnonlin.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: GStreamer
+Description: Streaming-media framework
+Requires: glib >= 1.2.0, gtk+ >= 1.2.0, libxml >= 1.8.1
+Version: @VERSION@
+Libs: -L${libdir} -lgst
+Cflags: -I${includedir} @GST_DEFINE_CFLAGS@
diff --git a/makeconfigure b/makeconfigure
new file mode 100755
index 0000000..b3edc9f
--- /dev/null
+++ b/makeconfigure
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Run this to generate configure.in and configure.ac from configure.base
+
+# args: $1 - configure file to create
+
+sed "
+s/^SUBSTFOR $1://g;
+/^SUBSTFOR .*:.*/d;
+s/^ *GST_CHECK_FEATURE *(\\([A-Za-z0-9_]*\\) *,/translit(dnm, m, l) AM_CONDITIONAL(USE_\\1, true)\\
+GST_CHECK_FEATURE(\\1,/
+s/^ *GST_SUBSYSTEM_DISABLE *(\\([A-Za-z0-9_]*\\) *,/translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_\\1, true)\\
+GST_SUBSYSTEM_DISABLE(\\1,/
+s/^ *GST_CHECK_CONFIGPROG *(\\([A-Za-z0-9_]*\\) *,/translit(dnm, m, l) AC_SUBST(\\1_LIBS)\\
+GST_CHECK_CONFIGPROG(\\1,/" |
+sed "
+s/^ *GST_CHECK_CONFIGPROG *(\\([A-Za-z0-9_]*\\) *,/translit(dnm, m, l) AC_SUBST(\\1_CFLAGS)\\
+GST_CHECK_CONFIGPROG(\\1,/"
diff --git a/stamp.h.in b/stamp.h.in
new file mode 100644
index 0000000..9788f70
--- /dev/null
+++ b/stamp.h.in
@@ -0,0 +1 @@
+timestamp
diff --git a/test/Makefile.am b/test/Makefile.am
new file mode 100644
index 0000000..534335d
--- /dev/null
+++ b/test/Makefile.am
@@ -0,0 +1,4 @@
+noinst_PROGRAMS = simple composition
+
+LIBS += $(GNL_LIBS)
+CFLAGS += $(GNL_CFLAGS)