if test "$CXX" = "CC"; then
AR="CC -ar"
ARFLAGS="-o"
+ CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility"
fi
;;
esac
src-libs/Makefile \
simgear/Makefile \
simgear/version.h \
+ simgear/compatibility/Makefile \
simgear/bucket/Makefile \
simgear/debug/Makefile \
simgear/ephemeris/Makefile \
--- /dev/null
+
+The following header files where taken from the boost clib package
+(http://www.boost.org):
+
+cassert climits csignal cstdlib cwctype
+cctype clocale cstdarg cstring
+cerrno cmath cstddef ctime
+cfloat csetjmp cstdio cwchar
+
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CASSERT_HEADER
+#define __CASSERT_HEADER
+
+#include <assert.h>
+
+#endif // CASSERT_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CCTYPE_HEADER
+#define __CCTYPE_HEADER
+
+#include <ctype.h>
+
+namespace std {
+ using ::isalnum;
+ using ::isdigit;
+ using ::isprint;
+ using ::isupper;
+ using ::tolower;
+ using ::isalpha;
+ using ::isgraph;
+ using ::ispunct;
+ using ::isxdigit;
+ using ::toupper;
+ using ::iscntrl;
+ using ::islower;
+ using ::isspace;
+}
+
+#endif // CCTYPE_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CERRNO_HEADER
+#define __CERRNO_HEADER
+
+#include <errno.h>
+
+#endif // CERRNO_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CFLOAT_HEADER
+#define __CFLOAT_HEADER
+
+#include <float.h>
+
+#endif // CFLOAT_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CLIMITS_HEADER
+#define __CLIMITS_HEADER
+
+#include <limits.h>
+
+#endif // CLIMITS_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CLOCALE_HEADER
+#define __CLOCALE_HEADER
+
+#include <locale.h>
+
+namespace std {
+ using ::lconv;
+ using ::localeconv;
+ using ::setlocale;
+}
+
+#endif // CLOCALE_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CMATH_HEADER
+#define __CMATH_HEADER
+
+#include <math.h>
+
+namespace std {
+ using ::acos;
+ using ::cos;
+ using ::fmod;
+ using ::modf;
+ using ::tan;
+ using ::asin;
+ using ::cosh;
+ using ::frexp;
+ using ::pow;
+ using ::tanh;
+ using ::atan;
+ using ::exp;
+ using ::ldexp;
+ using ::sin;
+ using ::atan2;
+ using ::fabs;
+ using ::log;
+ using ::sinh;
+ using ::ceil;
+ using ::floor;
+ using ::log10;
+ using ::sqrt;
+}
+
+#endif // CMATH_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CSETJMP_HEADER
+#define __CSETJMP_HEADER
+
+#include <setjmp.h>
+
+namespace std {
+ using ::jmp_buf;
+ using ::longjmp;
+}
+
+#endif // CSETJMP_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CSIGNAL_HEADER
+#define __CSIGNAL_HEADER
+
+#include <signal.h>
+
+namespace std {
+ using ::sig_atomic_t;
+ using ::raise;
+ using ::signal;
+}
+
+#endif // CSIGNAL_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CSTDARG_HEADER
+#define __CSTDARG_HEADER
+
+#include <stdarg.h>
+
+namespace std {
+ using ::va_list;
+}
+
+#endif // CSTDARG_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CSTDDEF_HEADER
+#define __CSTDDEF_HEADER
+
+#include <stddef.h>
+
+namespace std {
+ using ::ptrdiff_t;
+ using ::size_t;
+}
+
+#endif // CSTDDEF_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CSTDIO_HEADER
+#define __CSTDIO_HEADER
+
+#include <stdio.h>
+
+namespace std {
+ using ::FILE;
+ using ::fpos_t;
+ using ::size_t;
+ using ::clearerr;
+ using ::fgets;
+ using ::fscanf;
+ using ::gets;
+ using ::rename;
+ using ::tmpfile;
+ using ::fclose;
+ using ::fopen;
+ using ::fseek;
+ using ::perror;
+ using ::rewind;
+ using ::tmpnam;
+ using ::feof;
+ using ::fprintf;
+ using ::fsetpos;
+ using ::printf;
+ using ::scanf;
+ using ::ungetc;
+ using ::ferror;
+ using ::fputc;
+ using ::ftell;
+ using ::putc;
+ using ::setbuf;
+ using ::vfprintf;
+ using ::fflush;
+ using ::fputs;
+ using ::fwrite;
+ using ::putchar;
+ using ::setvbuf;
+ using ::vprintf;
+ using ::fgetc;
+ using ::fread;
+ using ::getc;
+ using ::puts;
+ using ::sprintf;
+ using ::vsprintf;
+ using ::fgetpos;
+ using ::freopen;
+ using ::getchar;
+ using ::remove;
+ using ::sscanf;
+}
+
+#endif // CSTDIO_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CSTDLIB_HEADER
+#define __CSTDLIB_HEADER
+
+#include <stdlib.h>
+
+namespace std {
+ using ::abort;
+ using ::atexit;
+ using ::exit;
+ using ::getenv;
+ using ::system;
+ using ::calloc;
+ using ::malloc;
+ using ::free;
+ using ::realloc;
+ using ::atol;
+ using ::mblen;
+ using ::strtod;
+ using ::wctomb;
+ using ::atof;
+ using ::mbstowcs;
+ using ::strtol;
+ using ::wcstombs;
+ using ::atoi;
+ using ::mbtowc;
+ using ::strtoul;
+ using ::bsearch;
+ using ::qsort;
+ using ::div_t;
+ using ::ldiv_t;
+ using ::abs;
+ using ::labs;
+ using ::srand;
+ using ::div;
+ using ::ldiv;
+ using ::rand;
+}
+
+#endif // CSTDLIB_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CSTRING_HEADER
+#define __CSTRING_HEADER
+
+#include <string.h>
+
+namespace std {
+ using ::size_t;
+ using ::memchr;
+ using ::strcat;
+ using ::strcspn;
+ using ::strncpy;
+ using ::strtok;
+ using ::memcmp;
+ using ::strchr;
+ using ::strerror;
+ using ::strpbrk;
+ using ::strxfrm;
+ using ::memcpy;
+ using ::strcmp;
+ using ::strlen;
+ using ::strrchr;
+ using ::memmove;
+ using ::strcoll;
+ using ::strncat;
+ using ::strspn;
+ using ::memset;
+ using ::strcpy;
+ using ::strncmp;
+ using ::strstr;
+}
+
+#endif // CSTRING_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CTIME_HEADER
+#define __CTIME_HEADER
+
+#include <time.h>
+
+namespace std {
+ using ::size_t;
+ using ::clock_t;
+ using ::time_t;
+ using ::tm;
+ using ::asctime;
+ using ::clock;
+ using ::difftime;
+ using ::localtime;
+ using ::strftime;
+ using ::ctime;
+ using ::gmtime;
+ using ::mktime;
+ using ::time;
+}
+
+#endif // CTIME_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CWCHAR_HEADER
+#define __CWCHAR_HEADER
+
+#include <wchar.h>
+
+namespace std {
+ using ::mbstate_t;
+ using ::wint_t;
+ using ::size_t;
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::btowc;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::getwchar;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::ungetwc;
+#endif
+ using ::wcscpy;
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wcsrtombs;
+#endif
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wmemchr;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::fgetwc;
+#endif
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::mbrlen;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::vfwprintf;
+#endif
+#endif
+ using ::wcscspn;
+ using ::wcsspn;
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wmemcmp;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::fgetws;
+#endif
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::mbrtowc;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::vswprintf;
+#endif
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::wcsftime;
+#endif
+ using ::wcsstr;
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wmemcpy;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::fputwc;
+#endif
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::mbsinit;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::vwprintf;
+#endif
+#endif
+ using ::wcslen;
+ using ::wcstod;
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wmemmove;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::fputws;
+#endif
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::mbsrtowcs;
+#endif
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wcrtomb;
+#endif
+ using ::wcsncat;
+ using ::wcstok;
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wmemset;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__DECCXX_VER) && __DECCXX_VER <= 60290024)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::fwide;
+#endif
+#endif
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::putwc;
+#endif
+ using ::wcscat;
+ using ::wcsncmp;
+ using ::wcstol;
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wprintf;
+#endif
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::fwprintf;
+#endif
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::putwchar;
+#endif
+ using ::wcschr;
+ using ::wcsncpy;
+ using ::wcstoul;
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wscanf;
+#endif
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::fwscanf;
+#endif
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::swprintf;
+#endif
+#endif
+ using ::wcscmp;
+ using ::wcspbrk;
+ using ::wcsxfrm;
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+ using ::getwc;
+#endif
+#if !(defined(__linux) && defined(__DECCXX_VER) && __DECCXX_VER <= 60390005)
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::swscanf;
+#endif
+#endif
+ using ::wcscoll;
+ using ::wcsrchr;
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wctob;
+#endif
+}
+
+#endif // CWCHAR_HEADER
--- /dev/null
+// This file is automatically generated. Do not edit.
+// ['../../../libs/compatibility/generate_cpp_c_headers.py']
+// Mon Apr 16 15:16:00 2001 ('PST', 'PDT')
+
+#ifndef __CWCTYPE_HEADER
+#define __CWCTYPE_HEADER
+
+#include <wctype.h>
+
+namespace std {
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wctrans_t;
+#endif
+ using ::wctype_t;
+ using ::wint_t;
+ using ::iswalnum;
+ using ::iswctype;
+ using ::iswlower;
+ using ::iswspace;
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::towctrans;
+#endif
+#if !(defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
+ using ::wctrans;
+#endif
+ using ::iswalpha;
+ using ::iswdigit;
+ using ::iswprint;
+ using ::iswupper;
+ using ::towlower;
+ using ::wctype;
+ using ::iswcntrl;
+ using ::iswgraph;
+ using ::iswpunct;
+ using ::iswxdigit;
+ using ::towupper;
+}
+
+#endif // CWCTYPE_HEADER
--- /dev/null
+
+#ifndef __SG_FSTREAM
+#define __SG_FSTREAM 1
+
+# include <fstream.h>
+
+#endif // !__SG_FSTREAM
+
--- /dev/null
+
+#ifndef __SG_IOMANIP
+#define __SG_IOMANIP 1
+
+# include <iomanip.h>
+
+#endif // !__SG_IOMANIP
+
--- /dev/null
+
+#ifndef __SG_IOSTREAM
+#define __SG_IOSTREAM 1
+
+# include <iostream.h>
+
+#if defined(sgi) && !defined(__GNUC__)
+
+ class ios_base : public ios {
+ public:
+
+ typedef int openmode;
+ typedef int seekdir;
+
+ enum { binary = 0 };
+ };
+
+ namespace std {
+ using ::cin;
+ using ::cout;
+ using ::cerr;
+ using ::clog;
+ using ::ios_base;
+ };
+
+#endif
+
+#endif // !__SG_IOSTREAM
+
--- /dev/null
+
+#ifndef __SG_ISTREAM
+#define __SG_ISTREAM 1
+
+#if defined(sgi) && !defined(__GNUC__)
+
+# include <stream.h>
+# include <iostream>
+
+#endif
+
+#endif // !__SG_ISTREAM
+
--- /dev/null
+
+#ifndef __SG_ITERATOR
+#define __SG_ITERATOR 1
+
+# include <iterator.h>
+
+#endif // !__SG_ITERATOR
+
--- /dev/null
+
+#ifndef __SG_STREAMBUF
+#define __SG_STREAMBUF 1
+
+#if defined(sgi) && !defined(__GNUC__)
+
+# include <char_traits.h>
+# include <iostream>
+
+# define pubsync sync
+
+ using std::char_traits;
+
+ typedef char_traits<char> traits_type;
+ typedef char_traits<char>::int_type int_type;
+
+ typedef streampos pos_type;
+ typedef streamoff off_type;
+
+ namespace std {
+ using ::streambuf;
+ using ::streampos;
+ using ::streamoff;
+ };
+
+#endif
+
+#endif // !__SG_STREAMBUF
+
--- /dev/null
+
+#ifndef __SG_STRSTREAM
+#define __SG_STRSTREAM 1
+
+# include <strstream.h>
+
+#endif // !__SG_STRSTREAM
+
# define SG_HAVE_NATIVE_SGI_COMPILERS
# define SG_EXPLICIT_FUNCTION_TMPL_ARGS
+# define SG_CLASS_PARTIAL_SPECIALIZATION
# define SG_NEED_AUTO_PTR
# define SG_MEMBER_TEMPLATES
# define SG_NAMESPACES
# define SG_HAVE_STD
-# define SG_CLASS_PARTIAL_SPECIALIZATION
+# define SG_HAVE_STREAMBUF
# define SG_HAVE_TRAITS
+# define SG_HAVE_STD_INCLUDES
# define STL_ALGORITHM <algorithm>
# define STL_FUNCTIONAL <functional>
-# define STL_IOMANIP <iomanip.h>
-# define STL_IOSTREAM <iostream.h>
-# define STL_ITERATOR <iterator.h>
-# define STL_FSTREAM <fstream.h>
+# define STL_IOMANIP <iomanip>
+# define STL_IOSTREAM <iostream>
+# define STL_ITERATOR <iterator>
+# define STL_FSTREAM <fstream>
# define STL_STDEXCEPT <stdexcept>
# define STL_STRING <string>
-# define STL_STRSTREAM <strstream.h>
-
-// # define __STL_FUNCTION_TMPL_PARTIAL_ORDER
-// typedef void PFNGLPOINTPARAMETERFEXTPROC
-
-#define glPointParameterfEXT glPointParameterfSGIS
-#define glPointParameterfvEXT glPointParameterfvSGIS
+# define STL_STRSTREAM <strstream>
#pragma set woff 1001,1012,1014,1116,1155,1172,1174
#pragma set woff 1401,1460,1551,1552,1681
#pragma set woff 1682,3303
#endif
-# define SG_COMPILER_STR "SGI Irix compiler version " SG_STRINGIZE(_COMPILER_VERSION)
+# define SG_COMPILER_STR "SGI MipsPro compiler version " SG_STRINGIZE(_COMPILER_VERSION)
#endif // Native SGI compilers