site.def: Only build C/en_US locales by default for Linux
[oweals/cde.git] / cde / config / cf / linux.cf
index b852e12e3993cfad4e771fa4d5d291553936c88d..a5d5c93721625f22bcf09c19c470c71317c77732 100644 (file)
@@ -1,10 +1,5 @@
 XCOMM platform:  $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
 
-/* To reduce the number of warnings generated by X11 and Motif headers that
-   dislike -ansi and -pedantic we can include them with -isystem instead of
-   -I, this tells GCC to treat them as system includes out of our control */
-#define TopXInclude -isystem$(TOP)/imports/x11/include
-
 #ifndef OSName
 # define OSName                        DefaultOSName
 #endif
@@ -39,17 +34,29 @@ XCOMM platform:  $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
     LinuxYggdrasil  (12)
 */
 #endif
+
+#ifndef DefaultLinuxCLibMajorVersion
+# define DefaultLinuxCLibMajorVersion    6
+#endif
+#ifndef DefaultLinuxCLibMinorVersion
+# define DefaultLinuxCLibMinorVersion    0
+#endif
+#ifndef DefaultLinuxCLibTeenyVersion
+# define DefaultLinuxCLibTeenyVersion    0
+#endif
+
 #ifndef LinuxCLibMajorVersion
-# define LinuxCLibMajorVersion   DefaultLinuxCLibMajorVersion
+# define LinuxCLibMajorVersion           DefaultLinuxCLibMajorVersion
 #endif
 #ifndef LinuxCLibMinorVersion
-# define LinuxCLibMinorVersion   DefaultLinuxCLibMinorVersion
+# define LinuxCLibMinorVersion           DefaultLinuxCLibMinorVersion
 #endif
 #ifndef LinuxCLibTeenyVersion
-# define LinuxCLibTeenyVersion   DefaultLinuxCLibTeenyVersion
+# define LinuxCLibTeenyVersion           DefaultLinuxCLibTeenyVersion
 #endif
+
 #ifndef LinuxBinUtilsMajorVersion
-# define LinuxBinUtilsMajorVersion     DefaultLinuxBinUtilsMajorVersion
+# define LinuxBinUtilsMajorVersion      DefaultLinuxBinUtilsMajorVersion
 #endif
 
 XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
@@ -65,6 +72,8 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 # endif
 #endif
 
+#define UseInstalledX11         YES
+
 #define BuildLibPathVar        LD_LIBRARY_PATH
 #define HasGcc                 YES
 #define HasGcc2                        YES
@@ -76,12 +85,23 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 #define HasPutenv              YES
 #define HasShm                 YES
 #define HasSockets             YES
+
+#define HasMakefileSafeInclude  YES
+#define DependFileName          .depend
+#define DependCmd               $(CC) -E -MM -MG
+
+#ifdef IncludeMakefile
+# undef IncludeMakefile
+#endif
+
+#define IncludeMakefile(file)   -include file
+
 #if (LinuxDistribution == LinuxRedHat)
 # define HasZlib               YES
 #endif
 
 #define AvoidNullMakeCommand   YES
-#define StripInstalledPrograms YES
+#define StripInstalledPrograms NO
 #define CompressAllFonts       YES
 #define Malloc0ReturnsNull     YES
 #define NeedConstPrototypes    YES
@@ -113,45 +133,57 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 #define LdCombineFlags         -r
 #define XawI18nDefines         -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
 #define HasWChar32             YES
-#define StandardCppDefines     -traditional StandardDefines
+#define StandardCppDefines     -traditional -nostdinc StandardDefines
 #define ExtensionOSDefines     -DXTESTEXT1
 
 #define LinuxLocaleDefines     /**/
 
-XCOMM Using the tirpc lib should allow running rpcbind in secure
-XCOMM mode (ie: without the -i option).  Make sure you install the 
-XCOMM libtirpc-dev package or equivalent.
+#define DefaultCCOptions        -ansi
 
-#define HasTIRPCLib  YES
+XCOMM Lets try XdmAuth instead of the ancient MIT/DES auth
+#define HasXdmAuth  YES
+
+XCOMM TIRPC is enabled by default now on Linux.  The libtirpc-dev package is
+XCOMM required for this support.  If you cannot use tirpc for some reason,
+XCOMM can disable it by defining HasTIRPCLib to NO in either
+XCOMM your host.def or site.def file.  Not using the TIRPC lib will require
+XCOMM that you run rpcbind in insecure mode (ie: with the -i option).
+XCOMM The default is YES.
+
+#ifndef HasTIRPCLib
+# define HasTIRPCLib YES
+#endif
 
 #if HasTIRPCLib
 TIRPCLIB = -ltirpc
+TIRPCINC = -I/usr/include/tirpc
 #else
-TIRPCLIB = 
+TIRPCLIB =
+TIRPCINC =
 #endif
 
 #if !defined(DefaultGcc2i386Opt)
-# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing
+# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
+       -Wno-unused-result
 #endif
 
 #if LinuxCLibMajorVersion < 6
-# define LinuxSourceDefines    -D_POSIX_SOURCE \
+# define LinuxSourceDefines    -D_POSIX_SOURCE -D_DEFAULT_SOURCE \
                                -D_BSD_SOURCE -D_SVID_SOURCE LinuxLocaleDefines
 # ifndef HasLibCrypt
 #  define HasLibCrypt          NO
 # endif
 
 #else
