#ifndef OSTeenyVersion
#define OSTeenyVersion DefaultOSTeenyVersion
#endif
-XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
+XCOMM operating system: OSName (OSMajorVersion/**/./**/OSMinorVersion/**/./**/OSTeenyVersion)
#define HasPutenv YES
#define HasBSD44Sockets YES
#define HasZlib YES
+#define HasXdmAuth YES
+
+#if OSMajorVersion >= 10 && defined(UseGcc)
+USE_GCC = UseGcc
+#endif
#ifndef CppCmd
-#if OSMajorVersion >= 5
-#define CppCmd /usr/bin/cpp -traditional
-#define PreProcessCmd /usr/bin/cpp -traditional
+#if OSMajorVersion >= 10 && defined(UseGcc)
+# define CppCmd /usr/local/bin/cpp$(USE_GCC)
#else
-#define CppCmd /usr/libexec/cpp -traditional
-#define PreProcessCmd /usr/libexec/cpp -traditional
+# define CppCmd /usr/bin/cpp
+#endif
#endif
+#define PreProcessCmd CppCmd
+
+#if OSMajorVersion >= 10
+#define CppArgs -Wno-invalid-pp-token
+#define DirFailPrefix -
+#else
+#define CppArgs /**/
#endif
+#ifndef StandardCppDefines
+#define StandardCppDefines -traditional CppArgs
+#endif
+
+#ifndef PerlCmd
+#define PerlCmd /usr/local/bin/perl
+#endif
#undef InstallCmd
#define InstallCmd /usr/bin/install
#undef KornShell
#define MkdirHierCmd mkdir -p
#ifndef CcCmd
-#define CcCmd gcc
+#if OSMajorVersion >= 10
+# if defined(UseGcc)
+# define CcCmd /usr/local/bin/gcc$(USE_GCC)
+# define CplusplusCmd /usr/local/bin/g++$(USE_GCC)
+# else
+# define CcCmd cc
+# define CplusplusCmd c++
+# endif
+#else
+# define CcCmd gcc
+# define CplusplusCmd g++
+#endif
+#endif
+
#ifndef DefaultCCOptions
#define DefaultCCOptions -pipe
#endif
-#endif
+#ifndef CplusplusLibC
#define CplusplusLibC -lstdc++
+#endif
#if OSMajorVersion > 1
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
#define XawI18nDefines -DUSE_XWCHAR_STRING
#define HasMakefileSafeInclude YES
-#define IncludeMakefile(file) @@# dependencies are in .depend
+#define IncludeMakefile(file) HASH_SIGN dependencies are in .depend
#define DependFileName .depend
+#define DependDefines -D__cplusplus
#if OSMajorVersion < 3
#if OSMinorVersion < 2
#ifndef ExtraLibraries
#endif
#ifndef OptimizedCDebugFlags
-# ifdef i386Architecture
+# if defined(i386Architecture) || defined(AMD64Architecture)
# define OptimizedCDebugFlags DefaultGcc2i386Opt
# else
# define OptimizedCDebugFlags -O2 -fno-strict-aliasing
#endif
#ifdef HasGcc2
-CXXDEPENDINCLUDE != CppCmd -x c++ -Wp,-v < /dev/null \
- 2>&1 | sed -n 's/ \(.*[cg]++.*\)/-I\1/p'
+CXXDEPENDINCLUDE != CcCmd -v -x c++ /dev/null -fsyntax-only \
+ 2>&1 | sed -n 's/^ \(\/.*[cg]++.*\)/-I\1/p'
#define CplusplusDependIncludes $(CXXDEPENDINCLUDE)
#endif
+/* beginning with svn version 254273 iconv functions are moved to libc */
+#if (OSMajorVersion >= 10)
+ICONVSYSLIB != if test -f /usr/local/include/iconv.h; then echo -liconv; else echo; fi
+#endif
+
#define ServerExtraDefines GccGasOption XFree86ServerDefines
#define StandardDefines -DCSRG_BASED