Steven Tang commited on
Commit
69fb171
1 Parent(s): dc68ac1

Commit all

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitattributes CHANGED
@@ -33,3 +33,113 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ gnorm_trained_models/ filter=lfs diff=lfs merge=lfs -text
37
+ Dictionary/ filter=lfs diff=lfs merge=lfs -text
38
+ Dictionary/GeneIDs.txt filter=lfs diff=lfs merge=lfs -text
39
+ Dictionary/PT_GeneID.txt filter=lfs diff=lfs merge=lfs -text
40
+ Dictionary/PrefixSuffix.txt filter=lfs diff=lfs merge=lfs -text
41
+ Dictionary/taxonomy_freq.txt filter=lfs diff=lfs merge=lfs -text
42
+ Dictionary/Gene2Homoid.txt filter=lfs diff=lfs merge=lfs -text
43
+ Dictionary/GeneScoring.562.txt filter=lfs diff=lfs merge=lfs -text
44
+ Dictionary/GeneScoring.9986.txt filter=lfs diff=lfs merge=lfs -text
45
+ Dictionary/GeneScoring.DF.9606.txt filter=lfs diff=lfs merge=lfs -text
46
+ Dictionary/LowConfidence.txt filter=lfs diff=lfs merge=lfs -text
47
+ Dictionary/PT_Gene.6239.txt filter=lfs diff=lfs merge=lfs -text
48
+ Dictionary/GeneScoring.9606.txt filter=lfs diff=lfs merge=lfs -text
49
+ Dictionary/GeneScoring.9823.txt filter=lfs diff=lfs merge=lfs -text
50
+ Dictionary/PT_Gene.562.txt filter=lfs diff=lfs merge=lfs -text
51
+ Dictionary/Filtering.txt filter=lfs diff=lfs merge=lfs -text
52
+ Dictionary/GeneScoring.DF.562.txt filter=lfs diff=lfs merge=lfs -text
53
+ Dictionary/PT_Gene.10090.txt filter=lfs diff=lfs merge=lfs -text
54
+ Dictionary/SimConcept.MentionType.txt filter=lfs diff=lfs merge=lfs -text
55
+ Dictionary/Filtering_WithLongForm.txt filter=lfs diff=lfs merge=lfs -text
56
+ Dictionary/GeneScoring.9615.txt filter=lfs diff=lfs merge=lfs -text
57
+ Dictionary/GeneWithoutSPPrefix.txt filter=lfs diff=lfs merge=lfs -text
58
+ Dictionary/PT_Gene.11676.txt filter=lfs diff=lfs merge=lfs -text
59
+ Dictionary/PT_Gene.3702.txt filter=lfs diff=lfs merge=lfs -text
60
+ Dictionary/PT_Gene.7955.txt filter=lfs diff=lfs merge=lfs -text
61
+ Dictionary/GeneScoring.DF.4932.txt filter=lfs diff=lfs merge=lfs -text
62
+ Dictionary/GeneScoring.DF.9913.txt filter=lfs diff=lfs merge=lfs -text
63
+ Dictionary/PT_FamilyName.txt filter=lfs diff=lfs merge=lfs -text
64
+ Dictionary/GeneScoring.DF.3702.txt filter=lfs diff=lfs merge=lfs -text
65
+ Dictionary/PT_Species.txt filter=lfs diff=lfs merge=lfs -text
66
+ Dictionary/SP_Virus2HumanList.txt filter=lfs diff=lfs merge=lfs -text
67
+ Dictionary/Gene2Protein.txt filter=lfs diff=lfs merge=lfs -text
68
+ Dictionary/GeneScoring.7227.txt filter=lfs diff=lfs merge=lfs -text
69
+ Dictionary/GeneScoring.DF.10116.txt filter=lfs diff=lfs merge=lfs -text
70
+ Dictionary/PT_Domain.txt filter=lfs diff=lfs merge=lfs -text
71
+ Dictionary/PT_Gene.9823.txt filter=lfs diff=lfs merge=lfs -text
72
+ Dictionary/SimConcept.Model filter=lfs diff=lfs merge=lfs -text
73
+ Dictionary/GeneScoring.DF.11676.txt filter=lfs diff=lfs merge=lfs -text
74
+ Dictionary/GeneScoring.DF.txt filter=lfs diff=lfs merge=lfs -text
75
+ Dictionary/PT_Gene.9913.txt filter=lfs diff=lfs merge=lfs -text
76
+ Dictionary/SPPrefix.txt filter=lfs diff=lfs merge=lfs -text
77
+ Dictionary/PT_Gene.10116.txt filter=lfs diff=lfs merge=lfs -text
78
+ Dictionary/PT_GeneChromosome.txt filter=lfs diff=lfs merge=lfs -text
79
+ Dictionary/GeneScoring.DF.9823.txt filter=lfs diff=lfs merge=lfs -text
80
+ Dictionary/PT_Gene.txt filter=lfs diff=lfs merge=lfs -text
81
+ Dictionary/SPStrain.txt filter=lfs diff=lfs merge=lfs -text
82
+ Dictionary/SPGenus.txt filter=lfs diff=lfs merge=lfs -text
83
+ Dictionary/GNR.Model filter=lfs diff=lfs merge=lfs -text
84
+ Dictionary/GeneScoring.6239.txt filter=lfs diff=lfs merge=lfs -text
85
+ Dictionary/PT_Cell.txt filter=lfs diff=lfs merge=lfs -text
86
+ Dictionary/PT_Gene.4932.txt filter=lfs diff=lfs merge=lfs -text
87
+ Dictionary/PT_Gene.7227.txt filter=lfs diff=lfs merge=lfs -text
88
+ Dictionary/PT_Gene.9615.txt filter=lfs diff=lfs merge=lfs -text
89
+ Dictionary/GeneScoring.DF.9615.txt filter=lfs diff=lfs merge=lfs -text
90
+ Dictionary/GeneScoring.DF.9986.txt filter=lfs diff=lfs merge=lfs -text
91
+ Dictionary/GeneScoring.txt filter=lfs diff=lfs merge=lfs -text
92
+ Dictionary/tax4gene.txt filter=lfs diff=lfs merge=lfs -text
93
+ Dictionary/taxids.txt filter=lfs diff=lfs merge=lfs -text
94
+ Dictionary/Filtering.species.txt filter=lfs diff=lfs merge=lfs -text
95
+ Dictionary/GeneScoring.11676.txt filter=lfs diff=lfs merge=lfs -text
96
+ Dictionary/GeneScoring.9913.txt filter=lfs diff=lfs merge=lfs -text
97
+ Dictionary/GeneScoring.DF.10090.txt filter=lfs diff=lfs merge=lfs -text
98
+ Dictionary/SPHighlevel.txt filter=lfs diff=lfs merge=lfs -text
99
+ Dictionary/CTDAddWord.tsv filter=lfs diff=lfs merge=lfs -text
100
+ Dictionary/GeneScoring.10116.txt filter=lfs diff=lfs merge=lfs -text
101
+ Dictionary/GeneScoring.DF.6239.txt filter=lfs diff=lfs merge=lfs -text
102
+ Dictionary/GeneScoring.DF.7227.txt filter=lfs diff=lfs merge=lfs -text
103
+ Dictionary/NonGeneAbbr.txt filter=lfs diff=lfs merge=lfs -text
104
+ Dictionary/CTDStopWord.tsv filter=lfs diff=lfs merge=lfs -text
105
+ Dictionary/LowerCosineSimilarity.txt filter=lfs diff=lfs merge=lfs -text
106
+ Dictionary/PT_Gene.9986.txt filter=lfs diff=lfs merge=lfs -text
107
+ Dictionary/SPNodes.txt filter=lfs diff=lfs merge=lfs -text
108
+ Dictionary/nodes.dmp.yeast filter=lfs diff=lfs merge=lfs -text
109
+ Dictionary/PT_Gene.9606.txt filter=lfs diff=lfs merge=lfs -text
110
+ Dictionary/ent.rev.txt filter=lfs diff=lfs merge=lfs -text
111
+ Dictionary/GeneScoring.10090.txt filter=lfs diff=lfs merge=lfs -text
112
+ Dictionary/GeneScoring.3702.txt filter=lfs diff=lfs merge=lfs -text
113
+ Dictionary/GeneScoring.4932.txt filter=lfs diff=lfs merge=lfs -text
114
+ Dictionary/GeneScoring.7955.txt filter=lfs diff=lfs merge=lfs -text
115
+ Dictionary/GeneScoring.DF.7955.txt filter=lfs diff=lfs merge=lfs -text
116
+ Dictionary/PT_CTDGene.txt filter=lfs diff=lfs merge=lfs -text
117
+ gnorm_trained_models/BiomedNLP-PubMedBERT-base-uncased-abstract filter=lfs diff=lfs merge=lfs -text
118
+ gnorm_trained_models/SpeAss filter=lfs diff=lfs merge=lfs -text
119
+ gnorm_trained_models/bioformer-cased-v1.0 filter=lfs diff=lfs merge=lfs -text
120
+ gnorm_trained_models/geneNER filter=lfs diff=lfs merge=lfs -text
121
+ gnorm_trained_models/stanza filter=lfs diff=lfs merge=lfs -text
122
+ gnorm_trained_models/SpeAss/SpeAss-Bioformer.h5 filter=lfs diff=lfs merge=lfs -text
123
+ gnorm_trained_models/bioformer-cased-v1.0/config.json filter=lfs diff=lfs merge=lfs -text
124
+ gnorm_trained_models/geneNER/GeneNER-PubmedBERT.h5 filter=lfs diff=lfs merge=lfs -text
125
+ gnorm_trained_models/BiomedNLP-PubMedBERT-base-uncased-abstract/README.md filter=lfs diff=lfs merge=lfs -text
126
+ gnorm_trained_models/BiomedNLP-PubMedBERT-base-uncased-abstract/config.json filter=lfs diff=lfs merge=lfs -text
127
+ gnorm_trained_models/BiomedNLP-PubMedBERT-base-uncased-abstract/pytorch_model.bin filter=lfs diff=lfs merge=lfs -text
128
+ gnorm_trained_models/BiomedNLP-PubMedBERT-base-uncased-abstract/version_vocab filter=lfs diff=lfs merge=lfs -text
129
+ gnorm_trained_models/BiomedNLP-PubMedBERT-base-uncased-abstract/vocab.txt filter=lfs diff=lfs merge=lfs -text
130
+ gnorm_trained_models/stanza/en filter=lfs diff=lfs merge=lfs -text
131
+ gnorm_trained_models/BiomedNLP-PubMedBERT-base-uncased-abstract/flax_model.msgpack filter=lfs diff=lfs merge=lfs -text
132
+ gnorm_trained_models/SpeAss/SpeAss-PubmedBERT.h5 filter=lfs diff=lfs merge=lfs -text
133
+ gnorm_trained_models/bioformer-cased-v1.0/pytorch_model.bin filter=lfs diff=lfs merge=lfs -text
134
+ gnorm_trained_models/bioformer-cased-v1.0/vocab.txt filter=lfs diff=lfs merge=lfs -text
135
+ gnorm_trained_models/stanza/resources.json filter=lfs diff=lfs merge=lfs -text
136
+ gnorm_trained_models/BiomedNLP-PubMedBERT-base-uncased-abstract/LICENSE.md filter=lfs diff=lfs merge=lfs -text
137
+ gnorm_trained_models/bioformer-cased-v1.0/README.md filter=lfs diff=lfs merge=lfs -text
138
+ gnorm_trained_models/bioformer-cased-v1.0/tf_model.h5 filter=lfs diff=lfs merge=lfs -text
139
+ gnorm_trained_models/bioformer-cased-v1.0/tokenizer_config.json filter=lfs diff=lfs merge=lfs -text
140
+ gnorm_trained_models/geneNER/GeneNER-Bioformer.h5 filter=lfs diff=lfs merge=lfs -text
141
+ GNormPlus.jar filter=lfs diff=lfs merge=lfs -text
142
+ Library/WordData/SingTermFreq.dat filter=lfs diff=lfs merge=lfs -text
143
+ Ab3P filter=lfs diff=lfs merge=lfs -text
144
+ Library/WordData/cshset_wrdset3.ha filter=lfs diff=lfs merge=lfs -text
145
+ Library/libops.a filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
Ab3P ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6703e1403c93bcd25b6d1d548f7474c8488a3ea37f3ce0b73942012e9c2081bf
3
+ size 1139519
BioC.dtd ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- Combination DTD that will work with any document so far. -->
2
+
3
+ <!--
4
+
5
+ Some believe XML is easily read by humans and that should be
6
+ supported by clearly formatting the elements. In the long run,
7
+ this is destracting. While the only meaningful spaces are in text
8
+ elements and the other spaces can be ignored, current tools add no
9
+ additional space. Formatters and editors may be used to make the
10
+ XML file appear more readable.
11
+
12
+ The possible variety of annotations that one might want to produce
13
+ or use is nearly countless. There is no guarantee that these are
14
+ organized in the nice nested structure required for XML
15
+ elements. Even if they were, it would be nice to more easily
16
+ ignore unwanted annotations. So annotations are recorded in a
17
+ stand off manner, external to the annotated text. The exceptions
18
+ are passages and sentences because of their fundamental place in
19
+ text.
20
+
21
+ The text is expected to be encoded in Unicode, specifically
22
+ utf-8. This is one of the encodings required to be implented by
23
+ XML tools, is portable between big-endian and little-endian
24
+ machines and is a superset of 7-bit ASCII. Code points beyond 127
25
+ may be expressed directly in utf-8 or indirectly using numeric
26
+ entities. Since many tools today still only directly process
27
+ ASCII characters, conversion should be available and
28
+ standardized. Offsets should be in 8 bit code units (bytes) for
29
+ easier processing by naive programs.
30
+
31
+ Nothing final. Just current thoughts.
32
+
33
+ collection: Group of documents, usually from a larger corpus. If
34
+ a group of documents is from several corpora, use several
35
+ collections.
36
+
37
+ source: Name of the source corpus from which the documents were selected
38
+
39
+ date: Date documents extracted from original source. Can be as
40
+ simple as yyyymmdd or an ISO timestamp.
41
+
42
+ key: Separate file describing the types used and any other useful
43
+ information about the data in the file. For example, if a file
44
+ includes part-of-speech tags, this file should describe the
45
+ part-of-speech tags used.
46
+
47
+ infon: key-value pairs. Can record essentially arbitrary
48
+ information. "type" will be a particular common key in the major
49
+ sub elements below. For PubMed references, passage "type" might
50
+ signal "title" or "abstract". For annotations, it might indicate
51
+ "noun phrase", "gene", or "disease". In the programming language
52
+ data structures, infons are typically represented as a map from
53
+ strings to strings. This means keys should be unique within each
54
+ parent element.
55
+
56
+ document: A document in the collection. A single, complete
57
+ stand-alone document as described by it's parent source.
58
+
59
+ id: Typically, the id of the document in the parent
60
+ source. Should at least be unique in the collection.
61
+
62
+ passage: One portion of the document. For now PubMed documents
63
+ have a title and an abstract. Structured abstracts could have
64
+ additional passages. For a full text document, passages could be
65
+ sections such as Introduction, Materials and Methods, or
66
+ Conclusion. Another option would be paragraphs. Passages impose a
67
+ linear structure on the document. Further structure in the
68
+ document can be implied by the infon["type"] value.
69
+
70
+ offset: Where the passage occurs in the parent document. Depending
71
+ on the source corpus, this might be a very relevant number. They
72
+ should be sequential and identify a passage's position in
73
+ the document. Since pubmed is extracted from an XML file, the
74
+ title has an offset of zero, while the abstract is assumed to
75
+ begin after the title and one space.
76
+
77
+ text: The original text of the passage.
78
+
79
+ sentence: One sentence of the passage.
80
+
81
+ offset: A document offset to where the sentence begins in the
82
+ passage. This value is the sum of the passage offset and the local
83
+ offset within the passage.
84
+
85
+ text: The original text of the sentence.
86
+
87
+ annotation: Stand-off annotation
88
+
89
+ id: Used to refer to this annotation in relations.
90
+
91
+ location: Location of the annotated text. Multiple locations
92
+ indicate a multi-span annotation.
93
+
94
+ offset: Document offset to where the annotated text begins in
95
+ the passage or sentence. The value is the sum of the passage or
96
+ sentence offset and the local offset within the passage or
97
+ sentence.
98
+
99
+ length: Length of the annotated text. While unlikely, this could
100
+ be zero to describe an annotation that belongs between two
101
+ characters.
102
+
103
+ text: Unless something else is defined one would be expect the
104
+ annotated text. The length is redundant in this case. Other uses
105
+ for this text could be the normalized ID for a gene in a gene
106
+ database.
107
+
108
+ relation: Relationship between multiple annotations.
109
+
110
+ id: Used to refer to this relation in other relationships.
111
+
112
+ refid: Id of an annotated object or other relation.
113
+
114
+ role: Describes how the referenced annotated object or other
115
+ relation participates in the current relationship. Has a default
116
+ value so can be left out if there is no meaningful value.
117
+
118
+ -->
119
+
120
+ <!ELEMENT collection ( source, date, key, infon*, document+ ) >
121
+ <!ELEMENT source (#PCDATA)>
122
+ <!ELEMENT date (#PCDATA)>
123
+ <!ELEMENT key (#PCDATA)>
124
+ <!ELEMENT infon (#PCDATA)>
125
+ <!ATTLIST infon key CDATA #REQUIRED >
126
+
127
+ <!ELEMENT document ( id, infon*, passage+, relation* ) >
128
+ <!ELEMENT id (#PCDATA)>
129
+
130
+ <!ELEMENT passage ( infon*, offset, ( ( text?, annotation* ) | sentence* ), relation* ) >
131
+ <!ELEMENT offset (#PCDATA)>
132
+ <!ELEMENT text (#PCDATA)>
133
+
134
+ <!ELEMENT sentence ( infon*, offset, text?, annotation*, relation* ) >
135
+
136
+ <!ELEMENT annotation ( infon*, location*, text ) >
137
+ <!ATTLIST annotation id CDATA #IMPLIED >
138
+ <!ELEMENT location EMPTY>
139
+ <!ATTLIST location offset CDATA #REQUIRED >
140
+ <!ATTLIST location length CDATA #REQUIRED >
141
+
142
+ <!ELEMENT relation ( infon*, node* ) >
143
+ <!ATTLIST relation id CDATA #IMPLIED >
144
+ <!ELEMENT node EMPTY>
145
+ <!ATTLIST node refid CDATA #REQUIRED >
146
+ <!ATTLIST node role CDATA "" >
CRF/.libs/crf_learn ADDED
Binary file (7.25 kB). View file
 
CRF/.libs/crf_test ADDED
Binary file (8.1 kB). View file
 
CRF/.libs/encoder.o ADDED
Binary file (132 kB). View file
 
CRF/.libs/feature.o ADDED
Binary file (13.8 kB). View file
 
CRF/.libs/feature_cache.o ADDED
Binary file (5.46 kB). View file
 
CRF/.libs/feature_index.o ADDED
Binary file (105 kB). View file
 
CRF/.libs/lbfgs.o ADDED
Binary file (17.6 kB). View file
 
CRF/.libs/libcrfpp.a ADDED
Binary file (529 kB). View file
 
CRF/.libs/libcrfpp.la ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # libcrfpp.la - a libtool library file
2
+ # Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
3
+ #
4
+ # Please DO NOT delete this file!
5
+ # It is necessary for linking the library.
6
+
7
+ # The name that we can dlopen(3).
8
+ dlname='libcrfpp.so.0'
9
+
10
+ # Names of this library.
11
+ library_names='libcrfpp.so.0.0.0 libcrfpp.so.0 libcrfpp.so'
12
+
13
+ # The name of the static archive.
14
+ old_library='libcrfpp.a'
15
+
16
+ # Linker flags that can not go in dependency_libs.
17
+ inherited_linker_flags=''
18
+
19
+ # Libraries that this one depends upon.
20
+ dependency_libs=' -lpthread /usr/lib64/gcc-4.4.2/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../libstdc++.la'
21
+
22
+ # Names of additional weak libraries provided by this library
23
+ weak_library_names=''
24
+
25
+ # Version information for libcrfpp.
26
+ current=0
27
+ age=0
28
+ revision=0
29
+
30
+ # Is this an already installed library?
31
+ installed=no
32
+
33
+ # Should we warn about portability when linking against -modules?
34
+ shouldnotlink=no
35
+
36
+ # Files to dlopen/dlpreopen
37
+ dlopen=''
38
+ dlpreopen=''
39
+
40
+ # Directory that this library needs to be installed in:
41
+ libdir='/usr/local/lib'
CRF/.libs/libcrfpp.lai ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # libcrfpp.la - a libtool library file
2
+ # Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
3
+ #
4
+ # Please DO NOT delete this file!
5
+ # It is necessary for linking the library.
6
+
7
+ # The name that we can dlopen(3).
8
+ dlname='libcrfpp.so.0'
9
+
10
+ # Names of this library.
11
+ library_names='libcrfpp.so.0.0.0 libcrfpp.so.0 libcrfpp.so'
12
+
13
+ # The name of the static archive.
14
+ old_library='libcrfpp.a'
15
+
16
+ # Linker flags that can not go in dependency_libs.
17
+ inherited_linker_flags=''
18
+
19
+ # Libraries that this one depends upon.
20
+ dependency_libs=' -lpthread /usr/lib64/gcc-4.4.2/../lib64/libstdc++.la'
21
+
22
+ # Names of additional weak libraries provided by this library
23
+ weak_library_names=''
24
+
25
+ # Version information for libcrfpp.
26
+ current=0
27
+ age=0
28
+ revision=0
29
+
30
+ # Is this an already installed library?
31
+ installed=yes
32
+
33
+ # Should we warn about portability when linking against -modules?
34
+ shouldnotlink=no
35
+
36
+ # Files to dlopen/dlpreopen
37
+ dlopen=''
38
+ dlpreopen=''
39
+
40
+ # Directory that this library needs to be installed in:
41
+ libdir='/usr/local/lib'
CRF/.libs/libcrfpp.o ADDED
Binary file (14.4 kB). View file
 
CRF/.libs/libcrfpp.so.0 ADDED
Binary file (260 kB). View file
 
CRF/.libs/libcrfpp.so.0.0.0 ADDED
Binary file (260 kB). View file
 
CRF/.libs/lt-crf_test ADDED
Binary file (8.1 kB). View file
 
CRF/.libs/node.o ADDED
Binary file (4.17 kB). View file
 
CRF/.libs/param.o ADDED
Binary file (49.5 kB). View file
 
CRF/.libs/path.o ADDED
Binary file (4.47 kB). View file
 
CRF/.libs/tagger.o ADDED
Binary file (166 kB). View file
 
CRF/AUTHORS ADDED
@@ -0,0 +1 @@
 
 
1
+ Taku Kudo <taku@chasen.org>
CRF/BSD ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2005-2007, Taku Kudo
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are
5
+ permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above
8
+ copyright notice, this list of conditions and the
9
+ following disclaimer.
10
+
11
+ * Redistributions in binary form must reproduce the above
12
+ copyright notice, this list of conditions and the
13
+ following disclaimer in the documentation and/or other
14
+ materials provided with the distribution.
15
+
16
+ * Neither the name of Taku Kudo nor the names of its contributors
17
+ may be used to endorse or promote products derived from this software
18
+ without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
21
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
23
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
26
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
CRF/COPYING ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ CRF++ is copyrighted free software by Taku Kudo <taku@chasen.org>,
2
+ and is released under any of the LGPL (see the file LGPL) or the
3
+ BSD License (see the file BSD).
CRF/CRFPP_wrap.cxx ADDED
@@ -0,0 +1,1373 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ----------------------------------------------------------------------------
2
+ * This file was automatically generated by SWIG (http://www.swig.org).
3
+ * Version 1.3.38
4
+ *
5
+ * This file is not intended to be easily readable and contains a number of
6
+ * coding conventions designed to improve portability and efficiency. Do not make
7
+ * changes to this file unless you know what you are doing--modify the SWIG
8
+ * interface file instead.
9
+ * ----------------------------------------------------------------------------- */
10
+
11
+ #define SWIGJAVA
12
+
13
+
14
+ #ifdef __cplusplus
15
+ /* SwigValueWrapper is described in swig.swg */
16
+ template<typename T> class SwigValueWrapper {
17
+ struct SwigMovePointer {
18
+ T *ptr;
19
+ SwigMovePointer(T *p) : ptr(p) { }
20
+ ~SwigMovePointer() { delete ptr; }
21
+ SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
22
+ } pointer;
23
+ SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
24
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs);
25
+ public:
26
+ SwigValueWrapper() : pointer(0) { }
27
+ SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
28
+ operator T&() const { return *pointer.ptr; }
29
+ T *operator&() { return pointer.ptr; }
30
+ };
31
+
32
+ template <typename T> T SwigValueInit() {
33
+ return T();
34
+ }
35
+ #endif
36
+
37
+ /* -----------------------------------------------------------------------------
38
+ * This section contains generic SWIG labels for method/variable
39
+ * declarations/attributes, and other compiler dependent labels.
40
+ * ----------------------------------------------------------------------------- */
41
+
42
+ /* template workaround for compilers that cannot correctly implement the C++ standard */
43
+ #ifndef SWIGTEMPLATEDISAMBIGUATOR
44
+ # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
45
+ # define SWIGTEMPLATEDISAMBIGUATOR template
46
+ # elif defined(__HP_aCC)
47
+ /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
48
+ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
49
+ # define SWIGTEMPLATEDISAMBIGUATOR template
50
+ # else
51
+ # define SWIGTEMPLATEDISAMBIGUATOR
52
+ # endif
53
+ #endif
54
+
55
+ /* inline attribute */
56
+ #ifndef SWIGINLINE
57
+ # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
58
+ # define SWIGINLINE inline
59
+ # else
60
+ # define SWIGINLINE
61
+ # endif
62
+ #endif
63
+
64
+ /* attribute recognised by some compilers to avoid 'unused' warnings */
65
+ #ifndef SWIGUNUSED
66
+ # if defined(__GNUC__)
67
+ # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
68
+ # define SWIGUNUSED __attribute__ ((__unused__))
69
+ # else
70
+ # define SWIGUNUSED
71
+ # endif
72
+ # elif defined(__ICC)
73
+ # define SWIGUNUSED __attribute__ ((__unused__))
74
+ # else
75
+ # define SWIGUNUSED
76
+ # endif
77
+ #endif
78
+
79
+ #ifndef SWIG_MSC_UNSUPPRESS_4505
80
+ # if defined(_MSC_VER)
81
+ # pragma warning(disable : 4505) /* unreferenced local function has been removed */
82
+ # endif
83
+ #endif
84
+
85
+ #ifndef SWIGUNUSEDPARM
86
+ # ifdef __cplusplus
87
+ # define SWIGUNUSEDPARM(p)
88
+ # else
89
+ # define SWIGUNUSEDPARM(p) p SWIGUNUSED
90
+ # endif
91
+ #endif
92
+
93
+ /* internal SWIG method */
94
+ #ifndef SWIGINTERN
95
+ # define SWIGINTERN static SWIGUNUSED
96
+ #endif
97
+
98
+ /* internal inline SWIG method */
99
+ #ifndef SWIGINTERNINLINE
100
+ # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
101
+ #endif
102
+
103
+ /* exporting methods */
104
+ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
105
+ # ifndef GCC_HASCLASSVISIBILITY
106
+ # define GCC_HASCLASSVISIBILITY
107
+ # endif
108
+ #endif
109
+
110
+ #ifndef SWIGEXPORT
111
+ # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
112
+ # if defined(STATIC_LINKED)
113
+ # define SWIGEXPORT
114
+ # else
115
+ # define SWIGEXPORT __declspec(dllexport)
116
+ # endif
117
+ # else
118
+ # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
119
+ # define SWIGEXPORT __attribute__ ((visibility("default")))
120
+ # else
121
+ # define SWIGEXPORT
122
+ # endif
123
+ # endif
124
+ #endif
125
+
126
+ /* calling conventions for Windows */
127
+ #ifndef SWIGSTDCALL
128
+ # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
129
+ # define SWIGSTDCALL __stdcall
130
+ # else
131
+ # define SWIGSTDCALL
132
+ # endif
133
+ #endif
134
+
135
+ /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
136
+ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
137
+ # define _CRT_SECURE_NO_DEPRECATE
138
+ #endif
139
+
140
+ /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
141
+ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
142
+ # define _SCL_SECURE_NO_DEPRECATE
143
+ #endif
144
+
145
+
146
+
147
+ /* Fix for jlong on some versions of gcc on Windows */
148
+ #if defined(__GNUC__) && !defined(__INTEL_COMPILER)
149
+ typedef long long __int64;
150
+ #endif
151
+
152
+ /* Fix for jlong on 64-bit x86 Solaris */
153
+ #if defined(__x86_64)
154
+ # ifdef _LP64
155
+ # undef _LP64
156
+ # endif
157
+ #endif
158
+
159
+ #include <jni.h>
160
+ #include <stdlib.h>
161
+ #include <string.h>
162
+
163
+
164
+ /* Support for throwing Java exceptions */
165
+ typedef enum {
166
+ SWIG_JavaOutOfMemoryError = 1,
167
+ SWIG_JavaIOException,
168
+ SWIG_JavaRuntimeException,
169
+ SWIG_JavaIndexOutOfBoundsException,
170
+ SWIG_JavaArithmeticException,
171
+ SWIG_JavaIllegalArgumentException,
172
+ SWIG_JavaNullPointerException,
173
+ SWIG_JavaDirectorPureVirtual,
174
+ SWIG_JavaUnknownError
175
+ } SWIG_JavaExceptionCodes;
176
+
177
+ typedef struct {
178
+ SWIG_JavaExceptionCodes code;
179
+ const char *java_exception;
180
+ } SWIG_JavaExceptions_t;
181
+
182
+
183
+ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
184
+ jclass excep;
185
+ static const SWIG_JavaExceptions_t java_exceptions[] = {
186
+ { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
187
+ { SWIG_JavaIOException, "java/io/IOException" },
188
+ { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
189
+ { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
190
+ { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
191
+ { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
192
+ { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
193
+ { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
194
+ { SWIG_JavaUnknownError, "java/lang/UnknownError" },
195
+ { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" } };
196
+ const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
197
+
198
+ while (except_ptr->code != code && except_ptr->code)
199
+ except_ptr++;
200
+
201
+ jenv->ExceptionClear();
202
+ excep = jenv->FindClass(except_ptr->java_exception);
203
+ if (excep)
204
+ jenv->ThrowNew(excep, msg);
205
+ }
206
+
207
+
208
+ /* Contract support */
209
+
210
+ #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
211
+
212
+ /* Errors in SWIG */
213
+ #define SWIG_UnknownError -1
214
+ #define SWIG_IOError -2
215
+ #define SWIG_RuntimeError -3
216
+ #define SWIG_IndexError -4
217
+ #define SWIG_TypeError -5
218
+ #define SWIG_DivisionByZero -6
219
+ #define SWIG_OverflowError -7
220
+ #define SWIG_SyntaxError -8
221
+ #define SWIG_ValueError -9
222
+ #define SWIG_SystemError -10
223
+ #define SWIG_AttributeError -11
224
+ #define SWIG_MemoryError -12
225
+ #define SWIG_NullReferenceError -13
226
+
227
+
228
+
229
+
230
+ SWIGINTERN void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) {
231
+ SWIG_JavaExceptionCodes exception_code = SWIG_JavaUnknownError;
232
+ switch(code) {
233
+ case SWIG_MemoryError:
234
+ exception_code = SWIG_JavaOutOfMemoryError;
235
+ break;
236
+ case SWIG_IOError:
237
+ exception_code = SWIG_JavaIOException;
238
+ break;
239
+ case SWIG_SystemError:
240
+ case SWIG_RuntimeError:
241
+ exception_code = SWIG_JavaRuntimeException;
242
+ break;
243
+ case SWIG_OverflowError:
244
+ case SWIG_IndexError:
245
+ exception_code = SWIG_JavaIndexOutOfBoundsException;
246
+ break;
247
+ case SWIG_DivisionByZero:
248
+ exception_code = SWIG_JavaArithmeticException;
249
+ break;
250
+ case SWIG_SyntaxError:
251
+ case SWIG_ValueError:
252
+ case SWIG_TypeError:
253
+ exception_code = SWIG_JavaIllegalArgumentException;
254
+ break;
255
+ case SWIG_UnknownError:
256
+ default:
257
+ exception_code = SWIG_JavaUnknownError;
258
+ break;
259
+ }
260
+ SWIG_JavaThrowException(jenv, exception_code, msg);
261
+ }
262
+
263
+
264
+ #include <stdexcept>
265
+
266
+
267
+ #include "crfpp.h"
268
+
269
+
270
+
271
+ void delete_CRFPP_Tagger (CRFPP::Tagger *t) {
272
+ delete t;
273
+ t = 0;
274
+ }
275
+
276
+ CRFPP::Tagger* new_CRFPP_Tagger (const char *arg) {
277
+ CRFPP::Tagger *tagger = CRFPP::createTagger(arg);
278
+ if (! tagger) throw CRFPP::getTaggerError();
279
+ return tagger;
280
+ }
281
+
282
+
283
+
284
+ #ifdef __cplusplus
285
+ extern "C" {
286
+ #endif
287
+
288
+ SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1set_1vlevel(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
289
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
290
+ unsigned int arg2 ;
291
+
292
+ (void)jenv;
293
+ (void)jcls;
294
+ (void)jarg1_;
295
+ arg1 = *(CRFPP::Tagger **)&jarg1;
296
+ arg2 = (unsigned int)jarg2;
297
+ {
298
+ try {
299
+ (arg1)->set_vlevel(arg2);
300
+ }
301
+ catch (char *e) {
302
+ {
303
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ;
304
+ };
305
+ }
306
+ catch (const char *e) {
307
+ {
308
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ;
309
+ };
310
+ }
311
+ }
312
+ }
313
+
314
+
315
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1vlevel(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
316
+ jlong jresult = 0 ;
317
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
318
+ unsigned int result;
319
+
320
+ (void)jenv;
321
+ (void)jcls;
322
+ (void)jarg1_;
323
+ arg1 = *(CRFPP::Tagger **)&jarg1;
324
+ {
325
+ try {
326
+ result = (unsigned int)((CRFPP::Tagger const *)arg1)->vlevel();
327
+ }
328
+ catch (char *e) {
329
+ {
330
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
331
+ };
332
+ }
333
+ catch (const char *e) {
334
+ {
335
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
336
+ };
337
+ }
338
+ }
339
+ jresult = (jlong)result;
340
+ return jresult;
341
+ }
342
+
343
+
344
+ SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1set_1cost_1factor(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jfloat jarg2) {
345
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
346
+ float arg2 ;
347
+
348
+ (void)jenv;
349
+ (void)jcls;
350
+ (void)jarg1_;
351
+ arg1 = *(CRFPP::Tagger **)&jarg1;
352
+ arg2 = (float)jarg2;
353
+ {
354
+ try {
355
+ (arg1)->set_cost_factor(arg2);
356
+ }
357
+ catch (char *e) {
358
+ {
359
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ;
360
+ };
361
+ }
362
+ catch (const char *e) {
363
+ {
364
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ;
365
+ };
366
+ }
367
+ }
368
+ }
369
+
370
+
371
+ SWIGEXPORT jfloat JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1cost_1factor(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
372
+ jfloat jresult = 0 ;
373
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
374
+ float result;
375
+
376
+ (void)jenv;
377
+ (void)jcls;
378
+ (void)jarg1_;
379
+ arg1 = *(CRFPP::Tagger **)&jarg1;
380
+ {
381
+ try {
382
+ result = (float)((CRFPP::Tagger const *)arg1)->cost_factor();
383
+ }
384
+ catch (char *e) {
385
+ {
386
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
387
+ };
388
+ }
389
+ catch (const char *e) {
390
+ {
391
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
392
+ };
393
+ }
394
+ }
395
+ jresult = (jfloat)result;
396
+ return jresult;
397
+ }
398
+
399
+
400
+ SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1set_1nbest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
401
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
402
+ size_t arg2 ;
403
+
404
+ (void)jenv;
405
+ (void)jcls;
406
+ (void)jarg1_;
407
+ arg1 = *(CRFPP::Tagger **)&jarg1;
408
+ arg2 = (size_t)jarg2;
409
+ {
410
+ try {
411
+ (arg1)->set_nbest(arg2);
412
+ }
413
+ catch (char *e) {
414
+ {
415
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ;
416
+ };
417
+ }
418
+ catch (const char *e) {
419
+ {
420
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ;
421
+ };
422
+ }
423
+ }
424
+ }
425
+
426
+
427
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1nbest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
428
+ jlong jresult = 0 ;
429
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
430
+ size_t result;
431
+
432
+ (void)jenv;
433
+ (void)jcls;
434
+ (void)jarg1_;
435
+ arg1 = *(CRFPP::Tagger **)&jarg1;
436
+ {
437
+ try {
438
+ result = ((CRFPP::Tagger const *)arg1)->nbest();
439
+ }
440
+ catch (char *e) {
441
+ {
442
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
443
+ };
444
+ }
445
+ catch (const char *e) {
446
+ {
447
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
448
+ };
449
+ }
450
+ }
451
+ jresult = (jlong)result;
452
+ return jresult;
453
+ }
454
+
455
+
456
+ SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1add(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
457
+ jboolean jresult = 0 ;
458
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
459
+ char *arg2 = (char *) 0 ;
460
+ bool result;
461
+
462
+ (void)jenv;
463
+ (void)jcls;
464
+ (void)jarg1_;
465
+ arg1 = *(CRFPP::Tagger **)&jarg1;
466
+ arg2 = 0;
467
+ if (jarg2) {
468
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
469
+ if (!arg2) return 0;
470
+ }
471
+ {
472
+ try {
473
+ result = (bool)(arg1)->add((char const *)arg2);
474
+ }
475
+ catch (char *e) {
476
+ {
477
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
478
+ };
479
+ }
480
+ catch (const char *e) {
481
+ {
482
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
483
+ };
484
+ }
485
+ }
486
+ jresult = (jboolean)result;
487
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
488
+ return jresult;
489
+ }
490
+
491
+
492
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
493
+ jlong jresult = 0 ;
494
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
495
+ size_t result;
496
+
497
+ (void)jenv;
498
+ (void)jcls;
499
+ (void)jarg1_;
500
+ arg1 = *(CRFPP::Tagger **)&jarg1;
501
+ {
502
+ try {
503
+ result = ((CRFPP::Tagger const *)arg1)->size();
504
+ }
505
+ catch (char *e) {
506
+ {
507
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
508
+ };
509
+ }
510
+ catch (const char *e) {
511
+ {
512
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
513
+ };
514
+ }
515
+ }
516
+ jresult = (jlong)result;
517
+ return jresult;
518
+ }
519
+
520
+
521
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1xsize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
522
+ jlong jresult = 0 ;
523
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
524
+ size_t result;
525
+
526
+ (void)jenv;
527
+ (void)jcls;
528
+ (void)jarg1_;
529
+ arg1 = *(CRFPP::Tagger **)&jarg1;
530
+ {
531
+ try {
532
+ result = ((CRFPP::Tagger const *)arg1)->xsize();
533
+ }
534
+ catch (char *e) {
535
+ {
536
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
537
+ };
538
+ }
539
+ catch (const char *e) {
540
+ {
541
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
542
+ };
543
+ }
544
+ }
545
+ jresult = (jlong)result;
546
+ return jresult;
547
+ }
548
+
549
+
550
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1dsize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
551
+ jlong jresult = 0 ;
552
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
553
+ size_t result;
554
+
555
+ (void)jenv;
556
+ (void)jcls;
557
+ (void)jarg1_;
558
+ arg1 = *(CRFPP::Tagger **)&jarg1;
559
+ {
560
+ try {
561
+ result = ((CRFPP::Tagger const *)arg1)->dsize();
562
+ }
563
+ catch (char *e) {
564
+ {
565
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
566
+ };
567
+ }
568
+ catch (const char *e) {
569
+ {
570
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
571
+ };
572
+ }
573
+ }
574
+ jresult = (jlong)result;
575
+ return jresult;
576
+ }
577
+
578
+
579
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1result(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
580
+ jlong jresult = 0 ;
581
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
582
+ size_t arg2 ;
583
+ size_t result;
584
+
585
+ (void)jenv;
586
+ (void)jcls;
587
+ (void)jarg1_;
588
+ arg1 = *(CRFPP::Tagger **)&jarg1;
589
+ arg2 = (size_t)jarg2;
590
+ {
591
+ try {
592
+ result = ((CRFPP::Tagger const *)arg1)->result(arg2);
593
+ }
594
+ catch (char *e) {
595
+ {
596
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
597
+ };
598
+ }
599
+ catch (const char *e) {
600
+ {
601
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
602
+ };
603
+ }
604
+ }
605
+ jresult = (jlong)result;
606
+ return jresult;
607
+ }
608
+
609
+
610
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1answer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
611
+ jlong jresult = 0 ;
612
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
613
+ size_t arg2 ;
614
+ size_t result;
615
+
616
+ (void)jenv;
617
+ (void)jcls;
618
+ (void)jarg1_;
619
+ arg1 = *(CRFPP::Tagger **)&jarg1;
620
+ arg2 = (size_t)jarg2;
621
+ {
622
+ try {
623
+ result = ((CRFPP::Tagger const *)arg1)->answer(arg2);
624
+ }
625
+ catch (char *e) {
626
+ {
627
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
628
+ };
629
+ }
630
+ catch (const char *e) {
631
+ {
632
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
633
+ };
634
+ }
635
+ }
636
+ jresult = (jlong)result;
637
+ return jresult;
638
+ }
639
+
640
+
641
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1y(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
642
+ jlong jresult = 0 ;
643
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
644
+ size_t arg2 ;
645
+ size_t result;
646
+
647
+ (void)jenv;
648
+ (void)jcls;
649
+ (void)jarg1_;
650
+ arg1 = *(CRFPP::Tagger **)&jarg1;
651
+ arg2 = (size_t)jarg2;
652
+ {
653
+ try {
654
+ result = ((CRFPP::Tagger const *)arg1)->y(arg2);
655
+ }
656
+ catch (char *e) {
657
+ {
658
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
659
+ };
660
+ }
661
+ catch (const char *e) {
662
+ {
663
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
664
+ };
665
+ }
666
+ }
667
+ jresult = (jlong)result;
668
+ return jresult;
669
+ }
670
+
671
+
672
+ SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1y2(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
673
+ jstring jresult = 0 ;
674
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
675
+ size_t arg2 ;
676
+ char *result = 0 ;
677
+
678
+ (void)jenv;
679
+ (void)jcls;
680
+ (void)jarg1_;
681
+ arg1 = *(CRFPP::Tagger **)&jarg1;
682
+ arg2 = (size_t)jarg2;
683
+ {
684
+ try {
685
+ result = (char *)((CRFPP::Tagger const *)arg1)->y2(arg2);
686
+ }
687
+ catch (char *e) {
688
+ {
689
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
690
+ };
691
+ }
692
+ catch (const char *e) {
693
+ {
694
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
695
+ };
696
+ }
697
+ }
698
+ if(result) jresult = jenv->NewStringUTF((const char *)result);
699
+ return jresult;
700
+ }
701
+
702
+
703
+ SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1yname(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
704
+ jstring jresult = 0 ;
705
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
706
+ size_t arg2 ;
707
+ char *result = 0 ;
708
+
709
+ (void)jenv;
710
+ (void)jcls;
711
+ (void)jarg1_;
712
+ arg1 = *(CRFPP::Tagger **)&jarg1;
713
+ arg2 = (size_t)jarg2;
714
+ {
715
+ try {
716
+ result = (char *)((CRFPP::Tagger const *)arg1)->yname(arg2);
717
+ }
718
+ catch (char *e) {
719
+ {
720
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
721
+ };
722
+ }
723
+ catch (const char *e) {
724
+ {
725
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
726
+ };
727
+ }
728
+ }
729
+ if(result) jresult = jenv->NewStringUTF((const char *)result);
730
+ return jresult;
731
+ }
732
+
733
+
734
+ SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1x(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
735
+ jstring jresult = 0 ;
736
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
737
+ size_t arg2 ;
738
+ size_t arg3 ;
739
+ char *result = 0 ;
740
+
741
+ (void)jenv;
742
+ (void)jcls;
743
+ (void)jarg1_;
744
+ arg1 = *(CRFPP::Tagger **)&jarg1;
745
+ arg2 = (size_t)jarg2;
746
+ arg3 = (size_t)jarg3;
747
+ {
748
+ try {
749
+ result = (char *)((CRFPP::Tagger const *)arg1)->x(arg2,arg3);
750
+ }
751
+ catch (char *e) {
752
+ {
753
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
754
+ };
755
+ }
756
+ catch (const char *e) {
757
+ {
758
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
759
+ };
760
+ }
761
+ }
762
+ if(result) jresult = jenv->NewStringUTF((const char *)result);
763
+ return jresult;
764
+ }
765
+
766
+
767
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1ysize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
768
+ jlong jresult = 0 ;
769
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
770
+ size_t result;
771
+
772
+ (void)jenv;
773
+ (void)jcls;
774
+ (void)jarg1_;
775
+ arg1 = *(CRFPP::Tagger **)&jarg1;
776
+ {
777
+ try {
778
+ result = ((CRFPP::Tagger const *)arg1)->ysize();
779
+ }
780
+ catch (char *e) {
781
+ {
782
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
783
+ };
784
+ }
785
+ catch (const char *e) {
786
+ {
787
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
788
+ };
789
+ }
790
+ }
791
+ jresult = (jlong)result;
792
+ return jresult;
793
+ }
794
+
795
+
796
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1prob_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
797
+ jdouble jresult = 0 ;
798
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
799
+ size_t arg2 ;
800
+ size_t arg3 ;
801
+ double result;
802
+
803
+ (void)jenv;
804
+ (void)jcls;
805
+ (void)jarg1_;
806
+ arg1 = *(CRFPP::Tagger **)&jarg1;
807
+ arg2 = (size_t)jarg2;
808
+ arg3 = (size_t)jarg3;
809
+ {
810
+ try {
811
+ result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2,arg3);
812
+ }
813
+ catch (char *e) {
814
+ {
815
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
816
+ };
817
+ }
818
+ catch (const char *e) {
819
+ {
820
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
821
+ };
822
+ }
823
+ }
824
+ jresult = (jdouble)result;
825
+ return jresult;
826
+ }
827
+
828
+
829
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1prob_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
830
+ jdouble jresult = 0 ;
831
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
832
+ size_t arg2 ;
833
+ double result;
834
+
835
+ (void)jenv;
836
+ (void)jcls;
837
+ (void)jarg1_;
838
+ arg1 = *(CRFPP::Tagger **)&jarg1;
839
+ arg2 = (size_t)jarg2;
840
+ {
841
+ try {
842
+ result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2);
843
+ }
844
+ catch (char *e) {
845
+ {
846
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
847
+ };
848
+ }
849
+ catch (const char *e) {
850
+ {
851
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
852
+ };
853
+ }
854
+ }
855
+ jresult = (jdouble)result;
856
+ return jresult;
857
+ }
858
+
859
+
860
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1prob_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
861
+ jdouble jresult = 0 ;
862
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
863
+ double result;
864
+
865
+ (void)jenv;
866
+ (void)jcls;
867
+ (void)jarg1_;
868
+ arg1 = *(CRFPP::Tagger **)&jarg1;
869
+ {
870
+ try {
871
+ result = (double)((CRFPP::Tagger const *)arg1)->prob();
872
+ }
873
+ catch (char *e) {
874
+ {
875
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
876
+ };
877
+ }
878
+ catch (const char *e) {
879
+ {
880
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
881
+ };
882
+ }
883
+ }
884
+ jresult = (jdouble)result;
885
+ return jresult;
886
+ }
887
+
888
+
889
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1alpha(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
890
+ jdouble jresult = 0 ;
891
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
892
+ size_t arg2 ;
893
+ size_t arg3 ;
894
+ double result;
895
+
896
+ (void)jenv;
897
+ (void)jcls;
898
+ (void)jarg1_;
899
+ arg1 = *(CRFPP::Tagger **)&jarg1;
900
+ arg2 = (size_t)jarg2;
901
+ arg3 = (size_t)jarg3;
902
+ {
903
+ try {
904
+ result = (double)((CRFPP::Tagger const *)arg1)->alpha(arg2,arg3);
905
+ }
906
+ catch (char *e) {
907
+ {
908
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
909
+ };
910
+ }
911
+ catch (const char *e) {
912
+ {
913
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
914
+ };
915
+ }
916
+ }
917
+ jresult = (jdouble)result;
918
+ return jresult;
919
+ }
920
+
921
+
922
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1beta(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
923
+ jdouble jresult = 0 ;
924
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
925
+ size_t arg2 ;
926
+ size_t arg3 ;
927
+ double result;
928
+
929
+ (void)jenv;
930
+ (void)jcls;
931
+ (void)jarg1_;
932
+ arg1 = *(CRFPP::Tagger **)&jarg1;
933
+ arg2 = (size_t)jarg2;
934
+ arg3 = (size_t)jarg3;
935
+ {
936
+ try {
937
+ result = (double)((CRFPP::Tagger const *)arg1)->beta(arg2,arg3);
938
+ }
939
+ catch (char *e) {
940
+ {
941
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
942
+ };
943
+ }
944
+ catch (const char *e) {
945
+ {
946
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
947
+ };
948
+ }
949
+ }
950
+ jresult = (jdouble)result;
951
+ return jresult;
952
+ }
953
+
954
+
955
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1emission_1cost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
956
+ jdouble jresult = 0 ;
957
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
958
+ size_t arg2 ;
959
+ size_t arg3 ;
960
+ double result;
961
+
962
+ (void)jenv;
963
+ (void)jcls;
964
+ (void)jarg1_;
965
+ arg1 = *(CRFPP::Tagger **)&jarg1;
966
+ arg2 = (size_t)jarg2;
967
+ arg3 = (size_t)jarg3;
968
+ {
969
+ try {
970
+ result = (double)((CRFPP::Tagger const *)arg1)->emission_cost(arg2,arg3);
971
+ }
972
+ catch (char *e) {
973
+ {
974
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
975
+ };
976
+ }
977
+ catch (const char *e) {
978
+ {
979
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
980
+ };
981
+ }
982
+ }
983
+ jresult = (jdouble)result;
984
+ return jresult;
985
+ }
986
+
987
+
988
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1next_1transition_1cost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4) {
989
+ jdouble jresult = 0 ;
990
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
991
+ size_t arg2 ;
992
+ size_t arg3 ;
993
+ size_t arg4 ;
994
+ double result;
995
+
996
+ (void)jenv;
997
+ (void)jcls;
998
+ (void)jarg1_;
999
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1000
+ arg2 = (size_t)jarg2;
1001
+ arg3 = (size_t)jarg3;
1002
+ arg4 = (size_t)jarg4;
1003
+ {
1004
+ try {
1005
+ result = (double)((CRFPP::Tagger const *)arg1)->next_transition_cost(arg2,arg3,arg4);
1006
+ }
1007
+ catch (char *e) {
1008
+ {
1009
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1010
+ };
1011
+ }
1012
+ catch (const char *e) {
1013
+ {
1014
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1015
+ };
1016
+ }
1017
+ }
1018
+ jresult = (jdouble)result;
1019
+ return jresult;
1020
+ }
1021
+
1022
+
1023
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1prev_1transition_1cost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4) {
1024
+ jdouble jresult = 0 ;
1025
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1026
+ size_t arg2 ;
1027
+ size_t arg3 ;
1028
+ size_t arg4 ;
1029
+ double result;
1030
+
1031
+ (void)jenv;
1032
+ (void)jcls;
1033
+ (void)jarg1_;
1034
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1035
+ arg2 = (size_t)jarg2;
1036
+ arg3 = (size_t)jarg3;
1037
+ arg4 = (size_t)jarg4;
1038
+ {
1039
+ try {
1040
+ result = (double)((CRFPP::Tagger const *)arg1)->prev_transition_cost(arg2,arg3,arg4);
1041
+ }
1042
+ catch (char *e) {
1043
+ {
1044
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1045
+ };
1046
+ }
1047
+ catch (const char *e) {
1048
+ {
1049
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1050
+ };
1051
+ }
1052
+ }
1053
+ jresult = (jdouble)result;
1054
+ return jresult;
1055
+ }
1056
+
1057
+
1058
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1best_1cost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
1059
+ jdouble jresult = 0 ;
1060
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1061
+ size_t arg2 ;
1062
+ size_t arg3 ;
1063
+ double result;
1064
+
1065
+ (void)jenv;
1066
+ (void)jcls;
1067
+ (void)jarg1_;
1068
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1069
+ arg2 = (size_t)jarg2;
1070
+ arg3 = (size_t)jarg3;
1071
+ {
1072
+ try {
1073
+ result = (double)((CRFPP::Tagger const *)arg1)->best_cost(arg2,arg3);
1074
+ }
1075
+ catch (char *e) {
1076
+ {
1077
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1078
+ };
1079
+ }
1080
+ catch (const char *e) {
1081
+ {
1082
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1083
+ };
1084
+ }
1085
+ }
1086
+ jresult = (jdouble)result;
1087
+ return jresult;
1088
+ }
1089
+
1090
+
1091
+ SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1Z(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
1092
+ jdouble jresult = 0 ;
1093
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1094
+ double result;
1095
+
1096
+ (void)jenv;
1097
+ (void)jcls;
1098
+ (void)jarg1_;
1099
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1100
+ {
1101
+ try {
1102
+ result = (double)((CRFPP::Tagger const *)arg1)->Z();
1103
+ }
1104
+ catch (char *e) {
1105
+ {
1106
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1107
+ };
1108
+ }
1109
+ catch (const char *e) {
1110
+ {
1111
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1112
+ };
1113
+ }
1114
+ }
1115
+ jresult = (jdouble)result;
1116
+ return jresult;
1117
+ }
1118
+
1119
+
1120
+ SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1parse_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
1121
+ jboolean jresult = 0 ;
1122
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1123
+ bool result;
1124
+
1125
+ (void)jenv;
1126
+ (void)jcls;
1127
+ (void)jarg1_;
1128
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1129
+ {
1130
+ try {
1131
+ result = (bool)(arg1)->parse();
1132
+ }
1133
+ catch (char *e) {
1134
+ {
1135
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1136
+ };
1137
+ }
1138
+ catch (const char *e) {
1139
+ {
1140
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1141
+ };
1142
+ }
1143
+ }
1144
+ jresult = (jboolean)result;
1145
+ return jresult;
1146
+ }
1147
+
1148
+
1149
+ SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1empty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
1150
+ jboolean jresult = 0 ;
1151
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1152
+ bool result;
1153
+
1154
+ (void)jenv;
1155
+ (void)jcls;
1156
+ (void)jarg1_;
1157
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1158
+ {
1159
+ try {
1160
+ result = (bool)((CRFPP::Tagger const *)arg1)->empty();
1161
+ }
1162
+ catch (char *e) {
1163
+ {
1164
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1165
+ };
1166
+ }
1167
+ catch (const char *e) {
1168
+ {
1169
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1170
+ };
1171
+ }
1172
+ }
1173
+ jresult = (jboolean)result;
1174
+ return jresult;
1175
+ }
1176
+
1177
+
1178
+ SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
1179
+ jboolean jresult = 0 ;
1180
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1181
+ bool result;
1182
+
1183
+ (void)jenv;
1184
+ (void)jcls;
1185
+ (void)jarg1_;
1186
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1187
+ {
1188
+ try {
1189
+ result = (bool)(arg1)->clear();
1190
+ }
1191
+ catch (char *e) {
1192
+ {
1193
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1194
+ };
1195
+ }
1196
+ catch (const char *e) {
1197
+ {
1198
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1199
+ };
1200
+ }
1201
+ }
1202
+ jresult = (jboolean)result;
1203
+ return jresult;
1204
+ }
1205
+
1206
+
1207
+ SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1next(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
1208
+ jboolean jresult = 0 ;
1209
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1210
+ bool result;
1211
+
1212
+ (void)jenv;
1213
+ (void)jcls;
1214
+ (void)jarg1_;
1215
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1216
+ {
1217
+ try {
1218
+ result = (bool)(arg1)->next();
1219
+ }
1220
+ catch (char *e) {
1221
+ {
1222
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1223
+ };
1224
+ }
1225
+ catch (const char *e) {
1226
+ {
1227
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1228
+ };
1229
+ }
1230
+ }
1231
+ jresult = (jboolean)result;
1232
+ return jresult;
1233
+ }
1234
+
1235
+
1236
+ SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1parse_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
1237
+ jstring jresult = 0 ;
1238
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1239
+ char *arg2 = (char *) 0 ;
1240
+ char *result = 0 ;
1241
+
1242
+ (void)jenv;
1243
+ (void)jcls;
1244
+ (void)jarg1_;
1245
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1246
+ arg2 = 0;
1247
+ if (jarg2) {
1248
+ arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
1249
+ if (!arg2) return 0;
1250
+ }
1251
+ {
1252
+ try {
1253
+ result = (char *)(arg1)->parse((char const *)arg2);
1254
+ }
1255
+ catch (char *e) {
1256
+ {
1257
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1258
+ };
1259
+ }
1260
+ catch (const char *e) {
1261
+ {
1262
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1263
+ };
1264
+ }
1265
+ }
1266
+ if(result) jresult = jenv->NewStringUTF((const char *)result);
1267
+ if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
1268
+ return jresult;
1269
+ }
1270
+
1271
+
1272
+ SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1what(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
1273
+ jstring jresult = 0 ;
1274
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1275
+ char *result = 0 ;
1276
+
1277
+ (void)jenv;
1278
+ (void)jcls;
1279
+ (void)jarg1_;
1280
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1281
+ {
1282
+ try {
1283
+ result = (char *)(arg1)->what();
1284
+ }
1285
+ catch (char *e) {
1286
+ {
1287
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1288
+ };
1289
+ }
1290
+ catch (const char *e) {
1291
+ {
1292
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1293
+ };
1294
+ }
1295
+ }
1296
+ if(result) jresult = jenv->NewStringUTF((const char *)result);
1297
+ return jresult;
1298
+ }
1299
+
1300
+
1301
+ SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_delete_1Tagger(JNIEnv *jenv, jclass jcls, jlong jarg1) {
1302
+ CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ;
1303
+
1304
+ (void)jenv;
1305
+ (void)jcls;
1306
+ arg1 = *(CRFPP::Tagger **)&jarg1;
1307
+ {
1308
+ try {
1309
+ delete arg1;
1310
+ }
1311
+ catch (char *e) {
1312
+ {
1313
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ;
1314
+ };
1315
+ }
1316
+ catch (const char *e) {
1317
+ {
1318
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ;
1319
+ };
1320
+ }
1321
+ }
1322
+ }
1323
+
1324
+
1325
+ SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_new_1Tagger(JNIEnv *jenv, jclass jcls, jstring jarg1) {
1326
+ jlong jresult = 0 ;
1327
+ char *arg1 = (char *) 0 ;
1328
+ CRFPP::Tagger *result = 0 ;
1329
+
1330
+ (void)jenv;
1331
+ (void)jcls;
1332
+ arg1 = 0;
1333
+ if (jarg1) {
1334
+ arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
1335
+ if (!arg1) return 0;
1336
+ }
1337
+ {
1338
+ try {
1339
+ result = (CRFPP::Tagger *)new_CRFPP_Tagger((char const *)arg1);
1340
+ }
1341
+ catch (char *e) {
1342
+ {
1343
+ SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0;
1344
+ };
1345
+ }
1346
+ catch (const char *e) {
1347
+ {
1348
+ SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0;
1349
+ };
1350
+ }
1351
+ }
1352
+ *(CRFPP::Tagger **)&jresult = result;
1353
+ if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
1354
+ return jresult;
1355
+ }
1356
+
1357
+
1358
+ SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_VERSION_1get(JNIEnv *jenv, jclass jcls) {
1359
+ jstring jresult = 0 ;
1360
+ char *result = 0 ;
1361
+
1362
+ (void)jenv;
1363
+ (void)jcls;
1364
+ result = (char *) "0.52";
1365
+ if(result) jresult = jenv->NewStringUTF((const char *)result);
1366
+ return jresult;
1367
+ }
1368
+
1369
+
1370
+ #ifdef __cplusplus
1371
+ }
1372
+ #endif
1373
+
CRF/ChangeLog ADDED
File without changes
CRF/INSTALL ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Basic Installation
2
+ ==================
3
+
4
+ These are generic installation instructions.
5
+
6
+ The `configure' shell script attempts to guess correct values for
7
+ various system-dependent variables used during compilation. It uses
8
+ those values to create a `Makefile' in each directory of the package.
9
+ It may also create one or more `.h' files containing system-dependent
10
+ definitions. Finally, it creates a shell script `config.status' that
11
+ you can run in the future to recreate the current configuration, a file
12
+ `config.cache' that saves the results of its tests to speed up
13
+ reconfiguring, and a file `config.log' containing compiler output
14
+ (useful mainly for debugging `configure').
15
+
16
+ If you need to do unusual things to compile the package, please try
17
+ to figure out how `configure' could check whether to do them, and mail
18
+ diffs or instructions to the address given in the `README' so they can
19
+ be considered for the next release. If at some point `config.cache'
20
+ contains results you don't want to keep, you may remove or edit it.
21
+
22
+ The file `configure.in' is used to create `configure' by a program
23
+ called `autoconf'. You only need `configure.in' if you want to change
24
+ it or regenerate `configure' using a newer version of `autoconf'.
25
+
26
+ The simplest way to compile this package is:
27
+
28
+ 1. `cd' to the directory containing the package's source code and type
29
+ `./configure' to configure the package for your system. If you're
30
+ using `csh' on an old version of System V, you might need to type
31
+ `sh ./configure' instead to prevent `csh' from trying to execute
32
+ `configure' itself.
33
+
34
+ Running `configure' takes awhile. While running, it prints some
35
+ messages telling which features it is checking for.
36
+
37
+ 2. Type `make' to compile the package.
38
+
39
+ 3. Optionally, type `make check' to run any self-tests that come with
40
+ the package.
41
+
42
+ 4. Type `make install' to install the programs and any data files and
43
+ documentation.
44
+
45
+ 5. You can remove the program binaries and object files from the
46
+ source code directory by typing `make clean'. To also remove the
47
+ files that `configure' created (so you can compile the package for
48
+ a different kind of computer), type `make distclean'. There is
49
+ also a `make maintainer-clean' target, but that is intended mainly
50
+ for the package's developers. If you use it, you may have to get
51
+ all sorts of other programs in order to regenerate files that came
52
+ with the distribution.
53
+
54
+ Compilers and Options
55
+ =====================
56
+
57
+ Some systems require unusual options for compilation or linking that
58
+ the `configure' script does not know about. You can give `configure'
59
+ initial values for variables by setting them in the environment. Using
60
+ a Bourne-compatible shell, you can do that on the command line like
61
+ this:
62
+ CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
63
+
64
+ Or on systems that have the `env' program, you can do it like this:
65
+ env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
66
+
67
+ Compiling For Multiple Architectures
68
+ ====================================
69
+
70
+ You can compile the package for more than one kind of computer at the
71
+ same time, by placing the object files for each architecture in their
72
+ own directory. To do this, you must use a version of `make' that
73
+ supports the `VPATH' variable, such as GNU `make'. `cd' to the
74
+ directory where you want the object files and executables to go and run
75
+ the `configure' script. `configure' automatically checks for the
76
+ source code in the directory that `configure' is in and in `..'.
77
+
78
+ If you have to use a `make' that does not supports the `VPATH'
79
+ variable, you have to compile the package for one architecture at a time
80
+ in the source code directory. After you have installed the package for
81
+ one architecture, use `make distclean' before reconfiguring for another
82
+ architecture.
83
+
84
+ Installation Names
85
+ ==================
86
+
87
+ By default, `make install' will install the package's files in
88
+ `/usr/local/bin', `/usr/local/man', etc. You can specify an
89
+ installation prefix other than `/usr/local' by giving `configure' the
90
+ option `--prefix=PATH'.
91
+
92
+ You can specify separate installation prefixes for
93
+ architecture-specific files and architecture-independent files. If you
94
+ give `configure' the option `--exec-prefix=PATH', the package will use
95
+ PATH as the prefix for installing programs and libraries.
96
+ Documentation and other data files will still use the regular prefix.
97
+
98
+ In addition, if you use an unusual directory layout you can give
99
+ options like `--bindir=PATH' to specify different values for particular
100
+ kinds of files. Run `configure --help' for a list of the directories
101
+ you can set and what kinds of files go in them.
102
+
103
+ If the package supports it, you can cause programs to be installed
104
+ with an extra prefix or suffix on their names by giving `configure' the
105
+ option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
106
+
107
+ Optional Features
108
+ =================
109
+
110
+ Some packages pay attention to `--enable-FEATURE' options to
111
+ `configure', where FEATURE indicates an optional part of the package.
112
+ They may also pay attention to `--with-PACKAGE' options, where PACKAGE
113
+ is something like `gnu-as' or `x' (for the X Window System). The
114
+ `README' should mention any `--enable-' and `--with-' options that the
115
+ package recognizes.
116
+
117
+ For packages that use the X Window System, `configure' can usually
118
+ find the X include and library files automatically, but if it doesn't,
119
+ you can use the `configure' options `--x-includes=DIR' and
120
+ `--x-libraries=DIR' to specify their locations.
121
+
122
+ Specifying the System Type
123
+ ==========================
124
+
125
+ There may be some features `configure' can not figure out
126
+ automatically, but needs to determine by the type of host the package
127
+ will run on. Usually `configure' can figure that out, but if it prints
128
+ a message saying it can not guess the host type, give it the
129
+ `--host=TYPE' option. TYPE can either be a short name for the system
130
+ type, such as `sun4', or a canonical name with three fields:
131
+ CPU-COMPANY-SYSTEM
132
+
133
+ See the file `config.sub' for the possible values of each field. If
134
+ `config.sub' isn't included in this package, then this package doesn't
135
+ need to know the host type.
136
+
137
+ If you are building compiler tools for cross-compiling, you can also
138
+ use the `--target=TYPE' option to select the type of system they will
139
+ produce code for and the `--build=TYPE' option to select the type of
140
+ system on which you are compiling the package.
141
+
142
+ Sharing Defaults
143
+ ================
144
+
145
+ If you want to set default values for `configure' scripts to share,
146
+ you can create a site shell script called `config.site' that gives
147
+ default values for variables like `CC', `cache_file', and `prefix'.
148
+ `configure' looks for `PREFIX/share/config.site' if it exists, then
149
+ `PREFIX/etc/config.site' if it exists. Or, you can set the
150
+ `CONFIG_SITE' environment variable to the location of the site script.
151
+ A warning: not all `configure' scripts look for a site script.
152
+
153
+ Operation Controls
154
+ ==================
155
+
156
+ `configure' recognizes the following options to control how it
157
+ operates.
158
+
159
+ `--cache-file=FILE'
160
+ Use and save the results of the tests in FILE instead of
161
+ `./config.cache'. Set FILE to `/dev/null' to disable caching, for
162
+ debugging `configure'.
163
+
164
+ `--help'
165
+ Print a summary of the options to `configure', and exit.
166
+
167
+ `--quiet'
168
+ `--silent'
169
+ `-q'
170
+ Do not print messages saying which checks are being made. To
171
+ suppress all normal output, redirect it to `/dev/null' (any error
172
+ messages will still be shown).
173
+
174
+ `--srcdir=DIR'
175
+ Look for the package's source code in directory DIR. Usually
176
+ `configure' can determine that directory automatically.
177
+
178
+ `--version'
179
+ Print the version of Autoconf used to generate the `configure'
180
+ script, and exit.
181
+
182
+ `configure' also accepts some other, not widely useful, options.
CRF/LGPL ADDED
@@ -0,0 +1,504 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 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
+
CRF/Makefile ADDED
@@ -0,0 +1,855 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Makefile.in generated by automake 1.11.1 from Makefile.am.
2
+ # Makefile. Generated from Makefile.in by configure.
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # Inc.
7
+ # This Makefile.in is free software; the Free Software Foundation
8
+ # gives unlimited permission to copy and/or distribute it,
9
+ # with or without modifications, as long as this notice is preserved.
10
+
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
+ # PARTICULAR PURPOSE.
15
+
16
+
17
+
18
+
19
+
20
+
21
+ pkgdatadir = $(datadir)/CRF++
22
+ pkgincludedir = $(includedir)/CRF++
23
+ pkglibdir = $(libdir)/CRF++
24
+ pkglibexecdir = $(libexecdir)/CRF++
25
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
26
+ install_sh_DATA = $(install_sh) -c -m 644
27
+ install_sh_PROGRAM = $(install_sh) -c
28
+ install_sh_SCRIPT = $(install_sh) -c
29
+ INSTALL_HEADER = $(INSTALL_DATA)
30
+ transform = $(program_transform_name)
31
+ NORMAL_INSTALL = :
32
+ PRE_INSTALL = :
33
+ POST_INSTALL = :
34
+ NORMAL_UNINSTALL = :
35
+ PRE_UNINSTALL = :
36
+ POST_UNINSTALL = :
37
+ build_triplet = x86_64-unknown-linux-gnu
38
+ host_triplet = x86_64-unknown-linux-gnu
39
+ bin_PROGRAMS = crf_learn$(EXEEXT) crf_test$(EXEEXT)
40
+ subdir = .
41
+ DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
42
+ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
43
+ $(srcdir)/Makefile.msvc.in $(srcdir)/config.h.in \
44
+ $(top_srcdir)/configure $(top_srcdir)/swig/version.h.in \
45
+ AUTHORS COPYING ChangeLog INSTALL NEWS config.guess config.sub \
46
+ depcomp install-sh ltmain.sh missing mkinstalldirs
47
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
48
+ am__aclocal_m4_deps = $(top_srcdir)/configure.in
49
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50
+ $(ACLOCAL_M4)
51
+ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
52
+ configure.lineno config.status.lineno
53
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
54
+ CONFIG_HEADER = config.h
55
+ CONFIG_CLEAN_FILES = Makefile.msvc swig/version.h
56
+ CONFIG_CLEAN_VPATH_FILES =
57
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
58
+ am__vpath_adj = case $$p in \
59
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
60
+ *) f=$$p;; \
61
+ esac;
62
+ am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
63
+ am__install_max = 40
64
+ am__nobase_strip_setup = \
65
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
66
+ am__nobase_strip = \
67
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
68
+ am__nobase_list = $(am__nobase_strip_setup); \
69
+ for p in $$list; do echo "$$p $$p"; done | \
70
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
71
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
72
+ if (++n[$$2] == $(am__install_max)) \
73
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
74
+ END { for (dir in files) print dir, files[dir] }'
75
+ am__base_list = \
76
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
77
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
78
+ am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
79
+ "$(DESTDIR)$(includedir)"
80
+ LTLIBRARIES = $(lib_LTLIBRARIES)
81
+ libcrfpp_la_LIBADD =
82
+ am_libcrfpp_la_OBJECTS = libcrfpp.lo lbfgs.lo param.lo encoder.lo \
83
+ feature.lo feature_cache.lo feature_index.lo node.lo path.lo \
84
+ tagger.lo
85
+ libcrfpp_la_OBJECTS = $(am_libcrfpp_la_OBJECTS)
86
+ PROGRAMS = $(bin_PROGRAMS)
87
+ am_crf_learn_OBJECTS = crf_learn.$(OBJEXT)
88
+ crf_learn_OBJECTS = $(am_crf_learn_OBJECTS)
89
+ crf_learn_DEPENDENCIES = libcrfpp.la
90
+ am_crf_test_OBJECTS = crf_test.$(OBJEXT)
91
+ crf_test_OBJECTS = $(am_crf_test_OBJECTS)
92
+ crf_test_DEPENDENCIES = libcrfpp.la
93
+ DEFAULT_INCLUDES = -I.
94
+ depcomp =
95
+ am__depfiles_maybe =
96
+ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
97
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
98
+ LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
99
+ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
100
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
101
+ CXXLD = $(CXX)
102
+ CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
103
+ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
104
+ $(LDFLAGS) -o $@
105
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
106
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
107
+ LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
108
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
109
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
110
+ CCLD = $(CC)
111
+ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
112
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
113
+ $(LDFLAGS) -o $@
114
+ SOURCES = $(libcrfpp_la_SOURCES) $(crf_learn_SOURCES) \
115
+ $(crf_test_SOURCES)
116
+ DIST_SOURCES = $(libcrfpp_la_SOURCES) $(crf_learn_SOURCES) \
117
+ $(crf_test_SOURCES)
118
+ HEADERS = $(include_HEADERS)
119
+ ETAGS = etags
120
+ CTAGS = ctags
121
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
122
+ distdir = $(PACKAGE)-$(VERSION)
123
+ top_distdir = $(distdir)
124
+ am__remove_distdir = \
125
+ { test ! -d "$(distdir)" \
126
+ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
127
+ && rm -fr "$(distdir)"; }; }
128
+ DIST_ARCHIVES = $(distdir).tar.gz
129
+ GZIP_ENV = --best
130
+ distuninstallcheck_listfiles = find . -type f -print
131
+ distcleancheck_listfiles = find . -type f -print
132
+ ACLOCAL = ${SHELL} $(includedir)/CRF++/missing --run aclocal-1.11
133
+ AMTAR = ${SHELL} $(includedir)/CRF++/missing --run tar
134
+ AR = ar
135
+ AUTOCONF = ${SHELL} $(includedir)/CRF++/missing --run autoconf
136
+ AUTOHEADER = ${SHELL} $(includedir)/CRF++/missing --run autoheader
137
+ AUTOMAKE = ${SHELL} $(includedir)/CRF++/missing --run automake-1.11
138
+ AWK = gawk
139
+ CC = gcc
140
+ CCDEPMODE = depmode=gcc3
141
+ CFLAGS = -O3 -Wall
142
+ CPP = gcc -E
143
+ CPPFLAGS =
144
+ CXX = g++
145
+ CXXCPP = g++ -E
146
+ CXXDEPMODE = depmode=gcc3
147
+ CXXFLAGS = -O3 -Wall
148
+ CYGPATH_W = echo
149
+ DEFS = -DHAVE_CONFIG_H
150
+ DEPDIR = .deps
151
+ DSYMUTIL =
152
+ DUMPBIN =
153
+ ECHO_C =
154
+ ECHO_N = -n
155
+ ECHO_T =
156
+ EGREP = /bin/grep -E
157
+ EXEEXT =
158
+ FGREP = /bin/grep -F
159
+ GREP = /bin/grep
160
+ INSTALL = /usr/bin/install -c
161
+ INSTALL_DATA = ${INSTALL} -m 644
162
+ INSTALL_PROGRAM = ${INSTALL}
163
+ INSTALL_SCRIPT = ${INSTALL}
164
+ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
165
+ LD = /usr/bin/ld -m elf_x86_64
166
+ LDFLAGS =
167
+ LIBOBJS =
168
+ LIBS = -lpthread -lpthread -lm -lm -lm
169
+ LIBTOOL = $(SHELL) $(top_builddir)/libtool
170
+ LIPO =
171
+ LN_S = ln -s
172
+ LTLIBOBJS =
173
+ MAKEINFO = ${SHELL} $(includedir)/CRF++/missing --run makeinfo
174
+ MKDIR_P = /bin/mkdir -p
175
+ NM = /usr/bin/nm -B
176
+ NMEDIT =
177
+ OBJDUMP = objdump
178
+ OBJEXT = o
179
+ OTOOL =
180
+ OTOOL64 =
181
+ PACKAGE = CRF++
182
+ PACKAGE_BUGREPORT =
183
+ PACKAGE_NAME =
184
+ PACKAGE_STRING =
185
+ PACKAGE_TARNAME =
186
+ PACKAGE_URL =
187
+ PACKAGE_VERSION =
188
+ PATH_SEPARATOR = :
189
+ RANLIB = ranlib
190
+ SED = /bin/sed
191
+ SET_MAKE =
192
+ SHELL = /bin/sh
193
+ STRIP = strip
194
+ VERSION = 0.54
195
+ abs_builddir = $(includedir)/CRF++
196
+ abs_srcdir = $(includedir)/CRF++
197
+ abs_top_builddir = $(includedir)/CRF++
198
+ abs_top_srcdir = $(includedir)/CRF++
199
+ ac_ct_CC = gcc
200
+ ac_ct_CXX = g++
201
+ ac_ct_DUMPBIN =
202
+ am__include = include
203
+ am__leading_dot = .
204
+ am__quote =
205
+ am__tar = ${AMTAR} chof - "$$tardir"
206
+ am__untar = ${AMTAR} xf -
207
+ bindir = ${exec_prefix}/bin
208
+ build = x86_64-unknown-linux-gnu
209
+ build_alias =
210
+ build_cpu = x86_64
211
+ build_os = linux-gnu
212
+ build_vendor = unknown
213
+ builddir = .
214
+ datadir = ${datarootdir}
215
+ datarootdir = ${prefix}/share
216
+ docdir = ${datarootdir}/doc/${PACKAGE}
217
+ dvidir = ${docdir}
218
+ exec_prefix = ${prefix}
219
+ host = x86_64-unknown-linux-gnu
220
+ host_alias =
221
+ host_cpu = x86_64
222
+ host_os = linux-gnu
223
+ host_vendor = unknown
224
+ htmldir = ${docdir}
225
+ includedir = ${prefix}/include
226
+ infodir = ${datarootdir}/info
227
+ install_sh = ${SHELL} $(includedir)/CRF++/install-sh
228
+ libdir = ${exec_prefix}/lib
229
+ libexecdir = ${exec_prefix}/libexec
230
+ localedir = ${datarootdir}/locale
231
+ localstatedir = ${prefix}/var
232
+ lt_ECHO = echo
233
+ mandir = ${datarootdir}/man
234
+ mkdir_p = /bin/mkdir -p
235
+ oldincludedir = /usr/include
236
+ pdfdir = ${docdir}
237
+ prefix = /usr/local
238
+ program_transform_name = s,x,x,
239
+ psdir = ${docdir}
240
+ sbindir = ${exec_prefix}/sbin
241
+ sharedstatedir = ${prefix}/com
242
+ srcdir = .
243
+ sysconfdir = ${prefix}/etc
244
+ target_alias =
245
+ top_build_prefix =
246
+ top_builddir = .
247
+ top_srcdir = .
248
+ EXTRA_DIST = README Makefile.msvc.in merge-models.pl
249
+ EXTRA_DIRS = doc example sdk perl python ruby java swig
250
+ AUTOMAKE_OPTIONS = no-dependencies
251
+ lib_LTLIBRARIES = libcrfpp.la
252
+ libcrfpp_la_SOURCES = crfpp.h thread.h libcrfpp.cpp lbfgs.cpp scoped_ptr.h param.cpp param.h encoder.cpp feature.cpp stream_wrapper.h \
253
+ feature_cache.cpp feature_index.cpp node.cpp path.cpp tagger.cpp \
254
+ common.h darts.h encoder.h feature_cache.h feature_index.h \
255
+ freelist.h lbfgs.h mmap.h node.h path.h tagger.h timer.h
256
+
257
+ include_HEADERS = crfpp.h
258
+ crf_learn_SOURCES = crf_learn.cpp
259
+ crf_learn_LDADD = libcrfpp.la
260
+ crf_test_SOURCES = crf_test.cpp
261
+ crf_test_LDADD = libcrfpp.la
262
+ all: config.h
263
+ $(MAKE) $(AM_MAKEFLAGS) all-am
264
+
265
+ .SUFFIXES:
266
+ .SUFFIXES: .cpp .lo .o .obj
267
+ am--refresh:
268
+ @:
269
+ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
270
+ @for dep in $?; do \
271
+ case '$(am__configure_deps)' in \
272
+ *$$dep*) \
273
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
274
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
275
+ && exit 0; \
276
+ exit 1;; \
277
+ esac; \
278
+ done; \
279
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
280
+ $(am__cd) $(top_srcdir) && \
281
+ $(AUTOMAKE) --gnu Makefile
282
+ .PRECIOUS: Makefile
283
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
284
+ @case '$?' in \
285
+ *config.status*) \
286
+ echo ' $(SHELL) ./config.status'; \
287
+ $(SHELL) ./config.status;; \
288
+ *) \
289
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
290
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
291
+ esac;
292
+
293
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
294
+ $(SHELL) ./config.status --recheck
295
+
296
+ $(top_srcdir)/configure: $(am__configure_deps)
297
+ $(am__cd) $(srcdir) && $(AUTOCONF)
298
+ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
299
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
300
+ $(am__aclocal_m4_deps):
301
+
302
+ config.h: stamp-h1
303
+ @if test ! -f $@; then \
304
+ rm -f stamp-h1; \
305
+ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
306
+ else :; fi
307
+
308
+ stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
309
+ @rm -f stamp-h1
310
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
311
+ $(srcdir)/config.h.in: $(am__configure_deps)
312
+ ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
313
+ rm -f stamp-h1
314
+ touch $@
315
+
316
+ distclean-hdr:
317
+ -rm -f config.h stamp-h1
318
+ Makefile.msvc: $(top_builddir)/config.status $(srcdir)/Makefile.msvc.in
319
+ cd $(top_builddir) && $(SHELL) ./config.status $@
320
+ swig/version.h: $(top_builddir)/config.status $(top_srcdir)/swig/version.h.in
321
+ cd $(top_builddir) && $(SHELL) ./config.status $@
322
+ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
323
+ @$(NORMAL_INSTALL)
324
+ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
325
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
326
+ list2=; for p in $$list; do \
327
+ if test -f $$p; then \
328
+ list2="$$list2 $$p"; \
329
+ else :; fi; \
330
+ done; \
331
+ test -z "$$list2" || { \
332
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
333
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
334
+ }
335
+
336
+ uninstall-libLTLIBRARIES:
337
+ @$(NORMAL_UNINSTALL)
338
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
339
+ for p in $$list; do \
340
+ $(am__strip_dir) \
341
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
342
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
343
+ done
344
+
345
+ clean-libLTLIBRARIES:
346
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
347
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
348
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
349
+ test "$$dir" != "$$p" || dir=.; \
350
+ echo "rm -f \"$${dir}/so_locations\""; \
351
+ rm -f "$${dir}/so_locations"; \
352
+ done
353
+ libcrfpp.la: $(libcrfpp_la_OBJECTS) $(libcrfpp_la_DEPENDENCIES)
354
+ $(CXXLINK) -rpath $(libdir) $(libcrfpp_la_OBJECTS) $(libcrfpp_la_LIBADD) $(LIBS)
355
+ install-binPROGRAMS: $(bin_PROGRAMS)
356
+ @$(NORMAL_INSTALL)
357
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
358
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
359
+ for p in $$list; do echo "$$p $$p"; done | \
360
+ sed 's/$(EXEEXT)$$//' | \
361
+ while read p p1; do if test -f $$p || test -f $$p1; \
362
+ then echo "$$p"; echo "$$p"; else :; fi; \
363
+ done | \
364
+ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
365
+ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
366
+ sed 'N;N;N;s,\n, ,g' | \
367
+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
368
+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
369
+ if ($$2 == $$4) files[d] = files[d] " " $$1; \
370
+ else { print "f", $$3 "/" $$4, $$1; } } \
371
+ END { for (d in files) print "f", d, files[d] }' | \
372
+ while read type dir files; do \
373
+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
374
+ test -z "$$files" || { \
375
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
376
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
377
+ } \
378
+ ; done
379
+
380
+ uninstall-binPROGRAMS:
381
+ @$(NORMAL_UNINSTALL)
382
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
383
+ files=`for p in $$list; do echo "$$p"; done | \
384
+ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
385
+ -e 's/$$/$(EXEEXT)/' `; \
386
+ test -n "$$list" || exit 0; \
387
+ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
388
+ cd "$(DESTDIR)$(bindir)" && rm -f $$files
389
+
390
+ clean-binPROGRAMS:
391
+ @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
392
+ echo " rm -f" $$list; \
393
+ rm -f $$list || exit $$?; \
394
+ test -n "$(EXEEXT)" || exit 0; \
395
+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
396
+ echo " rm -f" $$list; \
397
+ rm -f $$list
398
+ crf_learn$(EXEEXT): $(crf_learn_OBJECTS) $(crf_learn_DEPENDENCIES)
399
+ @rm -f crf_learn$(EXEEXT)
400
+ $(CXXLINK) $(crf_learn_OBJECTS) $(crf_learn_LDADD) $(LIBS)
401
+ crf_test$(EXEEXT): $(crf_test_OBJECTS) $(crf_test_DEPENDENCIES)
402
+ @rm -f crf_test$(EXEEXT)
403
+ $(CXXLINK) $(crf_test_OBJECTS) $(crf_test_LDADD) $(LIBS)
404
+
405
+ mostlyclean-compile:
406
+ -rm -f *.$(OBJEXT)
407
+
408
+ distclean-compile:
409
+ -rm -f *.tab.c
410
+
411
+ .cpp.o:
412
+ $(CXXCOMPILE) -c -o $@ $<
413
+
414
+ .cpp.obj:
415
+ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
416
+
417
+ .cpp.lo:
418
+ $(LTCXXCOMPILE) -c -o $@ $<
419
+
420
+ mostlyclean-libtool:
421
+ -rm -f *.lo
422
+
423
+ clean-libtool:
424
+ -rm -rf .libs _libs
425
+
426
+ distclean-libtool:
427
+ -rm -f libtool config.lt
428
+ install-includeHEADERS: $(include_HEADERS)
429
+ @$(NORMAL_INSTALL)
430
+ test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
431
+ @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
432
+ for p in $$list; do \
433
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
434
+ echo "$$d$$p"; \
435
+ done | $(am__base_list) | \
436
+ while read files; do \
437
+ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
438
+ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
439
+ done
440
+
441
+ uninstall-includeHEADERS:
442
+ @$(NORMAL_UNINSTALL)
443
+ @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
444
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
445
+ test -n "$$files" || exit 0; \
446
+ echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
447
+ cd "$(DESTDIR)$(includedir)" && rm -f $$files
448
+
449
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
450
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
451
+ unique=`for i in $$list; do \
452
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
453
+ done | \
454
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
455
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
456
+ mkid -fID $$unique
457
+ tags: TAGS
458
+
459
+ TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
460
+ $(TAGS_FILES) $(LISP)
461
+ set x; \
462
+ here=`pwd`; \
463
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
464
+ unique=`for i in $$list; do \
465
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
466
+ done | \
467
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
468
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
469
+ shift; \
470
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
471
+ test -n "$$unique" || unique=$$empty_fix; \
472
+ if test $$# -gt 0; then \
473
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
474
+ "$$@" $$unique; \
475
+ else \
476
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
477
+ $$unique; \
478
+ fi; \
479
+ fi
480
+ ctags: CTAGS
481
+ CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
482
+ $(TAGS_FILES) $(LISP)
483
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
484
+ unique=`for i in $$list; do \
485
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
486
+ done | \
487
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
488
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
489
+ test -z "$(CTAGS_ARGS)$$unique" \
490
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
491
+ $$unique
492
+
493
+ GTAGS:
494
+ here=`$(am__cd) $(top_builddir) && pwd` \
495
+ && $(am__cd) $(top_srcdir) \
496
+ && gtags -i $(GTAGS_ARGS) "$$here"
497
+
498
+ distclean-tags:
499
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
500
+
501
+ distdir: $(DISTFILES)
502
+ $(am__remove_distdir)
503
+ test -d "$(distdir)" || mkdir "$(distdir)"
504
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
505
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
506
+ list='$(DISTFILES)'; \
507
+ dist_files=`for file in $$list; do echo $$file; done | \
508
+ sed -e "s|^$$srcdirstrip/||;t" \
509
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
510
+ case $$dist_files in \
511
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
512
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
513
+ sort -u` ;; \
514
+ esac; \
515
+ for file in $$dist_files; do \
516
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
517
+ if test -d $$d/$$file; then \
518
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
519
+ if test -d "$(distdir)/$$file"; then \
520
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
521
+ fi; \
522
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
523
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
524
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
525
+ fi; \
526
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
527
+ else \
528
+ test -f "$(distdir)/$$file" \
529
+ || cp -p $$d/$$file "$(distdir)/$$file" \
530
+ || exit 1; \
531
+ fi; \
532
+ done
533
+ $(MAKE) $(AM_MAKEFLAGS) \
534
+ top_distdir="$(top_distdir)" distdir="$(distdir)" \
535
+ dist-hook
536
+ -test -n "$(am__skip_mode_fix)" \
537
+ || find "$(distdir)" -type d ! -perm -755 \
538
+ -exec chmod u+rwx,go+rx {} \; -o \
539
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
540
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
541
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
542
+ || chmod -R a+r "$(distdir)"
543
+ dist-gzip: distdir
544
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
545
+ $(am__remove_distdir)
546
+
547
+ dist-bzip2: distdir
548
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
549
+ $(am__remove_distdir)
550
+
551
+ dist-lzma: distdir
552
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
553
+ $(am__remove_distdir)
554
+
555
+ dist-xz: distdir
556
+ tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
557
+ $(am__remove_distdir)
558
+
559
+ dist-tarZ: distdir
560
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
561
+ $(am__remove_distdir)
562
+
563
+ dist-shar: distdir
564
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
565
+ $(am__remove_distdir)
566
+
567
+ dist-zip: distdir
568
+ -rm -f $(distdir).zip
569
+ zip -rq $(distdir).zip $(distdir)
570
+ $(am__remove_distdir)
571
+
572
+ dist dist-all: distdir
573
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
574
+ $(am__remove_distdir)
575
+
576
+ # This target untars the dist file and tries a VPATH configuration. Then
577
+ # it guarantees that the distribution is self-contained by making another
578
+ # tarfile.
579
+ distcheck: dist
580
+ case '$(DIST_ARCHIVES)' in \
581
+ *.tar.gz*) \
582
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
583
+ *.tar.bz2*) \
584
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
585
+ *.tar.lzma*) \
586
+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
587
+ *.tar.xz*) \
588
+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
589
+ *.tar.Z*) \
590
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
591
+ *.shar.gz*) \
592
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
593
+ *.zip*) \
594
+ unzip $(distdir).zip ;;\
595
+ esac
596
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
597
+ mkdir $(distdir)/_build
598
+ mkdir $(distdir)/_inst
599
+ chmod a-w $(distdir)
600
+ test -d $(distdir)/_build || exit 0; \
601
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
602
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
603
+ && am__cwd=`pwd` \
604
+ && $(am__cd) $(distdir)/_build \
605
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
606
+ $(DISTCHECK_CONFIGURE_FLAGS) \
607
+ && $(MAKE) $(AM_MAKEFLAGS) \
608
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
609
+ && $(MAKE) $(AM_MAKEFLAGS) check \
610
+ && $(MAKE) $(AM_MAKEFLAGS) install \
611
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
612
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
613
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
614
+ distuninstallcheck \
615
+ && chmod -R a-w "$$dc_install_base" \
616
+ && ({ \
617
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
618
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
619
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
620
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
621
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
622
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
623
+ && rm -rf "$$dc_destdir" \
624
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
625
+ && rm -rf $(DIST_ARCHIVES) \
626
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
627
+ && cd "$$am__cwd" \
628
+ || exit 1
629
+ $(am__remove_distdir)
630
+ @(echo "$(distdir) archives ready for distribution: "; \
631
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
632
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
633
+ distuninstallcheck:
634
+ @$(am__cd) '$(distuninstallcheck_dir)' \
635
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
636
+ || { echo "ERROR: files left after uninstall:" ; \
637
+ if test -n "$(DESTDIR)"; then \
638
+ echo " (check DESTDIR support)"; \
639
+ fi ; \
640
+ $(distuninstallcheck_listfiles) ; \
641
+ exit 1; } >&2
642
+ distcleancheck: distclean
643
+ @if test '$(srcdir)' = . ; then \
644
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
645
+ exit 1 ; \
646
+ fi
647
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
648
+ || { echo "ERROR: files left in build directory after distclean:" ; \
649
+ $(distcleancheck_listfiles) ; \
650
+ exit 1; } >&2
651
+ check-am: all-am
652
+ check: check-am
653
+ all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) config.h
654
+ install-binPROGRAMS: install-libLTLIBRARIES
655
+
656
+ installdirs:
657
+ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)"; do \
658
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
659
+ done
660
+ install: install-am
661
+ install-exec: install-exec-am
662
+ install-data: install-data-am
663
+ uninstall: uninstall-am
664
+
665
+ install-am: all-am
666
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
667
+
668
+ installcheck: installcheck-am
669
+ install-strip:
670
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
671
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
672
+ `test -z '$(STRIP)' || \
673
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
674
+ mostlyclean-generic:
675
+
676
+ clean-generic:
677
+
678
+ distclean-generic:
679
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
680
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
681
+
682
+ maintainer-clean-generic:
683
+ @echo "This command is intended for maintainers to use"
684
+ @echo "it deletes files that may require special tools to rebuild."
685
+ clean: clean-am
686
+
687
+ clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
688
+ clean-libtool mostlyclean-am
689
+
690
+ distclean: distclean-am
691
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
692
+ -rm -f Makefile
693
+ distclean-am: clean-am distclean-compile distclean-generic \
694
+ distclean-hdr distclean-libtool distclean-tags
695
+
696
+ dvi: dvi-am
697
+
698
+ dvi-am:
699
+
700
+ html: html-am
701
+
702
+ html-am:
703
+
704
+ info: info-am
705
+
706
+ info-am:
707
+
708
+ install-data-am: install-includeHEADERS
709
+
710
+ install-dvi: install-dvi-am
711
+
712
+ install-dvi-am:
713
+
714
+ install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
715
+
716
+ install-html: install-html-am
717
+
718
+ install-html-am:
719
+
720
+ install-info: install-info-am
721
+
722
+ install-info-am:
723
+
724
+ install-man:
725
+
726
+ install-pdf: install-pdf-am
727
+
728
+ install-pdf-am:
729
+
730
+ install-ps: install-ps-am
731
+
732
+ install-ps-am:
733
+
734
+ installcheck-am:
735
+
736
+ maintainer-clean: maintainer-clean-am
737
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
738
+ -rm -rf $(top_srcdir)/autom4te.cache
739
+ -rm -f Makefile
740
+ maintainer-clean-am: distclean-am maintainer-clean-generic
741
+
742
+ mostlyclean: mostlyclean-am
743
+
744
+ mostlyclean-am: mostlyclean-compile mostlyclean-generic \
745
+ mostlyclean-libtool
746
+
747
+ pdf: pdf-am
748
+
749
+ pdf-am:
750
+
751
+ ps: ps-am
752
+
753
+ ps-am:
754
+
755
+ uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \
756
+ uninstall-libLTLIBRARIES
757
+
758
+ .MAKE: all install-am install-strip
759
+
760
+ .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
761
+ clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
762
+ clean-libtool ctags dist dist-all dist-bzip2 dist-gzip \
763
+ dist-hook dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
764
+ distcheck distclean distclean-compile distclean-generic \
765
+ distclean-hdr distclean-libtool distclean-tags distcleancheck \
766
+ distdir distuninstallcheck dvi dvi-am html html-am info \
767
+ info-am install install-am install-binPROGRAMS install-data \
768
+ install-data-am install-dvi install-dvi-am install-exec \
769
+ install-exec-am install-html install-html-am \
770
+ install-includeHEADERS install-info install-info-am \
771
+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
772
+ install-ps install-ps-am install-strip installcheck \
773
+ installcheck-am installdirs maintainer-clean \
774
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
775
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
776
+ tags uninstall uninstall-am uninstall-binPROGRAMS \
777
+ uninstall-includeHEADERS uninstall-libLTLIBRARIES
778
+
779
+
780
+ dist-hook:
781
+ for subdir in $(EXTRA_DIRS); do \
782
+ cp -rp $$subdir $(distdir); \
783
+ rm -f $(distdir)/$$subdir/*~; \
784
+ rm -f $(distdir)/$$subdir/*.{bak,orig}; \
785
+ rm -rf $(distdir)/$$subdir/CVS; \
786
+ rm -rf $(distdir)/$$subdir/.svn; \
787
+ rm -rf $(distdir)/.svn; \
788
+ rm -rf $(distdir)/*/.svn; \
789
+ rm -rf $(distdir)/*/*/.svn; \
790
+ rm -rf $(distdir)/$$subdir/*/CVS; \
791
+ rm -rf $(distdir)/$$subdir/*/.svn; \
792
+ find $(distdir) -name .svn | xargs rm -fr; \
793
+ done
794
+
795
+ win:
796
+ (cd src; rm -f *.exe *.obj *.dll)
797
+ # (cd src; wcmd /c make.bat)
798
+
799
+ win-dist:
800
+ rm -f CRF++-0.54.zip
801
+ mkdir -p CRF++-0.54/doc
802
+ mkdir -p CRF++-0.54/example
803
+ mkdir -p CRF++-0.54/sdk
804
+ cp -f crf_learn.exe CRF++-0.54
805
+ cp -f crf_test.exe CRF++-0.54
806
+ cp -f libcrfpp.dll CRF++-0.54
807
+ cp -f libcrfpp.lib CRF++-0.54/sdk
808
+ cp -f crfpp.h CRF++-0.54/sdk
809
+ # cp -f sdk/model CRF++-0.54/sdk
810
+ cp -f sdk/example.cpp CRF++-0.54/sdk
811
+ cp -fr doc/*.html doc/*.css doc/doxygen CRF++-0.54/doc
812
+ cp -f README COPYING AUTHORS LGPL BSD CRF++-0.54
813
+ cp -fr example/* CRF++-0.54/example
814
+ find CRF++-0.54 -name CVS | xargs rm -rf
815
+ find CRF++-0.54 -name .svn | xargs rm -rf
816
+ zip -r CRF++-0.54.zip CRF++-0.54
817
+ rm -fr CRF++-0.54
818
+
819
+ dist-all-package:
820
+ (test -f Makefile) && $(MAKE) distclean
821
+ ./configure
822
+ $(MAKE) dist
823
+ $(MAKE) clean
824
+ $(MAKE) script-clean
825
+ $(MAKE) script-dist
826
+ $(MAKE) win
827
+ $(MAKE) win-dist
828
+
829
+ script-dist:
830
+ for subdir in perl ruby python java; do \
831
+ rm -fr CRF++-$${subdir}-0.54; \
832
+ mkdir CRF++-$${subdir}-0.54; \
833
+ cp -r $${subdir}/* CRF++-$${subdir}-0.54; \
834
+ cp -r doc/bindings.html CRF++-$${subdir}-0.54; \
835
+ find ./CRF++-$${subdir}-0.54 -type d -name CVS | xargs rm -fr; \
836
+ rm -f CRF++-$${subdir}-0.54/*~; \
837
+ tar zcfv CRF++-$${subdir}-0.54.tar.gz CRF++-$${subdir}-0.54; \
838
+ rm -fr CRF++-$${subdir}-0.54; \
839
+ done
840
+
841
+ script-clean:
842
+ (cd perl; $(MAKE) clean; rm -f Makefile.old Makefile)
843
+ (cd ruby; $(MAKE) clean; rm -f Makefile *.log)
844
+ (cd python; python setup.py clean --all)
845
+ (cd java; $(MAKE) clean;)
846
+
847
+ export-package:
848
+ ./upload.pl -p crfpp -n crfpp -r 0.54 -f CRF++-0.54.tar.gz
849
+ ./upload.pl -p crfpp -n crfpp-win32 -r 0.54 -f CRF++-0.54.zip
850
+ scp doc/*.html sf:public_html/crfpp/
851
+ scp doc/*.css sf:public_html/crfpp/
852
+
853
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
854
+ # Otherwise a system limit (for SysV at least) may be exceeded.
855
+ .NOEXPORT:
CRF/Makefile.am ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ EXTRA_DIST = README Makefile.msvc.in merge-models.pl
2
+ EXTRA_DIRS = doc example sdk perl python ruby java swig
3
+ bin_PROGRAMS = crf_learn crf_test
4
+
5
+ AUTOMAKE_OPTIONS = no-dependencies
6
+ lib_LTLIBRARIES = libcrfpp.la
7
+ libcrfpp_la_SOURCES = crfpp.h thread.h libcrfpp.cpp lbfgs.cpp scoped_ptr.h param.cpp param.h encoder.cpp feature.cpp stream_wrapper.h \
8
+ feature_cache.cpp feature_index.cpp node.cpp path.cpp tagger.cpp \
9
+ common.h darts.h encoder.h feature_cache.h feature_index.h \
10
+ freelist.h lbfgs.h mmap.h node.h path.h tagger.h timer.h
11
+ include_HEADERS = crfpp.h
12
+
13
+ dist-hook:
14
+ for subdir in $(EXTRA_DIRS); do \
15
+ cp -rp $$subdir $(distdir); \
16
+ rm -f $(distdir)/$$subdir/*~; \
17
+ rm -f $(distdir)/$$subdir/*.{bak,orig}; \
18
+ rm -rf $(distdir)/$$subdir/CVS; \
19
+ rm -rf $(distdir)/$$subdir/.svn; \
20
+ rm -rf $(distdir)/.svn; \
21
+ rm -rf $(distdir)/*/.svn; \
22
+ rm -rf $(distdir)/*/*/.svn; \
23
+ rm -rf $(distdir)/$$subdir/*/CVS; \
24
+ rm -rf $(distdir)/$$subdir/*/.svn; \
25
+ find $(distdir) -name .svn | xargs rm -fr; \
26
+ done
27
+
28
+ win:
29
+ (cd src; rm -f *.exe *.obj *.dll)
30
+ # (cd src; wcmd /c make.bat)
31
+
32
+ win-dist:
33
+ rm -f @PACKAGE@-@VERSION@.zip
34
+ mkdir -p @PACKAGE@-@VERSION@/doc
35
+ mkdir -p @PACKAGE@-@VERSION@/example
36
+ mkdir -p @PACKAGE@-@VERSION@/sdk
37
+ cp -f crf_learn.exe @PACKAGE@-@VERSION@
38
+ cp -f crf_test.exe @PACKAGE@-@VERSION@
39
+ cp -f libcrfpp.dll @PACKAGE@-@VERSION@
40
+ cp -f libcrfpp.lib @PACKAGE@-@VERSION@/sdk
41
+ cp -f crfpp.h @PACKAGE@-@VERSION@/sdk
42
+ # cp -f sdk/model @PACKAGE@-@VERSION@/sdk
43
+ cp -f sdk/example.cpp @PACKAGE@-@VERSION@/sdk
44
+ cp -fr doc/*.html doc/*.css doc/doxygen @PACKAGE@-@VERSION@/doc
45
+ cp -f README COPYING AUTHORS LGPL BSD @PACKAGE@-@VERSION@
46
+ cp -fr example/* @PACKAGE@-@VERSION@/example
47
+ find @PACKAGE@-@VERSION@ -name CVS | xargs rm -rf
48
+ find @PACKAGE@-@VERSION@ -name .svn | xargs rm -rf
49
+ zip -r @PACKAGE@-@VERSION@.zip @PACKAGE@-@VERSION@
50
+ rm -fr @PACKAGE@-@VERSION@
51
+
52
+ crf_learn_SOURCES = crf_learn.cpp
53
+ crf_learn_LDADD = libcrfpp.la
54
+
55
+ crf_test_SOURCES = crf_test.cpp
56
+ crf_test_LDADD = libcrfpp.la
57
+
58
+ dist-all-package:
59
+ (test -f Makefile) && $(MAKE) distclean
60
+ ./configure
61
+ $(MAKE) dist
62
+ $(MAKE) clean
63
+ $(MAKE) script-clean
64
+ $(MAKE) script-dist
65
+ $(MAKE) win
66
+ $(MAKE) win-dist
67
+
68
+ script-dist:
69
+ for subdir in perl ruby python java; do \
70
+ rm -fr CRF++-$${subdir}-@VERSION@; \
71
+ mkdir CRF++-$${subdir}-@VERSION@; \
72
+ cp -r $${subdir}/* CRF++-$${subdir}-@VERSION@; \
73
+ cp -r doc/bindings.html CRF++-$${subdir}-@VERSION@; \
74
+ find ./CRF++-$${subdir}-@VERSION@ -type d -name CVS | xargs rm -fr; \
75
+ rm -f CRF++-$${subdir}-@VERSION@/*~; \
76
+ tar zcfv CRF++-$${subdir}-@VERSION@.tar.gz CRF++-$${subdir}-@VERSION@; \
77
+ rm -fr CRF++-$${subdir}-@VERSION@; \
78
+ done
79
+
80
+ script-clean:
81
+ (cd perl; $(MAKE) clean; rm -f Makefile.old Makefile)
82
+ (cd ruby; $(MAKE) clean; rm -f Makefile *.log)
83
+ (cd python; python setup.py clean --all)
84
+ (cd java; $(MAKE) clean;)
85
+
86
+ export-package:
87
+ ./upload.pl -p crfpp -n crfpp -r @VERSION@ -f CRF++-@VERSION@.tar.gz
88
+ ./upload.pl -p crfpp -n crfpp-win32 -r @VERSION@ -f CRF++-@VERSION@.zip
89
+ scp doc/*.html sf:public_html/crfpp/
90
+ scp doc/*.css sf:public_html/crfpp/
CRF/Makefile.in ADDED
@@ -0,0 +1,855 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Makefile.in generated by automake 1.11.1 from Makefile.am.
2
+ # @configure_input@
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # Inc.
7
+ # This Makefile.in is free software; the Free Software Foundation
8
+ # gives unlimited permission to copy and/or distribute it,
9
+ # with or without modifications, as long as this notice is preserved.
10
+
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
+ # PARTICULAR PURPOSE.
15
+
16
+ @SET_MAKE@
17
+
18
+
19
+
20
+ VPATH = @srcdir@
21
+ pkgdatadir = $(datadir)/@PACKAGE@
22
+ pkgincludedir = $(includedir)/@PACKAGE@
23
+ pkglibdir = $(libdir)/@PACKAGE@
24
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
25
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
26
+ install_sh_DATA = $(install_sh) -c -m 644
27
+ install_sh_PROGRAM = $(install_sh) -c
28
+ install_sh_SCRIPT = $(install_sh) -c
29
+ INSTALL_HEADER = $(INSTALL_DATA)
30
+ transform = $(program_transform_name)
31
+ NORMAL_INSTALL = :
32
+ PRE_INSTALL = :
33
+ POST_INSTALL = :
34
+ NORMAL_UNINSTALL = :
35
+ PRE_UNINSTALL = :
36
+ POST_UNINSTALL = :
37
+ build_triplet = @build@
38
+ host_triplet = @host@
39
+ bin_PROGRAMS = crf_learn$(EXEEXT) crf_test$(EXEEXT)
40
+ subdir = .
41
+ DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
42
+ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
43
+ $(srcdir)/Makefile.msvc.in $(srcdir)/config.h.in \
44
+ $(top_srcdir)/configure $(top_srcdir)/swig/version.h.in \
45
+ AUTHORS COPYING ChangeLog INSTALL NEWS config.guess config.sub \
46
+ depcomp install-sh ltmain.sh missing mkinstalldirs
47
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
48
+ am__aclocal_m4_deps = $(top_srcdir)/configure.in
49
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50
+ $(ACLOCAL_M4)
51
+ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
52
+ configure.lineno config.status.lineno
53
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
54
+ CONFIG_HEADER = config.h
55
+ CONFIG_CLEAN_FILES = Makefile.msvc swig/version.h
56
+ CONFIG_CLEAN_VPATH_FILES =
57
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
58
+ am__vpath_adj = case $$p in \
59
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
60
+ *) f=$$p;; \
61
+ esac;
62
+ am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
63
+ am__install_max = 40
64
+ am__nobase_strip_setup = \
65
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
66
+ am__nobase_strip = \
67
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
68
+ am__nobase_list = $(am__nobase_strip_setup); \
69
+ for p in $$list; do echo "$$p $$p"; done | \
70
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
71
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
72
+ if (++n[$$2] == $(am__install_max)) \
73
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
74
+ END { for (dir in files) print dir, files[dir] }'
75
+ am__base_list = \
76
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
77
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
78
+ am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
79
+ "$(DESTDIR)$(includedir)"
80
+ LTLIBRARIES = $(lib_LTLIBRARIES)
81
+ libcrfpp_la_LIBADD =
82
+ am_libcrfpp_la_OBJECTS = libcrfpp.lo lbfgs.lo param.lo encoder.lo \
83
+ feature.lo feature_cache.lo feature_index.lo node.lo path.lo \
84
+ tagger.lo
85
+ libcrfpp_la_OBJECTS = $(am_libcrfpp_la_OBJECTS)
86
+ PROGRAMS = $(bin_PROGRAMS)
87
+ am_crf_learn_OBJECTS = crf_learn.$(OBJEXT)
88
+ crf_learn_OBJECTS = $(am_crf_learn_OBJECTS)
89
+ crf_learn_DEPENDENCIES = libcrfpp.la
90
+ am_crf_test_OBJECTS = crf_test.$(OBJEXT)
91
+ crf_test_OBJECTS = $(am_crf_test_OBJECTS)
92
+ crf_test_DEPENDENCIES = libcrfpp.la
93
+ DEFAULT_INCLUDES = -I.@am__isrc@
94
+ depcomp =
95
+ am__depfiles_maybe =
96
+ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
97
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
98
+ LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
99
+ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
100
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
101
+ CXXLD = $(CXX)
102
+ CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
103
+ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
104
+ $(LDFLAGS) -o $@
105
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
106
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
107
+ LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
108
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
109
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
110
+ CCLD = $(CC)
111
+ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
112
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
113
+ $(LDFLAGS) -o $@
114
+ SOURCES = $(libcrfpp_la_SOURCES) $(crf_learn_SOURCES) \
115
+ $(crf_test_SOURCES)
116
+ DIST_SOURCES = $(libcrfpp_la_SOURCES) $(crf_learn_SOURCES) \
117
+ $(crf_test_SOURCES)
118
+ HEADERS = $(include_HEADERS)
119
+ ETAGS = etags
120
+ CTAGS = ctags
121
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
122
+ distdir = $(PACKAGE)-$(VERSION)
123
+ top_distdir = $(distdir)
124
+ am__remove_distdir = \
125
+ { test ! -d "$(distdir)" \
126
+ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
127
+ && rm -fr "$(distdir)"; }; }
128
+ DIST_ARCHIVES = $(distdir).tar.gz
129
+ GZIP_ENV = --best
130
+ distuninstallcheck_listfiles = find . -type f -print
131
+ distcleancheck_listfiles = find . -type f -print
132
+ ACLOCAL = @ACLOCAL@
133
+ AMTAR = @AMTAR@
134
+ AR = @AR@
135
+ AUTOCONF = @AUTOCONF@
136
+ AUTOHEADER = @AUTOHEADER@
137
+ AUTOMAKE = @AUTOMAKE@
138
+ AWK = @AWK@
139
+ CC = @CC@
140
+ CCDEPMODE = @CCDEPMODE@
141
+ CFLAGS = @CFLAGS@
142
+ CPP = @CPP@
143
+ CPPFLAGS = @CPPFLAGS@
144
+ CXX = @CXX@
145
+ CXXCPP = @CXXCPP@
146
+ CXXDEPMODE = @CXXDEPMODE@
147
+ CXXFLAGS = @CXXFLAGS@
148
+ CYGPATH_W = @CYGPATH_W@
149
+ DEFS = @DEFS@
150
+ DEPDIR = @DEPDIR@
151
+ DSYMUTIL = @DSYMUTIL@
152
+ DUMPBIN = @DUMPBIN@
153
+ ECHO_C = @ECHO_C@
154
+ ECHO_N = @ECHO_N@
155
+ ECHO_T = @ECHO_T@
156
+ EGREP = @EGREP@
157
+ EXEEXT = @EXEEXT@
158
+ FGREP = @FGREP@
159
+ GREP = @GREP@
160
+ INSTALL = @INSTALL@
161
+ INSTALL_DATA = @INSTALL_DATA@
162
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
163
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
164
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
165
+ LD = @LD@
166
+ LDFLAGS = @LDFLAGS@
167
+ LIBOBJS = @LIBOBJS@
168
+ LIBS = @LIBS@
169
+ LIBTOOL = @LIBTOOL@
170
+ LIPO = @LIPO@
171
+ LN_S = @LN_S@
172
+ LTLIBOBJS = @LTLIBOBJS@
173
+ MAKEINFO = @MAKEINFO@
174
+ MKDIR_P = @MKDIR_P@
175
+ NM = @NM@
176
+ NMEDIT = @NMEDIT@
177
+ OBJDUMP = @OBJDUMP@
178
+ OBJEXT = @OBJEXT@
179
+ OTOOL = @OTOOL@
180
+ OTOOL64 = @OTOOL64@
181
+ PACKAGE = @PACKAGE@
182
+ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
183
+ PACKAGE_NAME = @PACKAGE_NAME@
184
+ PACKAGE_STRING = @PACKAGE_STRING@
185
+ PACKAGE_TARNAME = @PACKAGE_TARNAME@
186
+ PACKAGE_URL = @PACKAGE_URL@
187
+ PACKAGE_VERSION = @PACKAGE_VERSION@
188
+ PATH_SEPARATOR = @PATH_SEPARATOR@
189
+ RANLIB = @RANLIB@
190
+ SED = @SED@
191
+ SET_MAKE = @SET_MAKE@
192
+ SHELL = @SHELL@
193
+ STRIP = @STRIP@
194
+ VERSION = @VERSION@
195
+ abs_builddir = @abs_builddir@
196
+ abs_srcdir = @abs_srcdir@
197
+ abs_top_builddir = @abs_top_builddir@
198
+ abs_top_srcdir = @abs_top_srcdir@
199
+ ac_ct_CC = @ac_ct_CC@
200
+ ac_ct_CXX = @ac_ct_CXX@
201
+ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
202
+ am__include = @am__include@
203
+ am__leading_dot = @am__leading_dot@
204
+ am__quote = @am__quote@
205
+ am__tar = @am__tar@
206
+ am__untar = @am__untar@
207
+ bindir = @bindir@
208
+ build = @build@
209
+ build_alias = @build_alias@
210
+ build_cpu = @build_cpu@
211
+ build_os = @build_os@
212
+ build_vendor = @build_vendor@
213
+ builddir = @builddir@
214
+ datadir = @datadir@
215
+ datarootdir = @datarootdir@
216
+ docdir = @docdir@
217
+ dvidir = @dvidir@
218
+ exec_prefix = @exec_prefix@
219
+ host = @host@
220
+ host_alias = @host_alias@
221
+ host_cpu = @host_cpu@
222
+ host_os = @host_os@
223
+ host_vendor = @host_vendor@
224
+ htmldir = @htmldir@
225
+ includedir = @includedir@
226
+ infodir = @infodir@
227
+ install_sh = @install_sh@
228
+ libdir = @libdir@
229
+ libexecdir = @libexecdir@
230
+ localedir = @localedir@
231
+ localstatedir = @localstatedir@
232
+ lt_ECHO = @lt_ECHO@
233
+ mandir = @mandir@
234
+ mkdir_p = @mkdir_p@
235
+ oldincludedir = @oldincludedir@
236
+ pdfdir = @pdfdir@
237
+ prefix = @prefix@
238
+ program_transform_name = @program_transform_name@
239
+ psdir = @psdir@
240
+ sbindir = @sbindir@
241
+ sharedstatedir = @sharedstatedir@
242
+ srcdir = @srcdir@
243
+ sysconfdir = @sysconfdir@
244
+ target_alias = @target_alias@
245
+ top_build_prefix = @top_build_prefix@
246
+ top_builddir = @top_builddir@
247
+ top_srcdir = @top_srcdir@
248
+ EXTRA_DIST = README Makefile.msvc.in merge-models.pl
249
+ EXTRA_DIRS = doc example sdk perl python ruby java swig
250
+ AUTOMAKE_OPTIONS = no-dependencies
251
+ lib_LTLIBRARIES = libcrfpp.la
252
+ libcrfpp_la_SOURCES = crfpp.h thread.h libcrfpp.cpp lbfgs.cpp scoped_ptr.h param.cpp param.h encoder.cpp feature.cpp stream_wrapper.h \
253
+ feature_cache.cpp feature_index.cpp node.cpp path.cpp tagger.cpp \
254
+ common.h darts.h encoder.h feature_cache.h feature_index.h \
255
+ freelist.h lbfgs.h mmap.h node.h path.h tagger.h timer.h
256
+
257
+ include_HEADERS = crfpp.h
258
+ crf_learn_SOURCES = crf_learn.cpp
259
+ crf_learn_LDADD = libcrfpp.la
260
+ crf_test_SOURCES = crf_test.cpp
261
+ crf_test_LDADD = libcrfpp.la
262
+ all: config.h
263
+ $(MAKE) $(AM_MAKEFLAGS) all-am
264
+
265
+ .SUFFIXES:
266
+ .SUFFIXES: .cpp .lo .o .obj
267
+ am--refresh:
268
+ @:
269
+ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
270
+ @for dep in $?; do \
271
+ case '$(am__configure_deps)' in \
272
+ *$$dep*) \
273
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
274
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
275
+ && exit 0; \
276
+ exit 1;; \
277
+ esac; \
278
+ done; \
279
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
280
+ $(am__cd) $(top_srcdir) && \
281
+ $(AUTOMAKE) --gnu Makefile
282
+ .PRECIOUS: Makefile
283
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
284
+ @case '$?' in \
285
+ *config.status*) \
286
+ echo ' $(SHELL) ./config.status'; \
287
+ $(SHELL) ./config.status;; \
288
+ *) \
289
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
290
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
291
+ esac;
292
+
293
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
294
+ $(SHELL) ./config.status --recheck
295
+
296
+ $(top_srcdir)/configure: $(am__configure_deps)
297
+ $(am__cd) $(srcdir) && $(AUTOCONF)
298
+ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
299
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
300
+ $(am__aclocal_m4_deps):
301
+
302
+ config.h: stamp-h1
303
+ @if test ! -f $@; then \
304
+ rm -f stamp-h1; \
305
+ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
306
+ else :; fi
307
+
308
+ stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
309
+ @rm -f stamp-h1
310
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
311
+ $(srcdir)/config.h.in: $(am__configure_deps)
312
+ ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
313
+ rm -f stamp-h1
314
+ touch $@
315
+
316
+ distclean-hdr:
317
+ -rm -f config.h stamp-h1
318
+ Makefile.msvc: $(top_builddir)/config.status $(srcdir)/Makefile.msvc.in
319
+ cd $(top_builddir) && $(SHELL) ./config.status $@
320
+ swig/version.h: $(top_builddir)/config.status $(top_srcdir)/swig/version.h.in
321
+ cd $(top_builddir) && $(SHELL) ./config.status $@
322
+ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
323
+ @$(NORMAL_INSTALL)
324
+ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
325
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
326
+ list2=; for p in $$list; do \
327
+ if test -f $$p; then \
328
+ list2="$$list2 $$p"; \
329
+ else :; fi; \
330
+ done; \
331
+ test -z "$$list2" || { \
332
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
333
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
334
+ }
335
+
336
+ uninstall-libLTLIBRARIES:
337
+ @$(NORMAL_UNINSTALL)
338
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
339
+ for p in $$list; do \
340
+ $(am__strip_dir) \
341
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
342
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
343
+ done
344
+
345
+ clean-libLTLIBRARIES:
346
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
347
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
348
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
349
+ test "$$dir" != "$$p" || dir=.; \
350
+ echo "rm -f \"$${dir}/so_locations\""; \
351
+ rm -f "$${dir}/so_locations"; \
352
+ done
353
+ libcrfpp.la: $(libcrfpp_la_OBJECTS) $(libcrfpp_la_DEPENDENCIES)
354
+ $(CXXLINK) -rpath $(libdir) $(libcrfpp_la_OBJECTS) $(libcrfpp_la_LIBADD) $(LIBS)
355
+ install-binPROGRAMS: $(bin_PROGRAMS)
356
+ @$(NORMAL_INSTALL)
357
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
358
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
359
+ for p in $$list; do echo "$$p $$p"; done | \
360
+ sed 's/$(EXEEXT)$$//' | \
361
+ while read p p1; do if test -f $$p || test -f $$p1; \
362
+ then echo "$$p"; echo "$$p"; else :; fi; \
363
+ done | \
364
+ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
365
+ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
366
+ sed 'N;N;N;s,\n, ,g' | \
367
+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
368
+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
369
+ if ($$2 == $$4) files[d] = files[d] " " $$1; \
370
+ else { print "f", $$3 "/" $$4, $$1; } } \
371
+ END { for (d in files) print "f", d, files[d] }' | \
372
+ while read type dir files; do \
373
+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
374
+ test -z "$$files" || { \
375
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
376
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
377
+ } \
378
+ ; done
379
+
380
+ uninstall-binPROGRAMS:
381
+ @$(NORMAL_UNINSTALL)
382
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
383
+ files=`for p in $$list; do echo "$$p"; done | \
384
+ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
385
+ -e 's/$$/$(EXEEXT)/' `; \
386
+ test -n "$$list" || exit 0; \
387
+ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
388
+ cd "$(DESTDIR)$(bindir)" && rm -f $$files
389
+
390
+ clean-binPROGRAMS:
391
+ @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
392
+ echo " rm -f" $$list; \
393
+ rm -f $$list || exit $$?; \
394
+ test -n "$(EXEEXT)" || exit 0; \
395
+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
396
+ echo " rm -f" $$list; \
397
+ rm -f $$list
398
+ crf_learn$(EXEEXT): $(crf_learn_OBJECTS) $(crf_learn_DEPENDENCIES)
399
+ @rm -f crf_learn$(EXEEXT)
400
+ $(CXXLINK) $(crf_learn_OBJECTS) $(crf_learn_LDADD) $(LIBS)
401
+ crf_test$(EXEEXT): $(crf_test_OBJECTS) $(crf_test_DEPENDENCIES)
402
+ @rm -f crf_test$(EXEEXT)
403
+ $(CXXLINK) $(crf_test_OBJECTS) $(crf_test_LDADD) $(LIBS)
404
+
405
+ mostlyclean-compile:
406
+ -rm -f *.$(OBJEXT)
407
+
408
+ distclean-compile:
409
+ -rm -f *.tab.c
410
+
411
+ .cpp.o:
412
+ $(CXXCOMPILE) -c -o $@ $<
413
+
414
+ .cpp.obj:
415
+ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
416
+
417
+ .cpp.lo:
418
+ $(LTCXXCOMPILE) -c -o $@ $<
419
+
420
+ mostlyclean-libtool:
421
+ -rm -f *.lo
422
+
423
+ clean-libtool:
424
+ -rm -rf .libs _libs
425
+
426
+ distclean-libtool:
427
+ -rm -f libtool config.lt
428
+ install-includeHEADERS: $(include_HEADERS)
429
+ @$(NORMAL_INSTALL)
430
+ test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
431
+ @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
432
+ for p in $$list; do \
433
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
434
+ echo "$$d$$p"; \
435
+ done | $(am__base_list) | \
436
+ while read files; do \
437
+ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
438
+ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
439
+ done
440
+
441
+ uninstall-includeHEADERS:
442
+ @$(NORMAL_UNINSTALL)
443
+ @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
444
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
445
+ test -n "$$files" || exit 0; \
446
+ echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
447
+ cd "$(DESTDIR)$(includedir)" && rm -f $$files
448
+
449
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
450
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
451
+ unique=`for i in $$list; do \
452
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
453
+ done | \
454
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
455
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
456
+ mkid -fID $$unique
457
+ tags: TAGS
458
+
459
+ TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
460
+ $(TAGS_FILES) $(LISP)
461
+ set x; \
462
+ here=`pwd`; \
463
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
464
+ unique=`for i in $$list; do \
465
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
466
+ done | \
467
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
468
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
469
+ shift; \
470
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
471
+ test -n "$$unique" || unique=$$empty_fix; \
472
+ if test $$# -gt 0; then \
473
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
474
+ "$$@" $$unique; \
475
+ else \
476
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
477
+ $$unique; \
478
+ fi; \
479
+ fi
480
+ ctags: CTAGS
481
+ CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
482
+ $(TAGS_FILES) $(LISP)
483
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
484
+ unique=`for i in $$list; do \
485
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
486
+ done | \
487
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
488
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
489
+ test -z "$(CTAGS_ARGS)$$unique" \
490
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
491
+ $$unique
492
+
493
+ GTAGS:
494
+ here=`$(am__cd) $(top_builddir) && pwd` \
495
+ && $(am__cd) $(top_srcdir) \
496
+ && gtags -i $(GTAGS_ARGS) "$$here"
497
+
498
+ distclean-tags:
499
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
500
+
501
+ distdir: $(DISTFILES)
502
+ $(am__remove_distdir)
503
+ test -d "$(distdir)" || mkdir "$(distdir)"
504
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
505
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
506
+ list='$(DISTFILES)'; \
507
+ dist_files=`for file in $$list; do echo $$file; done | \
508
+ sed -e "s|^$$srcdirstrip/||;t" \
509
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
510
+ case $$dist_files in \
511
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
512
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
513
+ sort -u` ;; \
514
+ esac; \
515
+ for file in $$dist_files; do \
516
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
517
+ if test -d $$d/$$file; then \
518
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
519
+ if test -d "$(distdir)/$$file"; then \
520
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
521
+ fi; \
522
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
523
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
524
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
525
+ fi; \
526
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
527
+ else \
528
+ test -f "$(distdir)/$$file" \
529
+ || cp -p $$d/$$file "$(distdir)/$$file" \
530
+ || exit 1; \
531
+ fi; \
532
+ done
533
+ $(MAKE) $(AM_MAKEFLAGS) \
534
+ top_distdir="$(top_distdir)" distdir="$(distdir)" \
535
+ dist-hook
536
+ -test -n "$(am__skip_mode_fix)" \
537
+ || find "$(distdir)" -type d ! -perm -755 \
538
+ -exec chmod u+rwx,go+rx {} \; -o \
539
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
540
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
541
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
542
+ || chmod -R a+r "$(distdir)"
543
+ dist-gzip: distdir
544
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
545
+ $(am__remove_distdir)
546
+
547
+ dist-bzip2: distdir
548
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
549
+ $(am__remove_distdir)
550
+
551
+ dist-lzma: distdir
552
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
553
+ $(am__remove_distdir)
554
+
555
+ dist-xz: distdir
556
+ tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
557
+ $(am__remove_distdir)
558
+
559
+ dist-tarZ: distdir
560
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
561
+ $(am__remove_distdir)
562
+
563
+ dist-shar: distdir
564
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
565
+ $(am__remove_distdir)
566
+
567
+ dist-zip: distdir
568
+ -rm -f $(distdir).zip
569
+ zip -rq $(distdir).zip $(distdir)
570
+ $(am__remove_distdir)
571
+
572
+ dist dist-all: distdir
573
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
574
+ $(am__remove_distdir)
575
+
576
+ # This target untars the dist file and tries a VPATH configuration. Then
577
+ # it guarantees that the distribution is self-contained by making another
578
+ # tarfile.
579
+ distcheck: dist
580
+ case '$(DIST_ARCHIVES)' in \
581
+ *.tar.gz*) \
582
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
583
+ *.tar.bz2*) \
584
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
585
+ *.tar.lzma*) \
586
+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
587
+ *.tar.xz*) \
588
+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
589
+ *.tar.Z*) \
590
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
591
+ *.shar.gz*) \
592
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
593
+ *.zip*) \
594
+ unzip $(distdir).zip ;;\
595
+ esac
596
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
597
+ mkdir $(distdir)/_build
598
+ mkdir $(distdir)/_inst
599
+ chmod a-w $(distdir)
600
+ test -d $(distdir)/_build || exit 0; \
601
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
602
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
603
+ && am__cwd=`pwd` \
604
+ && $(am__cd) $(distdir)/_build \
605
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
606
+ $(DISTCHECK_CONFIGURE_FLAGS) \
607
+ && $(MAKE) $(AM_MAKEFLAGS) \
608
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
609
+ && $(MAKE) $(AM_MAKEFLAGS) check \
610
+ && $(MAKE) $(AM_MAKEFLAGS) install \
611
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
612
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
613
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
614
+ distuninstallcheck \
615
+ && chmod -R a-w "$$dc_install_base" \
616
+ && ({ \
617
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
618
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
619
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
620
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
621
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
622
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
623
+ && rm -rf "$$dc_destdir" \
624
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
625
+ && rm -rf $(DIST_ARCHIVES) \
626
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
627
+ && cd "$$am__cwd" \
628
+ || exit 1
629
+ $(am__remove_distdir)
630
+ @(echo "$(distdir) archives ready for distribution: "; \
631
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
632
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
633
+ distuninstallcheck:
634
+ @$(am__cd) '$(distuninstallcheck_dir)' \
635
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
636
+ || { echo "ERROR: files left after uninstall:" ; \
637
+ if test -n "$(DESTDIR)"; then \
638
+ echo " (check DESTDIR support)"; \
639
+ fi ; \
640
+ $(distuninstallcheck_listfiles) ; \
641
+ exit 1; } >&2
642
+ distcleancheck: distclean
643
+ @if test '$(srcdir)' = . ; then \
644
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
645
+ exit 1 ; \
646
+ fi
647
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
648
+ || { echo "ERROR: files left in build directory after distclean:" ; \
649
+ $(distcleancheck_listfiles) ; \
650
+ exit 1; } >&2
651
+ check-am: all-am
652
+ check: check-am
653
+ all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) config.h
654
+ install-binPROGRAMS: install-libLTLIBRARIES
655
+
656
+ installdirs:
657
+ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)"; do \
658
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
659
+ done
660
+ install: install-am
661
+ install-exec: install-exec-am
662
+ install-data: install-data-am
663
+ uninstall: uninstall-am
664
+
665
+ install-am: all-am
666
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
667
+
668
+ installcheck: installcheck-am
669
+ install-strip:
670
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
671
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
672
+ `test -z '$(STRIP)' || \
673
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
674
+ mostlyclean-generic:
675
+
676
+ clean-generic:
677
+
678
+ distclean-generic:
679
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
680
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
681
+
682
+ maintainer-clean-generic:
683
+ @echo "This command is intended for maintainers to use"
684
+ @echo "it deletes files that may require special tools to rebuild."
685
+ clean: clean-am
686
+
687
+ clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
688
+ clean-libtool mostlyclean-am
689
+
690
+ distclean: distclean-am
691
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
692
+ -rm -f Makefile
693
+ distclean-am: clean-am distclean-compile distclean-generic \
694
+ distclean-hdr distclean-libtool distclean-tags
695
+
696
+ dvi: dvi-am
697
+
698
+ dvi-am:
699
+
700
+ html: html-am
701
+
702
+ html-am:
703
+
704
+ info: info-am
705
+
706
+ info-am:
707
+
708
+ install-data-am: install-includeHEADERS
709
+
710
+ install-dvi: install-dvi-am
711
+
712
+ install-dvi-am:
713
+
714
+ install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
715
+
716
+ install-html: install-html-am
717
+
718
+ install-html-am:
719
+
720
+ install-info: install-info-am
721
+
722
+ install-info-am:
723
+
724
+ install-man:
725
+
726
+ install-pdf: install-pdf-am
727
+
728
+ install-pdf-am:
729
+
730
+ install-ps: install-ps-am
731
+
732
+ install-ps-am:
733
+
734
+ installcheck-am:
735
+
736
+ maintainer-clean: maintainer-clean-am
737
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
738
+ -rm -rf $(top_srcdir)/autom4te.cache
739
+ -rm -f Makefile
740
+ maintainer-clean-am: distclean-am maintainer-clean-generic
741
+
742
+ mostlyclean: mostlyclean-am
743
+
744
+ mostlyclean-am: mostlyclean-compile mostlyclean-generic \
745
+ mostlyclean-libtool
746
+
747
+ pdf: pdf-am
748
+
749
+ pdf-am:
750
+
751
+ ps: ps-am
752
+
753
+ ps-am:
754
+
755
+ uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \
756
+ uninstall-libLTLIBRARIES
757
+
758
+ .MAKE: all install-am install-strip
759
+
760
+ .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
761
+ clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
762
+ clean-libtool ctags dist dist-all dist-bzip2 dist-gzip \
763
+ dist-hook dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
764
+ distcheck distclean distclean-compile distclean-generic \
765
+ distclean-hdr distclean-libtool distclean-tags distcleancheck \
766
+ distdir distuninstallcheck dvi dvi-am html html-am info \
767
+ info-am install install-am install-binPROGRAMS install-data \
768
+ install-data-am install-dvi install-dvi-am install-exec \
769
+ install-exec-am install-html install-html-am \
770
+ install-includeHEADERS install-info install-info-am \
771
+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
772
+ install-ps install-ps-am install-strip installcheck \
773
+ installcheck-am installdirs maintainer-clean \
774
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
775
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
776
+ tags uninstall uninstall-am uninstall-binPROGRAMS \
777
+ uninstall-includeHEADERS uninstall-libLTLIBRARIES
778
+
779
+
780
+ dist-hook:
781
+ for subdir in $(EXTRA_DIRS); do \
782
+ cp -rp $$subdir $(distdir); \
783
+ rm -f $(distdir)/$$subdir/*~; \
784
+ rm -f $(distdir)/$$subdir/*.{bak,orig}; \
785
+ rm -rf $(distdir)/$$subdir/CVS; \
786
+ rm -rf $(distdir)/$$subdir/.svn; \
787
+ rm -rf $(distdir)/.svn; \
788
+ rm -rf $(distdir)/*/.svn; \
789
+ rm -rf $(distdir)/*/*/.svn; \
790
+ rm -rf $(distdir)/$$subdir/*/CVS; \
791
+ rm -rf $(distdir)/$$subdir/*/.svn; \
792
+ find $(distdir) -name .svn | xargs rm -fr; \
793
+ done
794
+
795
+ win:
796
+ (cd src; rm -f *.exe *.obj *.dll)
797
+ # (cd src; wcmd /c make.bat)
798
+
799
+ win-dist:
800
+ rm -f @PACKAGE@-@VERSION@.zip
801
+ mkdir -p @PACKAGE@-@VERSION@/doc
802
+ mkdir -p @PACKAGE@-@VERSION@/example
803
+ mkdir -p @PACKAGE@-@VERSION@/sdk
804
+ cp -f crf_learn.exe @PACKAGE@-@VERSION@
805
+ cp -f crf_test.exe @PACKAGE@-@VERSION@
806
+ cp -f libcrfpp.dll @PACKAGE@-@VERSION@
807
+ cp -f libcrfpp.lib @PACKAGE@-@VERSION@/sdk
808
+ cp -f crfpp.h @PACKAGE@-@VERSION@/sdk
809
+ # cp -f sdk/model @PACKAGE@-@VERSION@/sdk
810
+ cp -f sdk/example.cpp @PACKAGE@-@VERSION@/sdk
811
+ cp -fr doc/*.html doc/*.css doc/doxygen @PACKAGE@-@VERSION@/doc
812
+ cp -f README COPYING AUTHORS LGPL BSD @PACKAGE@-@VERSION@
813
+ cp -fr example/* @PACKAGE@-@VERSION@/example
814
+ find @PACKAGE@-@VERSION@ -name CVS | xargs rm -rf
815
+ find @PACKAGE@-@VERSION@ -name .svn | xargs rm -rf
816
+ zip -r @PACKAGE@-@VERSION@.zip @PACKAGE@-@VERSION@
817
+ rm -fr @PACKAGE@-@VERSION@
818
+
819
+ dist-all-package:
820
+ (test -f Makefile) && $(MAKE) distclean
821
+ ./configure
822
+ $(MAKE) dist
823
+ $(MAKE) clean
824
+ $(MAKE) script-clean
825
+ $(MAKE) script-dist
826
+ $(MAKE) win
827
+ $(MAKE) win-dist
828
+
829
+ script-dist:
830
+ for subdir in perl ruby python java; do \
831
+ rm -fr CRF++-$${subdir}-@VERSION@; \
832
+ mkdir CRF++-$${subdir}-@VERSION@; \
833
+ cp -r $${subdir}/* CRF++-$${subdir}-@VERSION@; \
834
+ cp -r doc/bindings.html CRF++-$${subdir}-@VERSION@; \
835
+ find ./CRF++-$${subdir}-@VERSION@ -type d -name CVS | xargs rm -fr; \
836
+ rm -f CRF++-$${subdir}-@VERSION@/*~; \
837
+ tar zcfv CRF++-$${subdir}-@VERSION@.tar.gz CRF++-$${subdir}-@VERSION@; \
838
+ rm -fr CRF++-$${subdir}-@VERSION@; \
839
+ done
840
+
841
+ script-clean:
842
+ (cd perl; $(MAKE) clean; rm -f Makefile.old Makefile)
843
+ (cd ruby; $(MAKE) clean; rm -f Makefile *.log)
844
+ (cd python; python setup.py clean --all)
845
+ (cd java; $(MAKE) clean;)
846
+
847
+ export-package:
848
+ ./upload.pl -p crfpp -n crfpp -r @VERSION@ -f CRF++-@VERSION@.tar.gz
849
+ ./upload.pl -p crfpp -n crfpp-win32 -r @VERSION@ -f CRF++-@VERSION@.zip
850
+ scp doc/*.html sf:public_html/crfpp/
851
+ scp doc/*.css sf:public_html/crfpp/
852
+
853
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
854
+ # Otherwise a system limit (for SysV at least) may be exceeded.
855
+ .NOEXPORT:
CRF/Makefile.msvc ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CC = cl
2
+ CXXC = cl
3
+ LINK=link
4
+ CFLAGS = /O2 /GA /GL /Gy /Oi /Ob2 /nologo /W3 /EHsc /MT /wd4244
5
+ LDFLAGS = /link /OPT:REF /OPT:ICF /LTCG /NXCOMPAT /DYNAMICBASE ADVAPI32.LIB
6
+ DEFS = -D_CRT_SECURE_NO_DEPRECATE -DDLL_EXPORT -DHAVE_WINDOWS_H -DVERSION="\"0.54\"" -DPACKAGE="\"CRF++\""
7
+ INC = -I. -I..
8
+ DEL = del
9
+
10
+ OBJ = encoder.obj feature.obj feature_cache.obj libcrfpp.obj \
11
+ feature_index.obj node.obj param.obj path.obj tagger.obj lbfgs.obj
12
+
13
+ .c.obj:
14
+ $(CXXC) $(CFLAGS) $(INC) $(DEFS) -c $<
15
+
16
+ .cpp.obj:
17
+ $(CXXC) $(CFLAGS) $(INC) $(DEFS) -c $<
18
+
19
+ .c.obj:
20
+ $(CC) $(CFLAGS) $(INC) $(DEFS) -c $<
21
+
22
+ all: libcrfpp crf_learn crf_test
23
+
24
+ libcrfpp: $(OBJ)
25
+ $(LINK) $(LDFLAGS) /out:$@.dll $(OBJ) /dll
26
+
27
+ crf_learn: $(OBJ) crf_learn.obj
28
+ $(LINK) $(LDFLAGS) /out:$@.exe crf_learn.obj libcrfpp.lib
29
+
30
+ crf_test: $(OBJ) crf_test.obj
31
+ $(LINK) $(LDFLAGS) /out:$@.exe crf_test.obj libcrfpp.lib
32
+
33
+ clean:
34
+ del *.obj crf_learn.exe crf_test.exe *.dll
35
+
CRF/Makefile.msvc.in ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CC = cl
2
+ CXXC = cl
3
+ LINK=link
4
+ CFLAGS = /O2 /GA /GL /Gy /Oi /Ob2 /nologo /W3 /EHsc /MT /wd4244
5
+ LDFLAGS = /link /OPT:REF /OPT:ICF /LTCG /NXCOMPAT /DYNAMICBASE ADVAPI32.LIB
6
+ DEFS = -D_CRT_SECURE_NO_DEPRECATE -DDLL_EXPORT -DHAVE_WINDOWS_H -DVERSION="\"@VERSION@\"" -DPACKAGE="\"@PACKAGE@\""
7
+ INC = -I. -I..
8
+ DEL = del
9
+
10
+ OBJ = encoder.obj feature.obj feature_cache.obj libcrfpp.obj \
11
+ feature_index.obj node.obj param.obj path.obj tagger.obj lbfgs.obj
12
+
13
+ .c.obj:
14
+ $(CXXC) $(CFLAGS) $(INC) $(DEFS) -c $<
15
+
16
+ .cpp.obj:
17
+ $(CXXC) $(CFLAGS) $(INC) $(DEFS) -c $<
18
+
19
+ .c.obj:
20
+ $(CC) $(CFLAGS) $(INC) $(DEFS) -c $<
21
+
22
+ all: libcrfpp crf_learn crf_test
23
+
24
+ libcrfpp: $(OBJ)
25
+ $(LINK) $(LDFLAGS) /out:$@.dll $(OBJ) /dll
26
+
27
+ crf_learn: $(OBJ) crf_learn.obj
28
+ $(LINK) $(LDFLAGS) /out:$@.exe crf_learn.obj libcrfpp.lib
29
+
30
+ crf_test: $(OBJ) crf_test.obj
31
+ $(LINK) $(LDFLAGS) /out:$@.exe crf_test.obj libcrfpp.lib
32
+
33
+ clean:
34
+ del *.obj crf_learn.exe crf_test.exe *.dll
35
+
CRF/NEWS ADDED
File without changes
CRF/README ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ see doc/index.html
2
+
CRF/aclocal.m4 ADDED
The diff for this file is too large to render. See raw diff
 
CRF/common.h ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //
2
+ // CRF++ -- Yet Another CRF toolkit
3
+ //
4
+ // $Id: common.h 1588 2007-02-12 09:03:39Z taku $;
5
+ //
6
+ // Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org>
7
+ //
8
+ #ifndef CRFPP_COMMON_H__
9
+ #define CRFPP_COMMON_H__
10
+
11
+ #include <setjmp.h>
12
+ #include <cstdlib>
13
+ #include <cstdio>
14
+ #include <cstring>
15
+ #include <string>
16
+ #include <sstream>
17
+ #include <iostream>
18
+ #include <algorithm>
19
+ #include <cmath>
20
+
21
+ #ifdef HAVE_CONFIG_H
22
+ #include "config.h"
23
+ #endif
24
+
25
+ #define COPYRIGHT "CRF++: Yet Another CRF Tool Kit\nCopyright (C) " \
26
+ "2005-2009 Taku Kudo, All rights reserved.\n"
27
+ #define MODEL_VERSION 100
28
+
29
+ #if defined(_WIN32) && !defined(__CYGWIN__)
30
+ # define OUTPUT_MODE std::ios::binary|std::ios::out
31
+ #else
32
+ # define OUTPUT_MODE std::ios::out
33
+ #endif
34
+
35
+ #define BUF_SIZE 8192
36
+
37
+ namespace CRFPP {
38
+ template <class T> inline T _min(T x, T y) { return(x < y) ? x : y; }
39
+ template <class T> inline T _max(T x, T y) { return(x > y) ? x : y; }
40
+
41
+ // helper functions defined in the paper
42
+ inline double sigma(double x) {
43
+ if (x > 0) return 1.0;
44
+ else if (x < 0) return -1.0;
45
+ return 0.0;
46
+ }
47
+
48
+ template <class Iterator>
49
+ inline size_t tokenizeCSV(char *str,
50
+ Iterator out, size_t max) {
51
+ char *eos = str + std::strlen(str);
52
+ char *start = 0;
53
+ char *end = 0;
54
+ size_t n = 0;
55
+
56
+ for (; str < eos; ++str) {
57
+ while (*str == ' ' || *str == '\t') ++str; // skip white spaces
58
+ bool inquote = false;
59
+ if (*str == '"') {
60
+ start = ++str;
61
+ end = start;
62
+ for (; str < eos; ++str) {
63
+ if (*str == '"') {
64
+ str++;
65
+ if (*str != '"')
66
+ break;
67
+ }
68
+ *end++ = *str;
69
+ }
70
+ inquote = true;
71
+ str = std::find(str, eos, ',');
72
+ } else {
73
+ start = str;
74
+ str = std::find(str, eos, ',');
75
+ end = str;
76
+ }
77
+ if (max-- > 1) *end = '\0';
78
+ *out++ = start;
79
+ ++n;
80
+ if (max == 0) break;
81
+ }
82
+
83
+ return n;
84
+ }
85
+
86
+ template <class Iterator>
87
+ inline size_t tokenize(char *str, const char *del,
88
+ Iterator out, size_t max) {
89
+ char *stre = str + std::strlen(str);
90
+ const char *dele = del + std::strlen(del);
91
+ size_t size = 0;
92
+
93
+ while (size < max) {
94
+ char *n = std::find_first_of(str, stre, del, dele);
95
+ *n = '\0';
96
+ *out++ = str;
97
+ ++size;
98
+ if (n == stre) break;
99
+ str = n + 1;
100
+ }
101
+
102
+ return size;
103
+ }
104
+
105
+ // continus run of space is regarded as one space
106
+ template <class Iterator>
107
+ inline size_t tokenize2(char *str, const char *del,
108
+ Iterator out, size_t max) {
109
+ char *stre = str + std::strlen(str);
110
+ const char *dele = del + std::strlen(del);
111
+ size_t size = 0;
112
+
113
+ while (size < max) {
114
+ char *n = std::find_first_of(str, stre, del, dele);
115
+ *n = '\0';
116
+ if (*str != '\0') {
117
+ *out++ = str;
118
+ ++size;
119
+ }
120
+ if (n == stre) break;
121
+ str = n + 1;
122
+ }
123
+
124
+ return size;
125
+ }
126
+
127
+ void inline dtoa(double val, char *s) {
128
+ std::sprintf(s, "%-16f", val);
129
+ char *p = s;
130
+ for (; *p != ' '; ++p) {}
131
+ *p = '\0';
132
+ return;
133
+ }
134
+
135
+ template <class T> inline void itoa(T val, char *s) {
136
+ char *t;
137
+ T mod;
138
+
139
+ if (val < 0) {
140
+ *s++ = '-';
141
+ val = -val;
142
+ }
143
+ t = s;
144
+
145
+ while (val) {
146
+ mod = val % 10;
147
+ *t++ = static_cast<char>(mod)+ '0';
148
+ val /= 10;
149
+ }
150
+
151
+ if (s == t) *t++ = '0';
152
+ *t = '\0';
153
+ std::reverse(s, t);
154
+
155
+ return;
156
+ }
157
+
158
+ template <class T>
159
+ inline void uitoa(T val, char *s) {
160
+ char *t;
161
+ T mod;
162
+ t = s;
163
+
164
+ while (val) {
165
+ mod = val % 10;
166
+ *t++ = static_cast<char>(mod) + '0';
167
+ val /= 10;
168
+ }
169
+
170
+ if (s == t) *t++ = '0';
171
+ *t = '\0';
172
+ std::reverse(s, t);
173
+
174
+ return;
175
+ }
176
+
177
+ #define _ITOA(_n) do { \
178
+ char buf[64]; \
179
+ itoa(_n, buf); \
180
+ append(buf); \
181
+ return *this; } while (0)
182
+
183
+ #define _UITOA(_n) do { \
184
+ char buf[64]; \
185
+ uitoa(_n, buf); \
186
+ append(buf); \
187
+ return *this; } while (0)
188
+
189
+ #define _DTOA(_n) do { \
190
+ char buf[64]; \
191
+ dtoa(_n, buf); \
192
+ append(buf); \
193
+ return *this; } while (0)
194
+
195
+ class string_buffer: public std::string {
196
+ public:
197
+ string_buffer& operator<<(double _n) { _DTOA(_n); }
198
+ string_buffer& operator<<(short int _n) { _ITOA(_n); }
199
+ string_buffer& operator<<(int _n) { _ITOA(_n); }
200
+ string_buffer& operator<<(long int _n) { _ITOA(_n); }
201
+ string_buffer& operator<<(unsigned short int _n) { _UITOA(_n); }
202
+ string_buffer& operator<<(unsigned int _n) { _UITOA(_n); }
203
+ string_buffer& operator<<(unsigned long int _n) { _UITOA(_n); }
204
+ string_buffer& operator<<(char _n) {
205
+ push_back(_n);
206
+ return *this;
207
+ }
208
+ string_buffer& operator<<(const char* _n) {
209
+ append(_n);
210
+ return *this;
211
+ }
212
+ string_buffer& operator<<(const std::string& _n) {
213
+ append(_n);
214
+ return *this;
215
+ }
216
+ };
217
+
218
+ class die {
219
+ public:
220
+ die() {}
221
+ virtual ~die() {
222
+ std::cerr << std::endl;
223
+ exit(-1);
224
+ }
225
+ int operator&(std::ostream&) { return 0; }
226
+ };
227
+
228
+ class warn {
229
+ public:
230
+ warn() {}
231
+ virtual ~warn() { std::cerr << std::endl; }
232
+ int operator&(std::ostream&) { return 0; }
233
+ };
234
+
235
+ struct whatlog {
236
+ std::ostringstream stream_;
237
+ std::string str_;
238
+ const char* str() {
239
+ str_ = stream_.str();
240
+ return str_.c_str();
241
+ }
242
+ jmp_buf cond_;
243
+ };
244
+
245
+ class wlog {
246
+ public:
247
+ whatlog *l_;
248
+ explicit wlog(whatlog *l): l_(l) { l_->stream_.clear(); }
249
+ ~wlog() { longjmp(l_->cond_, 1); }
250
+ int operator&(std::ostream &) { return 0; }
251
+ };
252
+ }
253
+
254
+ #define WHAT what_.stream_
255
+
256
+ #define CHECK_RETURN(condition, value) \
257
+ if (condition) {} else \
258
+ if (setjmp(what_.cond_) == 1) { \
259
+ return value; \
260
+ } else \
261
+ wlog(&what_) & what_.stream_ << \
262
+ __FILE__ << "(" << __LINE__ << ") [" << #condition << "] "
263
+
264
+ #define CHECK_0(condition) CHECK_RETURN(condition, 0)
265
+ #define CHECK_FALSE(condition) CHECK_RETURN(condition, false)
266
+
267
+ #define CHECK_CLOSE_FALSE(condition) \
268
+ if (condition) {} else \
269
+ if (setjmp(what_.cond_) == 1) { \
270
+ close(); \
271
+ return false; \
272
+ } else \
273
+ wlog(&what_) & what_.stream_ << \
274
+ __FILE__ << "(" << __LINE__ << ") [" << #condition << "] "
275
+
276
+ #define CHECK_DIE(condition) \
277
+ (condition) ? 0 : die() & std::cerr << __FILE__ << \
278
+ "(" << __LINE__ << ") [" << #condition << "] "
279
+
280
+ #define CHECK_WARN(condition) \
281
+ (condition) ? 0 : warn() & std::cerr << __FILE__ << \
282
+ "(" << __LINE__ << ") [" << #condition << "] "
283
+ #endif
CRF/config.guess ADDED
@@ -0,0 +1,1465 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+ # Attempt to guess a canonical system name.
3
+ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
+ # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
+
6
+ timestamp='2005-04-22'
7
+
8
+ # This file is free software; you can redistribute it and/or modify it
9
+ # under the terms of the GNU General Public License as published by
10
+ # the Free Software Foundation; either version 2 of the License, or
11
+ # (at your option) any later version.
12
+ #
13
+ # This program is distributed in the hope that it will be useful, but
14
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ # General Public License for more details.
17
+ #
18
+ # You should have received a copy of the GNU General Public License
19
+ # along with this program; if not, write to the Free Software
20
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
+ #
22
+ # As a special exception to the GNU General Public License, if you
23
+ # distribute this file as part of a program that contains a
24
+ # configuration script generated by Autoconf, you may include it under
25
+ # the same distribution terms that you use for the rest of that program.
26
+
27
+ # Originally written by Per Bothner <per@bothner.com>.
28
+ # Please send patches to <config-patches@gnu.org>. Submit a context
29
+ # diff and a properly formatted ChangeLog entry.
30
+ #
31
+ # This script attempts to guess a canonical system name similar to
32
+ # config.sub. If it succeeds, it prints the system name on stdout, and
33
+ # exits with 0. Otherwise, it exits with 1.
34
+ #
35
+ # The plan is that this can be called by configure scripts if you
36
+ # don't specify an explicit build system type.
37
+
38
+ me=`echo "$0" | sed -e 's,.*/,,'`
39
+
40
+ usage="\
41
+ Usage: $0 [OPTION]
42
+
43
+ Output the configuration name of the system \`$me' is run on.
44
+
45
+ Operation modes:
46
+ -h, --help print this help, then exit
47
+ -t, --time-stamp print date of last modification, then exit
48
+ -v, --version print version number, then exit
49
+
50
+ Report bugs and patches to <config-patches@gnu.org>."
51
+
52
+ version="\
53
+ GNU config.guess ($timestamp)
54
+
55
+ Originally written by Per Bothner.
56
+ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
57
+ Free Software Foundation, Inc.
58
+
59
+ This is free software; see the source for copying conditions. There is NO
60
+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
61
+
62
+ help="
63
+ Try \`$me --help' for more information."
64
+
65
+ # Parse command line
66
+ while test $# -gt 0 ; do
67
+ case $1 in
68
+ --time-stamp | --time* | -t )
69
+ echo "$timestamp" ; exit 0 ;;
70
+ --version | -v )
71
+ echo "$version" ; exit 0 ;;
72
+ --help | --h* | -h )
73
+ echo "$usage"; exit 0 ;;
74
+ -- ) # Stop option processing
75
+ shift; break ;;
76
+ - ) # Use stdin as input.
77
+ break ;;
78
+ -* )
79
+ echo "$me: invalid option $1$help" >&2
80
+ exit 1 ;;
81
+ * )
82
+ break ;;
83
+ esac
84
+ done
85
+
86
+ if test $# != 0; then
87
+ echo "$me: too many arguments$help" >&2
88
+ exit 1
89
+ fi
90
+
91
+ trap 'exit 1' 1 2 15
92
+
93
+ # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
94
+ # compiler to aid in system detection is discouraged as it requires
95
+ # temporary files to be created and, as you can see below, it is a
96
+ # headache to deal with in a portable fashion.
97
+
98
+ # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
99
+ # use `HOST_CC' if defined, but it is deprecated.
100
+
101
+ # Portable tmp directory creation inspired by the Autoconf team.
102
+
103
+ set_cc_for_build='
104
+ trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
105
+ trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
106
+ : ${TMPDIR=/tmp} ;
107
+ { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
109
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
110
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
111
+ dummy=$tmp/dummy ;
112
+ tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
113
+ case $CC_FOR_BUILD,$HOST_CC,$CC in
114
+ ,,) echo "int x;" > $dummy.c ;
115
+ for c in cc gcc c89 c99 ; do
116
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
117
+ CC_FOR_BUILD="$c"; break ;
118
+ fi ;
119
+ done ;
120
+ if test x"$CC_FOR_BUILD" = x ; then
121
+ CC_FOR_BUILD=no_compiler_found ;
122
+ fi
123
+ ;;
124
+ ,,*) CC_FOR_BUILD=$CC ;;
125
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
126
+ esac ;'
127
+
128
+ # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
129
+ # (ghazi@noc.rutgers.edu 1994-08-24)
130
+ if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
131
+ PATH=$PATH:/.attbin ; export PATH
132
+ fi
133
+
134
+ UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
135
+ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
136
+ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
137
+ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
138
+
139
+ # Note: order is significant - the case branches are not exclusive.
140
+
141
+ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
142
+ *:NetBSD:*:*)
143
+ # NetBSD (nbsd) targets should (where applicable) match one or
144
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
145
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
146
+ # switched to ELF, *-*-netbsd* would select the old
147
+ # object file format. This provides both forward
148
+ # compatibility and a consistent mechanism for selecting the
149
+ # object file format.
150
+ #
151
+ # Note: NetBSD doesn't particularly care about the vendor
152
+ # portion of the name. We always set it to "unknown".
153
+ sysctl="sysctl -n hw.machine_arch"
154
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
155
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
156
+ case "${UNAME_MACHINE_ARCH}" in
157
+ armeb) machine=armeb-unknown ;;
158
+ arm*) machine=arm-unknown ;;
159
+ sh3el) machine=shl-unknown ;;
160
+ sh3eb) machine=sh-unknown ;;
161
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
162
+ esac
163
+ # The Operating System including object format, if it has switched
164
+ # to ELF recently, or will in the future.
165
+ case "${UNAME_MACHINE_ARCH}" in
166
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
167
+ eval $set_cc_for_build
168
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
169
+ | grep __ELF__ >/dev/null
170
+ then
171
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
172
+ # Return netbsd for either. FIX?
173
+ os=netbsd
174
+ else
175
+ os=netbsdelf
176
+ fi
177
+ ;;
178
+ *)
179
+ os=netbsd
180
+ ;;
181
+ esac
182
+ # The OS release
183
+ # Debian GNU/NetBSD machines have a different userland, and
184
+ # thus, need a distinct triplet. However, they do not need
185
+ # kernel version information, so it can be replaced with a
186
+ # suitable tag, in the style of linux-gnu.
187
+ case "${UNAME_VERSION}" in
188
+ Debian*)
189
+ release='-gnu'
190
+ ;;
191
+ *)
192
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
193
+ ;;
194
+ esac
195
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
196
+ # contains redundant information, the shorter form:
197
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
198
+ echo "${machine}-${os}${release}"
199
+ exit 0 ;;
200
+ amd64:OpenBSD:*:*)
201
+ echo x86_64-unknown-openbsd${UNAME_RELEASE}
202
+ exit 0 ;;
203
+ amiga:OpenBSD:*:*)
204
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
205
+ exit 0 ;;
206
+ cats:OpenBSD:*:*)
207
+ echo arm-unknown-openbsd${UNAME_RELEASE}
208
+ exit 0 ;;
209
+ hp300:OpenBSD:*:*)
210
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
211
+ exit 0 ;;
212
+ luna88k:OpenBSD:*:*)
213
+ echo m88k-unknown-openbsd${UNAME_RELEASE}
214
+ exit 0 ;;
215
+ mac68k:OpenBSD:*:*)
216
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
217
+ exit 0 ;;
218
+ macppc:OpenBSD:*:*)
219
+ echo powerpc-unknown-openbsd${UNAME_RELEASE}
220
+ exit 0 ;;
221
+ mvme68k:OpenBSD:*:*)
222
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
223
+ exit 0 ;;
224
+ mvme88k:OpenBSD:*:*)
225
+ echo m88k-unknown-openbsd${UNAME_RELEASE}
226
+ exit 0 ;;
227
+ mvmeppc:OpenBSD:*:*)
228
+ echo powerpc-unknown-openbsd${UNAME_RELEASE}
229
+ exit 0 ;;
230
+ sgi:OpenBSD:*:*)
231
+ echo mips64-unknown-openbsd${UNAME_RELEASE}
232
+ exit 0 ;;
233
+ sun3:OpenBSD:*:*)
234
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
235
+ exit 0 ;;
236
+ *:OpenBSD:*:*)
237
+ echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
238
+ exit 0 ;;
239
+ *:ekkoBSD:*:*)
240
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
241
+ exit 0 ;;
242
+ macppc:MirBSD:*:*)
243
+ echo powerppc-unknown-mirbsd${UNAME_RELEASE}
244
+ exit 0 ;;
245
+ *:MirBSD:*:*)
246
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
247
+ exit 0 ;;
248
+ alpha:OSF1:*:*)
249
+ case $UNAME_RELEASE in
250
+ *4.0)
251
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
252
+ ;;
253
+ *5.*)
254
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
255
+ ;;
256
+ esac
257
+ # According to Compaq, /usr/sbin/psrinfo has been available on
258
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
259
+ # covers most systems running today. This code pipes the CPU
260
+ # types through head -n 1, so we only detect the type of CPU 0.
261
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
262
+ case "$ALPHA_CPU_TYPE" in
263
+ "EV4 (21064)")
264
+ UNAME_MACHINE="alpha" ;;
265
+ "EV4.5 (21064)")
266
+ UNAME_MACHINE="alpha" ;;
267
+ "LCA4 (21066/21068)")
268
+ UNAME_MACHINE="alpha" ;;
269
+ "EV5 (21164)")
270
+ UNAME_MACHINE="alphaev5" ;;
271
+ "EV5.6 (21164A)")
272
+ UNAME_MACHINE="alphaev56" ;;
273
+ "EV5.6 (21164PC)")
274
+ UNAME_MACHINE="alphapca56" ;;
275
+ "EV5.7 (21164PC)")
276
+ UNAME_MACHINE="alphapca57" ;;
277
+ "EV6 (21264)")
278
+ UNAME_MACHINE="alphaev6" ;;
279
+ "EV6.7 (21264A)")
280
+ UNAME_MACHINE="alphaev67" ;;
281
+ "EV6.8CB (21264C)")
282
+ UNAME_MACHINE="alphaev68" ;;
283
+ "EV6.8AL (21264B)")
284
+ UNAME_MACHINE="alphaev68" ;;
285
+ "EV6.8CX (21264D)")
286
+ UNAME_MACHINE="alphaev68" ;;
287
+ "EV6.9A (21264/EV69A)")
288
+ UNAME_MACHINE="alphaev69" ;;
289
+ "EV7 (21364)")
290
+ UNAME_MACHINE="alphaev7" ;;
291
+ "EV7.9 (21364A)")
292
+ UNAME_MACHINE="alphaev79" ;;
293
+ esac
294
+ # A Pn.n version is a patched version.
295
+ # A Vn.n version is a released version.
296
+ # A Tn.n version is a released field test version.
297
+ # A Xn.n version is an unreleased experimental baselevel.
298
+ # 1.2 uses "1.2" for uname -r.
299
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
300
+ exit 0 ;;
301
+ Alpha\ *:Windows_NT*:*)
302
+ # How do we know it's Interix rather than the generic POSIX subsystem?
303
+ # Should we change UNAME_MACHINE based on the output of uname instead
304
+ # of the specific Alpha model?
305
+ echo alpha-pc-interix
306
+ exit 0 ;;
307
+ 21064:Windows_NT:50:3)
308
+ echo alpha-dec-winnt3.5
309
+ exit 0 ;;
310
+ Amiga*:UNIX_System_V:4.0:*)
311
+ echo m68k-unknown-sysv4
312
+ exit 0;;
313
+ *:[Aa]miga[Oo][Ss]:*:*)
314
+ echo ${UNAME_MACHINE}-unknown-amigaos
315
+ exit 0 ;;
316
+ *:[Mm]orph[Oo][Ss]:*:*)
317
+ echo ${UNAME_MACHINE}-unknown-morphos
318
+ exit 0 ;;
319
+ *:OS/390:*:*)
320
+ echo i370-ibm-openedition
321
+ exit 0 ;;
322
+ *:z/VM:*:*)
323
+ echo s390-ibm-zvmoe
324
+ exit 0 ;;
325
+ *:OS400:*:*)
326
+ echo powerpc-ibm-os400
327
+ exit 0 ;;
328
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
329
+ echo arm-acorn-riscix${UNAME_RELEASE}
330
+ exit 0;;
331
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
332
+ echo hppa1.1-hitachi-hiuxmpp
333
+ exit 0;;
334
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
335
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
336
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
337
+ echo pyramid-pyramid-sysv3
338
+ else
339
+ echo pyramid-pyramid-bsd
340
+ fi
341
+ exit 0 ;;
342
+ NILE*:*:*:dcosx)
343
+ echo pyramid-pyramid-svr4
344
+ exit 0 ;;
345
+ DRS?6000:unix:4.0:6*)
346
+ echo sparc-icl-nx6
347
+ exit 0 ;;
348
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
349
+ case `/usr/bin/uname -p` in
350
+ sparc) echo sparc-icl-nx7 && exit 0 ;;
351
+ esac ;;
352
+ sun4H:SunOS:5.*:*)
353
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
354
+ exit 0 ;;
355
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
356
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
357
+ exit 0 ;;
358
+ i86pc:SunOS:5.*:*)
359
+ echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
360
+ exit 0 ;;
361
+ sun4*:SunOS:6*:*)
362
+ # According to config.sub, this is the proper way to canonicalize
363
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
364
+ # it's likely to be more like Solaris than SunOS4.
365
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
366
+ exit 0 ;;
367
+ sun4*:SunOS:*:*)
368
+ case "`/usr/bin/arch -k`" in
369
+ Series*|S4*)
370
+ UNAME_RELEASE=`uname -v`
371
+ ;;
372
+ esac
373
+ # Japanese Language versions have a version number like `4.1.3-JL'.
374
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
375
+ exit 0 ;;
376
+ sun3*:SunOS:*:*)
377
+ echo m68k-sun-sunos${UNAME_RELEASE}
378
+ exit 0 ;;
379
+ sun*:*:4.2BSD:*)
380
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
381
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
382
+ case "`/bin/arch`" in
383
+ sun3)
384
+ echo m68k-sun-sunos${UNAME_RELEASE}
385
+ ;;
386
+ sun4)
387
+ echo sparc-sun-sunos${UNAME_RELEASE}
388
+ ;;
389
+ esac
390
+ exit 0 ;;
391
+ aushp:SunOS:*:*)
392
+ echo sparc-auspex-sunos${UNAME_RELEASE}
393
+ exit 0 ;;
394
+ # The situation for MiNT is a little confusing. The machine name
395
+ # can be virtually everything (everything which is not
396
+ # "atarist" or "atariste" at least should have a processor
397
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
398
+ # to the lowercase version "mint" (or "freemint"). Finally
399
+ # the system name "TOS" denotes a system which is actually not
400
+ # MiNT. But MiNT is downward compatible to TOS, so this should
401
+ # be no problem.
402
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
403
+ echo m68k-atari-mint${UNAME_RELEASE}
404
+ exit 0 ;;
405
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
406
+ echo m68k-atari-mint${UNAME_RELEASE}
407
+ exit 0 ;;
408
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
409
+ echo m68k-atari-mint${UNAME_RELEASE}
410
+ exit 0 ;;
411
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
412
+ echo m68k-milan-mint${UNAME_RELEASE}
413
+ exit 0 ;;
414
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
415
+ echo m68k-hades-mint${UNAME_RELEASE}
416
+ exit 0 ;;
417
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
418
+ echo m68k-unknown-mint${UNAME_RELEASE}
419
+ exit 0 ;;
420
+ m68k:machten:*:*)
421
+ echo m68k-apple-machten${UNAME_RELEASE}
422
+ exit 0 ;;
423
+ powerpc:machten:*:*)
424
+ echo powerpc-apple-machten${UNAME_RELEASE}
425
+ exit 0 ;;
426
+ RISC*:Mach:*:*)
427
+ echo mips-dec-mach_bsd4.3
428
+ exit 0 ;;
429
+ RISC*:ULTRIX:*:*)
430
+ echo mips-dec-ultrix${UNAME_RELEASE}
431
+ exit 0 ;;
432
+ VAX*:ULTRIX*:*:*)
433
+ echo vax-dec-ultrix${UNAME_RELEASE}
434
+ exit 0 ;;
435
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
436
+ echo clipper-intergraph-clix${UNAME_RELEASE}
437
+ exit 0 ;;
438
+ mips:*:*:UMIPS | mips:*:*:RISCos)
439
+ eval $set_cc_for_build
440
+ sed 's/^ //' << EOF >$dummy.c
441
+ #ifdef __cplusplus
442
+ #include <stdio.h> /* for printf() prototype */
443
+ int main (int argc, char *argv[]) {
444
+ #else
445
+ int main (argc, argv) int argc; char *argv[]; {
446
+ #endif
447
+ #if defined (host_mips) && defined (MIPSEB)
448
+ #if defined (SYSTYPE_SYSV)
449
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
450
+ #endif
451
+ #if defined (SYSTYPE_SVR4)
452
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
453
+ #endif
454
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
455
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
456
+ #endif
457
+ #endif
458
+ exit (-1);
459
+ }
460
+ EOF
461
+ $CC_FOR_BUILD -o $dummy $dummy.c \
462
+ && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
463
+ && exit 0
464
+ echo mips-mips-riscos${UNAME_RELEASE}
465
+ exit 0 ;;
466
+ Motorola:PowerMAX_OS:*:*)
467
+ echo powerpc-motorola-powermax
468
+ exit 0 ;;
469
+ Motorola:*:4.3:PL8-*)
470
+ echo powerpc-harris-powermax
471
+ exit 0 ;;
472
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
473
+ echo powerpc-harris-powermax
474
+ exit 0 ;;
475
+ Night_Hawk:Power_UNIX:*:*)
476
+ echo powerpc-harris-powerunix
477
+ exit 0 ;;
478
+ m88k:CX/UX:7*:*)
479
+ echo m88k-harris-cxux7
480
+ exit 0 ;;
481
+ m88k:*:4*:R4*)
482
+ echo m88k-motorola-sysv4
483
+ exit 0 ;;
484
+ m88k:*:3*:R3*)
485
+ echo m88k-motorola-sysv3
486
+ exit 0 ;;
487
+ AViiON:dgux:*:*)
488
+ # DG/UX returns AViiON for all architectures
489
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
490
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
491
+ then
492
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
493
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
494
+ then
495
+ echo m88k-dg-dgux${UNAME_RELEASE}
496
+ else
497
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
498
+ fi
499
+ else
500
+ echo i586-dg-dgux${UNAME_RELEASE}
501
+ fi
502
+ exit 0 ;;
503
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
504
+ echo m88k-dolphin-sysv3
505
+ exit 0 ;;
506
+ M88*:*:R3*:*)
507
+ # Delta 88k system running SVR3
508
+ echo m88k-motorola-sysv3
509
+ exit 0 ;;
510
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
511
+ echo m88k-tektronix-sysv3
512
+ exit 0 ;;
513
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
514
+ echo m68k-tektronix-bsd
515
+ exit 0 ;;
516
+ *:IRIX*:*:*)
517
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
518
+ exit 0 ;;
519
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
520
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
521
+ exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
522
+ i*86:AIX:*:*)
523
+ echo i386-ibm-aix
524
+ exit 0 ;;
525
+ ia64:AIX:*:*)
526
+ if [ -x /usr/bin/oslevel ] ; then
527
+ IBM_REV=`/usr/bin/oslevel`
528
+ else
529
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
530
+ fi
531
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
532
+ exit 0 ;;
533
+ *:AIX:2:3)
534
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
535
+ eval $set_cc_for_build
536
+ sed 's/^ //' << EOF >$dummy.c
537
+ #include <sys/systemcfg.h>
538
+
539
+ main()
540
+ {
541
+ if (!__power_pc())
542
+ exit(1);
543
+ puts("powerpc-ibm-aix3.2.5");
544
+ exit(0);
545
+ }
546
+ EOF
547
+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
548
+ echo rs6000-ibm-aix3.2.5
549
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
550
+ echo rs6000-ibm-aix3.2.4
551
+ else
552
+ echo rs6000-ibm-aix3.2
553
+ fi
554
+ exit 0 ;;
555
+ *:AIX:*:[45])
556
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
557
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
558
+ IBM_ARCH=rs6000
559
+ else
560
+ IBM_ARCH=powerpc
561
+ fi
562
+ if [ -x /usr/bin/oslevel ] ; then
563
+ IBM_REV=`/usr/bin/oslevel`
564
+ else
565
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
566
+ fi
567
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
568
+ exit 0 ;;
569
+ *:AIX:*:*)
570
+ echo rs6000-ibm-aix
571
+ exit 0 ;;
572
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
573
+ echo romp-ibm-bsd4.4
574
+ exit 0 ;;
575
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
576
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
577
+ exit 0 ;; # report: romp-ibm BSD 4.3
578
+ *:BOSX:*:*)
579
+ echo rs6000-bull-bosx
580
+ exit 0 ;;
581
+ DPX/2?00:B.O.S.:*:*)
582
+ echo m68k-bull-sysv3
583
+ exit 0 ;;
584
+ 9000/[34]??:4.3bsd:1.*:*)
585
+ echo m68k-hp-bsd
586
+ exit 0 ;;
587
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
588
+ echo m68k-hp-bsd4.4
589
+ exit 0 ;;
590
+ 9000/[34678]??:HP-UX:*:*)
591
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
592
+ case "${UNAME_MACHINE}" in
593
+ 9000/31? ) HP_ARCH=m68000 ;;
594
+ 9000/[34]?? ) HP_ARCH=m68k ;;
595
+ 9000/[678][0-9][0-9])
596
+ if [ -x /usr/bin/getconf ]; then
597
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
598
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
599
+ case "${sc_cpu_version}" in
600
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
601
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
602
+ 532) # CPU_PA_RISC2_0
603
+ case "${sc_kernel_bits}" in
604
+ 32) HP_ARCH="hppa2.0n" ;;
605
+ 64) HP_ARCH="hppa2.0w" ;;
606
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
607
+ esac ;;
608
+ esac
609
+ fi
610
+ if [ "${HP_ARCH}" = "" ]; then
611
+ eval $set_cc_for_build
612
+ sed 's/^ //' << EOF >$dummy.c
613
+
614
+ #define _HPUX_SOURCE
615
+ #include <stdlib.h>
616
+ #include <unistd.h>
617
+
618
+ int main ()
619
+ {
620
+ #if defined(_SC_KERNEL_BITS)
621
+ long bits = sysconf(_SC_KERNEL_BITS);
622
+ #endif
623
+ long cpu = sysconf (_SC_CPU_VERSION);
624
+
625
+ switch (cpu)
626
+ {
627
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
628
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
629
+ case CPU_PA_RISC2_0:
630
+ #if defined(_SC_KERNEL_BITS)
631
+ switch (bits)
632
+ {
633
+ case 64: puts ("hppa2.0w"); break;
634
+ case 32: puts ("hppa2.0n"); break;
635
+ default: puts ("hppa2.0"); break;
636
+ } break;
637
+ #else /* !defined(_SC_KERNEL_BITS) */
638
+ puts ("hppa2.0"); break;
639
+ #endif
640
+ default: puts ("hppa1.0"); break;
641
+ }
642
+ exit (0);
643
+ }
644
+ EOF
645
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
646
+ test -z "$HP_ARCH" && HP_ARCH=hppa
647
+ fi ;;
648
+ esac
649
+ if [ ${HP_ARCH} = "hppa2.0w" ]
650
+ then
651
+ # avoid double evaluation of $set_cc_for_build
652
+ test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
653
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
654
+ then
655
+ HP_ARCH="hppa2.0w"
656
+ else
657
+ HP_ARCH="hppa64"
658
+ fi
659
+ fi
660
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
661
+ exit 0 ;;
662
+ ia64:HP-UX:*:*)
663
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
664
+ echo ia64-hp-hpux${HPUX_REV}
665
+ exit 0 ;;
666
+ 3050*:HI-UX:*:*)
667
+ eval $set_cc_for_build
668
+ sed 's/^ //' << EOF >$dummy.c
669
+ #include <unistd.h>
670
+ int
671
+ main ()
672
+ {
673
+ long cpu = sysconf (_SC_CPU_VERSION);
674
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
675
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
676
+ results, however. */
677
+ if (CPU_IS_PA_RISC (cpu))
678
+ {
679
+ switch (cpu)
680
+ {
681
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
682
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
683
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
684
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
685
+ }
686
+ }
687
+ else if (CPU_IS_HP_MC68K (cpu))
688
+ puts ("m68k-hitachi-hiuxwe2");
689
+ else puts ("unknown-hitachi-hiuxwe2");
690
+ exit (0);
691
+ }
692
+ EOF
693
+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
694
+ echo unknown-hitachi-hiuxwe2
695
+ exit 0 ;;
696
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
697
+ echo hppa1.1-hp-bsd
698
+ exit 0 ;;
699
+ 9000/8??:4.3bsd:*:*)
700
+ echo hppa1.0-hp-bsd
701
+ exit 0 ;;
702
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
703
+ echo hppa1.0-hp-mpeix
704
+ exit 0 ;;
705
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
706
+ echo hppa1.1-hp-osf
707
+ exit 0 ;;
708
+ hp8??:OSF1:*:*)
709
+ echo hppa1.0-hp-osf
710
+ exit 0 ;;
711
+ i*86:OSF1:*:*)
712
+ if [ -x /usr/sbin/sysversion ] ; then
713
+ echo ${UNAME_MACHINE}-unknown-osf1mk
714
+ else
715
+ echo ${UNAME_MACHINE}-unknown-osf1
716
+ fi
717
+ exit 0 ;;
718
+ parisc*:Lites*:*:*)
719
+ echo hppa1.1-hp-lites
720
+ exit 0 ;;
721
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
722
+ echo c1-convex-bsd
723
+ exit 0 ;;
724
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
725
+ if getsysinfo -f scalar_acc
726
+ then echo c32-convex-bsd
727
+ else echo c2-convex-bsd
728
+ fi
729
+ exit 0 ;;
730
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
731
+ echo c34-convex-bsd
732
+ exit 0 ;;
733
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
734
+ echo c38-convex-bsd
735
+ exit 0 ;;
736
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
737
+ echo c4-convex-bsd
738
+ exit 0 ;;
739
+ CRAY*Y-MP:*:*:*)
740
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
741
+ exit 0 ;;
742
+ CRAY*[A-Z]90:*:*:*)
743
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
744
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
745
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
746
+ -e 's/\.[^.]*$/.X/'
747
+ exit 0 ;;
748
+ CRAY*TS:*:*:*)
749
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
750
+ exit 0 ;;
751
+ CRAY*T3E:*:*:*)
752
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
753
+ exit 0 ;;
754
+ CRAY*SV1:*:*:*)
755
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
756
+ exit 0 ;;
757
+ *:UNICOS/mp:*:*)
758
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759
+ exit 0 ;;
760
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
761
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
762
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
763
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
764
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
765
+ exit 0 ;;
766
+ 5000:UNIX_System_V:4.*:*)
767
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
768
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
769
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
770
+ exit 0 ;;
771
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
772
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
773
+ exit 0 ;;
774
+ sparc*:BSD/OS:*:*)
775
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
776
+ exit 0 ;;
777
+ *:BSD/OS:*:*)
778
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
779
+ exit 0 ;;
780
+ *:FreeBSD:*:*)
781
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
782
+ exit 0 ;;
783
+ i*:CYGWIN*:*)
784
+ echo ${UNAME_MACHINE}-pc-cygwin
785
+ exit 0 ;;
786
+ i*:MINGW*:*)
787
+ echo ${UNAME_MACHINE}-pc-mingw32
788
+ exit 0 ;;
789
+ i*:PW*:*)
790
+ echo ${UNAME_MACHINE}-pc-pw32
791
+ exit 0 ;;
792
+ x86:Interix*:[34]*)
793
+ echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
794
+ exit 0 ;;
795
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
796
+ echo i${UNAME_MACHINE}-pc-mks
797
+ exit 0 ;;
798
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
799
+ # How do we know it's Interix rather than the generic POSIX subsystem?
800
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
801
+ # UNAME_MACHINE based on the output of uname instead of i386?
802
+ echo i586-pc-interix
803
+ exit 0 ;;
804
+ i*:UWIN*:*)
805
+ echo ${UNAME_MACHINE}-pc-uwin
806
+ exit 0 ;;
807
+ amd64:CYGWIN*:*:*)
808
+ echo x86_64-unknown-cygwin
809
+ exit 0 ;;
810
+ p*:CYGWIN*:*)
811
+ echo powerpcle-unknown-cygwin
812
+ exit 0 ;;
813
+ prep*:SunOS:5.*:*)
814
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
815
+ exit 0 ;;
816
+ *:GNU:*:*)
817
+ # the GNU system
818
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
819
+ exit 0 ;;
820
+ *:GNU/*:*:*)
821
+ # other systems with GNU libc and userland
822
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
823
+ exit 0 ;;
824
+ i*86:Minix:*:*)
825
+ echo ${UNAME_MACHINE}-pc-minix
826
+ exit 0 ;;
827
+ arm*:Linux:*:*)
828
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
829
+ exit 0 ;;
830
+ cris:Linux:*:*)
831
+ echo cris-axis-linux-gnu
832
+ exit 0 ;;
833
+ crisv32:Linux:*:*)
834
+ echo crisv32-axis-linux-gnu
835
+ exit 0 ;;
836
+ frv:Linux:*:*)
837
+ echo frv-unknown-linux-gnu
838
+ exit 0 ;;
839
+ ia64:Linux:*:*)
840
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
841
+ exit 0 ;;
842
+ m32r*:Linux:*:*)
843
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
844
+ exit 0 ;;
845
+ m68*:Linux:*:*)
846
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
847
+ exit 0 ;;
848
+ mips:Linux:*:*)
849
+ eval $set_cc_for_build
850
+ sed 's/^ //' << EOF >$dummy.c
851
+ #undef CPU
852
+ #undef mips
853
+ #undef mipsel
854
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
855
+ CPU=mipsel
856
+ #else
857
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
858
+ CPU=mips
859
+ #else
860
+ CPU=
861
+ #endif
862
+ #endif
863
+ EOF
864
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
865
+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
866
+ ;;
867
+ mips64:Linux:*:*)
868
+ eval $set_cc_for_build
869
+ sed 's/^ //' << EOF >$dummy.c
870
+ #undef CPU
871
+ #undef mips64
872
+ #undef mips64el
873
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
874
+ CPU=mips64el
875
+ #else
876
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
877
+ CPU=mips64
878
+ #else
879
+ CPU=
880
+ #endif
881
+ #endif
882
+ EOF
883
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
884
+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
885
+ ;;
886
+ ppc:Linux:*:*)
887
+ echo powerpc-unknown-linux-gnu
888
+ exit 0 ;;
889
+ ppc64:Linux:*:*)
890
+ echo powerpc64-unknown-linux-gnu
891
+ exit 0 ;;
892
+ alpha:Linux:*:*)
893
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894
+ EV5) UNAME_MACHINE=alphaev5 ;;
895
+ EV56) UNAME_MACHINE=alphaev56 ;;
896
+ PCA56) UNAME_MACHINE=alphapca56 ;;
897
+ PCA57) UNAME_MACHINE=alphapca56 ;;
898
+ EV6) UNAME_MACHINE=alphaev6 ;;
899
+ EV67) UNAME_MACHINE=alphaev67 ;;
900
+ EV68*) UNAME_MACHINE=alphaev68 ;;
901
+ esac
902
+ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
903
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
904
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
905
+ exit 0 ;;
906
+ parisc:Linux:*:* | hppa:Linux:*:*)
907
+ # Look for CPU level
908
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
909
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
910
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
911
+ *) echo hppa-unknown-linux-gnu ;;
912
+ esac
913
+ exit 0 ;;
914
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
915
+ echo hppa64-unknown-linux-gnu
916
+ exit 0 ;;
917
+ s390:Linux:*:* | s390x:Linux:*:*)
918
+ echo ${UNAME_MACHINE}-ibm-linux
919
+ exit 0 ;;
920
+ sh64*:Linux:*:*)
921
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
922
+ exit 0 ;;
923
+ sh*:Linux:*:*)
924
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
925
+ exit 0 ;;
926
+ sparc:Linux:*:* | sparc64:Linux:*:*)
927
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
928
+ exit 0 ;;
929
+ x86_64:Linux:*:*)
930
+ echo x86_64-unknown-linux-gnu
931
+ exit 0 ;;
932
+ i*86:Linux:*:*)
933
+ # The BFD linker knows what the default object file format is, so
934
+ # first see if it will tell us. cd to the root directory to prevent
935
+ # problems with other programs or directories called `ld' in the path.
936
+ # Set LC_ALL=C to ensure ld outputs messages in English.
937
+ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
938
+ | sed -ne '/supported targets:/!d
939
+ s/[ ][ ]*/ /g
940
+ s/.*supported targets: *//
941
+ s/ .*//
942
+ p'`
943
+ case "$ld_supported_targets" in
944
+ elf32-i386)
945
+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
946
+ ;;
947
+ a.out-i386-linux)
948
+ echo "${UNAME_MACHINE}-pc-linux-gnuaout"
949
+ exit 0 ;;
950
+ coff-i386)
951
+ echo "${UNAME_MACHINE}-pc-linux-gnucoff"
952
+ exit 0 ;;
953
+ "")
954
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
955
+ # one that does not give us useful --help.
956
+ echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
957
+ exit 0 ;;
958
+ esac
959
+ # Determine whether the default compiler is a.out or elf
960
+ eval $set_cc_for_build
961
+ sed 's/^ //' << EOF >$dummy.c
962
+ #include <features.h>
963
+ #ifdef __ELF__
964
+ # ifdef __GLIBC__
965
+ # if __GLIBC__ >= 2
966
+ LIBC=gnu
967
+ # else
968
+ LIBC=gnulibc1
969
+ # endif
970
+ # else
971
+ LIBC=gnulibc1
972
+ # endif
973
+ #else
974
+ #ifdef __INTEL_COMPILER
975
+ LIBC=gnu
976
+ #else
977
+ LIBC=gnuaout
978
+ #endif
979
+ #endif
980
+ #ifdef __dietlibc__
981
+ LIBC=dietlibc
982
+ #endif
983
+ EOF
984
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
985
+ test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
986
+ test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
987
+ ;;
988
+ i*86:DYNIX/ptx:4*:*)
989
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
990
+ # earlier versions are messed up and put the nodename in both
991
+ # sysname and nodename.
992
+ echo i386-sequent-sysv4
993
+ exit 0 ;;
994
+ i*86:UNIX_SV:4.2MP:2.*)
995
+ # Unixware is an offshoot of SVR4, but it has its own version
996
+ # number series starting with 2...
997
+ # I am not positive that other SVR4 systems won't match this,
998
+ # I just have to hope. -- rms.
999
+ # Use sysv4.2uw... so that sysv4* matches it.
1000
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1001
+ exit 0 ;;
1002
+ i*86:OS/2:*:*)
1003
+ # If we were able to find `uname', then EMX Unix compatibility
1004
+ # is probably installed.
1005
+ echo ${UNAME_MACHINE}-pc-os2-emx
1006
+ exit 0 ;;
1007
+ i*86:XTS-300:*:STOP)
1008
+ echo ${UNAME_MACHINE}-unknown-stop
1009
+ exit 0 ;;
1010
+ i*86:atheos:*:*)
1011
+ echo ${UNAME_MACHINE}-unknown-atheos
1012
+ exit 0 ;;
1013
+ i*86:syllable:*:*)
1014
+ echo ${UNAME_MACHINE}-pc-syllable
1015
+ exit 0 ;;
1016
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1017
+ echo i386-unknown-lynxos${UNAME_RELEASE}
1018
+ exit 0 ;;
1019
+ i*86:*DOS:*:*)
1020
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
1021
+ exit 0 ;;
1022
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1023
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1024
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1025
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1026
+ else
1027
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1028
+ fi
1029
+ exit 0 ;;
1030
+ i*86:*:5:[78]*)
1031
+ case `/bin/uname -X | grep "^Machine"` in
1032
+ *486*) UNAME_MACHINE=i486 ;;
1033
+ *Pentium) UNAME_MACHINE=i586 ;;
1034
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1035
+ esac
1036
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1037
+ exit 0 ;;
1038
+ i*86:*:3.2:*)
1039
+ if test -f /usr/options/cb.name; then
1040
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1041
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1042
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
1043
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1044
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1045
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1046
+ && UNAME_MACHINE=i586
1047
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1048
+ && UNAME_MACHINE=i686
1049
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1050
+ && UNAME_MACHINE=i686
1051
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1052
+ else
1053
+ echo ${UNAME_MACHINE}-pc-sysv32
1054
+ fi
1055
+ exit 0 ;;
1056
+ pc:*:*:*)
1057
+ # Left here for compatibility:
1058
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
1059
+ # the processor, so we play safe by assuming i386.
1060
+ echo i386-pc-msdosdjgpp
1061
+ exit 0 ;;
1062
+ Intel:Mach:3*:*)
1063
+ echo i386-pc-mach3
1064
+ exit 0 ;;
1065
+ paragon:*:*:*)
1066
+ echo i860-intel-osf1
1067
+ exit 0 ;;
1068
+ i860:*:4.*:*) # i860-SVR4
1069
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1070
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1071
+ else # Add other i860-SVR4 vendors below as they are discovered.
1072
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1073
+ fi
1074
+ exit 0 ;;
1075
+ mini*:CTIX:SYS*5:*)
1076
+ # "miniframe"
1077
+ echo m68010-convergent-sysv
1078
+ exit 0 ;;
1079
+ mc68k:UNIX:SYSTEM5:3.51m)
1080
+ echo m68k-convergent-sysv
1081
+ exit 0 ;;
1082
+ M680?0:D-NIX:5.3:*)
1083
+ echo m68k-diab-dnix
1084
+ exit 0 ;;
1085
+ M68*:*:R3V[5678]*:*)
1086
+ test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1087
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1088
+ OS_REL=''
1089
+ test -r /etc/.relid \
1090
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1091
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1092
+ && echo i486-ncr-sysv4.3${OS_REL} && exit 0
1093
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1094
+ && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1095
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1096
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1097
+ && echo i486-ncr-sysv4 && exit 0 ;;
1098
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1099
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
1100
+ exit 0 ;;
1101
+ mc68030:UNIX_System_V:4.*:*)
1102
+ echo m68k-atari-sysv4
1103
+ exit 0 ;;
1104
+ TSUNAMI:LynxOS:2.*:*)
1105
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
1106
+ exit 0 ;;
1107
+ rs6000:LynxOS:2.*:*)
1108
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
1109
+ exit 0 ;;
1110
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1111
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
1112
+ exit 0 ;;
1113
+ SM[BE]S:UNIX_SV:*:*)
1114
+ echo mips-dde-sysv${UNAME_RELEASE}
1115
+ exit 0 ;;
1116
+ RM*:ReliantUNIX-*:*:*)
1117
+ echo mips-sni-sysv4
1118
+ exit 0 ;;
1119
+ RM*:SINIX-*:*:*)
1120
+ echo mips-sni-sysv4
1121
+ exit 0 ;;
1122
+ *:SINIX-*:*:*)
1123
+ if uname -p 2>/dev/null >/dev/null ; then
1124
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1125
+ echo ${UNAME_MACHINE}-sni-sysv4
1126
+ else
1127
+ echo ns32k-sni-sysv
1128
+ fi
1129
+ exit 0 ;;
1130
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1131
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
1132
+ echo i586-unisys-sysv4
1133
+ exit 0 ;;
1134
+ *:UNIX_System_V:4*:FTX*)
1135
+ # From Gerald Hewes <hewes@openmarket.com>.
1136
+ # How about differentiating between stratus architectures? -djm
1137
+ echo hppa1.1-stratus-sysv4
1138
+ exit 0 ;;
1139
+ *:*:*:FTX*)
1140
+ # From seanf@swdc.stratus.com.
1141
+ echo i860-stratus-sysv4
1142
+ exit 0 ;;
1143
+ i*86:VOS:*:*)
1144
+ # From Paul.Green@stratus.com.
1145
+ echo ${UNAME_MACHINE}-stratus-vos
1146
+ exit 0 ;;
1147
+ *:VOS:*:*)
1148
+ # From Paul.Green@stratus.com.
1149
+ echo hppa1.1-stratus-vos
1150
+ exit 0 ;;
1151
+ mc68*:A/UX:*:*)
1152
+ echo m68k-apple-aux${UNAME_RELEASE}
1153
+ exit 0 ;;
1154
+ news*:NEWS-OS:6*:*)
1155
+ echo mips-sony-newsos6
1156
+ exit 0 ;;
1157
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1158
+ if [ -d /usr/nec ]; then
1159
+ echo mips-nec-sysv${UNAME_RELEASE}
1160
+ else
1161
+ echo mips-unknown-sysv${UNAME_RELEASE}
1162
+ fi
1163
+ exit 0 ;;
1164
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1165
+ echo powerpc-be-beos
1166
+ exit 0 ;;
1167
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1168
+ echo powerpc-apple-beos
1169
+ exit 0 ;;
1170
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1171
+ echo i586-pc-beos
1172
+ exit 0 ;;
1173
+ SX-4:SUPER-UX:*:*)
1174
+ echo sx4-nec-superux${UNAME_RELEASE}
1175
+ exit 0 ;;
1176
+ SX-5:SUPER-UX:*:*)
1177
+ echo sx5-nec-superux${UNAME_RELEASE}
1178
+ exit 0 ;;
1179
+ SX-6:SUPER-UX:*:*)
1180
+ echo sx6-nec-superux${UNAME_RELEASE}
1181
+ exit 0 ;;
1182
+ Power*:Rhapsody:*:*)
1183
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
1184
+ exit 0 ;;
1185
+ *:Rhapsody:*:*)
1186
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1187
+ exit 0 ;;
1188
+ *:Darwin:*:*)
1189
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1190
+ case $UNAME_PROCESSOR in
1191
+ *86) UNAME_PROCESSOR=i686 ;;
1192
+ unknown) UNAME_PROCESSOR=powerpc ;;
1193
+ esac
1194
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1195
+ exit 0 ;;
1196
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
1197
+ UNAME_PROCESSOR=`uname -p`
1198
+ if test "$UNAME_PROCESSOR" = "x86"; then
1199
+ UNAME_PROCESSOR=i386
1200
+ UNAME_MACHINE=pc
1201
+ fi
1202
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1203
+ exit 0 ;;
1204
+ *:QNX:*:4*)
1205
+ echo i386-pc-qnx
1206
+ exit 0 ;;
1207
+ NSE-?:NONSTOP_KERNEL:*:*)
1208
+ echo nse-tandem-nsk${UNAME_RELEASE}
1209
+ exit 0 ;;
1210
+ NSR-?:NONSTOP_KERNEL:*:*)
1211
+ echo nsr-tandem-nsk${UNAME_RELEASE}
1212
+ exit 0 ;;
1213
+ *:NonStop-UX:*:*)
1214
+ echo mips-compaq-nonstopux
1215
+ exit 0 ;;
1216
+ BS2000:POSIX*:*:*)
1217
+ echo bs2000-siemens-sysv
1218
+ exit 0 ;;
1219
+ DS/*:UNIX_System_V:*:*)
1220
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1221
+ exit 0 ;;
1222
+ *:Plan9:*:*)
1223
+ # "uname -m" is not consistent, so use $cputype instead. 386
1224
+ # is converted to i386 for consistency with other x86
1225
+ # operating systems.
1226
+ if test "$cputype" = "386"; then
1227
+ UNAME_MACHINE=i386
1228
+ else
1229
+ UNAME_MACHINE="$cputype"
1230
+ fi
1231
+ echo ${UNAME_MACHINE}-unknown-plan9
1232
+ exit 0 ;;
1233
+ *:TOPS-10:*:*)
1234
+ echo pdp10-unknown-tops10
1235
+ exit 0 ;;
1236
+ *:TENEX:*:*)
1237
+ echo pdp10-unknown-tenex
1238
+ exit 0 ;;
1239
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1240
+ echo pdp10-dec-tops20
1241
+ exit 0 ;;
1242
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1243
+ echo pdp10-xkl-tops20
1244
+ exit 0 ;;
1245
+ *:TOPS-20:*:*)
1246
+ echo pdp10-unknown-tops20
1247
+ exit 0 ;;
1248
+ *:ITS:*:*)
1249
+ echo pdp10-unknown-its
1250
+ exit 0 ;;
1251
+ SEI:*:*:SEIUX)
1252
+ echo mips-sei-seiux${UNAME_RELEASE}
1253
+ exit 0 ;;
1254
+ *:DragonFly:*:*)
1255
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1256
+ exit 0 ;;
1257
+ *:*VMS:*:*)
1258
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
1259
+ case "${UNAME_MACHINE}" in
1260
+ A*) echo alpha-dec-vms && exit 0 ;;
1261
+ I*) echo ia64-dec-vms && exit 0 ;;
1262
+ V*) echo vax-dec-vms && exit 0 ;;
1263
+ esac ;;
1264
+ *:XENIX:*:SysV)
1265
+ echo i386-pc-xenix
1266
+ exit 0 ;;
1267
+ esac
1268
+
1269
+ #echo '(No uname command or uname output not recognized.)' 1>&2
1270
+ #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1271
+
1272
+ eval $set_cc_for_build
1273
+ cat >$dummy.c <<EOF
1274
+ #ifdef _SEQUENT_
1275
+ # include <sys/types.h>
1276
+ # include <sys/utsname.h>
1277
+ #endif
1278
+ main ()
1279
+ {
1280
+ #if defined (sony)
1281
+ #if defined (MIPSEB)
1282
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1283
+ I don't know.... */
1284
+ printf ("mips-sony-bsd\n"); exit (0);
1285
+ #else
1286
+ #include <sys/param.h>
1287
+ printf ("m68k-sony-newsos%s\n",
1288
+ #ifdef NEWSOS4
1289
+ "4"
1290
+ #else
1291
+ ""
1292
+ #endif
1293
+ ); exit (0);
1294
+ #endif
1295
+ #endif
1296
+
1297
+ #if defined (__arm) && defined (__acorn) && defined (__unix)
1298
+ printf ("arm-acorn-riscix"); exit (0);
1299
+ #endif
1300
+
1301
+ #if defined (hp300) && !defined (hpux)
1302
+ printf ("m68k-hp-bsd\n"); exit (0);
1303
+ #endif
1304
+
1305
+ #if defined (NeXT)
1306
+ #if !defined (__ARCHITECTURE__)
1307
+ #define __ARCHITECTURE__ "m68k"
1308
+ #endif
1309
+ int version;
1310
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1311
+ if (version < 4)
1312
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1313
+ else
1314
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1315
+ exit (0);
1316
+ #endif
1317
+
1318
+ #if defined (MULTIMAX) || defined (n16)
1319
+ #if defined (UMAXV)
1320
+ printf ("ns32k-encore-sysv\n"); exit (0);
1321
+ #else
1322
+ #if defined (CMU)
1323
+ printf ("ns32k-encore-mach\n"); exit (0);
1324
+ #else
1325
+ printf ("ns32k-encore-bsd\n"); exit (0);
1326
+ #endif
1327
+ #endif
1328
+ #endif
1329
+
1330
+ #if defined (__386BSD__)
1331
+ printf ("i386-pc-bsd\n"); exit (0);
1332
+ #endif
1333
+
1334
+ #if defined (sequent)
1335
+ #if defined (i386)
1336
+ printf ("i386-sequent-dynix\n"); exit (0);
1337
+ #endif
1338
+ #if defined (ns32000)
1339
+ printf ("ns32k-sequent-dynix\n"); exit (0);
1340
+ #endif
1341
+ #endif
1342
+
1343
+ #if defined (_SEQUENT_)
1344
+ struct utsname un;
1345
+
1346
+ uname(&un);
1347
+
1348
+ if (strncmp(un.version, "V2", 2) == 0) {
1349
+ printf ("i386-sequent-ptx2\n"); exit (0);
1350
+ }
1351
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1352
+ printf ("i386-sequent-ptx1\n"); exit (0);
1353
+ }
1354
+ printf ("i386-sequent-ptx\n"); exit (0);
1355
+
1356
+ #endif
1357
+
1358
+ #if defined (vax)
1359
+ # if !defined (ultrix)
1360
+ # include <sys/param.h>
1361
+ # if defined (BSD)
1362
+ # if BSD == 43
1363
+ printf ("vax-dec-bsd4.3\n"); exit (0);
1364
+ # else
1365
+ # if BSD == 199006
1366
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
1367
+ # else
1368
+ printf ("vax-dec-bsd\n"); exit (0);
1369
+ # endif
1370
+ # endif
1371
+ # else
1372
+ printf ("vax-dec-bsd\n"); exit (0);
1373
+ # endif
1374
+ # else
1375
+ printf ("vax-dec-ultrix\n"); exit (0);
1376
+ # endif
1377
+ #endif
1378
+
1379
+ #if defined (alliant) && defined (i860)
1380
+ printf ("i860-alliant-bsd\n"); exit (0);
1381
+ #endif
1382
+
1383
+ exit (1);
1384
+ }
1385
+ EOF
1386
+
1387
+ $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1388
+
1389
+ # Apollos put the system type in the environment.
1390
+
1391
+ test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
1392
+
1393
+ # Convex versions that predate uname can use getsysinfo(1)
1394
+
1395
+ if [ -x /usr/convex/getsysinfo ]
1396
+ then
1397
+ case `getsysinfo -f cpu_type` in
1398
+ c1*)
1399
+ echo c1-convex-bsd
1400
+ exit 0 ;;
1401
+ c2*)
1402
+ if getsysinfo -f scalar_acc
1403
+ then echo c32-convex-bsd
1404
+ else echo c2-convex-bsd
1405
+ fi
1406
+ exit 0 ;;
1407
+ c34*)
1408
+ echo c34-convex-bsd
1409
+ exit 0 ;;
1410
+ c38*)
1411
+ echo c38-convex-bsd
1412
+ exit 0 ;;
1413
+ c4*)
1414
+ echo c4-convex-bsd
1415
+ exit 0 ;;
1416
+ esac
1417
+ fi
1418
+
1419
+ cat >&2 <<EOF
1420
+ $0: unable to guess system type
1421
+
1422
+ This script, last modified $timestamp, has failed to recognize
1423
+ the operating system you are using. It is advised that you
1424
+ download the most up to date version of the config scripts from
1425
+
1426
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1427
+ and
1428
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1429
+
1430
+ If the version you run ($0) is already up to date, please
1431
+ send the following data and any information you think might be
1432
+ pertinent to <config-patches@gnu.org> in order to provide the needed
1433
+ information to handle your system.
1434
+
1435
+ config.guess timestamp = $timestamp
1436
+
1437
+ uname -m = `(uname -m) 2>/dev/null || echo unknown`
1438
+ uname -r = `(uname -r) 2>/dev/null || echo unknown`
1439
+ uname -s = `(uname -s) 2>/dev/null || echo unknown`
1440
+ uname -v = `(uname -v) 2>/dev/null || echo unknown`
1441
+
1442
+ /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1443
+ /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1444
+
1445
+ hostinfo = `(hostinfo) 2>/dev/null`
1446
+ /bin/universe = `(/bin/universe) 2>/dev/null`
1447
+ /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1448
+ /bin/arch = `(/bin/arch) 2>/dev/null`
1449
+ /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1450
+ /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1451
+
1452
+ UNAME_MACHINE = ${UNAME_MACHINE}
1453
+ UNAME_RELEASE = ${UNAME_RELEASE}
1454
+ UNAME_SYSTEM = ${UNAME_SYSTEM}
1455
+ UNAME_VERSION = ${UNAME_VERSION}
1456
+ EOF
1457
+
1458
+ exit 1
1459
+
1460
+ # Local variables:
1461
+ # eval: (add-hook 'write-file-hooks 'time-stamp)
1462
+ # time-stamp-start: "timestamp='"
1463
+ # time-stamp-format: "%:y-%02m-%02d"
1464
+ # time-stamp-end: "'"
1465
+ # End:
CRF/config.h ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* config.h. Generated from config.h.in by configure. */
2
+ /* config.h.in. Generated from configure.in by autoheader. */
3
+
4
+ /* Define to 1 if you have the <ctype.h> header file. */
5
+ #define HAVE_CTYPE_H 1
6
+
7
+ /* Define to 1 if you have the <dlfcn.h> header file. */
8
+ #define HAVE_DLFCN_H 1
9
+
10
+ /* Define to 1 if you have the <fcntl.h> header file. */
11
+ #define HAVE_FCNTL_H 1
12
+
13
+ /* Define to 1 if you have the `getpagesize' function. */
14
+ #define HAVE_GETPAGESIZE 1
15
+
16
+ /* Define to 1 if you have the <inttypes.h> header file. */
17
+ #define HAVE_INTTYPES_H 1
18
+
19
+ /* Define to 1 if you have the `m' library (-lm). */
20
+ #define HAVE_LIBM 1
21
+
22
+ /* Define to 1 if you have the `pthread' library (-lpthread). */
23
+ #define HAVE_LIBPTHREAD 1
24
+
25
+ /* Define to 1 if you have the <math.h> header file. */
26
+ #define HAVE_MATH_H 1
27
+
28
+ /* Define to 1 if you have the <memory.h> header file. */
29
+ #define HAVE_MEMORY_H 1
30
+
31
+ /* Define to 1 if you have a working `mmap' system call. */
32
+ #define HAVE_MMAP 1
33
+
34
+ /* Define to 1 if you have the <pthread.h> header file. */
35
+ #define HAVE_PTHREAD_H 1
36
+
37
+ /* Define to 1 if you have the <stdint.h> header file. */
38
+ #define HAVE_STDINT_H 1
39
+
40
+ /* Define to 1 if you have the <stdlib.h> header file. */
41
+ #define HAVE_STDLIB_H 1
42
+
43
+ /* Define to 1 if you have the <strings.h> header file. */
44
+ #define HAVE_STRINGS_H 1
45
+
46
+ /* Define to 1 if you have the <string.h> header file. */
47
+ #define HAVE_STRING_H 1
48
+
49
+ /* Define to 1 if you have the <sys/mman.h> header file. */
50
+ #define HAVE_SYS_MMAN_H 1
51
+
52
+ /* Define to 1 if you have the <sys/param.h> header file. */
53
+ #define HAVE_SYS_PARAM_H 1
54
+
55
+ /* Define to 1 if you have the <sys/stat.h> header file. */
56
+ #define HAVE_SYS_STAT_H 1
57
+
58
+ /* Define to 1 if you have the <sys/times.h> header file. */
59
+ #define HAVE_SYS_TIMES_H 1
60
+
61
+ /* Define to 1 if you have the <sys/types.h> header file. */
62
+ #define HAVE_SYS_TYPES_H 1
63
+
64
+ /* Define to 1 if you have the <unistd.h> header file. */
65
+ #define HAVE_UNISTD_H 1
66
+
67
+ /* Define to the sub-directory in which libtool stores uninstalled libraries.
68
+ */
69
+ #define LT_OBJDIR ".libs/"
70
+
71
+ /* Name of package */
72
+ #define PACKAGE "CRF++"
73
+
74
+ /* Define to the address where bug reports for this package should be sent. */
75
+ #define PACKAGE_BUGREPORT ""
76
+
77
+ /* Define to the full name of this package. */
78
+ #define PACKAGE_NAME ""
79
+
80
+ /* Define to the full name and version of this package. */
81
+ #define PACKAGE_STRING ""
82
+
83
+ /* Define to the one symbol short name of this package. */
84
+ #define PACKAGE_TARNAME ""
85
+
86
+ /* Define to the home page for this package. */
87
+ #define PACKAGE_URL ""
88
+
89
+ /* Define to the version of this package. */
90
+ #define PACKAGE_VERSION ""
91
+
92
+ /* Define to 1 if you have the ANSI C header files. */
93
+ /* #undef STDC_HEADERS */
94
+
95
+ /* Version number of package */
96
+ #define VERSION "0.54"
97
+
98
+ /* Define to `unsigned int' if <sys/types.h> does not define. */
99
+ /* #undef size_t */
CRF/config.h.in ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* config.h.in. Generated from configure.in by autoheader. */
2
+
3
+ /* Define to 1 if you have the <ctype.h> header file. */
4
+ #undef HAVE_CTYPE_H
5
+
6
+ /* Define to 1 if you have the <dlfcn.h> header file. */
7
+ #undef HAVE_DLFCN_H
8
+
9
+ /* Define to 1 if you have the <fcntl.h> header file. */
10
+ #undef HAVE_FCNTL_H
11
+
12
+ /* Define to 1 if you have the `getpagesize' function. */
13
+ #undef HAVE_GETPAGESIZE
14
+
15
+ /* Define to 1 if you have the <inttypes.h> header file. */
16
+ #undef HAVE_INTTYPES_H
17
+
18
+ /* Define to 1 if you have the `m' library (-lm). */
19
+ #undef HAVE_LIBM
20
+
21
+ /* Define to 1 if you have the `pthread' library (-lpthread). */
22
+ #undef HAVE_LIBPTHREAD
23
+
24
+ /* Define to 1 if you have the <math.h> header file. */
25
+ #undef HAVE_MATH_H
26
+
27
+ /* Define to 1 if you have the <memory.h> header file. */
28
+ #undef HAVE_MEMORY_H
29
+
30
+ /* Define to 1 if you have a working `mmap' system call. */
31
+ #undef HAVE_MMAP
32
+
33
+ /* Define to 1 if you have the <pthread.h> header file. */
34
+ #undef HAVE_PTHREAD_H
35
+
36
+ /* Define to 1 if you have the <stdint.h> header file. */
37
+ #undef HAVE_STDINT_H
38
+
39
+ /* Define to 1 if you have the <stdlib.h> header file. */
40
+ #undef HAVE_STDLIB_H
41
+
42
+ /* Define to 1 if you have the <strings.h> header file. */
43
+ #undef HAVE_STRINGS_H
44
+
45
+ /* Define to 1 if you have the <string.h> header file. */
46
+ #undef HAVE_STRING_H
47
+
48
+ /* Define to 1 if you have the <sys/mman.h> header file. */
49
+ #undef HAVE_SYS_MMAN_H
50
+
51
+ /* Define to 1 if you have the <sys/param.h> header file. */
52
+ #undef HAVE_SYS_PARAM_H
53
+
54
+ /* Define to 1 if you have the <sys/stat.h> header file. */
55
+ #undef HAVE_SYS_STAT_H
56
+
57
+ /* Define to 1 if you have the <sys/times.h> header file. */
58
+ #undef HAVE_SYS_TIMES_H
59
+
60
+ /* Define to 1 if you have the <sys/types.h> header file. */
61
+ #undef HAVE_SYS_TYPES_H
62
+
63
+ /* Define to 1 if you have the <unistd.h> header file. */
64
+ #undef HAVE_UNISTD_H
65
+
66
+ /* Define to the sub-directory in which libtool stores uninstalled libraries.
67
+ */
68
+ #undef LT_OBJDIR
69
+
70
+ /* Name of package */
71
+ #undef PACKAGE
72
+
73
+ /* Define to the address where bug reports for this package should be sent. */
74
+ #undef PACKAGE_BUGREPORT
75
+
76
+ /* Define to the full name of this package. */
77
+ #undef PACKAGE_NAME
78
+
79
+ /* Define to the full name and version of this package. */
80
+ #undef PACKAGE_STRING
81
+
82
+ /* Define to the one symbol short name of this package. */
83
+ #undef PACKAGE_TARNAME
84
+
85
+ /* Define to the home page for this package. */
86
+ #undef PACKAGE_URL
87
+
88
+ /* Define to the version of this package. */
89
+ #undef PACKAGE_VERSION
90
+
91
+ /* Define to 1 if you have the ANSI C header files. */
92
+ #undef STDC_HEADERS
93
+
94
+ /* Version number of package */
95
+ #undef VERSION
96
+
97
+ /* Define to `unsigned int' if <sys/types.h> does not define. */
98
+ #undef size_t
CRF/config.status ADDED
@@ -0,0 +1,2275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+ # Generated by configure.
3
+ # Run this file to recreate the current configuration.
4
+ # Compiler output produced by configure, useful for debugging
5
+ # configure, is in config.log if it exists.
6
+
7
+ debug=false
8
+ ac_cs_recheck=false
9
+ ac_cs_silent=false
10
+
11
+ SHELL=${CONFIG_SHELL-/bin/sh}
12
+ export SHELL
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
+ case $0 in #((
93
+ *[\\/]* ) as_myself=$0 ;;
94
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95
+ for as_dir in $PATH
96
+ do
97
+ IFS=$as_save_IFS
98
+ test -z "$as_dir" && as_dir=.
99
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100
+ done
101
+ IFS=$as_save_IFS
102
+
103
+ ;;
104
+ esac
105
+ # We did not find ourselves, most probably we were run as `sh COMMAND'
106
+ # in which case we are not to be found in the path.
107
+ if test "x$as_myself" = x; then
108
+ as_myself=$0
109
+ fi
110
+ if test ! -f "$as_myself"; then
111
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112
+ exit 1
113
+ fi
114
+
115
+ # Unset variables that we do not need and which cause bugs (e.g. in
116
+ # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
+ # suppresses any "Segmentation fault" message there. '((' could
118
+ # trigger a bug in pdksh 5.2.14.
119
+ for as_var in BASH_ENV ENV MAIL MAILPATH
120
+ do eval test x\${$as_var+set} = xset \
121
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122
+ done
123
+ PS1='$ '
124
+ PS2='> '
125
+ PS4='+ '
126
+
127
+ # NLS nuisances.
128
+ LC_ALL=C
129
+ export LC_ALL
130
+ LANGUAGE=C
131
+ export LANGUAGE
132
+
133
+ # CDPATH.
134
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
+
136
+
137
+ # as_fn_error ERROR [LINENO LOG_FD]
138
+ # ---------------------------------
139
+ # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
140
+ # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
141
+ # script with status $?, using 1 if that was 0.
142
+ as_fn_error ()
143
+ {
144
+ as_status=$?; test $as_status -eq 0 && as_status=1
145
+ if test "$3"; then
146
+ as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
147
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
148
+ fi
149
+ $as_echo "$as_me: error: $1" >&2
150
+ as_fn_exit $as_status
151
+ } # as_fn_error
152
+
153
+
154
+ # as_fn_set_status STATUS
155
+ # -----------------------
156
+ # Set $? to STATUS, without forking.
157
+ as_fn_set_status ()
158
+ {
159
+ return $1
160
+ } # as_fn_set_status
161
+
162
+ # as_fn_exit STATUS
163
+ # -----------------
164
+ # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
165
+ as_fn_exit ()
166
+ {
167
+ set +e
168
+ as_fn_set_status $1
169
+ exit $1
170
+ } # as_fn_exit
171
+
172
+ # as_fn_unset VAR
173
+ # ---------------
174
+ # Portably unset VAR.
175
+ as_fn_unset ()
176
+ {
177
+ { eval $1=; unset $1;}
178
+ }
179
+ as_unset=as_fn_unset
180
+ # as_fn_append VAR VALUE
181
+ # ----------------------
182
+ # Append the text in VALUE to the end of the definition contained in VAR. Take
183
+ # advantage of any shell optimizations that allow amortized linear growth over
184
+ # repeated appends, instead of the typical quadratic growth present in naive
185
+ # implementations.
186
+ if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
187
+ eval 'as_fn_append ()
188
+ {
189
+ eval $1+=\$2
190
+ }'
191
+ else
192
+ as_fn_append ()
193
+ {
194
+ eval $1=\$$1\$2
195
+ }
196
+ fi # as_fn_append
197
+
198
+ # as_fn_arith ARG...
199
+ # ------------------
200
+ # Perform arithmetic evaluation on the ARGs, and store the result in the
201
+ # global $as_val. Take advantage of shells that can avoid forks. The arguments
202
+ # must be portable across $(()) and expr.
203
+ if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
204
+ eval 'as_fn_arith ()
205
+ {
206
+ as_val=$(( $* ))
207
+ }'
208
+ else
209
+ as_fn_arith ()
210
+ {
211
+ as_val=`expr "$@" || test $? -eq 1`
212
+ }
213
+ fi # as_fn_arith
214
+
215
+
216
+ if expr a : '\(a\)' >/dev/null 2>&1 &&
217
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
218
+ as_expr=expr
219
+ else
220
+ as_expr=false
221
+ fi
222
+
223
+ if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
224
+ as_basename=basename
225
+ else
226
+ as_basename=false
227
+ fi
228
+
229
+ if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
230
+ as_dirname=dirname
231
+ else
232
+ as_dirname=false
233
+ fi
234
+
235
+ as_me=`$as_basename -- "$0" ||
236
+ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
237
+ X"$0" : 'X\(//\)$' \| \
238
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
239
+ $as_echo X/"$0" |
240
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
241
+ s//\1/
242
+ q
243
+ }
244
+ /^X\/\(\/\/\)$/{
245
+ s//\1/
246
+ q
247
+ }
248
+ /^X\/\(\/\).*/{
249
+ s//\1/
250
+ q
251
+ }
252
+ s/.*/./; q'`
253
+
254
+ # Avoid depending upon Character Ranges.
255
+ as_cr_letters='abcdefghijklmnopqrstuvwxyz'
256
+ as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
257
+ as_cr_Letters=$as_cr_letters$as_cr_LETTERS
258
+ as_cr_digits='0123456789'
259
+ as_cr_alnum=$as_cr_Letters$as_cr_digits
260
+
261
+ ECHO_C= ECHO_N= ECHO_T=
262
+ case `echo -n x` in #(((((
263
+ -n*)
264
+ case `echo 'xy\c'` in
265
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
266
+ xy) ECHO_C='\c';;
267
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
268
+ ECHO_T=' ';;
269
+ esac;;
270
+ *)
271
+ ECHO_N='-n';;
272
+ esac
273
+
274
+ rm -f conf$$ conf$$.exe conf$$.file
275
+ if test -d conf$$.dir; then
276
+ rm -f conf$$.dir/conf$$.file
277
+ else
278
+ rm -f conf$$.dir
279
+ mkdir conf$$.dir 2>/dev/null
280
+ fi
281
+ if (echo >conf$$.file) 2>/dev/null; then
282
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
283
+ as_ln_s='ln -s'
284
+ # ... but there are two gotchas:
285
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
286
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
287
+ # In both cases, we have to default to `cp -p'.
288
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
289
+ as_ln_s='cp -p'
290
+ elif ln conf$$.file conf$$ 2>/dev/null; then
291
+ as_ln_s=ln
292
+ else
293
+ as_ln_s='cp -p'
294
+ fi
295
+ else
296
+ as_ln_s='cp -p'
297
+ fi
298
+ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
299
+ rmdir conf$$.dir 2>/dev/null
300
+
301
+
302
+ # as_fn_mkdir_p
303
+ # -------------
304
+ # Create "$as_dir" as a directory, including parents if necessary.
305
+ as_fn_mkdir_p ()
306
+ {
307
+
308
+ case $as_dir in #(
309
+ -*) as_dir=./$as_dir;;
310
+ esac
311
+ test -d "$as_dir" || eval $as_mkdir_p || {
312
+ as_dirs=
313
+ while :; do
314
+ case $as_dir in #(
315
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
316
+ *) as_qdir=$as_dir;;
317
+ esac
318
+ as_dirs="'$as_qdir' $as_dirs"
319
+ as_dir=`$as_dirname -- "$as_dir" ||
320
+ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
321
+ X"$as_dir" : 'X\(//\)[^/]' \| \
322
+ X"$as_dir" : 'X\(//\)$' \| \
323
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
324
+ $as_echo X"$as_dir" |
325
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326
+ s//\1/
327
+ q
328
+ }
329
+ /^X\(\/\/\)[^/].*/{
330
+ s//\1/
331
+ q
332
+ }
333
+ /^X\(\/\/\)$/{
334
+ s//\1/
335
+ q
336
+ }
337
+ /^X\(\/\).*/{
338
+ s//\1/
339
+ q
340
+ }
341
+ s/.*/./; q'`
342
+ test -d "$as_dir" && break
343
+ done
344
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
345
+ } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
346
+
347
+
348
+ } # as_fn_mkdir_p
349
+ if mkdir -p . 2>/dev/null; then
350
+ as_mkdir_p='mkdir -p "$as_dir"'
351
+ else
352
+ test -d ./-p && rmdir ./-p
353
+ as_mkdir_p=false
354
+ fi
355
+
356
+ if test -x / >/dev/null 2>&1; then
357
+ as_test_x='test -x'
358
+ else
359
+ if ls -dL / >/dev/null 2>&1; then
360
+ as_ls_L_option=L
361
+ else
362
+ as_ls_L_option=
363
+ fi
364
+ as_test_x='
365
+ eval sh -c '\''
366
+ if test -d "$1"; then
367
+ test -d "$1/.";
368
+ else
369
+ case $1 in #(
370
+ -*)set "./$1";;
371
+ esac;
372
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
373
+ ???[sx]*):;;*)false;;esac;fi
374
+ '\'' sh
375
+ '
376
+ fi
377
+ as_executable_p=$as_test_x
378
+
379
+ # Sed expression to map a string onto a valid CPP name.
380
+ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
381
+
382
+ # Sed expression to map a string onto a valid variable name.
383
+ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
384
+
385
+
386
+ exec 6>&1
387
+ ## ----------------------------------- ##
388
+ ## Main body of $CONFIG_STATUS script. ##
389
+ ## ----------------------------------- ##
390
+ # Save the log message, to keep $0 and so on meaningful, and to
391
+ # report actual input values of CONFIG_FILES etc. instead of their
392
+ # values after options handling.
393
+ ac_log="
394
+ This file was extended by $as_me, which was
395
+ generated by GNU Autoconf 2.65. Invocation command line was
396
+
397
+ CONFIG_FILES = $CONFIG_FILES
398
+ CONFIG_HEADERS = $CONFIG_HEADERS
399
+ CONFIG_LINKS = $CONFIG_LINKS
400
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
401
+ $ $0 $@
402
+
403
+ on `(hostname || uname -n) 2>/dev/null | sed 1q`
404
+ "
405
+
406
+ # Files that config.status was made for.
407
+ config_files=" Makefile Makefile.msvc swig/version.h"
408
+ config_headers=" config.h"
409
+ config_commands=" depfiles libtool"
410
+
411
+ ac_cs_usage="\
412
+ \`$as_me' instantiates files and other configuration actions
413
+ from templates according to the current configuration. Unless the files
414
+ and actions are specified as TAGs, all are instantiated by default.
415
+
416
+ Usage: $0 [OPTION]... [TAG]...
417
+
418
+ -h, --help print this help, then exit
419
+ -V, --version print version number and configuration settings, then exit
420
+ --config print configuration, then exit
421
+ -q, --quiet, --silent
422
+ do not print progress messages
423
+ -d, --debug don't remove temporary files
424
+ --recheck update $as_me by reconfiguring in the same conditions
425
+ --file=FILE[:TEMPLATE]
426
+ instantiate the configuration file FILE
427
+ --header=FILE[:TEMPLATE]
428
+ instantiate the configuration header FILE
429
+
430
+ Configuration files:
431
+ $config_files
432
+
433
+ Configuration headers:
434
+ $config_headers
435
+
436
+ Configuration commands:
437
+ $config_commands
438
+
439
+ Report bugs to the package provider."
440
+
441
+ ac_cs_config=""
442
+ ac_cs_version="\
443
+ config.status
444
+ configured by ./configure, generated by GNU Autoconf 2.65,
445
+ with options \"$ac_cs_config\"
446
+
447
+ Copyright (C) 2009 Free Software Foundation, Inc.
448
+ This config.status script is free software; the Free Software Foundation
449
+ gives unlimited permission to copy, distribute and modify it."
450
+
451
+ ac_pwd='/home/weic4/GN/GNR/CRF++'
452
+ srcdir='.'
453
+ INSTALL='/usr/bin/install -c'
454
+ MKDIR_P='/bin/mkdir -p'
455
+ AWK='gawk'
456
+ test -n "$AWK" || AWK=awk
457
+ # The default lists apply if the user does not specify any file.
458
+ ac_need_defaults=:
459
+ while test $# != 0
460
+ do
461
+ case $1 in
462
+ --*=*)
463
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
464
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
465
+ ac_shift=:
466
+ ;;
467
+ *)
468
+ ac_option=$1
469
+ ac_optarg=$2
470
+ ac_shift=shift
471
+ ;;
472
+ esac
473
+
474
+ case $ac_option in
475
+ # Handling of the options.
476
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
477
+ ac_cs_recheck=: ;;
478
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
479
+ $as_echo "$ac_cs_version"; exit ;;
480
+ --config | --confi | --conf | --con | --co | --c )
481
+ $as_echo "$ac_cs_config"; exit ;;
482
+ --debug | --debu | --deb | --de | --d | -d )
483
+ debug=: ;;
484
+ --file | --fil | --fi | --f )
485
+ $ac_shift
486
+ case $ac_optarg in
487
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
488
+ esac
489
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
490
+ ac_need_defaults=false;;
491
+ --header | --heade | --head | --hea )
492
+ $ac_shift
493
+ case $ac_optarg in
494
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
495
+ esac
496
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
497
+ ac_need_defaults=false;;
498
+ --he | --h)
499
+ # Conflict between --help and --header
500
+ as_fn_error "ambiguous option: \`$1'
501
+ Try \`$0 --help' for more information.";;
502
+ --help | --hel | -h )
503
+ $as_echo "$ac_cs_usage"; exit ;;
504
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
505
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
506
+ ac_cs_silent=: ;;
507
+
508
+ # This is an error.
509
+ -*) as_fn_error "unrecognized option: \`$1'
510
+ Try \`$0 --help' for more information." ;;
511
+
512
+ *) as_fn_append ac_config_targets " $1"
513
+ ac_need_defaults=false ;;
514
+
515
+ esac
516
+ shift
517
+ done
518
+
519
+ ac_configure_extra_args=
520
+
521
+ if $ac_cs_silent; then
522
+ exec 6>/dev/null
523
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
524
+ fi
525
+
526
+ if $ac_cs_recheck; then
527
+ set X '/bin/sh' './configure' $ac_configure_extra_args --no-create --no-recursion
528
+ shift
529
+ $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
530
+ CONFIG_SHELL='/bin/sh'
531
+ export CONFIG_SHELL
532
+ exec "$@"
533
+ fi
534
+
535
+ exec 5>>config.log
536
+ {
537
+ echo
538
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
539
+ ## Running $as_me. ##
540
+ _ASBOX
541
+ $as_echo "$ac_log"
542
+ } >&5
543
+
544
+ #
545
+ # INIT-COMMANDS
546
+ #
547
+ AMDEP_TRUE="" ac_aux_dir="."
548
+
549
+
550
+ # The HP-UX ksh and POSIX shell print the target directory to stdout
551
+ # if CDPATH is set.
552
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
553
+
554
+ sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
555
+ double_quote_subst='s/\(["`\\]\)/\\\1/g'
556
+ delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
557
+ macro_version='2.2.6b'
558
+ macro_revision='1.3017'
559
+ enable_shared='yes'
560
+ enable_static='yes'
561
+ pic_mode='default'
562
+ enable_fast_install='yes'
563
+ host_alias=''
564
+ host='x86_64-unknown-linux-gnu'
565
+ host_os='linux-gnu'
566
+ build_alias=''
567
+ build='x86_64-unknown-linux-gnu'
568
+ build_os='linux-gnu'
569
+ SED='/bin/sed'
570
+ Xsed='/bin/sed -e 1s/^X//'
571
+ GREP='/bin/grep'
572
+ EGREP='/bin/grep -E'
573
+ FGREP='/bin/grep -F'
574
+ LD='/usr/bin/ld -m elf_x86_64'
575
+ NM='/usr/bin/nm -B'
576
+ LN_S='ln -s'
577
+ max_cmd_len='98304'
578
+ ac_objext='o'
579
+ exeext=''
580
+ lt_unset='unset'
581
+ lt_SP2NL='tr \040 \012'
582
+ lt_NL2SP='tr \015\012 \040\040'
583
+ reload_flag=' -r'
584
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
585
+ OBJDUMP='objdump'
586
+ deplibs_check_method='pass_all'
587
+ file_magic_cmd='$MAGIC_CMD'
588
+ AR='ar'
589
+ AR_FLAGS='cru'
590
+ STRIP='strip'
591
+ RANLIB='ranlib'
592
+ old_postinstall_cmds='chmod 644 $oldlib~$RANLIB $oldlib'
593
+ old_postuninstall_cmds=''
594
+ old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib'
595
+ CC='gcc'
596
+ CFLAGS='-O3 -Wall'
597
+ compiler='g++'
598
+ GCC='yes'
599
+ lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'''
600
+ lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
601
+ lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\'''
602
+ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\'''
603
+ objdir='.libs'
604
+ SHELL='/bin/sh'
605
+ ECHO='echo'
606
+ MAGIC_CMD='file'
607
+ lt_prog_compiler_no_builtin_flag=' -fno-builtin'
608
+ lt_prog_compiler_wl='-Wl,'
609
+ lt_prog_compiler_pic=' -fPIC -DPIC'
610
+ lt_prog_compiler_static='-static'
611
+ lt_cv_prog_compiler_c_o='yes'
612
+ need_locks='no'
613
+ DSYMUTIL=''
614
+ NMEDIT=''
615
+ LIPO=''
616
+ OTOOL=''
617
+ OTOOL64=''
618
+ libext='a'
619
+ shrext_cmds='.so'
620
+ extract_expsyms_cmds=''
621
+ archive_cmds_need_lc='no'
622
+ enable_shared_with_static_runtimes='no'
623
+ export_dynamic_flag_spec='${wl}--export-dynamic'
624
+ whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
625
+ compiler_needs_object='no'
626
+ old_archive_from_new_cmds=''
627
+ old_archive_from_expsyms_cmds=''
628
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
629
+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
630
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
631
+ echo "local: *; };" >> $output_objdir/$libname.ver~
632
+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
633
+ module_cmds=''
634
+ module_expsym_cmds=''
635
+ with_gnu_ld='yes'
636
+ allow_undefined_flag=''
637
+ no_undefined_flag=''
638
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
639
+ hardcode_libdir_flag_spec_ld=''
640
+ hardcode_libdir_separator=''
641
+ hardcode_direct='no'
642
+ hardcode_direct_absolute='no'
643
+ hardcode_minus_L='no'
644
+ hardcode_shlibpath_var='unsupported'
645
+ hardcode_automatic='no'
646
+ inherit_rpath='no'
647
+ link_all_deplibs='no'
648
+ fix_srcfile_path=''
649
+ always_export_symbols='no'
650
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
651
+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
652
+ include_expsyms=''
653
+ prelink_cmds=''
654
+ file_list_spec=''
655
+ variables_saved_for_relink='PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH'
656
+ need_lib_prefix='no'
657
+ need_version='no'
658
+ version_type='linux'
659
+ runpath_var='LD_RUN_PATH'
660
+ shlibpath_var='LD_LIBRARY_PATH'
661
+ shlibpath_overrides_runpath='no'
662
+ libname_spec='lib$name'
663
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
664
+ soname_spec='${libname}${release}${shared_ext}$major'
665
+ postinstall_cmds=''
666
+ postuninstall_cmds=''
667
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
668
+ finish_eval=''
669
+ hardcode_into_libs='yes'
670
+ sys_lib_search_path_spec='/usr/lib64/gcc-4.4.2/gcc/x86_64-unknown-linux-gnu/4.4.2 /lib64 /usr/lib64 /usr/lib64/gcc-4.4.2'
671
+ sys_lib_dlsearch_path_spec='/lib /usr/lib /usr/lib64/nvidia-graphics /usr/lib64/mysql /usr/lib64/qt-3.3/lib /usr/lib64/qt4/lib64 /usr/lib64/xulrunner-1.9.2 /usr/lib/nsr /usr/lib/nsr/lib64 '
672
+ hardcode_action='immediate'
673
+ enable_dlopen='unknown'
674
+ enable_dlopen_self='unknown'
675
+ enable_dlopen_self_static='unknown'
676
+ old_striplib='strip --strip-debug'
677
+ striplib='strip --strip-unneeded'
678
+ compiler_lib_search_dirs=''
679
+ predep_objects=''
680
+ postdep_objects=''
681
+ predeps=''
682
+ postdeps=''
683
+ compiler_lib_search_path=''
684
+ LD_CXX='/usr/bin/ld -m elf_x86_64'
685
+ old_archive_cmds_CXX='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib'
686
+ compiler_CXX='g++'
687
+ GCC_CXX='yes'
688
+ lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
689
+ lt_prog_compiler_wl_CXX='-Wl,'
690
+ lt_prog_compiler_pic_CXX=' -fPIC -DPIC'
691
+ lt_prog_compiler_static_CXX='-static'
692
+ lt_cv_prog_compiler_c_o_CXX='yes'
693
+ archive_cmds_need_lc_CXX='no'
694
+ enable_shared_with_static_runtimes_CXX='no'
695
+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
696
+ whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
697
+ compiler_needs_object_CXX='no'
698
+ old_archive_from_new_cmds_CXX=''
699
+ old_archive_from_expsyms_cmds_CXX=''
700
+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
701
+ archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
702
+ module_cmds_CXX=''
703
+ module_expsym_cmds_CXX=''
704
+ with_gnu_ld_CXX='yes'
705
+ allow_undefined_flag_CXX=''
706
+ no_undefined_flag_CXX=''
707
+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
708
+ hardcode_libdir_flag_spec_ld_CXX=''
709
+ hardcode_libdir_separator_CXX=''
710
+ hardcode_direct_CXX='no'
711
+ hardcode_direct_absolute_CXX='no'
712
+ hardcode_minus_L_CXX='no'
713
+ hardcode_shlibpath_var_CXX='unsupported'
714
+ hardcode_automatic_CXX='no'
715
+ inherit_rpath_CXX='no'
716
+ link_all_deplibs_CXX='no'
717
+ fix_srcfile_path_CXX=''
718
+ always_export_symbols_CXX='no'
719
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
720
+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
721
+ include_expsyms_CXX=''
722
+ prelink_cmds_CXX=''
723
+ file_list_spec_CXX=''
724
+ hardcode_action_CXX='immediate'
725
+ compiler_lib_search_dirs_CXX='/usr/lib64/gcc-4.4.2/gcc/x86_64-unknown-linux-gnu/4.4.2 /lib/../lib64 /usr/lib/../lib64 /usr/lib64/gcc-4.4.2/gcc/x86_64-unknown-linux-gnu/4.4.2/../../..'
726
+ predep_objects_CXX='/usr/lib/../lib64/crti.o /usr/lib64/gcc-4.4.2/gcc/x86_64-unknown-linux-gnu/4.4.2/crtbeginS.o'
727
+ postdep_objects_CXX='/usr/lib64/gcc-4.4.2/gcc/x86_64-unknown-linux-gnu/4.4.2/crtendS.o /usr/lib/../lib64/crtn.o'
728
+ predeps_CXX=''
729
+ postdeps_CXX='-lstdc++ -lm -lgcc_s -lc -lgcc_s'
730
+ compiler_lib_search_path_CXX='-L/usr/lib64/gcc-4.4.2/gcc/x86_64-unknown-linux-gnu/4.4.2 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc-4.4.2/gcc/x86_64-unknown-linux-gnu/4.4.2/../../..'
731
+
732
+ LTCC='gcc'
733
+ LTCFLAGS='-g -O2'
734
+ compiler='gcc'
735
+
736
+ # Quote evaled strings.
737
+ for var in SED GREP EGREP FGREP LD NM LN_S lt_SP2NL lt_NL2SP reload_flag OBJDUMP deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB CC CFLAGS compiler lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address lt_cv_sys_global_symbol_to_c_name_address_lib_prefix SHELL ECHO lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks DSYMUTIL NMEDIT LIPO OTOOL OTOOL64 shrext_cmds export_dynamic_flag_spec whole_archive_flag_spec compiler_needs_object with_gnu_ld allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms file_list_spec variables_saved_for_relink libname_spec library_names_spec soname_spec finish_eval old_striplib striplib compiler_lib_search_dirs predep_objects postdep_objects predeps postdeps compiler_lib_search_path LD_CXX compiler_CXX lt_prog_compiler_no_builtin_flag_CXX lt_prog_compiler_wl_CXX lt_prog_compiler_pic_CXX lt_prog_compiler_static_CXX lt_cv_prog_compiler_c_o_CXX export_dynamic_flag_spec_CXX whole_archive_flag_spec_CXX compiler_needs_object_CXX with_gnu_ld_CXX allow_undefined_flag_CXX no_undefined_flag_CXX hardcode_libdir_flag_spec_CXX hardcode_libdir_flag_spec_ld_CXX hardcode_libdir_separator_CXX fix_srcfile_path_CXX exclude_expsyms_CXX include_expsyms_CXX file_list_spec_CXX compiler_lib_search_dirs_CXX predep_objects_CXX postdep_objects_CXX predeps_CXX postdeps_CXX compiler_lib_search_path_CXX; do
738
+ case `eval \\$ECHO "X\\$$var"` in
739
+ *[\\\`\"\$]*)
740
+ eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
741
+ ;;
742
+ *)
743
+ eval "lt_$var=\\\"\$$var\\\""
744
+ ;;
745
+ esac
746
+ done
747
+
748
+ # Double-quote double-evaled strings.
749
+ for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds prelink_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec old_archive_cmds_CXX old_archive_from_new_cmds_CXX old_archive_from_expsyms_cmds_CXX archive_cmds_CXX archive_expsym_cmds_CXX module_cmds_CXX module_expsym_cmds_CXX export_symbols_cmds_CXX prelink_cmds_CXX; do
750
+ case `eval \\$ECHO "X\\$$var"` in
751
+ *[\\\`\"\$]*)
752
+ eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
753
+ ;;
754
+ *)
755
+ eval "lt_$var=\\\"\$$var\\\""
756
+ ;;
757
+ esac
758
+ done
759
+
760
+ # Fix-up fallback echo if it was mangled by the above quoting rules.
761
+ case $lt_ECHO in
762
+ *'\$0 --fallback-echo"') lt_ECHO=`$ECHO "X$lt_ECHO" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
763
+ ;;
764
+ esac
765
+
766
+ ac_aux_dir='.'
767
+ xsi_shell='yes'
768
+ lt_shell_append='yes'
769
+
770
+ # See if we are running on zsh, and set the options which allow our
771
+ # commands through without removal of \ escapes INIT.
772
+ if test -n "${ZSH_VERSION+set}" ; then
773
+ setopt NO_GLOB_SUBST
774
+ fi
775
+
776
+
777
+ PACKAGE='CRF++'
778
+ VERSION='0.54'
779
+ TIMESTAMP=''
780
+ RM='rm -f'
781
+ ofile='libtool'
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+ # Handling of arguments.
790
+ for ac_config_target in $ac_config_targets
791
+ do
792
+ case $ac_config_target in
793
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
794
+ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
795
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
796
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
797
+ "Makefile.msvc") CONFIG_FILES="$CONFIG_FILES Makefile.msvc" ;;
798
+ "swig/version.h") CONFIG_FILES="$CONFIG_FILES swig/version.h" ;;
799
+
800
+ *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
801
+ esac
802
+ done
803
+
804
+
805
+ # If the user did not use the arguments to specify the items to instantiate,
806
+ # then the envvar interface is used. Set only those that are not.
807
+ # We use the long form for the default assignment because of an extremely
808
+ # bizarre bug on SunOS 4.1.3.
809
+ if $ac_need_defaults; then
810
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
811
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
812
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
813
+ fi
814
+
815
+ # Have a temporary directory for convenience. Make it in the build tree
816
+ # simply because there is no reason against having it here, and in addition,
817
+ # creating and moving files from /tmp can sometimes cause problems.
818
+ # Hook for its removal unless debugging.
819
+ # Note that there is a small window in which the directory will not be cleaned:
820
+ # after its creation but before its name has been assigned to `$tmp'.
821
+ $debug ||
822
+ {
823
+ tmp=
824
+ trap 'exit_status=$?
825
+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
826
+ ' 0
827
+ trap 'as_fn_exit 1' 1 2 13 15
828
+ }
829
+ # Create a (secure) tmp directory for tmp files.
830
+
831
+ {
832
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
833
+ test -n "$tmp" && test -d "$tmp"
834
+ } ||
835
+ {
836
+ tmp=./conf$$-$RANDOM
837
+ (umask 077 && mkdir "$tmp")
838
+ } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
839
+
840
+ # Set up the scripts for CONFIG_FILES section.
841
+ # No need to generate them if there are no CONFIG_FILES.
842
+ # This happens for instance with `./config.status config.h'.
843
+ if test -n "$CONFIG_FILES"; then
844
+
845
+
846
+ ac_cr=`echo X | tr X '\015'`
847
+ # On cygwin, bash can eat \r inside `` if the user requested igncr.
848
+ # But we know of no other shell where ac_cr would be empty at this
849
+ # point, so we can use a bashism as a fallback.
850
+ if test "x$ac_cr" = x; then
851
+ eval ac_cr=\$\'\\r\'
852
+ fi
853
+ ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
854
+ if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
855
+ ac_cs_awk_cr='\r'
856
+ else
857
+ ac_cs_awk_cr=$ac_cr
858
+ fi
859
+
860
+ echo 'BEGIN {' >"$tmp/subs1.awk" &&
861
+ cat >>"$tmp/subs1.awk" <<\_ACAWK &&
862
+ S["am__EXEEXT_FALSE"]=""
863
+ S["am__EXEEXT_TRUE"]="#"
864
+ S["LTLIBOBJS"]=""
865
+ S["LIBOBJS"]=""
866
+ S["CXXCPP"]="g++ -E"
867
+ S["OTOOL64"]=""
868
+ S["OTOOL"]=""
869
+ S["LIPO"]=""
870
+ S["NMEDIT"]=""
871
+ S["DSYMUTIL"]=""
872
+ S["lt_ECHO"]="echo"
873
+ S["RANLIB"]="ranlib"
874
+ S["AR"]="ar"
875
+ S["OBJDUMP"]="objdump"
876
+ S["LN_S"]="ln -s"
877
+ S["NM"]="/usr/bin/nm -B"
878
+ S["ac_ct_DUMPBIN"]=""
879
+ S["DUMPBIN"]=""
880
+ S["LD"]="/usr/bin/ld -m elf_x86_64"
881
+ S["FGREP"]="/bin/grep -F"
882
+ S["SED"]="/bin/sed"
883
+ S["LIBTOOL"]="$(SHELL) $(top_builddir)/libtool"
884
+ S["host_os"]="linux-gnu"
885
+ S["host_vendor"]="unknown"
886
+ S["host_cpu"]="x86_64"
887
+ S["host"]="x86_64-unknown-linux-gnu"
888
+ S["build_os"]="linux-gnu"
889
+ S["build_vendor"]="unknown"
890
+ S["build_cpu"]="x86_64"
891
+ S["build"]="x86_64-unknown-linux-gnu"
892
+ S["EGREP"]="/bin/grep -E"
893
+ S["GREP"]="/bin/grep"
894
+ S["CPP"]="gcc -E"
895
+ S["am__fastdepCXX_FALSE"]="#"
896
+ S["am__fastdepCXX_TRUE"]=""
897
+ S["CXXDEPMODE"]="depmode=gcc3"
898
+ S["ac_ct_CXX"]="g++"
899
+ S["CXXFLAGS"]="-O3 -Wall"
900
+ S["CXX"]="g++"
901
+ S["am__fastdepCC_FALSE"]="#"
902
+ S["am__fastdepCC_TRUE"]=""
903
+ S["CCDEPMODE"]="depmode=gcc3"
904
+ S["AMDEPBACKSLASH"]="\\"
905
+ S["AMDEP_FALSE"]="#"
906
+ S["AMDEP_TRUE"]=""
907
+ S["am__quote"]=""
908
+ S["am__include"]="include"
909
+ S["DEPDIR"]=".deps"
910
+ S["OBJEXT"]="o"
911
+ S["EXEEXT"]=""
912
+ S["ac_ct_CC"]="gcc"
913
+ S["CPPFLAGS"]=""
914
+ S["LDFLAGS"]=""
915
+ S["CFLAGS"]="-O3 -Wall"
916
+ S["CC"]="gcc"
917
+ S["am__untar"]="${AMTAR} xf -"
918
+ S["am__tar"]="${AMTAR} chof - \"$$tardir\""
919
+ S["AMTAR"]="${SHELL} /home/weic4/GN/GNR/CRF++/missing --run tar"
920
+ S["am__leading_dot"]="."
921
+ S["SET_MAKE"]=""
922
+ S["AWK"]="gawk"
923
+ S["mkdir_p"]="/bin/mkdir -p"
924
+ S["MKDIR_P"]="/bin/mkdir -p"
925
+ S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s"
926
+ S["STRIP"]="strip"
927
+ S["install_sh"]="${SHELL} /home/weic4/GN/GNR/CRF++/install-sh"
928
+ S["MAKEINFO"]="${SHELL} /home/weic4/GN/GNR/CRF++/missing --run makeinfo"
929
+ S["AUTOHEADER"]="${SHELL} /home/weic4/GN/GNR/CRF++/missing --run autoheader"
930
+ S["AUTOMAKE"]="${SHELL} /home/weic4/GN/GNR/CRF++/missing --run automake-1.11"
931
+ S["AUTOCONF"]="${SHELL} /home/weic4/GN/GNR/CRF++/missing --run autoconf"
932
+ S["ACLOCAL"]="${SHELL} /home/weic4/GN/GNR/CRF++/missing --run aclocal-1.11"
933
+ S["VERSION"]="0.54"
934
+ S["PACKAGE"]="CRF++"
935
+ S["CYGPATH_W"]="echo"
936
+ S["am__isrc"]=""
937
+ S["INSTALL_DATA"]="${INSTALL} -m 644"
938
+ S["INSTALL_SCRIPT"]="${INSTALL}"
939
+ S["INSTALL_PROGRAM"]="${INSTALL}"
940
+ S["target_alias"]=""
941
+ S["host_alias"]=""
942
+ S["build_alias"]=""
943
+ S["LIBS"]="-lpthread -lpthread -lm -lm -lm "
944
+ S["ECHO_T"]=""
945
+ S["ECHO_N"]="-n"
946
+ S["ECHO_C"]=""
947
+ S["DEFS"]="-DHAVE_CONFIG_H"
948
+ S["mandir"]="${datarootdir}/man"
949
+ S["localedir"]="${datarootdir}/locale"
950
+ S["libdir"]="${exec_prefix}/lib"
951
+ S["psdir"]="${docdir}"
952
+ S["pdfdir"]="${docdir}"
953
+ S["dvidir"]="${docdir}"
954
+ S["htmldir"]="${docdir}"
955
+ S["infodir"]="${datarootdir}/info"
956
+ S["docdir"]="${datarootdir}/doc/${PACKAGE}"
957
+ S["oldincludedir"]="/usr/include"
958
+ S["includedir"]="${prefix}/include"
959
+ S["localstatedir"]="${prefix}/var"
960
+ S["sharedstatedir"]="${prefix}/com"
961
+ S["sysconfdir"]="${prefix}/etc"
962
+ S["datadir"]="${datarootdir}"
963
+ S["datarootdir"]="${prefix}/share"
964
+ S["libexecdir"]="${exec_prefix}/libexec"
965
+ S["sbindir"]="${exec_prefix}/sbin"
966
+ S["bindir"]="${exec_prefix}/bin"
967
+ S["program_transform_name"]="s,x,x,"
968
+ S["prefix"]="/usr/local"
969
+ S["exec_prefix"]="${prefix}"
970
+ S["PACKAGE_URL"]=""
971
+ S["PACKAGE_BUGREPORT"]=""
972
+ S["PACKAGE_STRING"]=""
973
+ S["PACKAGE_VERSION"]=""
974
+ S["PACKAGE_TARNAME"]=""
975
+ S["PACKAGE_NAME"]=""
976
+ S["PATH_SEPARATOR"]=":"
977
+ S["SHELL"]="/bin/sh"
978
+ _ACAWK
979
+ cat >>"$tmp/subs1.awk" <<_ACAWK &&
980
+ for (key in S) S_is_set[key] = 1
981
+ FS = ""
982
+
983
+ }
984
+ {
985
+ line = $ 0
986
+ nfields = split(line, field, "@")
987
+ substed = 0
988
+ len = length(field[1])
989
+ for (i = 2; i < nfields; i++) {
990
+ key = field[i]
991
+ keylen = length(key)
992
+ if (S_is_set[key]) {
993
+ value = S[key]
994
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
995
+ len += length(value) + length(field[++i])
996
+ substed = 1
997
+ } else
998
+ len += 1 + keylen
999
+ }
1000
+
1001
+ print line
1002
+ }
1003
+
1004
+ _ACAWK
1005
+ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
1006
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1007
+ else
1008
+ cat
1009
+ fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
1010
+ || as_fn_error "could not setup config files machinery" "$LINENO" 5
1011
+ fi # test -n "$CONFIG_FILES"
1012
+
1013
+ # Set up the scripts for CONFIG_HEADERS section.
1014
+ # No need to generate them if there are no CONFIG_HEADERS.
1015
+ # This happens for instance with `./config.status Makefile'.
1016
+ if test -n "$CONFIG_HEADERS"; then
1017
+ cat >"$tmp/defines.awk" <<\_ACAWK ||
1018
+ BEGIN {
1019
+ D["PACKAGE_NAME"]=" \"\""
1020
+ D["PACKAGE_TARNAME"]=" \"\""
1021
+ D["PACKAGE_VERSION"]=" \"\""
1022
+ D["PACKAGE_STRING"]=" \"\""
1023
+ D["PACKAGE_BUGREPORT"]=" \"\""
1024
+ D["PACKAGE_URL"]=" \"\""
1025
+ D["PACKAGE"]=" \"CRF++\""
1026
+ D["VERSION"]=" \"0.54\""
1027
+ D["HAVE_SYS_TYPES_H"]=" 1"
1028
+ D["HAVE_SYS_STAT_H"]=" 1"
1029
+ D["HAVE_STDLIB_H"]=" 1"
1030
+ D["HAVE_STRING_H"]=" 1"
1031
+ D["HAVE_MEMORY_H"]=" 1"
1032
+ D["HAVE_STRINGS_H"]=" 1"
1033
+ D["HAVE_INTTYPES_H"]=" 1"
1034
+ D["HAVE_STDINT_H"]=" 1"
1035
+ D["HAVE_UNISTD_H"]=" 1"
1036
+ D["HAVE_DLFCN_H"]=" 1"
1037
+ D["LT_OBJDIR"]=" \".libs/\""
1038
+ D["HAVE_STRING_H"]=" 1"
1039
+ D["HAVE_STDLIB_H"]=" 1"
1040
+ D["HAVE_UNISTD_H"]=" 1"
1041
+ D["HAVE_FCNTL_H"]=" 1"
1042
+ D["HAVE_SYS_STAT_H"]=" 1"
1043
+ D["HAVE_SYS_MMAN_H"]=" 1"
1044
+ D["HAVE_SYS_TIMES_H"]=" 1"
1045
+ D["HAVE_CTYPE_H"]=" 1"
1046
+ D["HAVE_SYS_TYPES_H"]=" 1"
1047
+ D["HAVE_MATH_H"]=" 1"
1048
+ D["HAVE_PTHREAD_H"]=" 1"
1049
+ D["HAVE_LIBM"]=" 1"
1050
+ D["HAVE_LIBM"]=" 1"
1051
+ D["HAVE_LIBM"]=" 1"
1052
+ D["HAVE_LIBPTHREAD"]=" 1"
1053
+ D["HAVE_LIBPTHREAD"]=" 1"
1054
+ D["HAVE_STDLIB_H"]=" 1"
1055
+ D["HAVE_UNISTD_H"]=" 1"
1056
+ D["HAVE_SYS_PARAM_H"]=" 1"
1057
+ D["HAVE_GETPAGESIZE"]=" 1"
1058
+ D["HAVE_MMAP"]=" 1"
1059
+ for (key in D) D_is_set[key] = 1
1060
+ FS = ""
1061
+ }
1062
+ /^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
1063
+ line = $ 0
1064
+ split(line, arg, " ")
1065
+ if (arg[1] == "#") {
1066
+ defundef = arg[2]
1067
+ mac1 = arg[3]
1068
+ } else {
1069
+ defundef = substr(arg[1], 2)
1070
+ mac1 = arg[2]
1071
+ }
1072
+ split(mac1, mac2, "(") #)
1073
+ macro = mac2[1]
1074
+ prefix = substr(line, 1, index(line, defundef) - 1)
1075
+ if (D_is_set[macro]) {
1076
+ # Preserve the white space surrounding the "#".
1077
+ print prefix "define", macro P[macro] D[macro]
1078
+ next
1079
+ } else {
1080
+ # Replace #undef with comments. This is necessary, for example,
1081
+ # in the case of _POSIX_SOURCE, which is predefined and required
1082
+ # on some systems where configure will not decide to define it.
1083
+ if (defundef == "undef") {
1084
+ print "/*", prefix defundef, macro, "*/"
1085
+ next
1086
+ }
1087
+ }
1088
+ }
1089
+ { print }
1090
+ _ACAWK
1091
+ as_fn_error "could not setup config headers machinery" "$LINENO" 5
1092
+ fi # test -n "$CONFIG_HEADERS"
1093
+
1094
+
1095
+ eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
1096
+ shift
1097
+ for ac_tag
1098
+ do
1099
+ case $ac_tag in
1100
+ :[FHLC]) ac_mode=$ac_tag; continue;;
1101
+ esac
1102
+ case $ac_mode$ac_tag in
1103
+ :[FHL]*:*);;
1104
+ :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1105
+ :[FH]-) ac_tag=-:-;;
1106
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1107
+ esac
1108
+ ac_save_IFS=$IFS
1109
+ IFS=:
1110
+ set x $ac_tag
1111
+ IFS=$ac_save_IFS
1112
+ shift
1113
+ ac_file=$1
1114
+ shift
1115
+
1116
+ case $ac_mode in
1117
+ :L) ac_source=$1;;
1118
+ :[FH])
1119
+ ac_file_inputs=
1120
+ for ac_f
1121
+ do
1122
+ case $ac_f in
1123
+ -) ac_f="$tmp/stdin";;
1124
+ *) # Look for the file first in the build tree, then in the source tree
1125
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
1126
+ # because $ac_f cannot contain `:'.
1127
+ test -f "$ac_f" ||
1128
+ case $ac_f in
1129
+ [\\/$]*) false;;
1130
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1131
+ esac ||
1132
+ as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1133
+ esac
1134
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1135
+ as_fn_append ac_file_inputs " '$ac_f'"
1136
+ done
1137
+
1138
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
1139
+ # use $as_me), people would be surprised to read:
1140
+ # /* config.h. Generated by config.status. */
1141
+ configure_input='Generated from '`
1142
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1143
+ `' by configure.'
1144
+ if test x"$ac_file" != x-; then
1145
+ configure_input="$ac_file. $configure_input"
1146
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1147
+ $as_echo "$as_me: creating $ac_file" >&6;}
1148
+ fi
1149
+ # Neutralize special characters interpreted by sed in replacement strings.
1150
+ case $configure_input in #(
1151
+ *\&* | *\|* | *\\* )
1152
+ ac_sed_conf_input=`$as_echo "$configure_input" |
1153
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
1154
+ *) ac_sed_conf_input=$configure_input;;
1155
+ esac
1156
+
1157
+ case $ac_tag in
1158
+ *:-:* | *:-) cat >"$tmp/stdin" \
1159
+ || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1160
+ esac
1161
+ ;;
1162
+ esac
1163
+
1164
+ ac_dir=`$as_dirname -- "$ac_file" ||
1165
+ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1166
+ X"$ac_file" : 'X\(//\)[^/]' \| \
1167
+ X"$ac_file" : 'X\(//\)$' \| \
1168
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1169
+ $as_echo X"$ac_file" |
1170
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1171
+ s//\1/
1172
+ q
1173
+ }
1174
+ /^X\(\/\/\)[^/].*/{
1175
+ s//\1/
1176
+ q
1177
+ }
1178
+ /^X\(\/\/\)$/{
1179
+ s//\1/
1180
+ q
1181
+ }
1182
+ /^X\(\/\).*/{
1183
+ s//\1/
1184
+ q
1185
+ }
1186
+ s/.*/./; q'`
1187
+ as_dir="$ac_dir"; as_fn_mkdir_p
1188
+ ac_builddir=.
1189
+
1190
+ case "$ac_dir" in
1191
+ .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1192
+ *)
1193
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1194
+ # A ".." for each directory in $ac_dir_suffix.
1195
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1196
+ case $ac_top_builddir_sub in
1197
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1198
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1199
+ esac ;;
1200
+ esac
1201
+ ac_abs_top_builddir=$ac_pwd
1202
+ ac_abs_builddir=$ac_pwd$ac_dir_suffix
1203
+ # for backward compatibility:
1204
+ ac_top_builddir=$ac_top_build_prefix
1205
+
1206
+ case $srcdir in
1207
+ .) # We are building in place.
1208
+ ac_srcdir=.
1209
+ ac_top_srcdir=$ac_top_builddir_sub
1210
+ ac_abs_top_srcdir=$ac_pwd ;;
1211
+ [\\/]* | ?:[\\/]* ) # Absolute name.
1212
+ ac_srcdir=$srcdir$ac_dir_suffix;
1213
+ ac_top_srcdir=$srcdir
1214
+ ac_abs_top_srcdir=$srcdir ;;
1215
+ *) # Relative name.
1216
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1217
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
1218
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1219
+ esac
1220
+ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1221
+
1222
+
1223
+ case $ac_mode in
1224
+ :F)
1225
+ #
1226
+ # CONFIG_FILE
1227
+ #
1228
+
1229
+ case $INSTALL in
1230
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1231
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1232
+ esac
1233
+ ac_MKDIR_P=$MKDIR_P
1234
+ case $MKDIR_P in
1235
+ [\\/$]* | ?:[\\/]* ) ;;
1236
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1237
+ esac
1238
+ # If the template does not know about datarootdir, expand it.
1239
+ # FIXME: This hack should be removed a few years after 2.60.
1240
+ ac_datarootdir_hack=; ac_datarootdir_seen=
1241
+ ac_sed_dataroot='
1242
+ /datarootdir/ {
1243
+ p
1244
+ q
1245
+ }
1246
+ /@datadir@/p
1247
+ /@docdir@/p
1248
+ /@infodir@/p
1249
+ /@localedir@/p
1250
+ /@mandir@/p'
1251
+ case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1252
+ *datarootdir*) ac_datarootdir_seen=yes;;
1253
+ *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1254
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1255
+ $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1256
+ ac_datarootdir_hack='
1257
+ s&@datadir@&${datarootdir}&g
1258
+ s&@docdir@&${datarootdir}/doc/${PACKAGE}&g
1259
+ s&@infodir@&${datarootdir}/info&g
1260
+ s&@localedir@&${datarootdir}/locale&g
1261
+ s&@mandir@&${datarootdir}/man&g
1262
+ s&\${datarootdir}&${prefix}/share&g' ;;
1263
+ esac
1264
+ ac_sed_extra="/^[ ]*VPATH[ ]*=/{
1265
+ s/:*\$(srcdir):*/:/
1266
+ s/:*\${srcdir}:*/:/
1267
+ s/:*@srcdir@:*/:/
1268
+ s/^\([^=]*=[ ]*\):*/\1/
1269
+ s/:*$//
1270
+ s/^[^=]*=[ ]*$//
1271
+ }
1272
+
1273
+ :t
1274
+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1275
+ s|@configure_input@|$ac_sed_conf_input|;t t
1276
+ s&@top_builddir@&$ac_top_builddir_sub&;t t
1277
+ s&@top_build_prefix@&$ac_top_build_prefix&;t t
1278
+ s&@srcdir@&$ac_srcdir&;t t
1279
+ s&@abs_srcdir@&$ac_abs_srcdir&;t t
1280
+ s&@top_srcdir@&$ac_top_srcdir&;t t
1281
+ s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1282
+ s&@builddir@&$ac_builddir&;t t
1283
+ s&@abs_builddir@&$ac_abs_builddir&;t t
1284
+ s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1285
+ s&@INSTALL@&$ac_INSTALL&;t t
1286
+ s&@MKDIR_P@&$ac_MKDIR_P&;t t
1287
+ $ac_datarootdir_hack
1288
+ "
1289
+ eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
1290
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
1291
+
1292
+ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1293
+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
1294
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1295
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1296
+ which seems to be undefined. Please make sure it is defined." >&5
1297
+ $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1298
+ which seems to be undefined. Please make sure it is defined." >&2;}
1299
+
1300
+ rm -f "$tmp/stdin"
1301
+ case $ac_file in
1302
+ -) cat "$tmp/out" && rm -f "$tmp/out";;
1303
+ *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
1304
+ esac \
1305
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
1306
+ ;;
1307
+ :H)
1308
+ #
1309
+ # CONFIG_HEADER
1310
+ #
1311
+ if test x"$ac_file" != x-; then
1312
+ {
1313
+ $as_echo "/* $configure_input */" \
1314
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
1315
+ } >"$tmp/config.h" \
1316
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
1317
+ if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
1318
+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1319
+ $as_echo "$as_me: $ac_file is unchanged" >&6;}
1320
+ else
1321
+ rm -f "$ac_file"
1322
+ mv "$tmp/config.h" "$ac_file" \
1323
+ || as_fn_error "could not create $ac_file" "$LINENO" 5
1324
+ fi
1325
+ else
1326
+ $as_echo "/* $configure_input */" \
1327
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1328
+ || as_fn_error "could not create -" "$LINENO" 5
1329
+ fi
1330
+ # Compute "$ac_file"'s index in $config_headers.
1331
+ _am_arg="$ac_file"
1332
+ _am_stamp_count=1
1333
+ for _am_header in $config_headers :; do
1334
+ case $_am_header in
1335
+ $_am_arg | $_am_arg:* )
1336
+ break ;;
1337
+ * )
1338
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1339
+ esac
1340
+ done
1341
+ echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
1342
+ $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343
+ X"$_am_arg" : 'X\(//\)[^/]' \| \
1344
+ X"$_am_arg" : 'X\(//\)$' \| \
1345
+ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1346
+ $as_echo X"$_am_arg" |
1347
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348
+ s//\1/
1349
+ q
1350
+ }
1351
+ /^X\(\/\/\)[^/].*/{
1352
+ s//\1/
1353
+ q
1354
+ }
1355
+ /^X\(\/\/\)$/{
1356
+ s//\1/
1357
+ q
1358
+ }
1359
+ /^X\(\/\).*/{
1360
+ s//\1/
1361
+ q
1362
+ }
1363
+ s/.*/./; q'`/stamp-h$_am_stamp_count
1364
+ ;;
1365
+
1366
+ :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1367
+ $as_echo "$as_me: executing $ac_file commands" >&6;}
1368
+ ;;
1369
+ esac
1370
+
1371
+
1372
+ case $ac_file$ac_mode in
1373
+ "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1374
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
1375
+ # are listed without --file. Let's play safe and only enable the eval
1376
+ # if we detect the quoting.
1377
+ case $CONFIG_FILES in
1378
+ *\'*) eval set x "$CONFIG_FILES" ;;
1379
+ *) set x $CONFIG_FILES ;;
1380
+ esac
1381
+ shift
1382
+ for mf
1383
+ do
1384
+ # Strip MF so we end up with the name of the file.
1385
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
1386
+ # Check whether this is an Automake generated Makefile or not.
1387
+ # We used to match only the files named `Makefile.in', but
1388
+ # some people rename them; so instead we look at the file content.
1389
+ # Grep'ing the first line is not enough: some people post-process
1390
+ # each Makefile.in and add a new line on top of each file to say so.
1391
+ # Grep'ing the whole file is not good either: AIX grep has a line
1392
+ # limit of 2048, but all sed's we know have understand at least 4000.
1393
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1394
+ dirpart=`$as_dirname -- "$mf" ||
1395
+ $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396
+ X"$mf" : 'X\(//\)[^/]' \| \
1397
+ X"$mf" : 'X\(//\)$' \| \
1398
+ X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1399
+ $as_echo X"$mf" |
1400
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401
+ s//\1/
1402
+ q
1403
+ }
1404
+ /^X\(\/\/\)[^/].*/{
1405
+ s//\1/
1406
+ q
1407
+ }
1408
+ /^X\(\/\/\)$/{
1409
+ s//\1/
1410
+ q
1411
+ }
1412
+ /^X\(\/\).*/{
1413
+ s//\1/
1414
+ q
1415
+ }
1416
+ s/.*/./; q'`
1417
+ else
1418
+ continue
1419
+ fi
1420
+ # Extract the definition of DEPDIR, am__include, and am__quote
1421
+ # from the Makefile without running `make'.
1422
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1423
+ test -z "$DEPDIR" && continue
1424
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
1425
+ test -z "am__include" && continue
1426
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1427
+ # When using ansi2knr, U may be empty or an underscore; expand it
1428
+ U=`sed -n 's/^U = //p' < "$mf"`
1429
+ # Find all dependency output files, they are included files with
1430
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
1431
+ # simplest approach to changing $(DEPDIR) to its actual value in the
1432
+ # expansion.
1433
+ for file in `sed -n "
1434
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1435
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1436
+ # Make sure the directory exists.
1437
+ test -f "$dirpart/$file" && continue
1438
+ fdir=`$as_dirname -- "$file" ||
1439
+ $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440
+ X"$file" : 'X\(//\)[^/]' \| \
1441
+ X"$file" : 'X\(//\)$' \| \
1442
+ X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1443
+ $as_echo X"$file" |
1444
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445
+ s//\1/
1446
+ q
1447
+ }
1448
+ /^X\(\/\/\)[^/].*/{
1449
+ s//\1/
1450
+ q
1451
+ }
1452
+ /^X\(\/\/\)$/{
1453
+ s//\1/
1454
+ q
1455
+ }
1456
+ /^X\(\/\).*/{
1457
+ s//\1/
1458
+ q
1459
+ }
1460
+ s/.*/./; q'`
1461
+ as_dir=$dirpart/$fdir; as_fn_mkdir_p
1462
+ # echo "creating $dirpart/$file"
1463
+ echo '# dummy' > "$dirpart/$file"
1464
+ done
1465
+ done
1466
+ }
1467
+ ;;
1468
+ "libtool":C)
1469
+
1470
+ # See if we are running on zsh, and set the options which allow our
1471
+ # commands through without removal of \ escapes.
1472
+ if test -n "${ZSH_VERSION+set}" ; then
1473
+ setopt NO_GLOB_SUBST
1474
+ fi
1475
+
1476
+ cfgfile="${ofile}T"
1477
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1478
+ $RM "$cfgfile"
1479
+
1480
+ cat <<_LT_EOF >> "$cfgfile"
1481
+ #! $SHELL
1482
+
1483
+ # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1484
+ # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1485
+ # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1486
+ # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1487
+ #
1488
+ # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1489
+ # 2006, 2007, 2008 Free Software Foundation, Inc.
1490
+ # Written by Gordon Matzigkeit, 1996
1491
+ #
1492
+ # This file is part of GNU Libtool.
1493
+ #
1494
+ # GNU Libtool is free software; you can redistribute it and/or
1495
+ # modify it under the terms of the GNU General Public License as
1496
+ # published by the Free Software Foundation; either version 2 of
1497
+ # the License, or (at your option) any later version.
1498
+ #
1499
+ # As a special exception to the GNU General Public License,
1500
+ # if you distribute this file as part of a program or library that
1501
+ # is built using GNU Libtool, you may include this file under the
1502
+ # same distribution terms that you use for the rest of that program.
1503
+ #
1504
+ # GNU Libtool is distributed in the hope that it will be useful,
1505
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
1506
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1507
+ # GNU General Public License for more details.
1508
+ #
1509
+ # You should have received a copy of the GNU General Public License
1510
+ # along with GNU Libtool; see the file COPYING. If not, a copy
1511
+ # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1512
+ # obtained by writing to the Free Software Foundation, Inc.,
1513
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1514
+
1515
+
1516
+ # The names of the tagged configurations supported by this script.
1517
+ available_tags="CXX "
1518
+
1519
+ # ### BEGIN LIBTOOL CONFIG
1520
+
1521
+ # Which release of libtool.m4 was used?
1522
+ macro_version=$macro_version
1523
+ macro_revision=$macro_revision
1524
+
1525
+ # Whether or not to build shared libraries.
1526
+ build_libtool_libs=$enable_shared
1527
+
1528
+ # Whether or not to build static libraries.
1529
+ build_old_libs=$enable_static
1530
+
1531
+ # What type of objects to build.
1532
+ pic_mode=$pic_mode
1533
+
1534
+ # Whether or not to optimize for fast installation.
1535
+ fast_install=$enable_fast_install
1536
+
1537
+ # The host system.
1538
+ host_alias=$host_alias
1539
+ host=$host
1540
+ host_os=$host_os
1541
+
1542
+ # The build system.
1543
+ build_alias=$build_alias
1544
+ build=$build
1545
+ build_os=$build_os
1546
+
1547
+ # A sed program that does not truncate output.
1548
+ SED=$lt_SED
1549
+
1550
+ # Sed that helps us avoid accidentally triggering echo(1) options like -n.
1551
+ Xsed="\$SED -e 1s/^X//"
1552
+
1553
+ # A grep program that handles long lines.
1554
+ GREP=$lt_GREP
1555
+
1556
+ # An ERE matcher.
1557
+ EGREP=$lt_EGREP
1558
+
1559
+ # A literal string matcher.
1560
+ FGREP=$lt_FGREP
1561
+
1562
+ # A BSD- or MS-compatible name lister.
1563
+ NM=$lt_NM
1564
+
1565
+ # Whether we need soft or hard links.
1566
+ LN_S=$lt_LN_S
1567
+
1568
+ # What is the maximum length of a command?
1569
+ max_cmd_len=$max_cmd_len
1570
+
1571
+ # Object file suffix (normally "o").
1572
+ objext=$ac_objext
1573
+
1574
+ # Executable file suffix (normally "").
1575
+ exeext=$exeext
1576
+
1577
+ # whether the shell understands "unset".
1578
+ lt_unset=$lt_unset
1579
+
1580
+ # turn spaces into newlines.
1581
+ SP2NL=$lt_lt_SP2NL
1582
+
1583
+ # turn newlines into spaces.
1584
+ NL2SP=$lt_lt_NL2SP
1585
+
1586
+ # How to create reloadable object files.
1587
+ reload_flag=$lt_reload_flag
1588
+ reload_cmds=$lt_reload_cmds
1589
+
1590
+ # An object symbol dumper.
1591
+ OBJDUMP=$lt_OBJDUMP
1592
+
1593
+ # Method to check whether dependent libraries are shared objects.
1594
+ deplibs_check_method=$lt_deplibs_check_method
1595
+
1596
+ # Command to use when deplibs_check_method == "file_magic".
1597
+ file_magic_cmd=$lt_file_magic_cmd
1598
+
1599
+ # The archiver.
1600
+ AR=$lt_AR
1601
+ AR_FLAGS=$lt_AR_FLAGS
1602
+
1603
+ # A symbol stripping program.
1604
+ STRIP=$lt_STRIP
1605
+
1606
+ # Commands used to install an old-style archive.
1607
+ RANLIB=$lt_RANLIB
1608
+ old_postinstall_cmds=$lt_old_postinstall_cmds
1609
+ old_postuninstall_cmds=$lt_old_postuninstall_cmds
1610
+
1611
+ # A C compiler.
1612
+ LTCC=$lt_CC
1613
+
1614
+ # LTCC compiler flags.
1615
+ LTCFLAGS=$lt_CFLAGS
1616
+
1617
+ # Take the output of nm and produce a listing of raw symbols and C names.
1618
+ global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1619
+
1620
+ # Transform the output of nm in a proper C declaration.
1621
+ global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1622
+
1623
+ # Transform the output of nm in a C name address pair.
1624
+ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1625
+
1626
+ # Transform the output of nm in a C name address pair when lib prefix is needed.
1627
+ global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1628
+
1629
+ # The name of the directory that contains temporary libtool files.
1630
+ objdir=$objdir
1631
+
1632
+ # Shell to use when invoking shell scripts.
1633
+ SHELL=$lt_SHELL
1634
+
1635
+ # An echo program that does not interpret backslashes.
1636
+ ECHO=$lt_ECHO
1637
+
1638
+ # Used to examine libraries when file_magic_cmd begins with "file".
1639
+ MAGIC_CMD=$MAGIC_CMD
1640
+
1641
+ # Must we lock files when doing compilation?
1642
+ need_locks=$lt_need_locks
1643
+
1644
+ # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1645
+ DSYMUTIL=$lt_DSYMUTIL
1646
+
1647
+ # Tool to change global to local symbols on Mac OS X.
1648
+ NMEDIT=$lt_NMEDIT
1649
+
1650
+ # Tool to manipulate fat objects and archives on Mac OS X.
1651
+ LIPO=$lt_LIPO
1652
+
1653
+ # ldd/readelf like tool for Mach-O binaries on Mac OS X.
1654
+ OTOOL=$lt_OTOOL
1655
+
1656
+ # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
1657
+ OTOOL64=$lt_OTOOL64
1658
+
1659
+ # Old archive suffix (normally "a").
1660
+ libext=$libext
1661
+
1662
+ # Shared library suffix (normally ".so").
1663
+ shrext_cmds=$lt_shrext_cmds
1664
+
1665
+ # The commands to extract the exported symbol list from a shared archive.
1666
+ extract_expsyms_cmds=$lt_extract_expsyms_cmds
1667
+
1668
+ # Variables whose values should be saved in libtool wrapper scripts and
1669
+ # restored at link time.
1670
+ variables_saved_for_relink=$lt_variables_saved_for_relink
1671
+
1672
+ # Do we need the "lib" prefix for modules?
1673
+ need_lib_prefix=$need_lib_prefix
1674
+
1675
+ # Do we need a version for libraries?
1676
+ need_version=$need_version
1677
+
1678
+ # Library versioning type.
1679
+ version_type=$version_type
1680
+
1681
+ # Shared library runtime path variable.
1682
+ runpath_var=$runpath_var
1683
+
1684
+ # Shared library path variable.
1685
+ shlibpath_var=$shlibpath_var
1686
+
1687
+ # Is shlibpath searched before the hard-coded library search path?
1688
+ shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1689
+
1690
+ # Format of library name prefix.
1691
+ libname_spec=$lt_libname_spec
1692
+
1693
+ # List of archive names. First name is the real one, the rest are links.
1694
+ # The last name is the one that the linker finds with -lNAME
1695
+ library_names_spec=$lt_library_names_spec
1696
+
1697
+ # The coded name of the library, if different from the real name.
1698
+ soname_spec=$lt_soname_spec
1699
+
1700
+ # Command to use after installation of a shared archive.
1701
+ postinstall_cmds=$lt_postinstall_cmds
1702
+
1703
+ # Command to use after uninstallation of a shared archive.
1704
+ postuninstall_cmds=$lt_postuninstall_cmds
1705
+
1706
+ # Commands used to finish a libtool library installation in a directory.
1707
+ finish_cmds=$lt_finish_cmds
1708
+
1709
+ # As "finish_cmds", except a single script fragment to be evaled but
1710
+ # not shown.
1711
+ finish_eval=$lt_finish_eval
1712
+
1713
+ # Whether we should hardcode library paths into libraries.
1714
+ hardcode_into_libs=$hardcode_into_libs
1715
+
1716
+ # Compile-time system search path for libraries.
1717
+ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1718
+
1719
+ # Run-time system search path for libraries.
1720
+ sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1721
+
1722
+ # Whether dlopen is supported.
1723
+ dlopen_support=$enable_dlopen
1724
+
1725
+ # Whether dlopen of programs is supported.
1726
+ dlopen_self=$enable_dlopen_self
1727
+
1728
+ # Whether dlopen of statically linked programs is supported.
1729
+ dlopen_self_static=$enable_dlopen_self_static
1730
+
1731
+ # Commands to strip libraries.
1732
+ old_striplib=$lt_old_striplib
1733
+ striplib=$lt_striplib
1734
+
1735
+
1736
+ # The linker used to build libraries.
1737
+ LD=$lt_LD
1738
+
1739
+ # Commands used to build an old-style archive.
1740
+ old_archive_cmds=$lt_old_archive_cmds
1741
+
1742
+ # A language specific compiler.
1743
+ CC=$lt_compiler
1744
+
1745
+ # Is the compiler the GNU compiler?
1746
+ with_gcc=$GCC
1747
+
1748
+ # Compiler flag to turn off builtin functions.
1749
+ no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1750
+
1751
+ # How to pass a linker flag through the compiler.
1752
+ wl=$lt_lt_prog_compiler_wl
1753
+
1754
+ # Additional compiler flags for building library objects.
1755
+ pic_flag=$lt_lt_prog_compiler_pic
1756
+
1757
+ # Compiler flag to prevent dynamic linking.
1758
+ link_static_flag=$lt_lt_prog_compiler_static
1759
+
1760
+ # Does compiler simultaneously support -c and -o options?
1761
+ compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1762
+
1763
+ # Whether or not to add -lc for building shared libraries.
1764
+ build_libtool_need_lc=$archive_cmds_need_lc
1765
+
1766
+ # Whether or not to disallow shared libs when runtime libs are static.
1767
+ allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1768
+
1769
+ # Compiler flag to allow reflexive dlopens.
1770
+ export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1771
+
1772
+ # Compiler flag to generate shared objects directly from archives.
1773
+ whole_archive_flag_spec=$lt_whole_archive_flag_spec
1774
+
1775
+ # Whether the compiler copes with passing no objects directly.
1776
+ compiler_needs_object=$lt_compiler_needs_object
1777
+
1778
+ # Create an old-style archive from a shared archive.
1779
+ old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1780
+
1781
+ # Create a temporary old-style archive to link instead of a shared archive.
1782
+ old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1783
+
1784
+ # Commands used to build a shared archive.
1785
+ archive_cmds=$lt_archive_cmds
1786
+ archive_expsym_cmds=$lt_archive_expsym_cmds
1787
+
1788
+ # Commands used to build a loadable module if different from building
1789
+ # a shared archive.
1790
+ module_cmds=$lt_module_cmds
1791
+ module_expsym_cmds=$lt_module_expsym_cmds
1792
+
1793
+ # Whether we are building with GNU ld or not.
1794
+ with_gnu_ld=$lt_with_gnu_ld
1795
+
1796
+ # Flag that allows shared libraries with undefined symbols to be built.
1797
+ allow_undefined_flag=$lt_allow_undefined_flag
1798
+
1799
+ # Flag that enforces no undefined symbols.
1800
+ no_undefined_flag=$lt_no_undefined_flag
1801
+
1802
+ # Flag to hardcode \$libdir into a binary during linking.
1803
+ # This must work even if \$libdir does not exist
1804
+ hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1805
+
1806
+ # If ld is used when linking, flag to hardcode \$libdir into a binary
1807
+ # during linking. This must work even if \$libdir does not exist.
1808
+ hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1809
+
1810
+ # Whether we need a single "-rpath" flag with a separated argument.
1811
+ hardcode_libdir_separator=$lt_hardcode_libdir_separator
1812
+
1813
+ # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1814
+ # DIR into the resulting binary.
1815
+ hardcode_direct=$hardcode_direct
1816
+
1817
+ # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
1818
+ # DIR into the resulting binary and the resulting library dependency is
1819
+ # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
1820
+ # library is relocated.
1821
+ hardcode_direct_absolute=$hardcode_direct_absolute
1822
+
1823
+ # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
1824
+ # into the resulting binary.
1825
+ hardcode_minus_L=$hardcode_minus_L
1826
+
1827
+ # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
1828
+ # into the resulting binary.
1829
+ hardcode_shlibpath_var=$hardcode_shlibpath_var
1830
+
1831
+ # Set to "yes" if building a shared library automatically hardcodes DIR
1832
+ # into the library and all subsequent libraries and executables linked
1833
+ # against it.
1834
+ hardcode_automatic=$hardcode_automatic
1835
+
1836
+ # Set to yes if linker adds runtime paths of dependent libraries
1837
+ # to runtime path list.
1838
+ inherit_rpath=$inherit_rpath
1839
+
1840
+ # Whether libtool must link a program against all its dependency libraries.
1841
+ link_all_deplibs=$link_all_deplibs
1842
+
1843
+ # Fix the shell variable \$srcfile for the compiler.
1844
+ fix_srcfile_path=$lt_fix_srcfile_path
1845
+
1846
+ # Set to "yes" if exported symbols are required.
1847
+ always_export_symbols=$always_export_symbols
1848
+
1849
+ # The commands to list exported symbols.
1850
+ export_symbols_cmds=$lt_export_symbols_cmds
1851
+
1852
+ # Symbols that should not be listed in the preloaded symbols.
1853
+ exclude_expsyms=$lt_exclude_expsyms
1854
+
1855
+ # Symbols that must always be exported.
1856
+ include_expsyms=$lt_include_expsyms
1857
+
1858
+ # Commands necessary for linking programs (against libraries) with templates.
1859
+ prelink_cmds=$lt_prelink_cmds
1860
+
1861
+ # Specify filename containing input files.
1862
+ file_list_spec=$lt_file_list_spec
1863
+
1864
+ # How to hardcode a shared library path into an executable.
1865
+ hardcode_action=$hardcode_action
1866
+
1867
+ # The directories searched by this compiler when creating a shared library.
1868
+ compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
1869
+
1870
+ # Dependencies to place before and after the objects being linked to
1871
+ # create a shared library.
1872
+ predep_objects=$lt_predep_objects
1873
+ postdep_objects=$lt_postdep_objects
1874
+ predeps=$lt_predeps
1875
+ postdeps=$lt_postdeps
1876
+
1877
+ # The library search path used internally by the compiler when linking
1878
+ # a shared library.
1879
+ compiler_lib_search_path=$lt_compiler_lib_search_path
1880
+
1881
+ # ### END LIBTOOL CONFIG
1882
+
1883
+ _LT_EOF
1884
+
1885
+ case $host_os in
1886
+ aix3*)
1887
+ cat <<\_LT_EOF >> "$cfgfile"
1888
+ # AIX sometimes has problems with the GCC collect2 program. For some
1889
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
1890
+ # vanish in a puff of smoke.
1891
+ if test "X${COLLECT_NAMES+set}" != Xset; then
1892
+ COLLECT_NAMES=
1893
+ export COLLECT_NAMES
1894
+ fi
1895
+ _LT_EOF
1896
+ ;;
1897
+ esac
1898
+
1899
+
1900
+ ltmain="$ac_aux_dir/ltmain.sh"
1901
+
1902
+
1903
+ # We use sed instead of cat because bash on DJGPP gets confused if
1904
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
1905
+ # text mode, it properly converts lines to CR/LF. This bash problem
1906
+ # is reportedly fixed, but why not run on old versions too?
1907
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1908
+ || (rm -f "$cfgfile"; exit 1)
1909
+
1910
+ case $xsi_shell in
1911
+ yes)
1912
+ cat << \_LT_EOF >> "$cfgfile"
1913
+
1914
+ # func_dirname file append nondir_replacement
1915
+ # Compute the dirname of FILE. If nonempty, add APPEND to the result,
1916
+ # otherwise set result to NONDIR_REPLACEMENT.
1917
+ func_dirname ()
1918
+ {
1919
+ case ${1} in
1920
+ */*) func_dirname_result="${1%/*}${2}" ;;
1921
+ * ) func_dirname_result="${3}" ;;
1922
+ esac
1923
+ }
1924
+
1925
+ # func_basename file
1926
+ func_basename ()
1927
+ {
1928
+ func_basename_result="${1##*/}"
1929
+ }
1930
+
1931
+ # func_dirname_and_basename file append nondir_replacement
1932
+ # perform func_basename and func_dirname in a single function
1933
+ # call:
1934
+ # dirname: Compute the dirname of FILE. If nonempty,
1935
+ # add APPEND to the result, otherwise set result
1936
+ # to NONDIR_REPLACEMENT.
1937
+ # value returned in "$func_dirname_result"
1938
+ # basename: Compute filename of FILE.
1939
+ # value retuned in "$func_basename_result"
1940
+ # Implementation must be kept synchronized with func_dirname
1941
+ # and func_basename. For efficiency, we do not delegate to
1942
+ # those functions but instead duplicate the functionality here.
1943
+ func_dirname_and_basename ()
1944
+ {
1945
+ case ${1} in
1946
+ */*) func_dirname_result="${1%/*}${2}" ;;
1947
+ * ) func_dirname_result="${3}" ;;
1948
+ esac
1949
+ func_basename_result="${1##*/}"
1950
+ }
1951
+
1952
+ # func_stripname prefix suffix name
1953
+ # strip PREFIX and SUFFIX off of NAME.
1954
+ # PREFIX and SUFFIX must not contain globbing or regex special
1955
+ # characters, hashes, percent signs, but SUFFIX may contain a leading
1956
+ # dot (in which case that matches only a dot).
1957
+ func_stripname ()
1958
+ {
1959
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1960
+ # positional parameters, so assign one to ordinary parameter first.
1961
+ func_stripname_result=${3}
1962
+ func_stripname_result=${func_stripname_result#"${1}"}
1963
+ func_stripname_result=${func_stripname_result%"${2}"}
1964
+ }
1965
+
1966
+ # func_opt_split
1967
+ func_opt_split ()
1968
+ {
1969
+ func_opt_split_opt=${1%%=*}
1970
+ func_opt_split_arg=${1#*=}
1971
+ }
1972
+
1973
+ # func_lo2o object
1974
+ func_lo2o ()
1975
+ {
1976
+ case ${1} in
1977
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
1978
+ *) func_lo2o_result=${1} ;;
1979
+ esac
1980
+ }
1981
+
1982
+ # func_xform libobj-or-source
1983
+ func_xform ()
1984
+ {
1985
+ func_xform_result=${1%.*}.lo
1986
+ }
1987
+
1988
+ # func_arith arithmetic-term...
1989
+ func_arith ()
1990
+ {
1991
+ func_arith_result=$(( $* ))
1992
+ }
1993
+
1994
+ # func_len string
1995
+ # STRING may not start with a hyphen.
1996
+ func_len ()
1997
+ {
1998
+ func_len_result=${#1}
1999
+ }
2000
+
2001
+ _LT_EOF
2002
+ ;;
2003
+ *) # Bourne compatible functions.
2004
+ cat << \_LT_EOF >> "$cfgfile"
2005
+
2006
+ # func_dirname file append nondir_replacement
2007
+ # Compute the dirname of FILE. If nonempty, add APPEND to the result,
2008
+ # otherwise set result to NONDIR_REPLACEMENT.
2009
+ func_dirname ()
2010
+ {
2011
+ # Extract subdirectory from the argument.
2012
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
2013
+ if test "X$func_dirname_result" = "X${1}"; then
2014
+ func_dirname_result="${3}"
2015
+ else
2016
+ func_dirname_result="$func_dirname_result${2}"
2017
+ fi
2018
+ }
2019
+
2020
+ # func_basename file
2021
+ func_basename ()
2022
+ {
2023
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
2024
+ }
2025
+
2026
+
2027
+ # func_stripname prefix suffix name
2028
+ # strip PREFIX and SUFFIX off of NAME.
2029
+ # PREFIX and SUFFIX must not contain globbing or regex special
2030
+ # characters, hashes, percent signs, but SUFFIX may contain a leading
2031
+ # dot (in which case that matches only a dot).
2032
+ # func_strip_suffix prefix name
2033
+ func_stripname ()
2034
+ {
2035
+ case ${2} in
2036
+ .*) func_stripname_result=`$ECHO "X${3}" \
2037
+ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
2038
+ *) func_stripname_result=`$ECHO "X${3}" \
2039
+ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
2040
+ esac
2041
+ }
2042
+
2043
+ # sed scripts:
2044
+ my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
2045
+ my_sed_long_arg='1s/^-[^=]*=//'
2046
+
2047
+ # func_opt_split
2048
+ func_opt_split ()
2049
+ {
2050
+ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
2051
+ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
2052
+ }
2053
+
2054
+ # func_lo2o object
2055
+ func_lo2o ()
2056
+ {
2057
+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
2058
+ }
2059
+
2060
+ # func_xform libobj-or-source
2061
+ func_xform ()
2062
+ {
2063
+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
2064
+ }
2065
+
2066
+ # func_arith arithmetic-term...
2067
+ func_arith ()
2068
+ {
2069
+ func_arith_result=`expr "$@"`
2070
+ }
2071
+
2072
+ # func_len string
2073
+ # STRING may not start with a hyphen.
2074
+ func_len ()
2075
+ {
2076
+ func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
2077
+ }
2078
+
2079
+ _LT_EOF
2080
+ esac
2081
+
2082
+ case $lt_shell_append in
2083
+ yes)
2084
+ cat << \_LT_EOF >> "$cfgfile"
2085
+
2086
+ # func_append var value
2087
+ # Append VALUE to the end of shell variable VAR.
2088
+ func_append ()
2089
+ {
2090
+ eval "$1+=\$2"
2091
+ }
2092
+ _LT_EOF
2093
+ ;;
2094
+ *)
2095
+ cat << \_LT_EOF >> "$cfgfile"
2096
+
2097
+ # func_append var value
2098
+ # Append VALUE to the end of shell variable VAR.
2099
+ func_append ()
2100
+ {
2101
+ eval "$1=\$$1\$2"
2102
+ }
2103
+
2104
+ _LT_EOF
2105
+ ;;
2106
+ esac
2107
+
2108
+
2109
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
2110
+ || (rm -f "$cfgfile"; exit 1)
2111
+
2112
+ mv -f "$cfgfile" "$ofile" ||
2113
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2114
+ chmod +x "$ofile"
2115
+
2116
+
2117
+ cat <<_LT_EOF >> "$ofile"
2118
+
2119
+ # ### BEGIN LIBTOOL TAG CONFIG: CXX
2120
+
2121
+ # The linker used to build libraries.
2122
+ LD=$lt_LD_CXX
2123
+
2124
+ # Commands used to build an old-style archive.
2125
+ old_archive_cmds=$lt_old_archive_cmds_CXX
2126
+
2127
+ # A language specific compiler.
2128
+ CC=$lt_compiler_CXX
2129
+
2130
+ # Is the compiler the GNU compiler?
2131
+ with_gcc=$GCC_CXX
2132
+
2133
+ # Compiler flag to turn off builtin functions.
2134
+ no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
2135
+
2136
+ # How to pass a linker flag through the compiler.
2137
+ wl=$lt_lt_prog_compiler_wl_CXX
2138
+
2139
+ # Additional compiler flags for building library objects.
2140
+ pic_flag=$lt_lt_prog_compiler_pic_CXX
2141
+
2142
+ # Compiler flag to prevent dynamic linking.
2143
+ link_static_flag=$lt_lt_prog_compiler_static_CXX
2144
+
2145
+ # Does compiler simultaneously support -c and -o options?
2146
+ compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
2147
+
2148
+ # Whether or not to add -lc for building shared libraries.
2149
+ build_libtool_need_lc=$archive_cmds_need_lc_CXX
2150
+
2151
+ # Whether or not to disallow shared libs when runtime libs are static.
2152
+ allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
2153
+
2154
+ # Compiler flag to allow reflexive dlopens.
2155
+ export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
2156
+
2157
+ # Compiler flag to generate shared objects directly from archives.
2158
+ whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
2159
+
2160
+ # Whether the compiler copes with passing no objects directly.
2161
+ compiler_needs_object=$lt_compiler_needs_object_CXX
2162
+
2163
+ # Create an old-style archive from a shared archive.
2164
+ old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
2165
+
2166
+ # Create a temporary old-style archive to link instead of a shared archive.
2167
+ old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
2168
+
2169
+ # Commands used to build a shared archive.
2170
+ archive_cmds=$lt_archive_cmds_CXX
2171
+ archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
2172
+
2173
+ # Commands used to build a loadable module if different from building
2174
+ # a shared archive.
2175
+ module_cmds=$lt_module_cmds_CXX
2176
+ module_expsym_cmds=$lt_module_expsym_cmds_CXX
2177
+
2178
+ # Whether we are building with GNU ld or not.
2179
+ with_gnu_ld=$lt_with_gnu_ld_CXX
2180
+
2181
+ # Flag that allows shared libraries with undefined symbols to be built.
2182
+ allow_undefined_flag=$lt_allow_undefined_flag_CXX
2183
+
2184
+ # Flag that enforces no undefined symbols.
2185
+ no_undefined_flag=$lt_no_undefined_flag_CXX
2186
+
2187
+ # Flag to hardcode \$libdir into a binary during linking.
2188
+ # This must work even if \$libdir does not exist
2189
+ hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
2190
+
2191
+ # If ld is used when linking, flag to hardcode \$libdir into a binary
2192
+ # during linking. This must work even if \$libdir does not exist.
2193
+ hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
2194
+
2195
+ # Whether we need a single "-rpath" flag with a separated argument.
2196
+ hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
2197
+
2198
+ # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
2199
+ # DIR into the resulting binary.
2200
+ hardcode_direct=$hardcode_direct_CXX
2201
+
2202
+ # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
2203
+ # DIR into the resulting binary and the resulting library dependency is
2204
+ # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
2205
+ # library is relocated.
2206
+ hardcode_direct_absolute=$hardcode_direct_absolute_CXX
2207
+
2208
+ # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
2209
+ # into the resulting binary.
2210
+ hardcode_minus_L=$hardcode_minus_L_CXX
2211
+
2212
+ # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
2213
+ # into the resulting binary.
2214
+ hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
2215
+
2216
+ # Set to "yes" if building a shared library automatically hardcodes DIR
2217
+ # into the library and all subsequent libraries and executables linked
2218
+ # against it.
2219
+ hardcode_automatic=$hardcode_automatic_CXX
2220
+
2221
+ # Set to yes if linker adds runtime paths of dependent libraries
2222
+ # to runtime path list.
2223
+ inherit_rpath=$inherit_rpath_CXX
2224
+
2225
+ # Whether libtool must link a program against all its dependency libraries.
2226
+ link_all_deplibs=$link_all_deplibs_CXX
2227
+
2228
+ # Fix the shell variable \$srcfile for the compiler.
2229
+ fix_srcfile_path=$lt_fix_srcfile_path_CXX
2230
+
2231
+ # Set to "yes" if exported symbols are required.
2232
+ always_export_symbols=$always_export_symbols_CXX
2233
+
2234
+ # The commands to list exported symbols.
2235
+ export_symbols_cmds=$lt_export_symbols_cmds_CXX
2236
+
2237
+ # Symbols that should not be listed in the preloaded symbols.
2238
+ exclude_expsyms=$lt_exclude_expsyms_CXX
2239
+
2240
+ # Symbols that must always be exported.
2241
+ include_expsyms=$lt_include_expsyms_CXX
2242
+
2243
+ # Commands necessary for linking programs (against libraries) with templates.
2244
+ prelink_cmds=$lt_prelink_cmds_CXX
2245
+
2246
+ # Specify filename containing input files.
2247
+ file_list_spec=$lt_file_list_spec_CXX
2248
+
2249
+ # How to hardcode a shared library path into an executable.
2250
+ hardcode_action=$hardcode_action_CXX
2251
+
2252
+ # The directories searched by this compiler when creating a shared library.
2253
+ compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
2254
+
2255
+ # Dependencies to place before and after the objects being linked to
2256
+ # create a shared library.
2257
+ predep_objects=$lt_predep_objects_CXX
2258
+ postdep_objects=$lt_postdep_objects_CXX
2259
+ predeps=$lt_predeps_CXX
2260
+ postdeps=$lt_postdeps_CXX
2261
+
2262
+ # The library search path used internally by the compiler when linking
2263
+ # a shared library.
2264
+ compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
2265
+
2266
+ # ### END LIBTOOL TAG CONFIG: CXX
2267
+ _LT_EOF
2268
+
2269
+ ;;
2270
+
2271
+ esac
2272
+ done # for ac_tag
2273
+
2274
+
2275
+ as_fn_exit 0
CRF/config.sub ADDED
@@ -0,0 +1,1626 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+ # Configuration validation subroutine script.
3
+ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
+ # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5
+ # Inc.
6
+
7
+ timestamp='2007-06-28'
8
+
9
+ # This file is (in principle) common to ALL GNU software.
10
+ # The presence of a machine in this file suggests that SOME GNU software
11
+ # can handle that machine. It does not imply ALL GNU software can.
12
+ #
13
+ # This file is free software; you can redistribute it and/or modify
14
+ # it under the terms of the GNU General Public License as published by
15
+ # the Free Software Foundation; either version 2 of the License, or
16
+ # (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU General Public License
24
+ # along with this program; if not, write to the Free Software
25
+ # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
+ # 02110-1301, USA.
27
+ #
28
+ # As a special exception to the GNU General Public License, if you
29
+ # distribute this file as part of a program that contains a
30
+ # configuration script generated by Autoconf, you may include it under
31
+ # the same distribution terms that you use for the rest of that program.
32
+
33
+
34
+ # Please send patches to <config-patches@gnu.org>. Submit a context
35
+ # diff and a properly formatted ChangeLog entry.
36
+ #
37
+ # Configuration subroutine to validate and canonicalize a configuration type.
38
+ # Supply the specified configuration type as an argument.
39
+ # If it is invalid, we print an error message on stderr and exit with code 1.
40
+ # Otherwise, we print the canonical config type on stdout and succeed.
41
+
42
+ # This file is supposed to be the same for all GNU packages
43
+ # and recognize all the CPU types, system types and aliases
44
+ # that are meaningful with *any* GNU software.
45
+ # Each package is responsible for reporting which valid configurations
46
+ # it does not support. The user should be able to distinguish
47
+ # a failure to support a valid configuration from a meaningless
48
+ # configuration.
49
+
50
+ # The goal of this file is to map all the various variations of a given
51
+ # machine specification into a single specification in the form:
52
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
53
+ # or in some cases, the newer four-part form:
54
+ # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
55
+ # It is wrong to echo any other type of specification.
56
+
57
+ me=`echo "$0" | sed -e 's,.*/,,'`
58
+
59
+ usage="\
60
+ Usage: $0 [OPTION] CPU-MFR-OPSYS
61
+ $0 [OPTION] ALIAS
62
+
63
+ Canonicalize a configuration name.
64
+
65
+ Operation modes:
66
+ -h, --help print this help, then exit
67
+ -t, --time-stamp print date of last modification, then exit
68
+ -v, --version print version number, then exit
69
+
70
+ Report bugs and patches to <config-patches@gnu.org>."
71
+
72
+ version="\
73
+ GNU config.sub ($timestamp)
74
+
75
+ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
76
+ Free Software Foundation, Inc.
77
+
78
+ This is free software; see the source for copying conditions. There is NO
79
+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
80
+
81
+ help="
82
+ Try \`$me --help' for more information."
83
+
84
+ # Parse command line
85
+ while test $# -gt 0 ; do
86
+ case $1 in
87
+ --time-stamp | --time* | -t )
88
+ echo "$timestamp" ; exit ;;
89
+ --version | -v )
90
+ echo "$version" ; exit ;;
91
+ --help | --h* | -h )
92
+ echo "$usage"; exit ;;
93
+ -- ) # Stop option processing
94
+ shift; break ;;
95
+ - ) # Use stdin as input.
96
+ break ;;
97
+ -* )
98
+ echo "$me: invalid option $1$help"
99
+ exit 1 ;;
100
+
101
+ *local*)
102
+ # First pass through any local machine types.
103
+ echo $1
104
+ exit ;;
105
+
106
+ * )
107
+ break ;;
108
+ esac
109
+ done
110
+
111
+ case $# in
112
+ 0) echo "$me: missing argument$help" >&2
113
+ exit 1;;
114
+ 1) ;;
115
+ *) echo "$me: too many arguments$help" >&2
116
+ exit 1;;
117
+ esac
118
+
119
+ # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
120
+ # Here we must recognize all the valid KERNEL-OS combinations.
121
+ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122
+ case $maybe_os in
123
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125
+ storm-chaos* | os2-emx* | rtmk-nova*)
126
+ os=-$maybe_os
127
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
128
+ ;;
129
+ *)
130
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131
+ if [ $basic_machine != $1 ]
132
+ then os=`echo $1 | sed 's/.*-/-/'`
133
+ else os=; fi
134
+ ;;
135
+ esac
136
+
137
+ ### Let's recognize common machines as not being operating systems so
138
+ ### that things like config.sub decstation-3100 work. We also
139
+ ### recognize some manufacturers as not being operating systems, so we
140
+ ### can provide default operating systems below.
141
+ case $os in
142
+ -sun*os*)
143
+ # Prevent following clause from handling this invalid input.
144
+ ;;
145
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
146
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151
+ -apple | -axis | -knuth | -cray)
152
+ os=
153
+ basic_machine=$1
154
+ ;;
155
+ -sim | -cisco | -oki | -wec | -winbond)
156
+ os=
157
+ basic_machine=$1
158
+ ;;
159
+ -scout)
160
+ ;;
161
+ -wrs)
162
+ os=-vxworks
163
+ basic_machine=$1
164
+ ;;
165
+ -chorusos*)
166
+ os=-chorusos
167
+ basic_machine=$1
168
+ ;;
169
+ -chorusrdb)
170
+ os=-chorusrdb
171
+ basic_machine=$1
172
+ ;;
173
+ -hiux*)
174
+ os=-hiuxwe2
175
+ ;;
176
+ -sco6)
177
+ os=-sco5v6
178
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179
+ ;;
180
+ -sco5)
181
+ os=-sco3.2v5
182
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183
+ ;;
184
+ -sco4)
185
+ os=-sco3.2v4
186
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187
+ ;;
188
+ -sco3.2.[4-9]*)
189
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
190
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191
+ ;;
192
+ -sco3.2v[4-9]*)
193
+ # Don't forget version if it is 3.2v4 or newer.
194
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195
+ ;;
196
+ -sco5v6*)
197
+ # Don't forget version if it is 3.2v4 or newer.
198
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199
+ ;;
200
+ -sco*)
201
+ os=-sco3.2v2
202
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203
+ ;;
204
+ -udk*)
205
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206
+ ;;
207
+ -isc)
208
+ os=-isc2.2
209
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
210
+ ;;
211
+ -clix*)
212
+ basic_machine=clipper-intergraph
213
+ ;;
214
+ -isc*)
215
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216
+ ;;
217
+ -lynx*)
218
+ os=-lynxos
219
+ ;;
220
+ -ptx*)
221
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
222
+ ;;
223
+ -windowsnt*)
224
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
225
+ ;;
226
+ -psos*)
227
+ os=-psos
228
+ ;;
229
+ -mint | -mint[0-9]*)
230
+ basic_machine=m68k-atari
231
+ os=-mint
232
+ ;;
233
+ esac
234
+
235
+ # Decode aliases for certain CPU-COMPANY combinations.
236
+ case $basic_machine in
237
+ # Recognize the basic CPU types without company name.
238
+ # Some are omitted here because they have special meanings below.
239
+ 1750a | 580 \
240
+ | a29k \
241
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
242
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
243
+ | am33_2.0 \
244
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245
+ | bfin \
246
+ | c4x | clipper \
247
+ | d10v | d30v | dlx | dsp16xx \
248
+ | fido | fr30 | frv \
249
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
250
+ | i370 | i860 | i960 | ia64 \
251
+ | ip2k | iq2000 \
252
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
253
+ | maxq | mb | microblaze | mcore | mep \
254
+ | mips | mipsbe | mipseb | mipsel | mipsle \
255
+ | mips16 \
256
+ | mips64 | mips64el \
257
+ | mips64vr | mips64vrel \
258
+ | mips64orion | mips64orionel \
259
+ | mips64vr4100 | mips64vr4100el \
260
+ | mips64vr4300 | mips64vr4300el \
261
+ | mips64vr5000 | mips64vr5000el \
262
+ | mips64vr5900 | mips64vr5900el \
263
+ | mipsisa32 | mipsisa32el \
264
+ | mipsisa32r2 | mipsisa32r2el \
265
+ | mipsisa64 | mipsisa64el \
266
+ | mipsisa64r2 | mipsisa64r2el \
267
+ | mipsisa64sb1 | mipsisa64sb1el \
268
+ | mipsisa64sr71k | mipsisa64sr71kel \
269
+ | mipstx39 | mipstx39el \
270
+ | mn10200 | mn10300 \
271
+ | mt \
272
+ | msp430 \
273
+ | nios | nios2 \
274
+ | ns16k | ns32k \
275
+ | or32 \
276
+ | pdp10 | pdp11 | pj | pjl \
277
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
278
+ | pyramid \
279
+ | score \
280
+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
281
+ | sh64 | sh64le \
282
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284
+ | spu | strongarm \
285
+ | tahoe | thumb | tic4x | tic80 | tron \
286
+ | v850 | v850e \
287
+ | we32k \
288
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
289
+ | z8k)
290
+ basic_machine=$basic_machine-unknown
291
+ ;;
292
+ m6811 | m68hc11 | m6812 | m68hc12)
293
+ # Motorola 68HC11/12.
294
+ basic_machine=$basic_machine-unknown
295
+ os=-none
296
+ ;;
297
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
298
+ ;;
299
+ ms1)
300
+ basic_machine=mt-unknown
301
+ ;;
302
+
303
+ # We use `pc' rather than `unknown'
304
+ # because (1) that's what they normally are, and
305
+ # (2) the word "unknown" tends to confuse beginning users.
306
+ i*86 | x86_64)
307
+ basic_machine=$basic_machine-pc
308
+ ;;
309
+ # Object if more than one company name word.
310
+ *-*-*)
311
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
312
+ exit 1
313
+ ;;
314
+ # Recognize the basic CPU types with company name.
315
+ 580-* \
316
+ | a29k-* \
317
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
318
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
319
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
320
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
321
+ | avr-* | avr32-* \
322
+ | bfin-* | bs2000-* \
323
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
324
+ | clipper-* | craynv-* | cydra-* \
325
+ | d10v-* | d30v-* | dlx-* \
326
+ | elxsi-* \
327
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
328
+ | h8300-* | h8500-* \
329
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
330
+ | i*86-* | i860-* | i960-* | ia64-* \
331
+ | ip2k-* | iq2000-* \
332
+ | m32c-* | m32r-* | m32rle-* \
333
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
334
+ | m88110-* | m88k-* | maxq-* | mcore-* \
335
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
336
+ | mips16-* \
337
+ | mips64-* | mips64el-* \
338
+ | mips64vr-* | mips64vrel-* \
339
+ | mips64orion-* | mips64orionel-* \
340
+ | mips64vr4100-* | mips64vr4100el-* \
341
+ | mips64vr4300-* | mips64vr4300el-* \
342
+ | mips64vr5000-* | mips64vr5000el-* \
343
+ | mips64vr5900-* | mips64vr5900el-* \
344
+ | mipsisa32-* | mipsisa32el-* \
345
+ | mipsisa32r2-* | mipsisa32r2el-* \
346
+ | mipsisa64-* | mipsisa64el-* \
347
+ | mipsisa64r2-* | mipsisa64r2el-* \
348
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
349
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
350
+ | mipstx39-* | mipstx39el-* \
351
+ | mmix-* \
352
+ | mt-* \
353
+ | msp430-* \
354
+ | nios-* | nios2-* \
355
+ | none-* | np1-* | ns16k-* | ns32k-* \
356
+ | orion-* \
357
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
358
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
359
+ | pyramid-* \
360
+ | romp-* | rs6000-* \
361
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
362
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
363
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
364
+ | sparclite-* \
365
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
366
+ | tahoe-* | thumb-* \
367
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
368
+ | tron-* \
369
+ | v850-* | v850e-* | vax-* \
370
+ | we32k-* \
371
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372
+ | xstormy16-* | xtensa-* \
373
+ | ymp-* \
374
+ | z8k-*)
375
+ ;;
376
+ # Recognize the various machine names and aliases which stand
377
+ # for a CPU type and a company and sometimes even an OS.
378
+ 386bsd)
379
+ basic_machine=i386-unknown
380
+ os=-bsd
381
+ ;;
382
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
383
+ basic_machine=m68000-att
384
+ ;;
385
+ 3b*)
386
+ basic_machine=we32k-att
387
+ ;;
388
+ a29khif)
389
+ basic_machine=a29k-amd
390
+ os=-udi
391
+ ;;
392
+ abacus)
393
+ basic_machine=abacus-unknown
394
+ ;;
395
+ adobe68k)
396
+ basic_machine=m68010-adobe
397
+ os=-scout
398
+ ;;
399
+ alliant | fx80)
400
+ basic_machine=fx80-alliant
401
+ ;;
402
+ altos | altos3068)
403
+ basic_machine=m68k-altos
404
+ ;;
405
+ am29k)
406
+ basic_machine=a29k-none
407
+ os=-bsd
408
+ ;;
409
+ amd64)
410
+ basic_machine=x86_64-pc
411
+ ;;
412
+ amd64-*)
413
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
414
+ ;;
415
+ amdahl)
416
+ basic_machine=580-amdahl
417
+ os=-sysv
418
+ ;;
419
+ amiga | amiga-*)
420
+ basic_machine=m68k-unknown
421
+ ;;
422
+ amigaos | amigados)
423
+ basic_machine=m68k-unknown
424
+ os=-amigaos
425
+ ;;
426
+ amigaunix | amix)
427
+ basic_machine=m68k-unknown
428
+ os=-sysv4
429
+ ;;
430
+ apollo68)
431
+ basic_machine=m68k-apollo
432
+ os=-sysv
433
+ ;;
434
+ apollo68bsd)
435
+ basic_machine=m68k-apollo
436
+ os=-bsd
437
+ ;;
438
+ aux)
439
+ basic_machine=m68k-apple
440
+ os=-aux
441
+ ;;
442
+ balance)
443
+ basic_machine=ns32k-sequent
444
+ os=-dynix
445
+ ;;
446
+ c90)
447
+ basic_machine=c90-cray
448
+ os=-unicos
449
+ ;;
450
+ convex-c1)
451
+ basic_machine=c1-convex
452
+ os=-bsd
453
+ ;;
454
+ convex-c2)
455
+ basic_machine=c2-convex
456
+ os=-bsd
457
+ ;;
458
+ convex-c32)
459
+ basic_machine=c32-convex
460
+ os=-bsd
461
+ ;;
462
+ convex-c34)
463
+ basic_machine=c34-convex
464
+ os=-bsd
465
+ ;;
466
+ convex-c38)
467
+ basic_machine=c38-convex
468
+ os=-bsd
469
+ ;;
470
+ cray | j90)
471
+ basic_machine=j90-cray
472
+ os=-unicos
473
+ ;;
474
+ craynv)
475
+ basic_machine=craynv-cray
476
+ os=-unicosmp
477
+ ;;
478
+ cr16)
479
+ basic_machine=cr16-unknown
480
+ os=-elf
481
+ ;;
482
+ crds | unos)
483
+ basic_machine=m68k-crds
484
+ ;;
485
+ crisv32 | crisv32-* | etraxfs*)
486
+ basic_machine=crisv32-axis
487
+ ;;
488
+ cris | cris-* | etrax*)
489
+ basic_machine=cris-axis
490
+ ;;
491
+ crx)
492
+ basic_machine=crx-unknown
493
+ os=-elf
494
+ ;;
495
+ da30 | da30-*)
496
+ basic_machine=m68k-da30
497
+ ;;
498
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
499
+ basic_machine=mips-dec
500
+ ;;
501
+ decsystem10* | dec10*)
502
+ basic_machine=pdp10-dec
503
+ os=-tops10
504
+ ;;
505
+ decsystem20* | dec20*)
506
+ basic_machine=pdp10-dec
507
+ os=-tops20
508
+ ;;
509
+ delta | 3300 | motorola-3300 | motorola-delta \
510
+ | 3300-motorola | delta-motorola)
511
+ basic_machine=m68k-motorola
512
+ ;;
513
+ delta88)
514
+ basic_machine=m88k-motorola
515
+ os=-sysv3
516
+ ;;
517
+ djgpp)
518
+ basic_machine=i586-pc
519
+ os=-msdosdjgpp
520
+ ;;
521
+ dpx20 | dpx20-*)
522
+ basic_machine=rs6000-bull
523
+ os=-bosx
524
+ ;;
525
+ dpx2* | dpx2*-bull)
526
+ basic_machine=m68k-bull
527
+ os=-sysv3
528
+ ;;
529
+ ebmon29k)
530
+ basic_machine=a29k-amd
531
+ os=-ebmon
532
+ ;;
533
+ elxsi)
534
+ basic_machine=elxsi-elxsi
535
+ os=-bsd
536
+ ;;
537
+ encore | umax | mmax)
538
+ basic_machine=ns32k-encore
539
+ ;;
540
+ es1800 | OSE68k | ose68k | ose | OSE)
541
+ basic_machine=m68k-ericsson
542
+ os=-ose
543
+ ;;
544
+ fx2800)
545
+ basic_machine=i860-alliant
546
+ ;;
547
+ genix)
548
+ basic_machine=ns32k-ns
549
+ ;;
550
+ gmicro)
551
+ basic_machine=tron-gmicro
552
+ os=-sysv
553
+ ;;
554
+ go32)
555
+ basic_machine=i386-pc
556
+ os=-go32
557
+ ;;
558
+ h3050r* | hiux*)
559
+ basic_machine=hppa1.1-hitachi
560
+ os=-hiuxwe2
561
+ ;;
562
+ h8300hms)
563
+ basic_machine=h8300-hitachi
564
+ os=-hms
565
+ ;;
566
+ h8300xray)
567
+ basic_machine=h8300-hitachi
568
+ os=-xray
569
+ ;;
570
+ h8500hms)
571
+ basic_machine=h8500-hitachi
572
+ os=-hms
573
+ ;;
574
+ harris)
575
+ basic_machine=m88k-harris
576
+ os=-sysv3
577
+ ;;
578
+ hp300-*)
579
+ basic_machine=m68k-hp
580
+ ;;
581
+ hp300bsd)
582
+ basic_machine=m68k-hp
583
+ os=-bsd
584
+ ;;
585
+ hp300hpux)
586
+ basic_machine=m68k-hp
587
+ os=-hpux
588
+ ;;
589
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
590
+ basic_machine=hppa1.0-hp
591
+ ;;
592
+ hp9k2[0-9][0-9] | hp9k31[0-9])
593
+ basic_machine=m68000-hp
594
+ ;;
595
+ hp9k3[2-9][0-9])
596
+ basic_machine=m68k-hp
597
+ ;;
598
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
599
+ basic_machine=hppa1.0-hp
600
+ ;;
601
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
602
+ basic_machine=hppa1.1-hp
603
+ ;;
604
+ hp9k78[0-9] | hp78[0-9])
605
+ # FIXME: really hppa2.0-hp
606
+ basic_machine=hppa1.1-hp
607
+ ;;
608
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
609
+ # FIXME: really hppa2.0-hp
610
+ basic_machine=hppa1.1-hp
611
+ ;;
612
+ hp9k8[0-9][13679] | hp8[0-9][13679])
613
+ basic_machine=hppa1.1-hp
614
+ ;;
615
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
616
+ basic_machine=hppa1.0-hp
617
+ ;;
618
+ hppa-next)
619
+ os=-nextstep3
620
+ ;;
621
+ hppaosf)
622
+ basic_machine=hppa1.1-hp
623
+ os=-osf
624
+ ;;
625
+ hppro)
626
+ basic_machine=hppa1.1-hp
627
+ os=-proelf
628
+ ;;
629
+ i370-ibm* | ibm*)
630
+ basic_machine=i370-ibm
631
+ ;;
632
+ # I'm not sure what "Sysv32" means. Should this be sysv3.2?
633
+ i*86v32)
634
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
635
+ os=-sysv32
636
+ ;;
637
+ i*86v4*)
638
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
639
+ os=-sysv4
640
+ ;;
641
+ i*86v)
642
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
643
+ os=-sysv
644
+ ;;
645
+ i*86sol2)
646
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
647
+ os=-solaris2
648
+ ;;
649
+ i386mach)
650
+ basic_machine=i386-mach
651
+ os=-mach
652
+ ;;
653
+ i386-vsta | vsta)
654
+ basic_machine=i386-unknown
655
+ os=-vsta
656
+ ;;
657
+ iris | iris4d)
658
+ basic_machine=mips-sgi
659
+ case $os in
660
+ -irix*)
661
+ ;;
662
+ *)
663
+ os=-irix4
664
+ ;;
665
+ esac
666
+ ;;
667
+ isi68 | isi)
668
+ basic_machine=m68k-isi
669
+ os=-sysv
670
+ ;;
671
+ m88k-omron*)
672
+ basic_machine=m88k-omron
673
+ ;;
674
+ magnum | m3230)
675
+ basic_machine=mips-mips
676
+ os=-sysv
677
+ ;;
678
+ merlin)
679
+ basic_machine=ns32k-utek
680
+ os=-sysv
681
+ ;;
682
+ mingw32)
683
+ basic_machine=i386-pc
684
+ os=-mingw32
685
+ ;;
686
+ mingw32ce)
687
+ basic_machine=arm-unknown
688
+ os=-mingw32ce
689
+ ;;
690
+ miniframe)
691
+ basic_machine=m68000-convergent
692
+ ;;
693
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
694
+ basic_machine=m68k-atari
695
+ os=-mint
696
+ ;;
697
+ mips3*-*)
698
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
699
+ ;;
700
+ mips3*)
701
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
702
+ ;;
703
+ monitor)
704
+ basic_machine=m68k-rom68k
705
+ os=-coff
706
+ ;;
707
+ morphos)
708
+ basic_machine=powerpc-unknown
709
+ os=-morphos
710
+ ;;
711
+ msdos)
712
+ basic_machine=i386-pc
713
+ os=-msdos
714
+ ;;
715
+ ms1-*)
716
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
717
+ ;;
718
+ mvs)
719
+ basic_machine=i370-ibm
720
+ os=-mvs
721
+ ;;
722
+ ncr3000)
723
+ basic_machine=i486-ncr
724
+ os=-sysv4
725
+ ;;
726
+ netbsd386)
727
+ basic_machine=i386-unknown
728
+ os=-netbsd
729
+ ;;
730
+ netwinder)
731
+ basic_machine=armv4l-rebel
732
+ os=-linux
733
+ ;;
734
+ news | news700 | news800 | news900)
735
+ basic_machine=m68k-sony
736
+ os=-newsos
737
+ ;;
738
+ news1000)
739
+ basic_machine=m68030-sony
740
+ os=-newsos
741
+ ;;
742
+ news-3600 | risc-news)
743
+ basic_machine=mips-sony
744
+ os=-newsos
745
+ ;;
746
+ necv70)
747
+ basic_machine=v70-nec
748
+ os=-sysv
749
+ ;;
750
+ next | m*-next )
751
+ basic_machine=m68k-next
752
+ case $os in
753
+ -nextstep* )
754
+ ;;
755
+ -ns2*)
756
+ os=-nextstep2
757
+ ;;
758
+ *)
759
+ os=-nextstep3
760
+ ;;
761
+ esac
762
+ ;;
763
+ nh3000)
764
+ basic_machine=m68k-harris
765
+ os=-cxux
766
+ ;;
767
+ nh[45]000)
768
+ basic_machine=m88k-harris
769
+ os=-cxux
770
+ ;;
771
+ nindy960)
772
+ basic_machine=i960-intel
773
+ os=-nindy
774
+ ;;
775
+ mon960)
776
+ basic_machine=i960-intel
777
+ os=-mon960
778
+ ;;
779
+ nonstopux)
780
+ basic_machine=mips-compaq
781
+ os=-nonstopux
782
+ ;;
783
+ np1)
784
+ basic_machine=np1-gould
785
+ ;;
786
+ nsr-tandem)
787
+ basic_machine=nsr-tandem
788
+ ;;
789
+ op50n-* | op60c-*)
790
+ basic_machine=hppa1.1-oki
791
+ os=-proelf
792
+ ;;
793
+ openrisc | openrisc-*)
794
+ basic_machine=or32-unknown
795
+ ;;
796
+ os400)
797
+ basic_machine=powerpc-ibm
798
+ os=-os400
799
+ ;;
800
+ OSE68000 | ose68000)
801
+ basic_machine=m68000-ericsson
802
+ os=-ose
803
+ ;;
804
+ os68k)
805
+ basic_machine=m68k-none
806
+ os=-os68k
807
+ ;;
808
+ pa-hitachi)
809
+ basic_machine=hppa1.1-hitachi
810
+ os=-hiuxwe2
811
+ ;;
812
+ paragon)
813
+ basic_machine=i860-intel
814
+ os=-osf
815
+ ;;
816
+ pbd)
817
+ basic_machine=sparc-tti
818
+ ;;
819
+ pbb)
820
+ basic_machine=m68k-tti
821
+ ;;
822
+ pc532 | pc532-*)
823
+ basic_machine=ns32k-pc532
824
+ ;;
825
+ pc98)
826
+ basic_machine=i386-pc
827
+ ;;
828
+ pc98-*)
829
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
830
+ ;;
831
+ pentium | p5 | k5 | k6 | nexgen | viac3)
832
+ basic_machine=i586-pc
833
+ ;;
834
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
835
+ basic_machine=i686-pc
836
+ ;;
837
+ pentiumii | pentium2 | pentiumiii | pentium3)
838
+ basic_machine=i686-pc
839
+ ;;
840
+ pentium4)
841
+ basic_machine=i786-pc
842
+ ;;
843
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
844
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
845
+ ;;
846
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
847
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
848
+ ;;
849
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
850
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
851
+ ;;
852
+ pentium4-*)
853
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
854
+ ;;
855
+ pn)
856
+ basic_machine=pn-gould
857
+ ;;
858
+ power) basic_machine=power-ibm
859
+ ;;
860
+ ppc) basic_machine=powerpc-unknown
861
+ ;;
862
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
863
+ ;;
864
+ ppcle | powerpclittle | ppc-le | powerpc-little)
865
+ basic_machine=powerpcle-unknown
866
+ ;;
867
+ ppcle-* | powerpclittle-*)
868
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
869
+ ;;
870
+ ppc64) basic_machine=powerpc64-unknown
871
+ ;;
872
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
873
+ ;;
874
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
875
+ basic_machine=powerpc64le-unknown
876
+ ;;
877
+ ppc64le-* | powerpc64little-*)
878
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
879
+ ;;
880
+ ps2)
881
+ basic_machine=i386-ibm
882
+ ;;
883
+ pw32)
884
+ basic_machine=i586-unknown
885
+ os=-pw32
886
+ ;;
887
+ rdos)
888
+ basic_machine=i386-pc
889
+ os=-rdos
890
+ ;;
891
+ rom68k)
892
+ basic_machine=m68k-rom68k
893
+ os=-coff
894
+ ;;
895
+ rm[46]00)
896
+ basic_machine=mips-siemens
897
+ ;;
898
+ rtpc | rtpc-*)
899
+ basic_machine=romp-ibm
900
+ ;;
901
+ s390 | s390-*)
902
+ basic_machine=s390-ibm
903
+ ;;
904
+ s390x | s390x-*)
905
+ basic_machine=s390x-ibm
906
+ ;;
907
+ sa29200)
908
+ basic_machine=a29k-amd
909
+ os=-udi
910
+ ;;
911
+ sb1)
912
+ basic_machine=mipsisa64sb1-unknown
913
+ ;;
914
+ sb1el)
915
+ basic_machine=mipsisa64sb1el-unknown
916
+ ;;
917
+ sde)
918
+ basic_machine=mipsisa32-sde
919
+ os=-elf
920
+ ;;
921
+ sei)
922
+ basic_machine=mips-sei
923
+ os=-seiux
924
+ ;;
925
+ sequent)
926
+ basic_machine=i386-sequent
927
+ ;;
928
+ sh)
929
+ basic_machine=sh-hitachi
930
+ os=-hms
931
+ ;;
932
+ sh5el)
933
+ basic_machine=sh5le-unknown
934
+ ;;
935
+ sh64)
936
+ basic_machine=sh64-unknown
937
+ ;;
938
+ sparclite-wrs | simso-wrs)
939
+ basic_machine=sparclite-wrs
940
+ os=-vxworks
941
+ ;;
942
+ sps7)
943
+ basic_machine=m68k-bull
944
+ os=-sysv2
945
+ ;;
946
+ spur)
947
+ basic_machine=spur-unknown
948
+ ;;
949
+ st2000)
950
+ basic_machine=m68k-tandem
951
+ ;;
952
+ stratus)
953
+ basic_machine=i860-stratus
954
+ os=-sysv4
955
+ ;;
956
+ sun2)
957
+ basic_machine=m68000-sun
958
+ ;;
959
+ sun2os3)
960
+ basic_machine=m68000-sun
961
+ os=-sunos3
962
+ ;;
963
+ sun2os4)
964
+ basic_machine=m68000-sun
965
+ os=-sunos4
966
+ ;;
967
+ sun3os3)
968
+ basic_machine=m68k-sun
969
+ os=-sunos3
970
+ ;;
971
+ sun3os4)
972
+ basic_machine=m68k-sun
973
+ os=-sunos4
974
+ ;;
975
+ sun4os3)
976
+ basic_machine=sparc-sun
977
+ os=-sunos3
978
+ ;;
979
+ sun4os4)
980
+ basic_machine=sparc-sun
981
+ os=-sunos4
982
+ ;;
983
+ sun4sol2)
984
+ basic_machine=sparc-sun
985
+ os=-solaris2
986
+ ;;
987
+ sun3 | sun3-*)
988
+ basic_machine=m68k-sun
989
+ ;;
990
+ sun4)
991
+ basic_machine=sparc-sun
992
+ ;;
993
+ sun386 | sun386i | roadrunner)
994
+ basic_machine=i386-sun
995
+ ;;
996
+ sv1)
997
+ basic_machine=sv1-cray
998
+ os=-unicos
999
+ ;;
1000
+ symmetry)
1001
+ basic_machine=i386-sequent
1002
+ os=-dynix
1003
+ ;;
1004
+ t3e)
1005
+ basic_machine=alphaev5-cray
1006
+ os=-unicos
1007
+ ;;
1008
+ t90)
1009
+ basic_machine=t90-cray
1010
+ os=-unicos
1011
+ ;;
1012
+ tic54x | c54x*)
1013
+ basic_machine=tic54x-unknown
1014
+ os=-coff
1015
+ ;;
1016
+ tic55x | c55x*)
1017
+ basic_machine=tic55x-unknown
1018
+ os=-coff
1019
+ ;;
1020
+ tic6x | c6x*)
1021
+ basic_machine=tic6x-unknown
1022
+ os=-coff
1023
+ ;;
1024
+ tx39)
1025
+ basic_machine=mipstx39-unknown
1026
+ ;;
1027
+ tx39el)
1028
+ basic_machine=mipstx39el-unknown
1029
+ ;;
1030
+ toad1)
1031
+ basic_machine=pdp10-xkl
1032
+ os=-tops20
1033
+ ;;
1034
+ tower | tower-32)
1035
+ basic_machine=m68k-ncr
1036
+ ;;
1037
+ tpf)
1038
+ basic_machine=s390x-ibm
1039
+ os=-tpf
1040
+ ;;
1041
+ udi29k)
1042
+ basic_machine=a29k-amd
1043
+ os=-udi
1044
+ ;;
1045
+ ultra3)
1046
+ basic_machine=a29k-nyu
1047
+ os=-sym1
1048
+ ;;
1049
+ v810 | necv810)
1050
+ basic_machine=v810-nec
1051
+ os=-none
1052
+ ;;
1053
+ vaxv)
1054
+ basic_machine=vax-dec
1055
+ os=-sysv
1056
+ ;;
1057
+ vms)
1058
+ basic_machine=vax-dec
1059
+ os=-vms
1060
+ ;;
1061
+ vpp*|vx|vx-*)
1062
+ basic_machine=f301-fujitsu
1063
+ ;;
1064
+ vxworks960)
1065
+ basic_machine=i960-wrs
1066
+ os=-vxworks
1067
+ ;;
1068
+ vxworks68)
1069
+ basic_machine=m68k-wrs
1070
+ os=-vxworks
1071
+ ;;
1072
+ vxworks29k)
1073
+ basic_machine=a29k-wrs
1074
+ os=-vxworks
1075
+ ;;
1076
+ w65*)
1077
+ basic_machine=w65-wdc
1078
+ os=-none
1079
+ ;;
1080
+ w89k-*)
1081
+ basic_machine=hppa1.1-winbond
1082
+ os=-proelf
1083
+ ;;
1084
+ xbox)
1085
+ basic_machine=i686-pc
1086
+ os=-mingw32
1087
+ ;;
1088
+ xps | xps100)
1089
+ basic_machine=xps100-honeywell
1090
+ ;;
1091
+ ymp)
1092
+ basic_machine=ymp-cray
1093
+ os=-unicos
1094
+ ;;
1095
+ z8k-*-coff)
1096
+ basic_machine=z8k-unknown
1097
+ os=-sim
1098
+ ;;
1099
+ none)
1100
+ basic_machine=none-none
1101
+ os=-none
1102
+ ;;
1103
+
1104
+ # Here we handle the default manufacturer of certain CPU types. It is in
1105
+ # some cases the only manufacturer, in others, it is the most popular.
1106
+ w89k)
1107
+ basic_machine=hppa1.1-winbond
1108
+ ;;
1109
+ op50n)
1110
+ basic_machine=hppa1.1-oki
1111
+ ;;
1112
+ op60c)
1113
+ basic_machine=hppa1.1-oki
1114
+ ;;
1115
+ romp)
1116
+ basic_machine=romp-ibm
1117
+ ;;
1118
+ mmix)
1119
+ basic_machine=mmix-knuth
1120
+ ;;
1121
+ rs6000)
1122
+ basic_machine=rs6000-ibm
1123
+ ;;
1124
+ vax)
1125
+ basic_machine=vax-dec
1126
+ ;;
1127
+ pdp10)
1128
+ # there are many clones, so DEC is not a safe bet
1129
+ basic_machine=pdp10-unknown
1130
+ ;;
1131
+ pdp11)
1132
+ basic_machine=pdp11-dec
1133
+ ;;
1134
+ we32k)
1135
+ basic_machine=we32k-att
1136
+ ;;
1137
+ sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1138
+ basic_machine=sh-unknown
1139
+ ;;
1140
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1141
+ basic_machine=sparc-sun
1142
+ ;;
1143
+ cydra)
1144
+ basic_machine=cydra-cydrome
1145
+ ;;
1146
+ orion)
1147
+ basic_machine=orion-highlevel
1148
+ ;;
1149
+ orion105)
1150
+ basic_machine=clipper-highlevel
1151
+ ;;
1152
+ mac | mpw | mac-mpw)
1153
+ basic_machine=m68k-apple
1154
+ ;;
1155
+ pmac | pmac-mpw)
1156
+ basic_machine=powerpc-apple
1157
+ ;;
1158
+ *-unknown)
1159
+ # Make sure to match an already-canonicalized machine name.
1160
+ ;;
1161
+ *)
1162
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1163
+ exit 1
1164
+ ;;
1165
+ esac
1166
+
1167
+ # Here we canonicalize certain aliases for manufacturers.
1168
+ case $basic_machine in
1169
+ *-digital*)
1170
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1171
+ ;;
1172
+ *-commodore*)
1173
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1174
+ ;;
1175
+ *)
1176
+ ;;
1177
+ esac
1178
+
1179
+ # Decode manufacturer-specific aliases for certain operating systems.
1180
+
1181
+ if [ x"$os" != x"" ]
1182
+ then
1183
+ case $os in
1184
+ # First match some system type aliases
1185
+ # that might get confused with valid system types.
1186
+ # -solaris* is a basic system type, with this one exception.
1187
+ -solaris1 | -solaris1.*)
1188
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
1189
+ ;;
1190
+ -solaris)
1191
+ os=-solaris2
1192
+ ;;
1193
+ -svr4*)
1194
+ os=-sysv4
1195
+ ;;
1196
+ -unixware*)
1197
+ os=-sysv4.2uw
1198
+ ;;
1199
+ -gnu/linux*)
1200
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1201
+ ;;
1202
+ # First accept the basic system types.
1203
+ # The portable systems comes first.
1204
+ # Each alternative MUST END IN A *, to match a version number.
1205
+ # -sysv* is not here because it comes later, after sysvr4.
1206
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1207
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1208
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1209
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1210
+ | -aos* \
1211
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1212
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1213
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1214
+ | -openbsd* | -solidbsd* \
1215
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1216
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1217
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1218
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1219
+ | -chorusos* | -chorusrdb* \
1220
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1221
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1222
+ | -uxpv* | -beos* | -mpeix* | -udk* \
1223
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1224
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1225
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1226
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1227
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1228
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1229
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1230
+ # Remember, each alternative MUST END IN *, to match a version number.
1231
+ ;;
1232
+ -qnx*)
1233
+ case $basic_machine in
1234
+ x86-* | i*86-*)
1235
+ ;;
1236
+ *)
1237
+ os=-nto$os
1238
+ ;;
1239
+ esac
1240
+ ;;
1241
+ -nto-qnx*)
1242
+ ;;
1243
+ -nto*)
1244
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
1245
+ ;;
1246
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1247
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1248
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1249
+ ;;
1250
+ -mac*)
1251
+ os=`echo $os | sed -e 's|mac|macos|'`
1252
+ ;;
1253
+ -linux-dietlibc)
1254
+ os=-linux-dietlibc
1255
+ ;;
1256
+ -linux*)
1257
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
1258
+ ;;
1259
+ -sunos5*)
1260
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
1261
+ ;;
1262
+ -sunos6*)
1263
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
1264
+ ;;
1265
+ -opened*)
1266
+ os=-openedition
1267
+ ;;
1268
+ -os400*)
1269
+ os=-os400
1270
+ ;;
1271
+ -wince*)
1272
+ os=-wince
1273
+ ;;
1274
+ -osfrose*)
1275
+ os=-osfrose
1276
+ ;;
1277
+ -osf*)
1278
+ os=-osf
1279
+ ;;
1280
+ -utek*)
1281
+ os=-bsd
1282
+ ;;
1283
+ -dynix*)
1284
+ os=-bsd
1285
+ ;;
1286
+ -acis*)
1287
+ os=-aos
1288
+ ;;
1289
+ -atheos*)
1290
+ os=-atheos
1291
+ ;;
1292
+ -syllable*)
1293
+ os=-syllable
1294
+ ;;
1295
+ -386bsd)
1296
+ os=-bsd
1297
+ ;;
1298
+ -ctix* | -uts*)
1299
+ os=-sysv
1300
+ ;;
1301
+ -nova*)
1302
+ os=-rtmk-nova
1303
+ ;;
1304
+ -ns2 )
1305
+ os=-nextstep2
1306
+ ;;
1307
+ -nsk*)
1308
+ os=-nsk
1309
+ ;;
1310
+ # Preserve the version number of sinix5.
1311
+ -sinix5.*)
1312
+ os=`echo $os | sed -e 's|sinix|sysv|'`
1313
+ ;;
1314
+ -sinix*)
1315
+ os=-sysv4
1316
+ ;;
1317
+ -tpf*)
1318
+ os=-tpf
1319
+ ;;
1320
+ -triton*)
1321
+ os=-sysv3
1322
+ ;;
1323
+ -oss*)
1324
+ os=-sysv3
1325
+ ;;
1326
+ -svr4)
1327
+ os=-sysv4
1328
+ ;;
1329
+ -svr3)
1330
+ os=-sysv3
1331
+ ;;
1332
+ -sysvr4)
1333
+ os=-sysv4
1334
+ ;;
1335
+ # This must come after -sysvr4.
1336
+ -sysv*)
1337
+ ;;
1338
+ -ose*)
1339
+ os=-ose
1340
+ ;;
1341
+ -es1800*)
1342
+ os=-ose
1343
+ ;;
1344
+ -xenix)
1345
+ os=-xenix
1346
+ ;;
1347
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1348
+ os=-mint
1349
+ ;;
1350
+ -aros*)
1351
+ os=-aros
1352
+ ;;
1353
+ -kaos*)
1354
+ os=-kaos
1355
+ ;;
1356
+ -zvmoe)
1357
+ os=-zvmoe
1358
+ ;;
1359
+ -none)
1360
+ ;;
1361
+ *)
1362
+ # Get rid of the `-' at the beginning of $os.
1363
+ os=`echo $os | sed 's/[^-]*-//'`
1364
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1365
+ exit 1
1366
+ ;;
1367
+ esac
1368
+ else
1369
+
1370
+ # Here we handle the default operating systems that come with various machines.
1371
+ # The value should be what the vendor currently ships out the door with their
1372
+ # machine or put another way, the most popular os provided with the machine.
1373
+
1374
+ # Note that if you're going to try to match "-MANUFACTURER" here (say,
1375
+ # "-sun"), then you have to tell the case statement up towards the top
1376
+ # that MANUFACTURER isn't an operating system. Otherwise, code above
1377
+ # will signal an error saying that MANUFACTURER isn't an operating
1378
+ # system, and we'll never get to this point.
1379
+
1380
+ case $basic_machine in
1381
+ score-*)
1382
+ os=-elf
1383
+ ;;
1384
+ spu-*)
1385
+ os=-elf
1386
+ ;;
1387
+ *-acorn)
1388
+ os=-riscix1.2
1389
+ ;;
1390
+ arm*-rebel)
1391
+ os=-linux
1392
+ ;;
1393
+ arm*-semi)
1394
+ os=-aout
1395
+ ;;
1396
+ c4x-* | tic4x-*)
1397
+ os=-coff
1398
+ ;;
1399
+ # This must come before the *-dec entry.
1400
+ pdp10-*)
1401
+ os=-tops20
1402
+ ;;
1403
+ pdp11-*)
1404
+ os=-none
1405
+ ;;
1406
+ *-dec | vax-*)
1407
+ os=-ultrix4.2
1408
+ ;;
1409
+ m68*-apollo)
1410
+ os=-domain
1411
+ ;;
1412
+ i386-sun)
1413
+ os=-sunos4.0.2
1414
+ ;;
1415
+ m68000-sun)
1416
+ os=-sunos3
1417
+ # This also exists in the configure program, but was not the
1418
+ # default.
1419
+ # os=-sunos4
1420
+ ;;
1421
+ m68*-cisco)
1422
+ os=-aout
1423
+ ;;
1424
+ mep-*)
1425
+ os=-elf
1426
+ ;;
1427
+ mips*-cisco)
1428
+ os=-elf
1429
+ ;;
1430
+ mips*-*)
1431
+ os=-elf
1432
+ ;;
1433
+ or32-*)
1434
+ os=-coff
1435
+ ;;
1436
+ *-tti) # must be before sparc entry or we get the wrong os.
1437
+ os=-sysv3
1438
+ ;;
1439
+ sparc-* | *-sun)
1440
+ os=-sunos4.1.1
1441
+ ;;
1442
+ *-be)
1443
+ os=-beos
1444
+ ;;
1445
+ *-haiku)
1446
+ os=-haiku
1447
+ ;;
1448
+ *-ibm)
1449
+ os=-aix
1450
+ ;;
1451
+ *-knuth)
1452
+ os=-mmixware
1453
+ ;;
1454
+ *-wec)
1455
+ os=-proelf
1456
+ ;;
1457
+ *-winbond)
1458
+ os=-proelf
1459
+ ;;
1460
+ *-oki)
1461
+ os=-proelf
1462
+ ;;
1463
+ *-hp)
1464
+ os=-hpux
1465
+ ;;
1466
+ *-hitachi)
1467
+ os=-hiux
1468
+ ;;
1469
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1470
+ os=-sysv
1471
+ ;;
1472
+ *-cbm)
1473
+ os=-amigaos
1474
+ ;;
1475
+ *-dg)
1476
+ os=-dgux
1477
+ ;;
1478
+ *-dolphin)
1479
+ os=-sysv3
1480
+ ;;
1481
+ m68k-ccur)
1482
+ os=-rtu
1483
+ ;;
1484
+ m88k-omron*)
1485
+ os=-luna
1486
+ ;;
1487
+ *-next )
1488
+ os=-nextstep
1489
+ ;;
1490
+ *-sequent)
1491
+ os=-ptx
1492
+ ;;
1493
+ *-crds)
1494
+ os=-unos
1495
+ ;;
1496
+ *-ns)
1497
+ os=-genix
1498
+ ;;
1499
+ i370-*)
1500
+ os=-mvs
1501
+ ;;
1502
+ *-next)
1503
+ os=-nextstep3
1504
+ ;;
1505
+ *-gould)
1506
+ os=-sysv
1507
+ ;;
1508
+ *-highlevel)
1509
+ os=-bsd
1510
+ ;;
1511
+ *-encore)
1512
+ os=-bsd
1513
+ ;;
1514
+ *-sgi)
1515
+ os=-irix
1516
+ ;;
1517
+ *-siemens)
1518
+ os=-sysv4
1519
+ ;;
1520
+ *-masscomp)
1521
+ os=-rtu
1522
+ ;;
1523
+ f30[01]-fujitsu | f700-fujitsu)
1524
+ os=-uxpv
1525
+ ;;
1526
+ *-rom68k)
1527
+ os=-coff
1528
+ ;;
1529
+ *-*bug)
1530
+ os=-coff
1531
+ ;;
1532
+ *-apple)
1533
+ os=-macos
1534
+ ;;
1535
+ *-atari*)
1536
+ os=-mint
1537
+ ;;
1538
+ *)
1539
+ os=-none
1540
+ ;;
1541
+ esac
1542
+ fi
1543
+
1544
+ # Here we handle the case where we know the os, and the CPU type, but not the
1545
+ # manufacturer. We pick the logical manufacturer.
1546
+ vendor=unknown
1547
+ case $basic_machine in
1548
+ *-unknown)
1549
+ case $os in
1550
+ -riscix*)
1551
+ vendor=acorn
1552
+ ;;
1553
+ -sunos*)
1554
+ vendor=sun
1555
+ ;;
1556
+ -aix*)
1557
+ vendor=ibm
1558
+ ;;
1559
+ -beos*)
1560
+ vendor=be
1561
+ ;;
1562
+ -hpux*)
1563
+ vendor=hp
1564
+ ;;
1565
+ -mpeix*)
1566
+ vendor=hp
1567
+ ;;
1568
+ -hiux*)
1569
+ vendor=hitachi
1570
+ ;;
1571
+ -unos*)
1572
+ vendor=crds
1573
+ ;;
1574
+ -dgux*)
1575
+ vendor=dg
1576
+ ;;
1577
+ -luna*)
1578
+ vendor=omron
1579
+ ;;
1580
+ -genix*)
1581
+ vendor=ns
1582
+ ;;
1583
+ -mvs* | -opened*)
1584
+ vendor=ibm
1585
+ ;;
1586
+ -os400*)
1587
+ vendor=ibm
1588
+ ;;
1589
+ -ptx*)
1590
+ vendor=sequent
1591
+ ;;
1592
+ -tpf*)
1593
+ vendor=ibm
1594
+ ;;
1595
+ -vxsim* | -vxworks* | -windiss*)
1596
+ vendor=wrs
1597
+ ;;
1598
+ -aux*)
1599
+ vendor=apple
1600
+ ;;
1601
+ -hms*)
1602
+ vendor=hitachi
1603
+ ;;
1604
+ -mpw* | -macos*)
1605
+ vendor=apple
1606
+ ;;
1607
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1608
+ vendor=atari
1609
+ ;;
1610
+ -vos*)
1611
+ vendor=stratus
1612
+ ;;
1613
+ esac
1614
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1615
+ ;;
1616
+ esac
1617
+
1618
+ echo $basic_machine$os
1619
+ exit
1620
+
1621
+ # Local variables:
1622
+ # eval: (add-hook 'write-file-hooks 'time-stamp)
1623
+ # time-stamp-start: "timestamp='"
1624
+ # time-stamp-format: "%:y-%02m-%02d"
1625
+ # time-stamp-end: "'"
1626
+ # End:
CRF/configure ADDED
The diff for this file is too large to render. See raw diff
 
CRF/configure.in ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dnl Process this file with autoconf to produce a configure script.
2
+ AC_INIT(crf_learn.cpp)
3
+ AM_INIT_AUTOMAKE(CRF++, 0.54)
4
+
5
+ dnl Checks for programs.
6
+ AC_PROG_CC
7
+ AC_PROG_CXX
8
+ AC_PROG_GCC_TRADITIONAL
9
+ AC_PROG_MAKE_SET
10
+ AC_ISC_POSIX
11
+ AC_CYGWIN
12
+ AC_LANG_CPLUSPLUS
13
+ AC_PROG_LIBTOOL
14
+
15
+ dnl Checks for libraries.
16
+
17
+ dnl Checks for header files.
18
+ AC_HEADER_STDC
19
+ AC_CHECK_HEADERS(string.h stdlib.h unistd.h fcntl.h \
20
+ sys/stat.h sys/mman.h sys/times.h \
21
+ ctype.h sys/types.h math.h pthread.h)
22
+
23
+ AC_TYPE_SIZE_T
24
+
25
+ dnl Checks for libraries.
26
+ AC_CHECK_LIB(m,pow)
27
+ AC_CHECK_LIB(m,exp)
28
+ AC_CHECK_LIB(m,log)
29
+ AC_CHECK_LIB(pthread,pthread_create)
30
+ AC_CHECK_LIB(pthread,pthread_join)
31
+ AC_FUNC_MMAP
32
+
33
+ dnl
34
+ dnl Check for GNU make
35
+ dnl
36
+ AC_MSG_CHECKING(whether make is GNU Make)
37
+ if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
38
+ AC_MSG_RESULT(yes)
39
+ else
40
+ AC_MSG_RESULT(no)
41
+ if test "$host_vendor" = "sun" ; then
42
+ AC_MSG_ERROR("SUN make does not work for building maxent. Please install GNU make")
43
+ fi
44
+ fi
45
+
46
+ dnl
47
+ dnl check gcc
48
+ dnl
49
+ if test -n "$GCC"; then
50
+ CFLAGS="-O3 -Wall";
51
+ CXXFLAGS="-O3 -Wall";
52
+ fi
53
+
54
+ AC_DEFUN(ADD_CC_FLAG, [
55
+ AC_MSG_CHECKING(whether ${CC-cc} accepts $1)
56
+ AC_LANG_SAVE
57
+ AC_LANG_C
58
+ XCFLAGS="$CFLAGS"
59
+ CFLAGS="$CFLAGS $1"
60
+ AC_TRY_LINK([], [],
61
+ [AC_MSG_RESULT([ ok, adding $1 to CFLAGS])],
62
+ [CFLAGS="$XCFLAGS"])
63
+ AC_LANG_RESTORE
64
+ ])
65
+
66
+ AC_DEFUN(ADD_CXX_FLAG, [
67
+ AC_MSG_CHECKING(whether ${CXX-c++} accepts $1)
68
+ AC_LANG_SAVE
69
+ AC_LANG_CPLUSPLUS
70
+ XCXXFLAGS="$CXXFLAGS"
71
+ CXXFLAGS="$CXXFLAGS $1"
72
+ AC_TRY_LINK([], [],
73
+ [AC_MSG_RESULT([ ok, adding $1 to CXXFLAGS])],
74
+ [CXXFLAGS="$XCXXFLAGS"])
75
+ AC_LANG_RESTORE
76
+ ])
77
+
78
+ # On Intel systems with gcc, we may need to compile with -mieee-fp to
79
+ # get full support for IEEE floating point.
80
+ #
81
+ # On Alpha/OSF systems, we need -mieee.
82
+ #
83
+ # On AIX systems, we need to limit the amount of stuff that goes in
84
+ # the TOC.
85
+ case "$host" in
86
+ changequote(,)dnl
87
+ i[3456789]86-*-*)
88
+ changequote([,])dnl
89
+ ADD_CC_FLAG(-mieee-fp)
90
+ ADD_CXX_FLAG(-mieee-fp)
91
+ ;;
92
+ alpha*-*-*)
93
+ ADD_CC_FLAG(-mieee)
94
+ ADD_CXX_FLAG(-mieee)
95
+ ;;
96
+ *ibm-aix4*)
97
+ ADD_CC_FLAG(-mminimal-toc)
98
+ ADD_CXX_FLAG(-mminimal-toc)
99
+ ;;
100
+ esac
101
+
102
+ dnl
103
+ dnl check C++ features
104
+ dnl
105
+ AC_DEFUN(CHECK_CXX_STL, [
106
+ AC_MSG_CHECKING(if ${CXX-c++} supports stl <$1> (required))
107
+ AC_TRY_COMPILE(
108
+ [
109
+ #include <$1>
110
+ ], [
111
+ ;
112
+ ], [
113
+ ac_stl_$1=yes
114
+ ], [
115
+ config_error=yes
116
+ AC_WARN(${CXX-c++} stl <$1> does not work)
117
+ ])
118
+ AC_MSG_RESULT([$ac_stl_$1])
119
+ ])
120
+
121
+ CHECK_CXX_STL(string)
122
+ CHECK_CXX_STL(vector)
123
+ CHECK_CXX_STL(map)
124
+ CHECK_CXX_STL(set)
125
+ CHECK_CXX_STL(iostream)
126
+ CHECK_CXX_STL(fstream)
127
+ CHECK_CXX_STL(sstream)
128
+ CHECK_CXX_STL(stdexcept)
129
+
130
+ # check for const_cast
131
+ AC_MSG_CHECKING([if ${CXX-c++} supports template <class T> (required)])
132
+ AC_TRY_COMPILE(
133
+ [
134
+ template <class T> T foo (T &i) { return i++; };
135
+ ],[
136
+ int i = 0;
137
+ double d = 0.0;
138
+ foo(i); foo(d);
139
+ ],[
140
+ ac_template=yes
141
+ ],[
142
+ AC_WARN(${CXX-c++} template <class T> does not work)
143
+ config_error=yes
144
+ ])
145
+ AC_MSG_RESULT([$ac_template])
146
+
147
+ # check for const_cast
148
+ AC_MSG_CHECKING([if ${CXX-c++} supports const_cast<> (required)])
149
+ AC_TRY_COMPILE(
150
+ [
151
+ class foo;
152
+ ],[
153
+ const foo *c=0;
154
+ foo *c1=const_cast<foo*>(c);
155
+ ],[
156
+ ac_const_cast=yes
157
+ ],[
158
+ AC_WARN(${CXX-c++} const_cast<> does not work)
159
+ config_error=yes
160
+ ])
161
+ AC_MSG_RESULT([$ac_const_cast])
162
+
163
+ # check for static_cast<>
164
+ AC_MSG_CHECKING(if ${CXX-c++} supports static_cast<> (required))
165
+ AC_TRY_COMPILE(
166
+ [
167
+ class foo;
168
+ ],[
169
+ foo *c = 0;
170
+ void *c1 = static_cast<void *>(c);
171
+ ],[
172
+ ac_static_cast=yes
173
+ ],[
174
+ AC_WARN(${CXX-c++} static_cast<> does not work)
175
+ config_error=yes
176
+ ])
177
+ AC_MSG_RESULT([$ac_static_cast])
178
+
179
+ # check for dynamic_cast<>
180
+ AC_MSG_CHECKING(if ${CXX-c++} supports dynamic_cast<> (required))
181
+ AC_TRY_COMPILE(
182
+ [
183
+ class foo {};
184
+ class bar: public foo {};
185
+ ],[
186
+ bar *c = 0;
187
+ foo *c1 = dynamic_cast<foo *>(c);
188
+ ],[
189
+ ac_dynamic_cast=yes
190
+ ],[
191
+ AC_WARN(${CXX-c++} dynamic_cast<> does not work)
192
+ config_error=yes
193
+ ])
194
+ AC_MSG_RESULT([$ac_dynamic_cast])
195
+
196
+ # check for try
197
+ AC_MSG_CHECKING(if ${CXX-c++} supports exception handler (required))
198
+ AC_TRY_COMPILE(
199
+ [
200
+ ;
201
+ ],[
202
+ try {
203
+ int i = 0;
204
+ }
205
+ catch (char *e) {
206
+ }
207
+ catch (...) {
208
+ }
209
+ ],[
210
+ ac_exception=yes
211
+ ],[
212
+ AC_WARN(${CXX-c++} exception does not work)
213
+ config_error=yes
214
+ ])
215
+ AC_MSG_RESULT([$ac_exception])
216
+
217
+ # check for namespaces
218
+ AC_MSG_CHECKING(if ${CXX-c++} supports namespaces (required) )
219
+ AC_TRY_COMPILE(
220
+ [
221
+ namespace Foo { struct A {}; }
222
+ using namespace Foo;
223
+ ],[
224
+ A a;
225
+ ],[
226
+ ac_namespaces=yes
227
+ dnl AC_DEFINE(HAVE_CXX_NAMESPACE)
228
+ ],[
229
+ config_error=yes
230
+ ac_namespaces=no
231
+ ])
232
+ AC_MSG_RESULT([$ac_namespaces])
233
+
234
+ AC_MSG_CHECKING(if ${CXX-c++} environment provides all required features)
235
+ if test "x$config_error" = xyes ; then
236
+ AC_MSG_RESULT([no])
237
+ AC_MSG_ERROR([Your compiler is not powerful enough to compile CRF++. \
238
+ If it should be, see config.log for more information of why it failed.])
239
+ fi
240
+ AC_MSG_RESULT([yes])
241
+
242
+ AC_SUBST(datarootdir)
243
+ AM_CONFIG_HEADER(config.h)
244
+ AC_OUTPUT([Makefile Makefile.msvc swig/version.h])
245
+
CRF/crf_learn ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+
3
+ # crf_learn - temporary wrapper script for .libs/crf_learn
4
+ # Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
5
+ #
6
+ # The crf_learn program cannot be directly executed until all the libtool
7
+ # libraries that it depends on are installed.
8
+ #
9
+ # This wrapper script should never be moved out of the build directory.
10
+ # If it is, it will not operate correctly.
11
+
12
+ # Sed substitution that helps us do robust quoting. It backslashifies
13
+ # metacharacters that are still active within double-quoted strings.
14
+ Xsed='/bin/sed -e 1s/^X//'
15
+ sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
16
+
17
+ # Be Bourne compatible
18
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
+ emulate sh
20
+ NULLCMD=:
21
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22
+ # is contrary to our usage. Disable this feature.
23
+ alias -g '${1+"$@"}'='"$@"'
24
+ setopt NO_GLOB_SUBST
25
+ else
26
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27
+ fi
28
+ BIN_SH=xpg4; export BIN_SH # for Tru64
29
+ DUALCASE=1; export DUALCASE # for MKS sh
30
+
31
+ # The HP-UX ksh and POSIX shell print the target directory to stdout
32
+ # if CDPATH is set.
33
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34
+
35
+ relink_command="(cd /home/weic4/GN/GNR/CRF++; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; LD_RUN_PATH=/netopt/ncbi_tools64/ncbi/shlib; export LD_RUN_PATH; LD_LIBRARY_PATH=/opt/gd-2.0.35/lib64; export LD_LIBRARY_PATH; PATH=/usr/lib64/qt-3.3/bin:/opt/python-2.5/bin:/opt/perl-5.8.8/bin:/opt/graphviz-2.16.1/bin:/am/ncbiapdata/bin:/netopt/ncbi_tools64/bin:/usr/local/nedit/5.5/bin:/usr/local/svnmucc/1.5.7/bin:/usr/local/jove/4.16.0.70/bin:/usr/local/joe/3.7/bin:/usr/local/ctags/5.7/bin:/usr/local/gcc/4.4.2/bin:/usr/local/gdb/6.8/bin:/usr/local/ddd/3.3.11/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/export/home/sybase/utils/bin; export PATH; g++ -O3 -Wall -o \$progdir/\$file crf_learn.o ./.libs/libcrfpp.so -lpthread -lm -Wl,-rpath -Wl,/home/weic4/GN/GNR/CRF++/.libs -Wl,-rpath -Wl,/usr/local/lib)"
36
+
37
+ # This environment variable determines our operation mode.
38
+ if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
39
+ # install mode needs the following variables:
40
+ generated_by_libtool_version='2.2.6b'
41
+ notinst_deplibs=' libcrfpp.la'
42
+ else
43
+ # When we are sourced in execute mode, $file and $ECHO are already set.
44
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
45
+ ECHO="echo"
46
+ file="$0"
47
+ # Make sure echo works.
48
+ if test "X$1" = X--no-reexec; then
49
+ # Discard the --no-reexec flag, and continue.
50
+ shift
51
+ elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
52
+ # Yippee, $ECHO works!
53
+ :
54
+ else
55
+ # Restart under the correct shell, and then maybe $ECHO will work.
56
+ exec /bin/sh "$0" --no-reexec ${1+"$@"}
57
+ fi
58
+ fi
59
+
60
+ # Find the directory that this script lives in.
61
+ thisdir=`$ECHO "X$file" | $Xsed -e 's%/[^/]*$%%'`
62
+ test "x$thisdir" = "x$file" && thisdir=.
63
+
64
+ # Follow symbolic links until we get to the real thisdir.
65
+ file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
66
+ while test -n "$file"; do
67
+ destdir=`$ECHO "X$file" | $Xsed -e 's%/[^/]*$%%'`
68
+
69
+ # If there was a directory component, then change thisdir.
70
+ if test "x$destdir" != "x$file"; then
71
+ case "$destdir" in
72
+ [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
73
+ *) thisdir="$thisdir/$destdir" ;;
74
+ esac
75
+ fi
76
+
77
+ file=`$ECHO "X$file" | $Xsed -e 's%^.*/%%'`
78
+ file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
79
+ done
80
+
81
+
82
+ # Usually 'no', except on cygwin/mingw when embedded into
83
+ # the cwrapper.
84
+ WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no
85
+ if test "$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR" = "yes"; then
86
+ # special case for '.'
87
+ if test "$thisdir" = "."; then
88
+ thisdir=`pwd`
89
+ fi
90
+ # remove .libs from thisdir
91
+ case "$thisdir" in
92
+ *[\\/].libs ) thisdir=`$ECHO "X$thisdir" | $Xsed -e 's%[\\/][^\\/]*$%%'` ;;
93
+ .libs ) thisdir=. ;;
94
+ esac
95
+ fi
96
+
97
+ # Try to get the absolute directory name.
98
+ absdir=`cd "$thisdir" && pwd`
99
+ test -n "$absdir" && thisdir="$absdir"
100
+
101
+ program=lt-'crf_learn'
102
+ progdir="$thisdir/.libs"
103
+
104
+ if test ! -f "$progdir/$program" ||
105
+ { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
106
+ test "X$file" != "X$progdir/$program"; }; then
107
+
108
+ file="$$-$program"
109
+
110
+ if test ! -d "$progdir"; then
111
+ mkdir "$progdir"
112
+ else
113
+ rm -f "$progdir/$file"
114
+ fi
115
+
116
+ # relink executable if necessary
117
+ if test -n "$relink_command"; then
118
+ if relink_command_output=`eval $relink_command 2>&1`; then :
119
+ else
120
+ echo "$relink_command_output" >&2
121
+ rm -f "$progdir/$file"
122
+ exit 1
123
+ fi
124
+ fi
125
+
126
+ mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
127
+ { rm -f "$progdir/$program";
128
+ mv -f "$progdir/$file" "$progdir/$program"; }
129
+ rm -f "$progdir/$file"
130
+ fi
131
+
132
+ if test -f "$progdir/$program"; then
133
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
134
+ # Run the actual program with our arguments.
135
+
136
+ exec "$progdir/$program" ${1+"$@"}
137
+
138
+ $ECHO "$0: cannot exec $program $*" 1>&2
139
+ exit 1
140
+ fi
141
+ else
142
+ # The program doesn't exist.
143
+ $ECHO "$0: error: \`$progdir/$program' does not exist" 1>&2
144
+ $ECHO "This script is just a wrapper for $program." 1>&2
145
+ echo "See the libtool documentation for more information." 1>&2
146
+ exit 1
147
+ fi
148
+ fi
CRF/crf_learn.cpp ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //
2
+ // CRF++ -- Yet Another CRF toolkit
3
+ //
4
+ // $Id: crf_learn.cpp 1587 2007-02-12 09:00:36Z taku $;
5
+ //
6
+ // Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org>
7
+ //
8
+ #include "crfpp.h"
9
+
10
+ int main(int argc, char **argv) {
11
+ return crfpp_learn(argc, argv);
12
+ }
CRF/crf_learn.exe ADDED
Binary file (50.7 kB). View file
 
CRF/crf_learn.o ADDED
Binary file (1.4 kB). View file
 
CRF/crf_test ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+
3
+ # crf_test - temporary wrapper script for .libs/crf_test
4
+ # Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
5
+ #
6
+ # The crf_test program cannot be directly executed until all the libtool
7
+ # libraries that it depends on are installed.
8
+ #
9
+ # This wrapper script should never be moved out of the build directory.
10
+ # If it is, it will not operate correctly.
11
+
12
+ # Sed substitution that helps us do robust quoting. It backslashifies
13
+ # metacharacters that are still active within double-quoted strings.
14
+ Xsed='/bin/sed -e 1s/^X//'
15
+ sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
16
+
17
+ # Be Bourne compatible
18
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
+ emulate sh
20
+ NULLCMD=:
21
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22
+ # is contrary to our usage. Disable this feature.
23
+ alias -g '${1+"$@"}'='"$@"'
24
+ setopt NO_GLOB_SUBST
25
+ else
26
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27
+ fi
28
+ BIN_SH=xpg4; export BIN_SH # for Tru64
29
+ DUALCASE=1; export DUALCASE # for MKS sh
30
+
31
+ # The HP-UX ksh and POSIX shell print the target directory to stdout
32
+ # if CDPATH is set.
33
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34
+
35
+ relink_command="(cd /panfs/pan1.be-md.ncbi.nlm.nih.gov/loganl/lu-group/wei/ToolsDevelopment/GNormPlus/CRF; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; LD_RUN_PATH=/netopt/ncbi_tools64/ncbi/shlib; export LD_RUN_PATH; { test -z \"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/opt/python-all/bin:/opt/perl/5.16.3/bin:/opt/fcron/bin:/usr/local/graphviz/2.47.0/bin:/usr/local/bazel/2.1.0/bin:/usr/local/apt/1.12.0-20091012/bin:/usr/local/postgres/11.7/bin:/usr/local/mongodb/4.4.6/bin:/usr/local/p7zip/16.02/bin:/usr/local/rar/5.4.0/bin:/opt/ruby/2.0/bin:/usr/local/maven/3.1.0/bin:/usr/local/swig/2.0.4/bin:/usr/local/ant/1.9.3/bin:/netmnt/gridengine/current/bin/lx-amd64:/usr/local/subversion/1.10.6/bin:/usr/local/svnmucc/1.5.7/bin:/usr/local/ninja/1.10.2/bin:/usr/local/nedit/5.5/bin:/netopt/ncbi_tools64/bin:/am/ncbiapdata/bin:/usr/local/joe/3.7/bin:/usr/local/git/2.20.1/bin:/opt/ncbi/gcc/7.3.0/bin:/usr/local/ddd/3.3.12/bin:/usr/local/ctags/5.8/bin:/usr/local/cmake/3.21.2/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/sybase/clients/current/bin:/opt/sybase/utils/bin:/opt/dell/srvadmin/bin; export PATH; g++ -O3 -Wall -o \$progdir/\$file crf_test.o ./.libs/libcrfpp.so -lpthread -lm -Wl,-rpath -Wl,/panfs/pan1.be-md.ncbi.nlm.nih.gov/loganl/lu-group/wei/ToolsDevelopment/GNormPlus/CRF/.libs -Wl,-rpath -Wl,/usr/local/lib)"
36
+
37
+ # This environment variable determines our operation mode.
38
+ if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
39
+ # install mode needs the following variables:
40
+ generated_by_libtool_version='2.2.6b'
41
+ notinst_deplibs=' libcrfpp.la'
42
+ else
43
+ # When we are sourced in execute mode, $file and $ECHO are already set.
44
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
45
+ ECHO="echo"
46
+ file="$0"
47
+ # Make sure echo works.
48
+ if test "X$1" = X--no-reexec; then
49
+ # Discard the --no-reexec flag, and continue.
50
+ shift
51
+ elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
52
+ # Yippee, $ECHO works!
53
+ :
54
+ else
55
+ # Restart under the correct shell, and then maybe $ECHO will work.
56
+ exec /bin/sh "$0" --no-reexec ${1+"$@"}
57
+ fi
58
+ fi
59
+
60
+ # Find the directory that this script lives in.
61
+ thisdir=`$ECHO "X$file" | $Xsed -e 's%/[^/]*$%%'`
62
+ test "x$thisdir" = "x$file" && thisdir=.
63
+
64
+ # Follow symbolic links until we get to the real thisdir.
65
+ file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
66
+ while test -n "$file"; do
67
+ destdir=`$ECHO "X$file" | $Xsed -e 's%/[^/]*$%%'`
68
+
69
+ # If there was a directory component, then change thisdir.
70
+ if test "x$destdir" != "x$file"; then
71
+ case "$destdir" in
72
+ [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
73
+ *) thisdir="$thisdir/$destdir" ;;
74
+ esac
75
+ fi
76
+
77
+ file=`$ECHO "X$file" | $Xsed -e 's%^.*/%%'`
78
+ file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
79
+ done
80
+
81
+
82
+ # Usually 'no', except on cygwin/mingw when embedded into
83
+ # the cwrapper.
84
+ WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no
85
+ if test "$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR" = "yes"; then
86
+ # special case for '.'
87
+ if test "$thisdir" = "."; then
88
+ thisdir=`pwd`
89
+ fi
90
+ # remove .libs from thisdir
91
+ case "$thisdir" in
92
+ *[\\/].libs ) thisdir=`$ECHO "X$thisdir" | $Xsed -e 's%[\\/][^\\/]*$%%'` ;;
93
+ .libs ) thisdir=. ;;
94
+ esac
95
+ fi
96
+
97
+ # Try to get the absolute directory name.
98
+ absdir=`cd "$thisdir" && pwd`
99
+ test -n "$absdir" && thisdir="$absdir"
100
+
101
+ program=lt-'crf_test'
102
+ progdir="$thisdir/.libs"
103
+
104
+ if test ! -f "$progdir/$program" ||
105
+ { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
106
+ test "X$file" != "X$progdir/$program"; }; then
107
+
108
+ file="$$-$program"
109
+
110
+ if test ! -d "$progdir"; then
111
+ mkdir "$progdir"
112
+ else
113
+ rm -f "$progdir/$file"
114
+ fi
115
+
116
+ # relink executable if necessary
117
+ if test -n "$relink_command"; then
118
+ if relink_command_output=`eval $relink_command 2>&1`; then :
119
+ else
120
+ echo "$relink_command_output" >&2
121
+ rm -f "$progdir/$file"
122
+ exit 1
123
+ fi
124
+ fi
125
+
126
+ mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
127
+ { rm -f "$progdir/$program";
128
+ mv -f "$progdir/$file" "$progdir/$program"; }
129
+ rm -f "$progdir/$file"
130
+ fi
131
+
132
+ if test -f "$progdir/$program"; then
133
+ if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
134
+ # Run the actual program with our arguments.
135
+
136
+ exec "$progdir/$program" ${1+"$@"}
137
+
138
+ $ECHO "$0: cannot exec $program $*" 1>&2
139
+ exit 1
140
+ fi
141
+ else
142
+ # The program doesn't exist.
143
+ $ECHO "$0: error: \`$progdir/$program' does not exist" 1>&2
144
+ $ECHO "This script is just a wrapper for $program." 1>&2
145
+ echo "See the libtool documentation for more information." 1>&2
146
+ exit 1
147
+ fi
148
+ fi