-# define LinuxSourceDefines    -D_POSIX_C_SOURCE=199309L \
-                               -D_POSIX_SOURCE \
-                               -D_BSD_SOURCE -D_SVID_SOURCE -D_XOPEN_SOURCE \
+# define LinuxSourceDefines    -D_POSIX_SOURCE -D_DEFAULT_SOURCE \
+                               -D_BSD_SOURCE -D_SVID_SOURCE \
                                -D__NO_STRING_INLINES -D__NO_MATH_INLINES \
                                LinuxLocaleDefines
 # define HasPosixThreads       YES
 # define ThreadedX             YES
 # define HasThreadSafeAPI      YES
 # define ThreadsLibraries      -lpthread
-# define SystemMTDefines               -D_REENTRANT
+# define SystemMTDefines       -D_REENTRANT
 # ifndef HasLibCrypt
 #  define HasLibCrypt          YES
 # endif
@@ -167,6 +199,9 @@ TIRPCLIB =
 #endif /* SparcArchitecture */
 
 #ifdef ARMArchitecture
+# ifndef OptimizedCDebugFlags
+#  define OptimizedCDebugFlags DefaultGcc2i386Opt
+# endif
 # define LinuxMachineDefines -D__arm__
 # define LSBBitOrder             YES
 
@@ -177,7 +212,9 @@ TIRPCLIB =
 #endif /* ARMArchitecture */
 
 #ifdef i386Architecture
-# define OptimizedCDebugFlags  DefaultGcc2i386Opt
+# ifndef OptimizedCDebugFlags
+#  define OptimizedCDebugFlags DefaultGcc2i386Opt
+# endif
 # define LinuxMachineDefines   -D__i386__
 /* For DtHelp TIFF processing routines. */
 # define LSBBitOrder             YES
@@ -186,12 +223,12 @@ TIRPCLIB =
 #  define HasPlugin            YES
 #  define VendorHasX11R6_3libXext      YES     /* XC or XFree86 3.3.1 */
 # endif
-/* add this to void screenfuls of warnings from makedepend */
-# define DependFlags -I/usr/include/i386-linux-gnu
 #endif /* i386Architecture */
 
 #ifdef AMD64Architecture
-# define OptimizedCDebugFlags  DefaultGcc2i386Opt
+# ifndef OptimizedCDebugFlags
+#  define OptimizedCDebugFlags DefaultGcc2i386Opt
+# endif
 # define LinuxMachineDefines   -D__x86_64__ 
 /* For DtHelp TIFF processing routines. */
 # define LSBBitOrder            YES
@@ -200,34 +237,31 @@ TIRPCLIB =
 #  define HasPlugin            YES
 #  define VendorHasX11R6_3libXext      YES     /* XC or XFree86 3.3.1 */
 # endif
-/* add this to void screenfuls of warnings from makedepend */
-# define DependFlags -I/usr/include/x86_64-linux-gnu
 #endif /* AMD64Architecture */
 
 #ifdef PpcArchitecture
-# define OptimizedCDebugFlags    DefaultGcc2i386Opt
+# ifndef OptimizedCDebugFlags
+#  define OptimizedCDebugFlags    DefaultGcc2i386Opt
+# endif
 # define LinuxMachineDefines     -D__powerpc__
 #endif /* PpcArchitecture */
 
 #ifdef AlphaArchitecture
-# define OptimizedCDebugFlags  DefaultGcc2i386Opt
+# ifndef OptimizedCDebugFlags
+#  define OptimizedCDebugFlags DefaultGcc2i386Opt
+# endif
 # define LinuxMachineDefines   -D__alpha__
 #endif /* AlphaArchitecture */
 
 #ifdef Mc68020Architecture
-# define OptimizedCDebugFlags  DefaultGcc2i386Opt
+# ifndef OptimizedCDebugFlags
+#  define OptimizedCDebugFlags DefaultGcc2i386Opt
+# endif
 # define LinuxMachineDefines   -D__mc68000__
 # define StandardCppDefines      -traditional 
 #endif /* Mc68020Architecture */
 
-#ifdef HasGcc2
-CXXDEPENDINCLUDE = $(shell CppCmd -x c++ -Wp,-v < /dev/null \
-                  2>&1 | sed -n 's/ \(.*[cg]++.*\)/-I\1/p')
-#define CplusplusDependIncludes        $(CXXDEPENDINCLUDE)
-#endif
-#define DependDefines          -D_SYS_RESOURCE_H -D_SYS_UTSNAME_H
-
-#define StandardDefines                -Dlinux LinuxMachineDefines LinuxSourceDefines
+#define StandardDefines                -D__linux__ LinuxMachineDefines LinuxSourceDefines
 
 #define ConnectionFlags                -DUNIXCONN -DTCPCONN
 
@@ -257,7 +291,8 @@ XCOMM This is needed for CDE currently
 #define ArchitectureDefines    -DLINUX_ARCHITECTURE
 
 #define TtClientLibs $(TTLIB) $(TIRPCLIB) $(XTOOLLIB) $(XLIB)
-#define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
 
+#define SharedTtReqs $(TIRPCLIB) $(LDPRELIBS) SharedXReqs $(CXXLIB)
+
+#include <lnxDep.rules>
 #include <lnxLib.rules>
-#include <xfree86.cf>