summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-05-25 13:24:37 +1000
committerCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-05-25 13:24:37 +1000
commit61f90f14af8796bbed074538882e76f1e1bf3333 (patch)
tree5d1dc744b47817a39b905418b1fc76bb828cea4a
parentee8547cf3c89c51ff10603814e6f745466bc4c79 (diff)
Try to make some more modular Fixpoint algorithms.
-rw-r--r--impl/Complete.hpp119
-rw-r--r--impl/EquationSystem.g19
-rw-r--r--impl/EquationSystem.hpp44
-rw-r--r--impl/Expression.hpp3
-rw-r--r--impl/FixpointAlgorithm.hpp98
-rw-r--r--impl/IdMap.hpp81
-rw-r--r--impl/IdSet.hpp187
-rw-r--r--impl/MaxStrategy.hpp15
-rw-r--r--impl/Operator.hpp56
-rw-r--r--impl/Variable.hpp13
-rw-r--r--impl/VariableAssignment.hpp78
-rw-r--r--impl/antlr/generate.py4
-rw-r--r--impl/antlr/libantlr3c-3.4/Makefile40
-rw-r--r--impl/antlr/libantlr3c-3.4/antlr3config.h30
-rw-r--r--impl/antlr/libantlr3c-3.4/config.log4760
-rwxr-xr-ximpl/antlr/libantlr3c-3.4/config.status55
-rwxr-xr-ximpl/antlr/libantlr3c-3.4/libtool12
-rw-r--r--impl/antlr/test-file4
-rw-r--r--impl/antlr/test-system100
-rw-r--r--impl/main.cpp42
-rw-r--r--impl/systems/.long-fixpoint.swpbin0 -> 188416 bytes
-rw-r--r--impl/systems/generate-system.py25
-rw-r--r--impl/systems/long-fixpoint100
-rw-r--r--impl/systems/min-test3
-rw-r--r--impl/systems/random-system1
-rw-r--r--impl/systems/size-ten3
26 files changed, 5421 insertions, 471 deletions
diff --git a/impl/Complete.hpp b/impl/Complete.hpp
new file mode 100644
index 0000000..1cf40af
--- /dev/null
+++ b/impl/Complete.hpp
@@ -0,0 +1,119 @@
+#ifndef COMPLETE_HPP
+#define COMPLETE_HPP
+
+#include <ostream>
+#include <istream>
+
+template<typename T>
+struct Complete {
+ Complete()
+ : _value(0), _infinity(false) { }
+ Complete(const T& value, const bool& infinity)
+ : _value(value), _infinity(infinity) {
+ if (value == 0 && infinity == true) {
+ throw "Zero infinity? Die die die!";
+ }
+ }
+ Complete(const Complete& other)
+ : _value(other._value), _infinity(other._infinity) { }
+
+ Complete& operator=(const Complete& other) {
+ _value = other._value;
+ _infinity = other._infinity;
+ return *this;
+ }
+ Complete& operator+=(const Complete& other) {
+ return (*this) = (*this) + other;
+ }
+ Complete& operator-=(const Complete& other) {
+ return (*this) = (*this) - other;
+ }
+
+ Complete operator-() const {
+ return Complete<T>(- _value, _infinity);
+ }
+ Complete operator+(const Complete& other) const {
+ if (_infinity) {
+ return *this;
+ } else if (other._infinity) {
+ return other;
+ } else {
+ return Complete(_value + other._value, false);
+ }
+ }
+ Complete operator-(const Complete& other) const {
+ return *this + (- other);
+ }
+ Complete operator*(const Complete& other) const {
+ if (_infinity) {
+ return *this;
+ } else if (other._infinity) {
+ return other;
+ } else {
+ return Complete(_value + other._value, false);
+ }
+ }
+
+ bool operator!() const {
+ return _value == 0;
+ }
+ bool operator<(const Complete& other) const {
+ if (*this == other)
+ return false;
+ if (_infinity) {
+ return _value < 0;
+ } else if (other._infinity) {
+ return other._value > 0;
+ } else {
+ return _value < other._value;
+ }
+ }
+ bool operator>(const Complete& other) const {
+ return !(*this < other || *this == other);
+ }
+ bool operator==(const Complete& other) const {
+ if (_infinity) {
+ return other._infinity && ((_value < 0 && other._value < 0) ||
+ (_value > 0 && other._value > 0));
+ } else {
+ return _value == other._value;
+ }
+ }
+ bool operator!=(const Complete& other) const {
+ return !(*this == other);
+ }
+
+ template<typename Z>
+ friend std::istream& operator<<(std::istream&, Complete<Z>&);
+ template<typename Z>
+ friend std::ostream& operator<<(std::ostream&, const Complete<Z>&);
+
+ private:
+ T _value;
+ bool _infinity;
+};
+
+template<typename Z>
+std::istream& operator>>(std::istream& cin, Complete<Z>& num) {
+ Z value;
+ cin >> value;
+ num = Complete<Z>(value, false);
+ return cin;
+}
+
+template<typename Z>
+std::ostream& operator<<(std::ostream& cout, const Complete<Z>& num) {
+ if (num._infinity) {
+ cout << (num._value > 0 ? "inf" : "-inf");
+ } else {
+ cout << num._value;
+ }
+ return cout;
+}
+
+template<>
+Complete<int> infinity() {
+ return Complete<int>(1, true);
+}
+
+#endif
diff --git a/impl/EquationSystem.g b/impl/EquationSystem.g
index 6db7045..3a6598a 100644
--- a/impl/EquationSystem.g
+++ b/impl/EquationSystem.g
@@ -3,27 +3,34 @@ grammar EquationSystem;
options {
language=C;
output=AST;
+ backtrack=true;
}
tokens {
- SYSTEM = 'system' ;
PLUS = '+' ;
SUB = '-' ;
MULT = '*' ;
+ COMMA = ';' ;
+ GUARD = 'guard' ;
+ GREATER_EQUAL = '>=' ;
+ QUESTION_MARK = '?' ;
MAXIMUM = 'max' ;
MINIMUM = 'min' ;
NEWLINE = '\n' ;
}
-equation_system : equation ( NEWLINE! + equation )* (NEWLINE!) *;
-equation : VARIABLE '='! maxExpr;
+equation_system : equation ( NEWLINE! + equation )* (NEWLINE!)* ;
+equation : VARIABLE '='! maxExpr ;
-maxExpr : MAXIMUM^ '('! minExpr ( ','! minExpr )* ')'! | minExpr;
+maxExpr : MAXIMUM^ '('! minExpr ( ','! minExpr )* ')'! | minExpr ;
minExpr : MINIMUM^ '('! maxExpr ( ','! maxExpr )* ')'! | expr ;
-expr : term ( (PLUS | MULT | SUB)^ term )* ;
+expr : '(' expr GREATER_EQUAL expr QUESTION_MARK expr ')' -> ^(GUARD expr expr expr)
+ | term ( (PLUS | MULT | SUB | COMMA)^ expr )* ;
-term : NUMBER | VARIABLE ;
+term : NUMBER
+ | VARIABLE
+ | '('! expr ')'! ;
NUMBER : (DIGIT)+ ;
diff --git a/impl/EquationSystem.hpp b/impl/EquationSystem.hpp
index ac0b3b2..5aaadfb 100644
--- a/impl/EquationSystem.hpp
+++ b/impl/EquationSystem.hpp
@@ -3,7 +3,13 @@
#include <map>
+template<typename T>
+struct EquationSystem;
+
+#include "IdSet.hpp"
#include "Expression.hpp"
+#include "FixpointAlgorithm.hpp"
+
template<typename T>
struct MaxStrategy;
@@ -31,6 +37,9 @@ struct EquationSystem {
const std::vector<Variable<T>*> vars() const {
return _vars;
}
+ const Variable<T>* getVar(unsigned int i) const {
+ return _vars[i];
+ }
unsigned int varCount() const {
return _vars.size();
}
@@ -58,7 +67,7 @@ struct EquationSystem {
MaxStrategy<T> strategy() const {
return MaxStrategy<T>(_max_expressions.size());
}
-
+
VariableAssignment<T> assignment() const {
return VariableAssignment<T>(_vars.size());
}
@@ -69,7 +78,7 @@ struct EquationSystem {
}
return _right_expressions[v.id()];
}
- const Expression<T>*& operator[] (const Variable<T>& v) const {
+ const Expression<T>* operator[] (const Variable<T>& v) const {
if (_right_expressions.size() <= v.id()) {
throw "Out of range";
}
@@ -95,38 +104,27 @@ struct EquationSystem {
VariableAssignment<T> maxFixpoint() const {
unsigned int size = _vars.size();
- VariableAssignment<T> result(size, infinity<T>());
- for (unsigned int i = 0; i < size; ++i) {
- result = (*this)(result);
- }
- result = result.expand((*this)(result), -infinity<T>());
- for (unsigned int i = 0; i < size-1; ++i) {
- result = (*this)(result);
- }
+ VariableAssignment<T> newResult(size, infinity<T>());
+ VariableAssignment<T> result(0);
+ do {
+ result = newResult;
+ newResult = (*this)(result);
+ } while (newResult != result);
return result;
}
- VariableAssignment<T> maxFixpoint(const MaxStrategy<T>& strat) const {
- unsigned int size = _vars.size();
- VariableAssignment<T> result(size, infinity<T>());
- for (unsigned int i = 0; i < size; ++i) {
- result = strat(*this, result);
- }
- result = result.expand(strat(*this, result), -infinity<T>());
- for (unsigned int i = 0; i < size-1; ++i) {
- result = strat(*this, result);
- }
- return result;
+ VariableAssignment<T> maxFixpoint(const MaxStrategy<T>& strat, const FixpointAlgorithm<T>& algo) const {
+ return algo.maxFixpoint(strat, *this);
}
- VariableAssignment<T> minFixpoint() const {
+ VariableAssignment<T> minFixpoint(const FixpointAlgorithm<T>& algo) const {
VariableAssignment<T> rho = assignment();
VariableAssignment<T> lastRho = assignment();
MaxStrategy<T> strat = strategy();
do {
lastRho = rho;
strat = strat.improve(*this, rho);
- rho = maxFixpoint(strat);
+ rho = maxFixpoint(strat, algo);
} while(lastRho != rho);
return rho;
}
diff --git a/impl/Expression.hpp b/impl/Expression.hpp
index 5cf82d4..4798e60 100644
--- a/impl/Expression.hpp
+++ b/impl/Expression.hpp
@@ -22,6 +22,9 @@ struct Expression {
virtual T operator() (const VariableAssignment<T>& assignment) const {
return (*_operator)(_arguments, assignment);
}
+ virtual T operator() (const VariableAssignment<T>& assignment, VariableSet<T>* visited) const {
+ return (*_operator)(_arguments, assignment, visited);
+ }
protected:
Operator<T>* _operator;
std::vector< Expression<T>* > _arguments;
diff --git a/impl/FixpointAlgorithm.hpp b/impl/FixpointAlgorithm.hpp
new file mode 100644
index 0000000..ed97bec
--- /dev/null
+++ b/impl/FixpointAlgorithm.hpp
@@ -0,0 +1,98 @@
+#ifndef FIXPOINT_ALGORITHM_HPP
+#define FIXPOINT_ALGORITHM_HPP
+
+#include "VariableAssignment.hpp"
+
+template<typename T>
+struct EquationSystem;
+template<typename T>
+struct MaxStrategy;
+
+template<typename T>
+struct FixpointAlgorithm {
+ virtual VariableAssignment<T> maxFixpoint(const MaxStrategy<T>&, const EquationSystem<T>&) const = 0;
+};
+
+#include "EquationSystem.hpp"
+#include "MaxStrategy.hpp"
+
+template<typename T>
+struct NaiveFixpoint : public FixpointAlgorithm<T> {
+ virtual VariableAssignment<T> maxFixpoint(const MaxStrategy<T>& strat, const EquationSystem<T>& system) const {
+ unsigned int size = system.varCount();
+ VariableAssignment<T> newResult(size, infinity<T>());
+ VariableAssignment<T> result(0);
+ do {
+ result = newResult;
+ newResult = strat(system, result);
+ } while (newResult != result);
+ return result;
+ }
+};
+
+
+template<typename T>
+struct RecursiveFixpoint : public FixpointAlgorithm<T> {
+ // this is a "VariableAssignment" which actually performs a recursive
+ // call to determine what value to return
+ struct EvaluatingVariableAssignment : public VariableAssignment<T> {
+ EvaluatingVariableAssignment(const MaxStrategy<T>& strategy, const EquationSystem<T>& system)
+ : VariableAssignment<T>(system.varCount(), infinity<T>()),
+ _strategy(strategy), _system(system),
+ _evaluating(NULL),
+ _influence(system.varCount(), IdSet<Variable<T> >(system.varCount())),
+ _stable(system.varCount()) {
+ }
+ virtual T& operator[] (const Variable<T>& x) const {
+ if (_evaluating == NULL) {
+ solve(x);
+ return VariableAssignment<T>::_assignment[x.id()];
+ } else {
+ solve(x);
+ _influence[x].insert(*_evaluating);
+ return VariableAssignment<T>::_assignment[x.id()];
+ }
+ }
+ void solve(const Variable<T>& x) const {
+ if (!_stable.contains(x)) {
+ _stable.insert(x);
+
+ const Variable<T>* oldEval = _evaluating;
+ _evaluating = &x;
+ T t = _strategy(*_system[x], *this);
+ _evaluating = oldEval;
+
+ if (t != VariableAssignment<T>::_assignment[x.id()]) {
+ IdSet<Variable<T> > oldInfluence = _influence[x];
+ _influence[x].clear(); // clear out our idea of what x influences
+ VariableAssignment<T>::_assignment[x.id()] = t;
+
+ _stable.filter(oldInfluence); // whatever x influences needs to be re-evaluated
+
+ for (typename IdSet<Variable<T> >::iterator it = oldInfluence.begin();
+ it != oldInfluence.end();
+ ++it) {
+ solve(*_system.getVar(*it));
+ }
+ }
+ }
+ }
+ private:
+ const MaxStrategy<T>& _strategy;
+ const EquationSystem<T>& _system;
+ mutable const Variable<T>* _evaluating;
+ mutable IdMap<Variable<T>, IdSet<Variable<T> > > _influence;
+ mutable IdSet<Variable<T> > _stable;
+ };
+
+ virtual VariableAssignment<T> maxFixpoint(const MaxStrategy<T>& strat, const EquationSystem<T>& system) const {
+ EvaluatingVariableAssignment assignment(strat, system);
+ VariableAssignment<T> result(system.varCount());
+ for (unsigned int i = 0; i < system.varCount(); ++i) {
+ result[*system.getVar(i)] = assignment[*system.getVar(i)];
+ }
+ return result;
+ }
+};
+
+#endif
diff --git a/impl/IdMap.hpp b/impl/IdMap.hpp
new file mode 100644
index 0000000..b3a87fb
--- /dev/null
+++ b/impl/IdMap.hpp
@@ -0,0 +1,81 @@
+#ifndef ID_MAP_HPP
+#define ID_MAP_HPP
+
+#include <ostream>
+
+template<typename T, typename V>
+struct IdMap {
+ IdMap(unsigned int length, V initial)
+ : _length(length), _assignment(new V[length]) {
+ for (unsigned int i = 0; i < _length; ++i) {
+ _assignment[i] = initial;
+ }
+ }
+ IdMap(const IdMap& other)
+ : _length(other._length), _assignment(new V[other._length]) {
+ for (unsigned int i = 0; i < _length; ++i) {
+ _assignment[i] = other._assignment[i];
+ }
+ }
+ virtual ~IdMap() {
+ delete[] _assignment;
+ }
+ virtual IdMap& operator=(const IdMap& other) {
+ if (_length != other._length) {
+ delete[] _assignment;
+ _length = other._length;
+ _assignment = new V[_length];
+ }
+ for (unsigned int i = 0; i < _length; ++i) {
+ _assignment[i] = other._assignment[i];
+ }
+ return *this;
+ }
+ virtual const V& operator[] (const T& x) const {
+ if (x.id() >= _length) {
+ throw "Array out of bounds";
+ }
+ return _assignment[x.id()];
+ }
+ virtual V& operator[] (const T& x) {
+ if (x.id() >= _length) {
+ throw "Array out of bounds";
+ }
+ return _assignment[x.id()];
+ }
+
+ virtual bool operator==(const IdMap& other) const {
+ if (_length != other._length)
+ return false;
+ for (unsigned int i = 0; i < _length; ++i) {
+ if (_assignment[i] != other._assignment[i]) {
+ return false;
+ }
+ }
+ return true;
+ }
+ virtual bool operator!=(const IdMap& other) const {
+ return !(*this == other);
+ }
+
+
+ template<typename Q,typename Z>
+ friend std::ostream& operator<<(std::ostream& cout, const IdMap<Q, Z>& rho);
+
+ protected:
+ unsigned int _length;
+ V* _assignment;
+};
+
+template<typename T, typename V>
+std::ostream& operator<<(std::ostream& cout, const IdMap<T,V>& rho) {
+ cout << "{";
+ for (unsigned int i = 0; i < rho._length; ++i) {
+ if (i != 0) cout << ", ";
+ cout << i << ": " << rho._assignment[i];
+ }
+ cout << "}";
+ return cout;
+}
+
+#endif
diff --git a/impl/IdSet.hpp b/impl/IdSet.hpp
new file mode 100644
index 0000000..6ced6b3
--- /dev/null
+++ b/impl/IdSet.hpp
@@ -0,0 +1,187 @@
+#ifndef IDSET_HPP
+#define IDSET_HPP
+
+#include <ostream>
+
+#define CELL_TYPE char
+#define CELL_SIZE (8 * sizeof(CELL_TYPE))
+#define DIV_ROUND_UP(NUM, DEM) ((NUM + DEM - 1) / DEM)
+
+template<typename T>
+class IdSet {
+ public:
+ IdSet() : _length(0), _values(NULL) { }
+ IdSet(unsigned int length)
+ : _length(length),
+ _values(new CELL_TYPE[DIV_ROUND_UP(length, CELL_SIZE)]) {
+ for (unsigned int i = 0; i < _length; ++i) {
+ _values[i] = 0;
+ }
+ }
+
+ virtual ~IdSet() {
+ if (_values != NULL)
+ delete[] _values;
+ }
+
+ IdSet(const IdSet& other) {
+ _length = other._length;
+ _values = new CELL_TYPE[DIV_ROUND_UP(_length, CELL_SIZE)];
+ for (unsigned int i = 0; i < _length; ++i) {
+ _values[i] = other._values[i];
+ }
+ }
+
+ IdSet& operator=(const IdSet& other) {
+ if (_length != other._length) {
+ if (_values != NULL)
+ delete[] _values;
+ _length = other._length;
+ _values = new CELL_TYPE[DIV_ROUND_UP(_length, CELL_SIZE)];
+ }
+ for (unsigned int i = 0; i < _length; ++i) {
+ _values[i] = other._values[i];
+ }
+ return *this;
+ }
+
+ bool contains(const T& obj) const {
+ unsigned int id = obj.id();
+ if (id >= _length) {
+ throw "Array out of bounds;";
+ }
+ unsigned int cell = id / CELL_SIZE;
+ unsigned int bit = id % CELL_SIZE;
+ return (_values[cell] & (1 << bit)) != 0;
+ }
+ void insert(const T& obj) {
+ unsigned int id = obj.id();
+ if (id >= _length) {
+ throw "Array out of bounds;";
+ }
+ unsigned int cell = id / CELL_SIZE;
+ unsigned int bit = id % CELL_SIZE;
+ _values[cell] |= (1 << bit);
+ }
+ void remove(const T& obj) {
+ unsigned int id = obj.id();
+ if (id >= _length) {
+ throw "Array out of bounds;";
+ }
+
+ unsigned int cell = id / CELL_SIZE;
+ unsigned int bit = id % CELL_SIZE;
+ if (this->contains(obj)) {
+ std::cout << obj.id() << " -> ";
+ } else {
+ std::cout << "null" << " -> ";
+ }
+ _values[cell] &= ~(1 << bit);
+ if (this->contains(obj)) {
+ std::cout << "still here" << std::endl;
+ } else {
+ std::cout << "Gone!" << std::endl;
+ }
+ }
+ void clear() {
+ for (unsigned int i = 0; i < DIV_ROUND_UP(_length, CELL_SIZE); ++i) {
+ _values[i] = 0;
+ }
+ }
+
+ void absorb(const IdSet& other) {
+ if (_length == other._length) {
+ for (unsigned int i = 0; i < _length; ++i) {
+ _values[i] |= other._values[i];
+ }
+ } else {
+ throw "Sets of different sizes cannot be combined.";
+ }
+ }
+ void filter(const IdSet& other) {
+ if (_length == other._length) {
+ for (unsigned int i = 0; i < DIV_ROUND_UP(_length, CELL_SIZE); ++i) {
+ _values[i] &= ~(other._values[i]);
+ }
+ } else {
+ throw "Sets of different sizes cannot be filtered.";
+ }
+ }
+
+ bool operator==(const IdSet& other) const {
+ if (_length != other._length)
+ return false;
+ for (unsigned int i = 0; i < _length; ++i) {
+ if (_values[i] != other._values[i])
+ return false;
+ }
+ return true;
+ }
+ bool operator!=(const IdSet& other) const {
+ return !(*this == other);
+ }
+
+
+ struct iterator {
+ iterator(const IdSet& set, unsigned int index)
+ : set(set), index(index) {
+ unsigned int cell, bit;
+ cell = index / CELL_SIZE;
+ bit = index % CELL_SIZE;
+ while (index < set._length &&
+ (set._values[cell] & (1 << bit)) == 0) {
+ index++;
+ cell = index / CELL_SIZE;
+ bit = index % CELL_SIZE;
+ }
+ }
+ unsigned int operator*() const {
+ return index;
+ }
+ iterator& operator++() {
+ unsigned int cell, bit;
+ do {
+ index++;
+ if (index == set._length) {
+ return *this;
+ }
+ cell = index / CELL_SIZE;
+ bit = index % CELL_SIZE;
+ } while ((set._values[cell] & (1 << bit)) == 0);
+ return *this;
+ }
+ bool operator==(const iterator& other) {
+ return other.index == index;
+ }
+ bool operator!=(const iterator& other) {
+ return !(*this == other);
+ }
+ private:
+ const IdSet& set;
+ unsigned int index;
+ };
+ iterator begin() const {
+ return iterator(*this, 0);
+ }
+ iterator end() const {
+ return iterator(*this, _length);
+ }
+
+ private:
+ unsigned int _length;
+ CELL_TYPE* _values;
+};
+
+template<typename T>
+std::ostream& operator<<(std::ostream& cout, const IdSet<T>& set) {
+ cout << "{";
+ for (typename IdSet<T>::iterator it = set.begin();
+ it != set.end();
+ ++it) {
+ cout << *it << ", ";
+ }
+ cout << "}";
+ return cout;
+}
+
+#endif
diff --git a/impl/MaxStrategy.hpp b/impl/MaxStrategy.hpp
index f4e4055..a1c50d8 100644
--- a/impl/MaxStrategy.hpp
+++ b/impl/MaxStrategy.hpp
@@ -23,6 +23,10 @@ struct MaxStrategy {
}
}
+ virtual ~MaxStrategy() {
+ delete[] _assignment;
+ }
+
MaxStrategy<T>& operator=(const MaxStrategy& other) {
if (_length != other._length) {
_length = other._length;
@@ -35,9 +39,6 @@ struct MaxStrategy {
return *this;
}
- virtual ~MaxStrategy() {
- delete[] _assignment;
- }
const unsigned int& operator[] (const MaxExpression<T> x) const {
if (x.id() >= _length) {
throw "Array out of bounds";
@@ -64,11 +65,11 @@ struct MaxStrategy {
MaxStrategy<T> improve(const EquationSystem<T>& s, const VariableAssignment<T>& rho) const {
MaxStrategy<T> newStrategy(*this);
for (unsigned int i = 0; i < _length; ++i) {
- const MaxExpression<T>* expr = s.getMax(i);
- const T oldValue = (*this)(*expr, rho);
- std::pair<const T,unsigned int> best = expr->bestStrategy(rho);
+ const MaxExpression<T>& expr = *s.getMax(i);
+ const T oldValue = (*this)(expr, rho);
+ std::pair<const T,unsigned int> best = expr.bestStrategy(rho);
if (best.first > oldValue)
- newStrategy[*expr] = best.second;
+ newStrategy[expr] = best.second;
}
std::cerr << "Strat improvement: ";
if (_length > 0)
diff --git a/impl/Operator.hpp b/impl/Operator.hpp
index c9b4a06..dee7f47 100644
--- a/impl/Operator.hpp
+++ b/impl/Operator.hpp
@@ -9,6 +9,12 @@ float infinity() {
}
#include <vector>
+#include "IdSet.hpp"
+
+template<typename T>
+struct Variable;
+template<typename T>
+struct VariableSet : public IdSet<const Variable<T> > {};
template<typename T>
struct VariableAssignment;
@@ -17,16 +23,20 @@ struct Expression;
template<typename T>
struct Operator {
- virtual T operator() (const std::vector< Expression<T>* >&, const VariableAssignment<T>&) const = 0;
+ virtual ~Operator() { }
+ T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& rho) const {
+ return (*this)(args, rho, (VariableSet<T>*) NULL);
+ }
+ virtual T operator() (const std::vector< Expression<T>* >&, const VariableAssignment<T>&, VariableSet<T>*) const = 0;
};
template<typename T>
struct Maximum : public Operator<T> {
- virtual T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& assignment) const {
+ virtual T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& assignment, VariableSet<T>* visited) const {
T value = -infinity<T>();
for (typename std::vector< Expression<T>* >::const_iterator it = args.begin();
it != args.end();
++it) {
- T temporary = (**it)(assignment);
+ T temporary = (**it)(assignment, visited);
value = (temporary < value ? value : temporary);
}
return value;
@@ -34,13 +44,13 @@ struct Maximum : public Operator<T> {
};
template<typename T>
struct Minimum : public Operator<T> {
- virtual T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& assignment) const {
+ virtual T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& assignment, VariableSet<T>* visited) const {
T value = infinity<T>();
for (typename std::vector< Expression<T>* >::const_iterator it = args.begin();
it != args.end();
++it) {
- T temporary = (**it)(assignment);
- value = (temporary > value ? value : temporary);
+ T temporary = (**it)(assignment, visited);
+ value = (temporary < value ? temporary : value);
}
return value;
}
@@ -50,7 +60,7 @@ template<typename T>
struct Constant : public Operator<T> {
Constant(const T& val)
: _value(val) { }
- T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass) const {
+ T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass, VariableSet<T>*) const {
return _value;
}
private:
@@ -59,10 +69,10 @@ struct Constant : public Operator<T> {
template<typename T>
struct Addition: public Operator<T> {
- T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass) const {
+ T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass, VariableSet<T>* visited) const {
T sum = (*args[0])(ass);
for (unsigned int i = 1, size = args.size(); i < size; ++i) {
- sum += (*args[i])(ass);
+ sum += (*args[i])(ass, visited);
}
return sum;
}
@@ -70,15 +80,39 @@ struct Addition: public Operator<T> {
template<typename T>
struct Subtraction: public Operator<T> {
- T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass) const {
+ T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass, VariableSet<T>* visited) const {
T sum = (*args[0])(ass);
for (unsigned int i = 1, size = args.size(); i < size; ++i) {
- sum -= (*args[i])(ass);
+ sum -= (*args[i])(ass, visited);
}
return sum;
}
};
+template<typename T>
+struct Comma: public Operator<T> {
+ T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass, VariableSet<T>* visited) const {
+ if ((*args[0])(ass, visited) == -infinity<T>()) {
+ std::cout << "Comma - neg inf" << std::endl;
+ return -infinity<T>();
+ } else {
+ std::cout << "Comma - finite" << std::endl;
+ return (*args[1])(ass, visited);
+ }
+ }
+};
+
+template<typename T>
+struct Guard: public Operator<T> {
+ T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass, VariableSet<T>* visited) const {
+ if ((*args[0])(ass, visited) < (*args[1])(ass, visited)) {
+ return -infinity<T>();
+ } else {
+ return (*args[2])(ass, visited);
+ }
+ }
+};
+
#include "VariableAssignment.hpp"
#include "Expression.hpp"
diff --git a/impl/Variable.hpp b/impl/Variable.hpp
index c46db02..5ebbbed 100644
--- a/impl/Variable.hpp
+++ b/impl/Variable.hpp
@@ -16,13 +16,22 @@ struct Variable : public Operator<T> {
std::string name() const {
return _name;
}
- T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass) const {
+ //T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& ass) const {
+ virtual T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& assignment, VariableSet<T>* visited) const {
//assert(args.size() == 0)
- return ass[*this];
+ if (visited != NULL)
+ visited->insert(*this);
+ return assignment[*this];
}
private:
const unsigned int _id;
const std::string _name;
};
+template<typename T>
+std::ostream& operator<<(std::ostream& cout, const Variable<T>& v) {
+ cout << v.name() << "(" << v.id() << ")";
+ return cout;
+}
+
#endif
diff --git a/impl/VariableAssignment.hpp b/impl/VariableAssignment.hpp
index d604a74..9d8137a 100644
--- a/impl/VariableAssignment.hpp
+++ b/impl/VariableAssignment.hpp
@@ -2,84 +2,16 @@
#define VARIABLE_ASSIGNMENT_HPP
#include "Variable.hpp"
-#include <ostream>
+#include "IdMap.hpp"
template<typename T>
-struct VariableAssignment {
+struct VariableAssignment : public IdMap<Variable<T>,T> {
VariableAssignment(unsigned int length)
- : _length(length), _assignment(new T[length]) {
- for (unsigned int i = 0; i < _length; ++i) {
- _assignment[i] = -infinity<T>();
- }
- }
+ : IdMap<Variable<T>,T>(length, -infinity<T>()) { }
VariableAssignment(unsigned int length, const T& initial)
- : _length(length), _assignment(new T[length]) {
- for (unsigned int i = 0; i < _length; ++i) {
- _assignment[i] = initial;
- }
- }
+ : IdMap<Variable<T>,T>(length, initial) { }
VariableAssignment(const VariableAssignment& other)
- : _length(other._length), _assignment(new T[other._length]) {
- for (unsigned int i = 0; i < _length; ++i) {
- _assignment[i] = other._assignment[i];
- }
- }
- ~VariableAssignment() {
- delete[] _assignment;
- }
- VariableAssignment& operator=(const VariableAssignment& other) {
- delete[] _assignment;
- _length = other._length;
- _assignment = new T[_length];
- for (unsigned int i = 0; i < _length; ++i) {
- _assignment[i] = other._assignment[i];
- }
- return *this;
- }
- const T& operator[] (const Variable<T>& x) const {
- if (x.id() >= _length) {
- throw "Array out of bounds";
- }
- return _assignment[x.id()];
- }
- T& operator[] (const Variable<T>& x) {
- if (x.id() >= _length) {
- throw "Array out of bounds";
- }
- return _assignment[x.id()];
- }
-
- VariableAssignment<T> expand(const VariableAssignment<T>& other) {
- return expand(other, infinity<T>());
- }
- VariableAssignment<T> expand(const VariableAssignment<T>& other, const T& value) {
- VariableAssignment<T> expansion(_length);
- for (unsigned int i = 0; i < _length; ++i) {
- if (_assignment[i] == other._assignment[i]) {
- expansion._assignment[i] = _assignment[i];
- } else {
- expansion._assignment[i] = value;
- }
- }
- return expansion;
- }
-
- bool operator==(const VariableAssignment& other) const {
- if (_length != other._length)
- return false;
- for (unsigned int i = 0; i < _length; ++i) {
- if (_assignment[i] != other._assignment[i]) {
- return false;
- }
- }
- return true;
- }
- bool operator!=(const VariableAssignment& other) const {
- return !(*this == other);
- }
- private:
- unsigned int _length;
- T* _assignment;
+ : IdMap<Variable<T>,T>(other) { }
};
#endif
diff --git a/impl/antlr/generate.py b/impl/antlr/generate.py
new file mode 100644
index 0000000..4513fe2
--- /dev/null
+++ b/impl/antlr/generate.py
@@ -0,0 +1,4 @@
+
+print 'x0 = 0'
+for i in xrange(10000):
+ print 'x' + str(i+1) + " = x" + str(i)
diff --git a/impl/antlr/libantlr3c-3.4/Makefile b/impl/antlr/libantlr3c-3.4/Makefile
index 30002a2..1f6a077 100644
--- a/impl/antlr/libantlr3c-3.4/Makefile
+++ b/impl/antlr/libantlr3c-3.4/Makefile
@@ -33,8 +33,8 @@ POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
-build_triplet = i686-pc-linux-gnu
-host_triplet = i686-pc-linux-gnu
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
subdir = .
DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
@@ -121,12 +121,12 @@ DIST_ARCHIVES = $(distdir).tar.gz
GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
-ACLOCAL = ${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run aclocal-1.11
-AMTAR = ${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run tar
+ACLOCAL = ${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run aclocal-1.11
+AMTAR = ${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run tar
AR = ar
-AUTOCONF = ${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run autoconf
-AUTOHEADER = ${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run autoheader
-AUTOMAKE = ${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run automake-1.11
+AUTOCONF = ${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run automake-1.11
AWK = mawk
CC = gcc
CCDEPMODE = depmode=gcc3
@@ -150,7 +150,7 @@ INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LD = /usr/bin/ld
+LD = /usr/bin/ld -m elf_x86_64
LDFLAGS =
LIBOBJS =
LIBS =
@@ -159,7 +159,7 @@ LIPO =
LN_S = ln -s
LTLIBOBJS =
MAINT = #
-MAKEINFO = ${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run makeinfo
+MAKEINFO = ${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
NM = /usr/bin/nm -B
NMEDIT =
@@ -182,10 +182,10 @@ SET_MAKE =
SHELL = /bin/bash
STRIP = strip
VERSION = 3.4
-abs_builddir = /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4
-abs_srcdir = /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4
-abs_top_builddir = /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4
-abs_top_srcdir = /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4
+abs_builddir = /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4
+abs_srcdir = /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4
+abs_top_builddir = /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4
+abs_top_srcdir = /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4
ac_ct_CC = gcc
ac_ct_DUMPBIN =
am__include = include
@@ -194,26 +194,26 @@ am__quote =
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
-build = i686-pc-linux-gnu
+build = x86_64-unknown-linux-gnu
build_alias =
-build_cpu = i686
+build_cpu = x86_64
build_os = linux-gnu
-build_vendor = pc
+build_vendor = unknown
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
-host = i686-pc-linux-gnu
+host = x86_64-unknown-linux-gnu
host_alias =
-host_cpu = i686
+host_cpu = x86_64
host_os = linux-gnu
-host_vendor = pc
+host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
-install_sh = ${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/install-sh
+install_sh = ${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
diff --git a/impl/antlr/libantlr3c-3.4/antlr3config.h b/impl/antlr/libantlr3c-3.4/antlr3config.h
index b1dbd09..eb5d955 100644
--- a/impl/antlr/libantlr3c-3.4/antlr3config.h
+++ b/impl/antlr/libantlr3c-3.4/antlr3config.h
@@ -8,46 +8,46 @@
/* #undef ANTLR3_USE_64BIT */
/* Define to 1 if you have the `accept' function. */
-#define HAVE_ACCEPT 1
+/* #undef HAVE_ACCEPT */
/* Define to 1 if you have the <arpa/nameser.h> header file. */
-#define HAVE_ARPA_NAMESER_H 1
+/* #undef HAVE_ARPA_NAMESER_H */
/* Define to 1 if you have the <ctype.h> header file. */
-#define HAVE_CTYPE_H 1
+/* #undef HAVE_CTYPE_H */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if the system has the type `intptr_t'. */
-#define HAVE_INTPTR_T 1
+/* #undef HAVE_INTPTR_T */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <malloc.h> header file. */
-#define HAVE_MALLOC_H 1
+/* #undef HAVE_MALLOC_H */
/* Define to 1 if you have the `memmove' function. */
-#define HAVE_MEMMOVE 1
+/* #undef HAVE_MEMMOVE */
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `memset' function. */
-#define HAVE_MEMSET 1
+/* #undef HAVE_MEMSET */
/* Define to 1 if you have the <netdb.h> header file. */
-#define HAVE_NETDB_H 1
+/* #undef HAVE_NETDB_H */
/* Define to 1 if you have the <netinet/in.h> header file. */
-#define HAVE_NETINET_IN_H 1
+/* #undef HAVE_NETINET_IN_H */
/* Define to 1 if you have the <netinet/tcp.h> header file. */
-#define HAVE_NETINET_TCP_H 1
+/* #undef HAVE_NETINET_TCP_H */
/* Define to 1 if you have the <resolv.h> header file. */
-#define HAVE_RESOLV_H 1
+/* #undef HAVE_RESOLV_H */
/* Define to 1 if you have the <socket.h> header file. */
/* #undef HAVE_SOCKET_H */
@@ -62,7 +62,7 @@
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strdup' function. */
-#define HAVE_STRDUP 1
+/* #undef HAVE_STRDUP */
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
@@ -74,7 +74,7 @@
/* #undef HAVE_SYS_MALLOC_H */
/* Define to 1 if you have the <sys/socket.h> header file. */
-#define HAVE_SYS_SOCKET_H 1
+/* #undef HAVE_SYS_SOCKET_H */
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
@@ -83,7 +83,7 @@
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if the system has the type `uintptr_t'. */
-#define HAVE_UINTPTR_T 1
+/* #undef HAVE_UINTPTR_T */
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
@@ -164,7 +164,7 @@
/* #undef intptr_t */
/* Define to `unsigned int' if <sys/types.h> does not define. */
-/* #undef size_t */
+#define size_t unsigned int
/* Define to the type of an unsigned integer type of width exactly 16 bits if
such a type exists and the standard includes do not define it. */
diff --git a/impl/antlr/libantlr3c-3.4/config.log b/impl/antlr/libantlr3c-3.4/config.log
index 2e615d8..656285a 100644
--- a/impl/antlr/libantlr3c-3.4/config.log
+++ b/impl/antlr/libantlr3c-3.4/config.log
@@ -10,11 +10,11 @@ generated by GNU Autoconf 2.66. Invocation command line was
## Platform. ##
## --------- ##
-hostname = carlo-laptop
-uname -m = i686
-uname -r = 3.2.0-2-686-pae
+hostname = pc-4w14-0
+uname -m = x86_64
+uname -r = 3.2.0-2-amd64
uname -s = Linux
-uname -v = #1 SMP Thu Mar 29 00:16:59 UTC 2012
+uname -v = #1 SMP Tue Mar 20 18:36:37 UTC 2012
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
@@ -27,10 +27,6 @@ uname -v = #1 SMP Thu Mar 29 00:16:59 UTC 2012
/usr/bin/oslevel = unknown
/bin/universe = unknown
-PATH: /home/carlo/bin
-PATH: /home/carlo/tools/play
-PATH: /home/carlo/bin
-PATH: /home/carlo/tools/play
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
@@ -64,7 +60,7 @@ configure:2954: found /usr/bin/gcc
configure:2965: result: gcc
configure:2996: checking for C compiler version
configure:3005: gcc --version >&5
-gcc (Debian 4.6.3-1) 4.6.3
+gcc (Debian 4.6.3-4) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@@ -73,11 +69,11 @@ configure:3016: $? = 0
configure:3005: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
-COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.6/lto-wrapper
-Target: i486-linux-gnu
-Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
+COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
+Target: x86_64-linux-gnu
+Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-4' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
-gcc version 4.6.3 (Debian 4.6.3-1)
+gcc version 4.6.3 (Debian 4.6.3-4)
configure:3016: $? = 0
configure:3005: gcc -V >&5
gcc: error: unrecognized option '-V'
@@ -128,9 +124,9 @@ configure:3656: result: gcc3
configure:3672: checking whether to enable maintainer-specific portions of Makefiles
configure:3681: result: no
configure:3723: checking build system type
-configure:3737: result: i686-pc-linux-gnu
+configure:3737: result: x86_64-unknown-linux-gnu
configure:3757: checking host system type
-configure:3770: result: i686-pc-linux-gnu
+configure:3770: result: x86_64-unknown-linux-gnu
configure:3811: checking how to print strings
configure:3838: result: printf
configure:3859: checking for a sed that does not truncate output
@@ -151,7 +147,7 @@ configure:4448: checking the name lister (/usr/bin/nm -B) interface
configure:4455: gcc -c -g -O2 conftest.c >&5
configure:4458: /usr/bin/nm -B "conftest.o"
configure:4461: output
-00000000 B some_variable
+0000000000000000 B some_variable
configure:4468: result: BSD nm
configure:4471: checking whether ln -s works
configure:4475: result: yes
@@ -185,6 +181,8 @@ configure:5538: $? = 0
configure:5592: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:5595: $? = 0
configure:5633: result: ok
+configure:5729: gcc -c -g -O2 conftest.c >&5
+configure:5732: $? = 0
configure:6474: checking how to run the C preprocessor
configure:6505: gcc -E conftest.c
configure:6505: $? = 0
@@ -292,7 +290,7 @@ configure:7690: $? = 0
configure:7712: result: yes
configure:7720: checking if gcc supports -c -o file.o
configure:7767: result: yes
-configure:7800: checking whether the gcc linker (/usr/bin/ld) supports shared libraries
+configure:7800: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:8875: result: yes
configure:8912: checking whether -lc should be explicitly linked in
configure:8920: gcc -c -g -O2 conftest.c >&5
@@ -314,7 +312,7 @@ configure:10518: checking whether to build shared libraries
configure:10539: result: yes
configure:10542: checking whether to build static libraries
configure:10546: result: yes
-configure:10587: checking compiler flags required for compiling ANTLR with gcc C compiler on host i686-pc-linux-gnu
+configure:10587: checking compiler flags required for compiling ANTLR with gcc C compiler on host x86_64-unknown-linux-gnu
configure:10661: result: -m32 -O2 -Wall
configure:10677: checking whether ln -s works
configure:10681: result: yes
@@ -324,23 +322,183 @@ configure:10727: checking for sys/types.h
configure:10727: result: yes
configure:10727: checking for netinet/in.h
configure:10727: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10727: $? = 0
-configure:10727: result: yes
+conftest.c:25:25: fatal error: sys/types.h: No such file or directory
+compilation terminated.
+configure:10727: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| /* end confdefs.h. */
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_NETINET_IN_H
+| # include <netinet/in.h> /* inet_ functions / structs */
+| #endif
+| #ifdef HAVE_ARPA_NAMESER_H
+| # include <arpa/nameser.h> /* DNS HEADER struct */
+| #endif
+| #ifdef HAVE_NETDB_H
+| # include <netdb.h>
+| #endif
+|
+| #include <netinet/in.h>
+configure:10727: result: no
configure:10727: checking for arpa/nameser.h
configure:10727: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10727: $? = 0
-configure:10727: result: yes
+conftest.c:25:25: fatal error: sys/types.h: No such file or directory
+compilation terminated.
+configure:10727: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| /* end confdefs.h. */
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_NETINET_IN_H
+| # include <netinet/in.h> /* inet_ functions / structs */
+| #endif
+| #ifdef HAVE_ARPA_NAMESER_H
+| # include <arpa/nameser.h> /* DNS HEADER struct */
+| #endif
+| #ifdef HAVE_NETDB_H
+| # include <netdb.h>
+| #endif
+|
+| #include <arpa/nameser.h>
+configure:10727: result: no
configure:10727: checking for netdb.h
configure:10727: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10727: $? = 0
-configure:10727: result: yes
+conftest.c:25:25: fatal error: sys/types.h: No such file or directory
+compilation terminated.
+configure:10727: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| /* end confdefs.h. */
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_NETINET_IN_H
+| # include <netinet/in.h> /* inet_ functions / structs */
+| #endif
+| #ifdef HAVE_ARPA_NAMESER_H
+| # include <arpa/nameser.h> /* DNS HEADER struct */
+| #endif
+| #ifdef HAVE_NETDB_H
+| # include <netdb.h>
+| #endif
+|
+| #include <netdb.h>
+configure:10727: result: no
configure:10727: checking for resolv.h
configure:10727: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10727: $? = 0
-configure:10727: result: yes
+conftest.c:25:25: fatal error: sys/types.h: No such file or directory
+compilation terminated.
+configure:10727: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| /* end confdefs.h. */
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_NETINET_IN_H
+| # include <netinet/in.h> /* inet_ functions / structs */
+| #endif
+| #ifdef HAVE_ARPA_NAMESER_H
+| # include <arpa/nameser.h> /* DNS HEADER struct */
+| #endif
+| #ifdef HAVE_NETDB_H
+| # include <netdb.h>
+| #endif
+|
+| #include <resolv.h>
+configure:10727: result: no
configure:10753: checking for sys/malloc.h
configure:10753: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c:36:24: fatal error: sys/malloc.h: No such file or directory
+conftest.c:32:24: fatal error: sys/malloc.h: No such file or directory
compilation terminated.
configure:10753: $? = 1
configure: failed program was:
@@ -366,10 +524,6 @@ configure: failed program was:
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_NETINET_IN_H 1
-| #define HAVE_ARPA_NAMESER_H 1
-| #define HAVE_NETDB_H 1
-| #define HAVE_RESOLV_H 1
| /* end confdefs.h. */
| #ifdef HAVE_SYS_MALLOC_H
| #include <sys/malloc.h>
@@ -383,8 +537,45 @@ configure: failed program was:
configure:10753: result: no
configure:10753: checking for malloc.h
configure:10753: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10753: $? = 0
-configure:10753: result: yes
+In file included from /usr/include/malloc.h:24:0,
+ from conftest.c:32:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10753: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| /* end confdefs.h. */
+| #ifdef HAVE_SYS_MALLOC_H
+| #include <sys/malloc.h>
+| #endif
+| #ifdef HAVE_MALLOC_H
+| #include <malloc.h>
+| #endif
+|
+|
+| #include <malloc.h>
+configure:10753: result: no
configure:10772: checking for stdarg.h
configure:10772: gcc -c -m32 -O2 -Wall conftest.c >&5
configure:10772: $? = 0
@@ -393,19 +584,128 @@ configure:10789: checking for sys/stat.h
configure:10789: result: yes
configure:10806: checking for ctype.h
configure:10806: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10806: $? = 0
-configure:10806: result: yes
+In file included from /usr/include/ctype.h:27:0,
+ from conftest.c:31:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10806: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| /* end confdefs.h. */
+| #ifdef HAVE_CTYPE_H
+| #include <ctype.h>
+| #endif
+|
+|
+| #include <ctype.h>
+configure:10806: result: no
configure:10823: checking for netinet/tcp.h
configure:10823: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10823: $? = 0
-configure:10823: result: yes
+In file included from /usr/include/netinet/tcp.h:35:0,
+ from conftest.c:31:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10823: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| /* end confdefs.h. */
+| #ifdef HAVE_NETINET_TCP_H
+| #include <netinet/tcp.h>
+| #endif
+|
+|
+| #include <netinet/tcp.h>
+configure:10823: result: no
configure:10841: checking for sys/socket.h
configure:10841: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10841: $? = 0
-configure:10841: result: yes
+conftest.c:34:24: fatal error: sys/socket.h: No such file or directory
+compilation terminated.
+configure:10841: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| /* end confdefs.h. */
+| #ifdef HAVE_SYS_SOCKET_H
+| #include <sys/socket.h>
+| #endif
+| #ifdef HAVE_SOCKET_H
+| #include <socket.h>
+| #endif
+|
+|
+| #include <sys/socket.h>
+configure:10841: result: no
configure:10841: checking for socket.h
configure:10841: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c:42:20: fatal error: socket.h: No such file or directory
+conftest.c:34:20: fatal error: socket.h: No such file or directory
compilation terminated.
configure:10841: $? = 1
configure: failed program was:
@@ -431,16 +731,8 @@ configure: failed program was:
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_NETINET_IN_H 1
-| #define HAVE_ARPA_NAMESER_H 1
-| #define HAVE_NETDB_H 1
-| #define HAVE_RESOLV_H 1
-| #define HAVE_MALLOC_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_STAT_H 1
-| #define HAVE_CTYPE_H 1
-| #define HAVE_NETINET_TCP_H 1
-| #define HAVE_SYS_SOCKET_H 1
| /* end confdefs.h. */
| #ifdef HAVE_SYS_SOCKET_H
| #include <sys/socket.h>
@@ -455,15 +747,15 @@ configure:10841: result: no
configure:10860: checking for an ANSI C-conforming const
configure:10925: gcc -c -m32 -O2 -Wall conftest.c >&5
conftest.c: In function 'main':
-conftest.c:63:10: warning: 't' is used uninitialized in this function [-Wuninitialized]
+conftest.c:55:10: warning: 't' is used uninitialized in this function [-Wuninitialized]
configure:10925: $? = 0
configure:10932: result: yes
configure:10940: checking for size_t
configure:10940: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10940: $? = 0
-configure:10940: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:70:21: error: expected expression before ')' token
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:26:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
configure:10940: $? = 1
configure: failed program was:
| /* confdefs.h */
@@ -488,16 +780,8 @@ configure: failed program was:
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_NETINET_IN_H 1
-| #define HAVE_ARPA_NAMESER_H 1
-| #define HAVE_NETDB_H 1
-| #define HAVE_RESOLV_H 1
-| #define HAVE_MALLOC_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_STAT_H 1
-| #define HAVE_CTYPE_H 1
-| #define HAVE_NETINET_TCP_H 1
-| #define HAVE_SYS_SOCKET_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
@@ -535,21 +819,322 @@ configure: failed program was:
| int
| main ()
| {
-| if (sizeof ((size_t)))
-| return 0;
+| if (sizeof (size_t))
+| return 0;
| ;
| return 0;
| }
-configure:10940: result: yes
+configure:10940: result: no
configure:10951: checking for int8_t
configure:10951: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
-configure:10951: $? = 0
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10951: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 8 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (int8_t) (((((int8_t) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
configure:10951: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: error: size of array 'test_array' is negative
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10951: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 8 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (int) (((((int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10951: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10951: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 8 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (long int) (((((long int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10951: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10951: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 8 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (long long int) (((((long long int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10951: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
configure:10951: $? = 1
configure: failed program was:
| /* confdefs.h */
@@ -574,16 +1159,9 @@ configure: failed program was:
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_NETINET_IN_H 1
-| #define HAVE_ARPA_NAMESER_H 1
-| #define HAVE_NETDB_H 1
-| #define HAVE_RESOLV_H 1
-| #define HAVE_MALLOC_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_STAT_H 1
-| #define HAVE_CTYPE_H 1
-| #define HAVE_NETINET_TCP_H 1
-| #define HAVE_SYS_SOCKET_H 1
+| #define size_t unsigned int
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
@@ -618,27 +1196,175 @@ configure: failed program was:
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
-| enum { N = 8 / 2 - 1 };
+| enum { N = 8 / 2 - 1 };
| int
| main ()
| {
-| static int test_array [1 - 2 * !((int8_t) (((((int8_t) 1 << N) << N) - 1) * 2 + 1)
-| < (int8_t) (((((int8_t) 1 << N) << N) - 1) * 2 + 2))];
+| static int test_array [1 - 2 * !(0 < (short int) (((((short int) 1 << N) << N) - 1) * 2 + 1))];
| test_array [0] = 0
|
| ;
| return 0;
| }
-configure:10951: result: yes
+configure:10951: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10951: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 8 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (signed char) (((((signed char) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10951: result: no
configure:10962: checking for int16_t
configure:10962: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
-configure:10962: $? = 0
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10962: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 16 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
configure:10962: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: error: size of array 'test_array' is negative
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
configure:10962: $? = 1
configure: failed program was:
| /* confdefs.h */
@@ -663,16 +1389,9 @@ configure: failed program was:
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_NETINET_IN_H 1
-| #define HAVE_ARPA_NAMESER_H 1
-| #define HAVE_NETDB_H 1
-| #define HAVE_RESOLV_H 1
-| #define HAVE_MALLOC_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_STAT_H 1
-| #define HAVE_CTYPE_H 1
-| #define HAVE_NETINET_TCP_H 1
-| #define HAVE_SYS_SOCKET_H 1
+| #define size_t unsigned int
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
@@ -707,29 +1426,403 @@ configure: failed program was:
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
-| enum { N = 16 / 2 - 1 };
+| enum { N = 16 / 2 - 1 };
| int
| main ()
| {
-| static int test_array [1 - 2 * !((int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 1)
-| < (int16_t) (((((int16_t) 1 << N) << N) - 1) * 2 + 2))];
+| static int test_array [1 - 2 * !(0 < (int) (((((int) 1 << N) << N) - 1) * 2 + 1))];
| test_array [0] = 0
|
| ;
| return 0;
| }
-configure:10962: result: yes
+configure:10962: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10962: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 16 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (long int) (((((long int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10962: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10962: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 16 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (long long int) (((((long long int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10962: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10962: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 16 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (short int) (((((short int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10962: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10962: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 16 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (signed char) (((((signed char) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10962: result: no
configure:10973: checking for int32_t
configure:10973: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
-configure:10973: $? = 0
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10973: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 32 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
configure:10973: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:72:53: warning: integer overflow in expression [-Woverflow]
-conftest.c:71:12: error: size of array 'test_array' is negative
-conftest.c:71:12: error: storage size of 'test_array' isn't constant
-conftest.c:71:12: warning: unused variable 'test_array' [-Wunused-variable]
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
configure:10973: $? = 1
configure: failed program was:
| /* confdefs.h */
@@ -754,16 +1847,9 @@ configure: failed program was:
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_NETINET_IN_H 1
-| #define HAVE_ARPA_NAMESER_H 1
-| #define HAVE_NETDB_H 1
-| #define HAVE_RESOLV_H 1
-| #define HAVE_MALLOC_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_STAT_H 1
-| #define HAVE_CTYPE_H 1
-| #define HAVE_NETINET_TCP_H 1
-| #define HAVE_SYS_SOCKET_H 1
+| #define size_t unsigned int
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
@@ -798,29 +1884,555 @@ configure: failed program was:
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
-| enum { N = 32 / 2 - 1 };
+| enum { N = 32 / 2 - 1 };
| int
| main ()
| {
-| static int test_array [1 - 2 * !((int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 1)
-| < (int32_t) (((((int32_t) 1 << N) << N) - 1) * 2 + 2))];
+| static int test_array [1 - 2 * !(0 < (int) (((((int) 1 << N) << N) - 1) * 2 + 1))];
| test_array [0] = 0
|
| ;
| return 0;
| }
-configure:10973: result: yes
+configure:10973: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10973: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 32 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (long int) (((((long int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10973: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10973: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 32 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (long long int) (((((long long int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10973: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10973: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 32 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (short int) (((((short int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10973: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10973: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 32 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (signed char) (((((signed char) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10973: result: no
configure:10984: checking for int64_t
configure:10984: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
-configure:10984: $? = 0
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10984: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 64 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
configure:10984: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:72:53: warning: integer overflow in expression [-Woverflow]
-conftest.c:71:12: error: size of array 'test_array' is negative
-conftest.c:71:12: error: storage size of 'test_array' isn't constant
-conftest.c:71:12: warning: unused variable 'test_array' [-Wunused-variable]
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10984: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 64 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (int) (((((int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10984: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10984: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 64 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (long int) (((((long int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10984: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
configure:10984: $? = 1
configure: failed program was:
| /* confdefs.h */
@@ -845,16 +2457,9 @@ configure: failed program was:
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_NETINET_IN_H 1
-| #define HAVE_ARPA_NAMESER_H 1
-| #define HAVE_NETDB_H 1
-| #define HAVE_RESOLV_H 1
-| #define HAVE_MALLOC_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_STAT_H 1
-| #define HAVE_CTYPE_H 1
-| #define HAVE_NETINET_TCP_H 1
-| #define HAVE_SYS_SOCKET_H 1
+| #define size_t unsigned int
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
@@ -889,24 +2494,175 @@ configure: failed program was:
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
-| enum { N = 64 / 2 - 1 };
+| enum { N = 64 / 2 - 1 };
| int
| main ()
| {
-| static int test_array [1 - 2 * !((int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 1)
-| < (int64_t) (((((int64_t) 1 << N) << N) - 1) * 2 + 2))];
+| static int test_array [1 - 2 * !(0 < (long long int) (((((long long int) 1 << N) << N) - 1) * 2 + 1))];
| test_array [0] = 0
|
| ;
| return 0;
| }
-configure:10984: result: yes
+configure:10984: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10984: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 64 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (short int) (((((short int) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10984: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:10984: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| enum { N = 64 / 2 - 1 };
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(0 < (signed char) (((((signed char) 1 << N) << N) - 1) * 2 + 1))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:10984: result: no
configure:10996: checking for intptr_t
configure:10996: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:10996: $? = 0
-configure:10996: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:70:23: error: expected expression before ')' token
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
configure:10996: $? = 1
configure: failed program was:
| /* confdefs.h */
@@ -931,16 +2687,9 @@ configure: failed program was:
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_NETINET_IN_H 1
-| #define HAVE_ARPA_NAMESER_H 1
-| #define HAVE_NETDB_H 1
-| #define HAVE_RESOLV_H 1
-| #define HAVE_MALLOC_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_STAT_H 1
-| #define HAVE_CTYPE_H 1
-| #define HAVE_NETINET_TCP_H 1
-| #define HAVE_SYS_SOCKET_H 1
+| #define size_t unsigned int
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
@@ -978,42 +2727,2051 @@ configure: failed program was:
| int
| main ()
| {
-| if (sizeof ((intptr_t)))
-| return 0;
+| if (sizeof (intptr_t))
+| return 0;
+| ;
+| return 0;
+| }
+configure:10996: result: no
+configure:11016: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11016: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (int))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11016: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11016: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (long int))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11016: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11016: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (long long int))];
+| test_array [0] = 0
+|
| ;
| return 0;
| }
-configure:10996: result: yes
configure:11030: checking for uint8_t
configure:11030: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
-configure:11030: $? = 0
-configure:11030: result: yes
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11030: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((uint8_t) -1 >> (8 / 2 - 1)) >> (8 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11030: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11030: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned int) -1 >> (8 / 2 - 1)) >> (8 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11030: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11030: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned long int) -1 >> (8 / 2 - 1)) >> (8 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11030: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11030: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned long long int) -1 >> (8 / 2 - 1)) >> (8 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11030: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11030: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned short int) -1 >> (8 / 2 - 1)) >> (8 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11030: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11030: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned char) -1 >> (8 / 2 - 1)) >> (8 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11030: result: no
configure:11044: checking for uint16_t
configure:11044: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
-configure:11044: $? = 0
-configure:11044: result: yes
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11044: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((uint16_t) -1 >> (16 / 2 - 1)) >> (16 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11044: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11044: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned int) -1 >> (16 / 2 - 1)) >> (16 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11044: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11044: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned long int) -1 >> (16 / 2 - 1)) >> (16 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11044: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11044: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned long long int) -1 >> (16 / 2 - 1)) >> (16 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11044: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11044: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned short int) -1 >> (16 / 2 - 1)) >> (16 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11044: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11044: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned char) -1 >> (16 / 2 - 1)) >> (16 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11044: result: no
configure:11056: checking for uint32_t
configure:11056: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
-configure:11056: $? = 0
-configure:11056: result: yes
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11056: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((uint32_t) -1 >> (32 / 2 - 1)) >> (32 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11056: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11056: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned int) -1 >> (32 / 2 - 1)) >> (32 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11056: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11056: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned long int) -1 >> (32 / 2 - 1)) >> (32 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11056: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11056: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned long long int) -1 >> (32 / 2 - 1)) >> (32 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11056: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11056: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned short int) -1 >> (32 / 2 - 1)) >> (32 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11056: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11056: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned char) -1 >> (32 / 2 - 1)) >> (32 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11056: result: no
configure:11070: checking for uint64_t
configure:11070: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:12: warning: variable 'test_array' set but not used [-Wunused-but-set-variable]
-configure:11070: $? = 0
-configure:11070: result: yes
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11070: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((uint64_t) -1 >> (64 / 2 - 1)) >> (64 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11070: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11070: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned int) -1 >> (64 / 2 - 1)) >> (64 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11070: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11070: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned long int) -1 >> (64 / 2 - 1)) >> (64 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11070: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11070: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned long long int) -1 >> (64 / 2 - 1)) >> (64 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11070: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11070: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned short int) -1 >> (64 / 2 - 1)) >> (64 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11070: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11070: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(((unsigned char) -1 >> (64 / 2 - 1)) >> (64 / 2 - 1) == 3)];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11070: result: no
configure:11085: checking for uintptr_t
configure:11085: gcc -c -m32 -O2 -Wall conftest.c >&5
-configure:11085: $? = 0
-configure:11085: gcc -c -m32 -O2 -Wall conftest.c >&5
-conftest.c: In function 'main':
-conftest.c:71:24: error: expected expression before ')' token
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
configure:11085: $? = 1
configure: failed program was:
| /* confdefs.h */
@@ -1038,17 +4796,234 @@ configure: failed program was:
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_NETINET_IN_H 1
-| #define HAVE_ARPA_NAMESER_H 1
-| #define HAVE_NETDB_H 1
-| #define HAVE_RESOLV_H 1
-| #define HAVE_MALLOC_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_SYS_STAT_H 1
-| #define HAVE_CTYPE_H 1
-| #define HAVE_NETINET_TCP_H 1
-| #define HAVE_SYS_SOCKET_H 1
-| #define HAVE_INTPTR_T 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| if (sizeof (uintptr_t))
+| return 0;
+| ;
+| return 0;
+| }
+configure:11085: result: no
+configure:11106: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11106: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (unsigned int))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11106: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11106: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| #include <stdio.h>
+| #ifdef HAVE_SYS_TYPES_H
+| # include <sys/types.h>
+| #endif
+| #ifdef HAVE_SYS_STAT_H
+| # include <sys/stat.h>
+| #endif
+| #ifdef STDC_HEADERS
+| # include <stdlib.h>
+| # include <stddef.h>
+| #else
+| # ifdef HAVE_STDLIB_H
+| # include <stdlib.h>
+| # endif
+| #endif
+| #ifdef HAVE_STRING_H
+| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+| # include <memory.h>
+| # endif
+| # include <string.h>
+| #endif
+| #ifdef HAVE_STRINGS_H
+| # include <strings.h>
+| #endif
+| #ifdef HAVE_INTTYPES_H
+| # include <inttypes.h>
+| #endif
+| #ifdef HAVE_STDINT_H
+| # include <stdint.h>
+| #endif
+| #ifdef HAVE_UNISTD_H
+| # include <unistd.h>
+| #endif
+| int
+| main ()
+| {
+| static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (unsigned long int))];
+| test_array [0] = 0
+|
+| ;
+| return 0;
+| }
+configure:11106: gcc -c -m32 -O2 -Wall conftest.c >&5
+In file included from /usr/include/stdio.h:28:0,
+ from conftest.c:27:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11106: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
@@ -1086,35 +5061,320 @@ configure: failed program was:
| int
| main ()
| {
-| if (sizeof ((uintptr_t)))
-| return 0;
+| static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (unsigned long long int))];
+| test_array [0] = 0
+|
| ;
| return 0;
| }
-configure:11085: result: yes
configure:11120: checking for inline
configure:11136: gcc -c -m32 -O2 -Wall conftest.c >&5
configure:11136: $? = 0
configure:11144: result: inline
configure:11168: checking for memmove
configure:11168: gcc -o conftest -m32 -O2 -Wall conftest.c >&5
-conftest.c:59:6: warning: conflicting types for built-in function 'memmove' [enabled by default]
-configure:11168: $? = 0
-configure:11168: result: yes
+In file included from /usr/include/limits.h:27:0,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/limits.h:169,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/syslimits.h:7,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/limits.h:34,
+ from conftest.c:37:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11168: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
+| For example, HP-UX 11i <limits.h> declares gettimeofday. */
+| #define memmove innocuous_memmove
+|
+| /* System header to define __stub macros and hopefully few prototypes,
+| which can conflict with char memmove (); below.
+| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+| <limits.h> exists even on freestanding compilers. */
+|
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+|
+| #undef memmove
+|
+| /* Override any GCC internal prototype to avoid an error.
+| Use char because int might match the return type of a GCC
+| builtin and then its argument prototype would still apply. */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char memmove ();
+| /* The GNU C library defines this for functions which it implements
+| to always fail with ENOSYS. Some functions are actually named
+| something starting with __ and the normal name is an alias. */
+| #if defined __stub_memmove || defined __stub___memmove
+| choke me
+| #endif
+|
+| int
+| main ()
+| {
+| return memmove ();
+| ;
+| return 0;
+| }
+configure:11168: result: no
configure:11168: checking for memset
configure:11168: gcc -o conftest -m32 -O2 -Wall conftest.c >&5
-conftest.c:60:6: warning: conflicting types for built-in function 'memset' [enabled by default]
-configure:11168: $? = 0
-configure:11168: result: yes
+In file included from /usr/include/limits.h:27:0,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/limits.h:169,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/syslimits.h:7,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/limits.h:34,
+ from conftest.c:37:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11168: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| /* Define memset to an innocuous variant, in case <limits.h> declares memset.
+| For example, HP-UX 11i <limits.h> declares gettimeofday. */
+| #define memset innocuous_memset
+|
+| /* System header to define __stub macros and hopefully few prototypes,
+| which can conflict with char memset (); below.
+| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+| <limits.h> exists even on freestanding compilers. */
+|
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+|
+| #undef memset
+|
+| /* Override any GCC internal prototype to avoid an error.
+| Use char because int might match the return type of a GCC
+| builtin and then its argument prototype would still apply. */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char memset ();
+| /* The GNU C library defines this for functions which it implements
+| to always fail with ENOSYS. Some functions are actually named
+| something starting with __ and the normal name is an alias. */
+| #if defined __stub_memset || defined __stub___memset
+| choke me
+| #endif
+|
+| int
+| main ()
+| {
+| return memset ();
+| ;
+| return 0;
+| }
+configure:11168: result: no
configure:11168: checking for strdup
configure:11168: gcc -o conftest -m32 -O2 -Wall conftest.c >&5
-conftest.c:61:6: warning: conflicting types for built-in function 'strdup' [enabled by default]
-configure:11168: $? = 0
-configure:11168: result: yes
+In file included from /usr/include/limits.h:27:0,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/limits.h:169,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/syslimits.h:7,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/limits.h:34,
+ from conftest.c:37:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11168: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| /* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
+| For example, HP-UX 11i <limits.h> declares gettimeofday. */
+| #define strdup innocuous_strdup
+|
+| /* System header to define __stub macros and hopefully few prototypes,
+| which can conflict with char strdup (); below.
+| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+| <limits.h> exists even on freestanding compilers. */
+|
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+|
+| #undef strdup
+|
+| /* Override any GCC internal prototype to avoid an error.
+| Use char because int might match the return type of a GCC
+| builtin and then its argument prototype would still apply. */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char strdup ();
+| /* The GNU C library defines this for functions which it implements
+| to always fail with ENOSYS. Some functions are actually named
+| something starting with __ and the normal name is an alias. */
+| #if defined __stub_strdup || defined __stub___strdup
+| choke me
+| #endif
+|
+| int
+| main ()
+| {
+| return strdup ();
+| ;
+| return 0;
+| }
+configure:11168: result: no
configure:11168: checking for accept
configure:11168: gcc -o conftest -m32 -O2 -Wall conftest.c >&5
-configure:11168: $? = 0
-configure:11168: result: yes
+In file included from /usr/include/limits.h:27:0,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/limits.h:169,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/syslimits.h:7,
+ from /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/limits.h:34,
+ from conftest.c:37:
+/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
+compilation terminated.
+configure:11168: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME "libantlr3c"
+| #define PACKAGE_TARNAME "libantlr3c"
+| #define PACKAGE_VERSION "3.4"
+| #define PACKAGE_STRING "libantlr3c 3.4"
+| #define PACKAGE_BUGREPORT "jimi@temporal-wave.com"
+| #define PACKAGE_URL ""
+| #define PACKAGE "libantlr3c"
+| #define VERSION "3.4"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| #define LT_OBJDIR ".libs/"
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_STDARG_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define size_t unsigned int
+| /* end confdefs.h. */
+| /* Define accept to an innocuous variant, in case <limits.h> declares accept.
+| For example, HP-UX 11i <limits.h> declares gettimeofday. */
+| #define accept innocuous_accept
+|
+| /* System header to define __stub macros and hopefully few prototypes,
+| which can conflict with char accept (); below.
+| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+| <limits.h> exists even on freestanding compilers. */
+|
+| #ifdef __STDC__
+| # include <limits.h>
+| #else
+| # include <assert.h>
+| #endif
+|
+| #undef accept
+|
+| /* Override any GCC internal prototype to avoid an error.
+| Use char because int might match the return type of a GCC
+| builtin and then its argument prototype would still apply. */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| char accept ();
+| /* The GNU C library defines this for functions which it implements
+| to always fail with ENOSYS. Some functions are actually named
+| something starting with __ and the normal name is an alias. */
+| #if defined __stub_accept || defined __stub___accept
+| choke me
+| #endif
+|
+| int
+| main ()
+| {
+| return accept ();
+| ;
+| return 0;
+| }
+configure:11168: result: no
configure:11307: creating ./config.status
## ---------------------- ##
@@ -1130,29 +5390,30 @@ generated by GNU Autoconf 2.66. Invocation command line was
CONFIG_COMMANDS =
$ ./config.status
-on carlo-laptop
+on pc-4w14-0
-config.status:1086: creating Makefile
-config.status:1086: creating antlr3config.h
-config.status:1314: executing depfiles commands
-config.status:1314: executing libtool commands
+config.status:1073: creating Makefile
+config.status:1073: creating antlr3config.h
+config.status:1253: antlr3config.h is unchanged
+config.status:1301: executing depfiles commands
+config.status:1301: executing libtool commands
## ---------------- ##
## Cache variables. ##
## ---------------- ##
-ac_cv_build=i686-pc-linux-gnu
+ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_c_inline=inline
-ac_cv_c_int16_t=yes
-ac_cv_c_int32_t=yes
-ac_cv_c_int64_t=yes
-ac_cv_c_int8_t=yes
-ac_cv_c_uint16_t=yes
-ac_cv_c_uint32_t=yes
-ac_cv_c_uint64_t=yes
-ac_cv_c_uint8_t=yes
+ac_cv_c_int16_t=no
+ac_cv_c_int32_t=no
+ac_cv_c_int64_t=no
+ac_cv_c_int8_t=no
+ac_cv_c_uint16_t=no
+ac_cv_c_uint32_t=no
+ac_cv_c_uint64_t=no
+ac_cv_c_uint8_t=no
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
@@ -1171,20 +5432,20 @@ ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
-ac_cv_func_accept=yes
-ac_cv_func_memmove=yes
-ac_cv_func_memset=yes
-ac_cv_func_strdup=yes
-ac_cv_header_arpa_nameser_h=yes
-ac_cv_header_ctype_h=yes
+ac_cv_func_accept=no
+ac_cv_func_memmove=no
+ac_cv_func_memset=no
+ac_cv_func_strdup=no
+ac_cv_header_arpa_nameser_h=no
+ac_cv_header_ctype_h=no
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
-ac_cv_header_malloc_h=yes
+ac_cv_header_malloc_h=no
ac_cv_header_memory_h=yes
-ac_cv_header_netdb_h=yes
-ac_cv_header_netinet_in_h=yes
-ac_cv_header_netinet_tcp_h=yes
-ac_cv_header_resolv_h=yes
+ac_cv_header_netdb_h=no
+ac_cv_header_netinet_in_h=no
+ac_cv_header_netinet_tcp_h=no
+ac_cv_header_resolv_h=no
ac_cv_header_socket_h=no
ac_cv_header_stdarg_h=yes
ac_cv_header_stdc=yes
@@ -1193,11 +5454,11 @@ ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_malloc_h=no
-ac_cv_header_sys_socket_h=yes
+ac_cv_header_sys_socket_h=no
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
-ac_cv_host=i686-pc-linux-gnu
+ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_FGREP='/bin/grep -F'
@@ -1215,9 +5476,9 @@ ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
-ac_cv_type_intptr_t=yes
-ac_cv_type_size_t=yes
-ac_cv_type_uintptr_t=yes
+ac_cv_type_intptr_t=no
+ac_cv_type_size_t=no
+ac_cv_type_uintptr_t=no
am_cv_CC_dependencies_compiler_type=gcc3
lt_cv_archive_cmds_need_lc=no
lt_cv_deplibs_check_method=pass_all
@@ -1244,15 +5505,15 @@ lt_cv_sys_max_cmd_len=1572864
## Output variables. ##
## ----------------- ##
-ACLOCAL='${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run aclocal-1.11'
+ACLOCAL='${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
-AMTAR='${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run tar'
+AMTAR='${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run tar'
AR='ar'
-AUTOCONF='${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run autoconf'
-AUTOHEADER='${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run autoheader'
-AUTOMAKE='${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run automake-1.11'
+AUTOCONF='${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run autoconf'
+AUTOHEADER='${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run autoheader'
+AUTOMAKE='${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run automake-1.11'
AWK='mawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
@@ -1275,7 +5536,7 @@ INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
-LD='/usr/bin/ld'
+LD='/usr/bin/ld -m elf_x86_64'
LDFLAGS=''
LIBOBJS=''
LIBS=''
@@ -1286,7 +5547,7 @@ LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
-MAKEINFO='${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run makeinfo'
+MAKEINFO='${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NM='/usr/bin/nm -B'
NMEDIT=''
@@ -1322,25 +5583,25 @@ am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
-build='i686-pc-linux-gnu'
+build='x86_64-unknown-linux-gnu'
build_alias=''
-build_cpu='i686'
+build_cpu='x86_64'
build_os='linux-gnu'
-build_vendor='pc'
+build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
-host='i686-pc-linux-gnu'
+host='x86_64-unknown-linux-gnu'
host_alias=''
-host_cpu='i686'
+host_cpu='x86_64'
host_os='linux-gnu'
-host_vendor='pc'
+host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
-install_sh='${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/install-sh'
+install_sh='${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
@@ -1383,21 +5644,8 @@ target_alias=''
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define HAVE_SYS_TYPES_H 1
-#define HAVE_NETINET_IN_H 1
-#define HAVE_ARPA_NAMESER_H 1
-#define HAVE_NETDB_H 1
-#define HAVE_RESOLV_H 1
-#define HAVE_MALLOC_H 1
#define HAVE_STDARG_H 1
#define HAVE_SYS_STAT_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_NETINET_TCP_H 1
-#define HAVE_SYS_SOCKET_H 1
-#define HAVE_INTPTR_T 1
-#define HAVE_UINTPTR_T 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMSET 1
-#define HAVE_STRDUP 1
-#define HAVE_ACCEPT 1
+#define size_t unsigned int
configure: exit 0
diff --git a/impl/antlr/libantlr3c-3.4/config.status b/impl/antlr/libantlr3c-3.4/config.status
index 556d17e..3ab6ce7 100755
--- a/impl/antlr/libantlr3c-3.4/config.status
+++ b/impl/antlr/libantlr3c-3.4/config.status
@@ -448,7 +448,7 @@ Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
-ac_pwd='/home/carlo/honours/repo/impl/antlr/libantlr3c-3.4'
+ac_pwd='/home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4'
srcdir='.'
INSTALL='/usr/bin/install -c'
MKDIR_P='/bin/mkdir -p'
@@ -563,17 +563,17 @@ enable_fast_install='yes'
SHELL='/bin/bash'
ECHO='printf %s\n'
host_alias=''
-host='i686-pc-linux-gnu'
+host='x86_64-unknown-linux-gnu'
host_os='linux-gnu'
build_alias=''
-build='i686-pc-linux-gnu'
+build='x86_64-unknown-linux-gnu'
build_os='linux-gnu'
SED='/bin/sed'
Xsed='/bin/sed -e 1s/^X//'
GREP='/bin/grep'
EGREP='/bin/grep -E'
FGREP='/bin/grep -F'
-LD='/usr/bin/ld'
+LD='/usr/bin/ld -m elf_x86_64'
NM='/usr/bin/nm -B'
LN_S='ln -s'
max_cmd_len='1572864'
@@ -669,8 +669,8 @@ postuninstall_cmds=''
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
finish_eval=''
hardcode_into_libs='yes'
-sys_lib_search_path_spec='/usr/lib/gcc/i486-linux-gnu/4.6 /usr/lib/i386-linux-gnu /usr/lib /lib/i386-linux-gnu /lib '
-sys_lib_dlsearch_path_spec='/lib64 /usr/lib64 /lib /usr/lib /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /lib/i486-linux-gnu /usr/lib/i486-linux-gnu /usr/local/lib '
+sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/4.6 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib '
+sys_lib_dlsearch_path_spec='/lib64 /usr/lib64 /lib /usr/lib /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 '
hardcode_action='immediate'
enable_dlopen='unknown'
enable_dlopen_self='unknown'
@@ -824,19 +824,19 @@ S["LN_S"]="ln -s"
S["NM"]="/usr/bin/nm -B"
S["ac_ct_DUMPBIN"]=""
S["DUMPBIN"]=""
-S["LD"]="/usr/bin/ld"
+S["LD"]="/usr/bin/ld -m elf_x86_64"
S["FGREP"]="/bin/grep -F"
S["EGREP"]="/bin/grep -E"
S["GREP"]="/bin/grep"
S["SED"]="/bin/sed"
S["host_os"]="linux-gnu"
-S["host_vendor"]="pc"
-S["host_cpu"]="i686"
-S["host"]="i686-pc-linux-gnu"
+S["host_vendor"]="unknown"
+S["host_cpu"]="x86_64"
+S["host"]="x86_64-unknown-linux-gnu"
S["build_os"]="linux-gnu"
-S["build_vendor"]="pc"
-S["build_cpu"]="i686"
-S["build"]="i686-pc-linux-gnu"
+S["build_vendor"]="unknown"
+S["build_cpu"]="x86_64"
+S["build"]="x86_64-unknown-linux-gnu"
S["LIBTOOL"]="$(SHELL) $(top_builddir)/libtool"
S["MAINT"]="#"
S["MAINTAINER_MODE_FALSE"]=""
@@ -859,7 +859,7 @@ S["CFLAGS"]="-m32 -O2 -Wall"
S["CC"]="gcc"
S["am__untar"]="${AMTAR} xf -"
S["am__tar"]="${AMTAR} chof - \"$$tardir\""
-S["AMTAR"]="${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run tar"
+S["AMTAR"]="${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run tar"
S["am__leading_dot"]="."
S["SET_MAKE"]=""
S["AWK"]="mawk"
@@ -867,12 +867,12 @@ S["mkdir_p"]="/bin/mkdir -p"
S["MKDIR_P"]="/bin/mkdir -p"
S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s"
S["STRIP"]="strip"
-S["install_sh"]="${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/install-sh"
-S["MAKEINFO"]="${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run makeinfo"
-S["AUTOHEADER"]="${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run autoheader"
-S["AUTOMAKE"]="${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run automake-1.11"
-S["AUTOCONF"]="${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run autoconf"
-S["ACLOCAL"]="${SHELL} /home/carlo/honours/repo/impl/antlr/libantlr3c-3.4/missing --run aclocal-1.11"
+S["install_sh"]="${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/install-sh"
+S["MAKEINFO"]="${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run makeinfo"
+S["AUTOHEADER"]="${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run autoheader"
+S["AUTOMAKE"]="${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run automake-1.11"
+S["AUTOCONF"]="${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run autoconf"
+S["ACLOCAL"]="${SHELL} /home/carlo/laptop-repository/impl/antlr/libantlr3c-3.4/missing --run aclocal-1.11"
S["VERSION"]="3.4"
S["PACKAGE"]="libantlr3c"
S["CYGPATH_W"]="echo"
@@ -980,22 +980,9 @@ D["HAVE_UNISTD_H"]=" 1"
D["HAVE_DLFCN_H"]=" 1"
D["LT_OBJDIR"]=" \".libs/\""
D["HAVE_SYS_TYPES_H"]=" 1"
-D["HAVE_NETINET_IN_H"]=" 1"
-D["HAVE_ARPA_NAMESER_H"]=" 1"
-D["HAVE_NETDB_H"]=" 1"
-D["HAVE_RESOLV_H"]=" 1"
-D["HAVE_MALLOC_H"]=" 1"
D["HAVE_STDARG_H"]=" 1"
D["HAVE_SYS_STAT_H"]=" 1"
-D["HAVE_CTYPE_H"]=" 1"
-D["HAVE_NETINET_TCP_H"]=" 1"
-D["HAVE_SYS_SOCKET_H"]=" 1"
-D["HAVE_INTPTR_T"]=" 1"
-D["HAVE_UINTPTR_T"]=" 1"
-D["HAVE_MEMMOVE"]=" 1"
-D["HAVE_MEMSET"]=" 1"
-D["HAVE_STRDUP"]=" 1"
-D["HAVE_ACCEPT"]=" 1"
+D["size_t"]=" unsigned int"
for (key in D) D_is_set[key] = 1
FS = ""
}
diff --git a/impl/antlr/libantlr3c-3.4/libtool b/impl/antlr/libantlr3c-3.4/libtool
index a0f7118..2172935 100755
--- a/impl/antlr/libantlr3c-3.4/libtool
+++ b/impl/antlr/libantlr3c-3.4/libtool
@@ -2,7 +2,7 @@
# libtool - Provide generalized library-building support services.
# Generated automatically by config.status (libantlr3c) 3.4
-# Libtool was configured on host carlo-laptop:
+# Libtool was configured on host pc-4w14-0:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
@@ -63,12 +63,12 @@ ECHO="printf %s\\n"
# The host system.
host_alias=
-host=i686-pc-linux-gnu
+host=x86_64-unknown-linux-gnu
host_os=linux-gnu
# The build system.
build_alias=
-build=i686-pc-linux-gnu
+build=x86_64-unknown-linux-gnu
build_os=linux-gnu
# A sed program that does not truncate output.
@@ -237,10 +237,10 @@ finish_eval=""
hardcode_into_libs=yes
# Compile-time system search path for libraries.
-sys_lib_search_path_spec="/usr/lib/gcc/i486-linux-gnu/4.6 /usr/lib/i386-linux-gnu /usr/lib /lib/i386-linux-gnu /lib "
+sys_lib_search_path_spec="/usr/lib/gcc/x86_64-linux-gnu/4.6 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib "
# Run-time system search path for libraries.
-sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /lib/i486-linux-gnu /usr/lib/i486-linux-gnu /usr/local/lib "
+sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 "
# Whether dlopen is supported.
dlopen_support=unknown
@@ -257,7 +257,7 @@ striplib="strip --strip-unneeded"
# The linker used to build libraries.
-LD="/usr/bin/ld"
+LD="/usr/bin/ld -m elf_x86_64"
# How to create reloadable object files.
reload_flag=" -r"
diff --git a/impl/antlr/test-file b/impl/antlr/test-file
index 8c865bf..0e7f8f0 100644
--- a/impl/antlr/test-file
+++ b/impl/antlr/test-file
@@ -1,2 +1,2 @@
-y = min(0-1, z)
-z = min(0, y+1)
+y = min(1, z)
+z = y+1
diff --git a/impl/antlr/test-system b/impl/antlr/test-system
new file mode 100644
index 0000000..68f8d4c
--- /dev/null
+++ b/impl/antlr/test-system
@@ -0,0 +1,100 @@
+x0 = max(0)
+x1 = x0
+x2 = x1
+x3 = x2
+x4 = x3
+x5 = x4
+x6 = x5
+x7 = x6
+x8 = x7
+x9 = x8
+x10 = x9
+x11 = x10
+x12 = x11
+x13 = x12
+x14 = x13
+x15 = x14
+x16 = x15
+x17 = x16
+x18 = x17
+x19 = x18
+x20 = x19
+x21 = x20
+x22 = x21
+x23 = x22
+x24 = x23
+x25 = x24
+x26 = x25
+x27 = x26
+x28 = x27
+x29 = x28
+x30 = x29
+x31 = x30
+x32 = x31
+x33 = x32
+x34 = x33
+x35 = x34
+x36 = x35
+x37 = x36
+x38 = x37
+x39 = x38
+x40 = x39
+x41 = x40
+x42 = x41
+x43 = x42
+x44 = x43
+x45 = x44
+x46 = x45
+x47 = x46
+x48 = x47
+x49 = x48
+x50 = x49
+x51 = x50
+x52 = x51
+x53 = x52
+x54 = x53
+x55 = x54
+x56 = x55
+x57 = x56
+x58 = x57
+x59 = x58
+x60 = x59
+x61 = x60
+x62 = x61
+x63 = x62
+x64 = x63
+x65 = x64
+x66 = x65
+x67 = x66
+x68 = x67
+x69 = x68
+x70 = x69
+x71 = x70
+x72 = x71
+x73 = x72
+x74 = x73
+x75 = x74
+x76 = x75
+x77 = x76
+x78 = x77
+x79 = x78
+x80 = x79
+x81 = x80
+x82 = x81
+x83 = x82
+x84 = x83
+x85 = x84
+x86 = x85
+x87 = x86
+x88 = x87
+x89 = x88
+x90 = x89
+x91 = x90
+x92 = x91
+x93 = x92
+x94 = x93
+x95 = x94
+x96 = x95
+x97 = x96
+x98 = x97
+x99 = x98
diff --git a/impl/main.cpp b/impl/main.cpp
index c5a0be6..0082686 100644
--- a/impl/main.cpp
+++ b/impl/main.cpp
@@ -9,6 +9,7 @@
#include "Expression.hpp"
#include "MaxStrategy.hpp"
#include "EquationSystem.hpp"
+#include "Complete.hpp"
extern "C" {
#include "EquationSystemParser.h"
@@ -17,12 +18,6 @@ extern "C" {
using namespace std;
-typedef std::vector<Expression<float>*> Args;
-typedef Expression<float> E;
-typedef Constant<float> C;
-typedef Addition<float> A;
-typedef Minimum<float> Min;
-
template<typename T>
Expression<T>* treeToExpression(pANTLR3_BASE_TREE node, EquationSystem<T>& system) {
ANTLR3_UINT32 num = node->getChildCount(node);
@@ -31,12 +26,16 @@ Expression<T>* treeToExpression(pANTLR3_BASE_TREE node, EquationSystem<T>& syste
// leaf node - constant or variable
if (num == 0) {
- stringstream stream(name);
- T output;
- if (stream >> output) {
- return system.newExpression(new Constant<T>(output), vector<Expression<T>*>());
+ if (name == "inf") {
+ return system.newExpression(new Constant<T>(infinity<T>()), vector<Expression<T>*>());
} else {
- return system.newExpression(system.newVariable(name), vector<Expression<T>*>());
+ stringstream stream(name);
+ T output;
+ if (stream >> output) {
+ return system.newExpression(new Constant<T>(output), vector<Expression<T>*>());
+ } else {
+ return system.newExpression(system.newVariable(name), vector<Expression<T>*>());
+ }
}
}
@@ -58,6 +57,13 @@ Expression<T>* treeToExpression(pANTLR3_BASE_TREE node, EquationSystem<T>& syste
op = new Addition<T>();
} else if (name == "-") {
op = new Subtraction<T>();
+ } else if (name == ";") {
+ op = new Comma<T>();
+ } else if (name == "GUARD") {
+ op = new Guard<T>();
+ } else {
+ std::cerr << "Unknown leaf node type: " << name << std::endl;
+ throw "Unknown leaf node type";
}
return system.newExpression(op, args);
}
@@ -83,7 +89,7 @@ void treeToSystem(pANTLR3_BASE_TREE node, EquationSystem<T>& system) {
}
}
-std::vector< Expression<float>* > empty;
+typedef Complete<int> ZBar;
int main (int argc, char* argv[]) {
pANTLR3_INPUT_STREAM input;
pEquationSystemLexer lex;
@@ -97,12 +103,16 @@ int main (int argc, char* argv[]) {
EquationSystemParser_equation_system_return ret = parser -> equation_system(parser);
- EquationSystem<float> system;
- treeToSystem<float>(ret.tree, system);
+ EquationSystem<ZBar> system;
+ treeToSystem<ZBar>(ret.tree, system);
// DO MORE HERE
- VariableAssignment<float> rho = system.minFixpoint();
- const std::vector<Variable<float>*> vars = system.vars();
+ VariableAssignment<ZBar> rho = system.minFixpoint(NaiveFixpoint<ZBar>());
+ std::cout << rho << std::endl;
+ rho = system.minFixpoint(RecursiveFixpoint<ZBar>());
+ std::cout << rho << std::endl;
+
+ const std::vector<Variable<ZBar>*> vars = system.vars();
for (unsigned int i = 0, size = vars.size(); i < size; ++i) {
cout << vars[i]->name() << " = " << rho[*vars[i]] << endl;
}
diff --git a/impl/systems/.long-fixpoint.swp b/impl/systems/.long-fixpoint.swp
new file mode 100644
index 0000000..726d6ce
--- /dev/null
+++ b/impl/systems/.long-fixpoint.swp
Binary files differ
diff --git a/impl/systems/generate-system.py b/impl/systems/generate-system.py
new file mode 100644
index 0000000..cc67df2
--- /dev/null
+++ b/impl/systems/generate-system.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+
+import random
+
+size = 10
+
+def generate_variable(size):
+ return "x" + str(random.randint(1, size))
+
+def generate_expression(size):
+ if random.randint(1, 5) == 1:
+ operator = random.choice(['+', '-'])
+ return generate_variable(size) + operator + generate_expression(size);
+ else:
+ return generate_variable(size)
+
+def generate_min_expression(size):
+ return "min(" + ",".join(generate_expression(size) for i in xrange(random.randint(2, 3))) + ")"
+
+def generate_max_expression(size):
+ return "max(" + ",".join(generate_min_expression(size) for i in xrange(random.randint(2, 3))) + ")"
+
+
+for i in xrange(size):
+ print "x"+str(i+1) + " = " + generate_max_expression(size)
diff --git a/impl/systems/long-fixpoint b/impl/systems/long-fixpoint
new file mode 100644
index 0000000..1ab7897
--- /dev/null
+++ b/impl/systems/long-fixpoint
@@ -0,0 +1,100 @@
+x0 = 0
+x1 = x0
+x2 = x1
+x3 = x2
+x4 = x3
+x5 = x4
+x6 = x5
+x7 = x6
+x8 = x7
+x9 = x8
+x10 = x9
+x11 = x10
+x12 = x11
+x13 = x12
+x14 = x13
+x15 = x14
+x16 = x15
+x17 = x16
+x18 = x17
+x19 = x18
+x20 = x19
+x21 = x20
+x22 = x21
+x23 = x22
+x24 = x23
+x25 = x24
+x26 = x25
+x27 = x26
+x28 = x27
+x29 = x28
+x30 = x29
+x31 = x30
+x32 = x31
+x33 = x32
+x34 = x33
+x35 = x34
+x36 = x35
+x37 = x36
+x38 = x37
+x39 = x38
+x40 = x39
+x41 = x40
+x42 = x41
+x43 = x42
+x44 = x43
+x45 = x44
+x46 = x45
+x47 = x46
+x48 = x47
+x49 = x48
+x50 = x49
+x51 = x50
+x52 = x51
+x53 = x52
+x54 = x53
+x55 = x54
+x56 = x55
+x57 = x56
+x58 = x57
+x59 = x58
+x60 = x59
+x61 = x60
+x62 = x61
+x63 = x62
+x64 = x63
+x65 = x64
+x66 = x65
+x67 = x66
+x68 = x67
+x69 = x68
+x70 = x69
+x71 = x70
+x72 = x71
+x73 = x72
+x74 = x73
+x75 = x74
+x76 = x75
+x77 = x76
+x78 = x77
+x79 = x78
+x80 = x79
+x81 = x80
+x82 = x81
+x83 = x82
+x84 = x83
+x85 = x84
+x86 = x85
+x87 = x86
+x88 = x87
+x89 = x88
+x90 = x89
+x91 = x90
+x92 = x91
+x93 = x92
+x94 = x93
+x95 = x94
+x96 = x95
+x97 = x96
+x98 = x97
+x99 = x98
diff --git a/impl/systems/min-test b/impl/systems/min-test
new file mode 100644
index 0000000..a05a662
--- /dev/null
+++ b/impl/systems/min-test
@@ -0,0 +1,3 @@
+x1 = min(1, x1)
+x2 = min(x2+1, x3)
+x3 = 0
diff --git a/impl/systems/random-system b/impl/systems/random-system
new file mode 100644
index 0000000..506c18a
--- /dev/null
+++ b/impl/systems/random-system
@@ -0,0 +1 @@
+x = max()
diff --git a/impl/systems/size-ten b/impl/systems/size-ten
new file mode 100644
index 0000000..71ee74a
--- /dev/null
+++ b/impl/systems/size-ten
@@ -0,0 +1,3 @@
+x1 = max(0, min(x1-1, x2))
+x2 = max(0, 5+x1, x1)
+x3 = max(0, 1+x3, 0+x1)