XCOMM platform: $XFree86: xc/config/cf/sco.cf,v 3.15 2004/06/02 22:42:53 dawes Exp $ /* * Copyright (c) 1994-2004 by The XFree86 Project, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject * to the following conditions: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution, and in the same place and form as other copyright, * license and disclaimer information. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: "This product * includes software developed by The XFree86 Project, Inc * (http://www.xfree86.org/) and its contributors", in the same * place and form as other third-party acknowledgments. Alternately, * this acknowledgment may appear in the software itself, in the * same form and location as other such third-party acknowledgments. * * 4. Except as contained in this notice, the name of The XFree86 * Project, Inc shall not be used in advertising or otherwise to * promote the sale, use or other dealings in this Software without * prior written authorization from The XFree86 Project, Inc. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * This is sco.cf, for SCO Open Server 5.0.2 and SCO UNIX. * Please mail hug@netcom.com with any questions. * * This section is common to all versions of SCO */ #ifndef ScoOsMouse # define ScoOsMouse YES #endif #ifndef OSVendor #define OSVendor Santa Cruz Operation #endif #define PosixLibraries /**/ #define Malloc0ReturnsNull YES #define RemoveDSDENroffMacros NO #define ExtraLibraries -lsocket -lmalloc -lpt #define ManSourcePath $(MANPATH)/cat. #ifndef CompressManPages #define CompressManPages YES #endif #if ScoOsMouse # define ServerExtraDefines -DUSE_OSMOUSE XFree86ServerDefines # define ServerExtraSysLibs $(CBRT) -lm -levent #else # define ServerExtraSysLibs $(CBRT) -lm #endif /* * XBSDLIB is included with the Socket libraries, because SCO needs Xbsd * as its bcopy routine doesn't handle overlapping regions. If HasSockets * If HasSockets is false the XINETLIB does it for us anyway. */ #define SocketLibraries $(XBSDLIB) -lsocket #define ConnectionFlags -DLOCALCONN -DTCPCONN -DFD_SETSIZE=256 #if defined(i386Sco324Architecture) || defined(i386Sco325Architecture) # ifndef HasSymLinks # define HasSymLinks YES # endif # define CompressManCmd $(COMPRESS) -v #else /* SCO 3.2.2 */ # ifndef HasSymLinks # define HasSymLinks NO # endif # define CommpressManCmd pack #endif /* * Due to the extra '.' chars in the SCO man pages file name we have * to provide our own version of this macro. */ #define InstallManPageAliases(file,destdir,aliases) @@\ install.man:: @@\ @(SUFFIX=`echo $(DESTDIR)destdir/file.* | cut -f3,4 -d.`; \ @@\ for i in aliases; do (set -x; \ @@\ $(RM) $(DESTDIR)destdir/$$i.*; \ @@\ (cd $(DESTDIR)destdir; $(LN) file.$${SUFFIX} \ @@\ $$i.$${SUFFIX})); \ @@\ done) /* * This is the SCO Open Server 5.0.2 section. BOOTSTRAPCFLAGS is computed * automatically. You can simply run make World. */ #ifdef i386Sco325Architecture #ifndef OSName #define OSName OpenServer Release 5 #endif #ifndef OSMajorVersion #define OSMajorVersion 5 #endif #ifndef OSMinorVersion #define OSMinorVersion 0 #endif #ifndef OSTeenyVersion #define OSTeenyVersion 2 #endif #define StandardDefines -Dsco -DSCO -DSYSV -Di386 -DSCO325 -DSCO324 #ifdef HasGcc2 # define DefaultCCOptions -melf # define CcCmd gcc # define ExtraLoadOptions -melf # define DefaultCDebugFlags DefaultGcc2i386Opt # define OptimizedCDebugFlags DefaultGcc2i386Opt #else # define DefaultCCOptions -dy # define CcCmd cc # define ExtraLoadOptions -b elf # define DefaultCDebugFlags -O2 # define OptimizedCDebugFlags -O2 #endif #define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS #define NeedWidePrototypes NO #define ServerOSDefines /**/ #define ToolkitStringsABIOptions -intelabi #define ThreadedX NO #define HasThreadSafeAPI NO #define HasNdbm YES #define HasVFork YES #define HasPutenv YES #define ExecableScripts YES #define HasShadowPasswd YES #ifndef HasLibCrypt # define HasLibCrypt YES # define SpecialLibCrypt -lcrypt #endif #ifndef ForceNormalLib # define ForceNormalLib YES #endif #define SharedLibXmu NO #define SystemV YES #define LdCombineFlags -r #define HasLdRunPath YES #define HasPoll YES #define PatheticCpp YES #define ArCmdBase ar #define AsCmd as #define CppCmd /lib/cpp #define LdCmd ld #define LexCmd lex #define MakeCmd make #define YaccCmd yacc #include /* minor changes to sv4Lib.rules */ #include #define DtSvcDefines -DXK_MISCELLANY -DMULTIBYTE #define DtSearchDefines -DI18N_MSG DtSvcDefines #define DtWidgetDefines DtSearchDefines #define DtPrintDefines DtSearchDefines #else /* !i386Sco325Architecture */ /* * This is the SCO 3.2v4.x and SCO 3.2v2.x section */ /* You must manually compute BootstrapCFlags for initial build */ #define OSMinorVersion 2 #ifdef i386Sco324Architecture # define BootstrapCFlags -DSYSV -Di386 -DSCO -DSCO324 # define OSTeenyVersion 4 # define OSName (SCO Version 3.2.4) # define OSDefines -DSCO -DSCO324 -Dsco -Dsco324 -DBROKEN_FTOL \ -D_NO_PROTOTYPE -D_SVID #else # define BootstrapCFlags -DSYSV -Di386 -DSCO # define OSTeenyVersion 2 # define OSName (SCO Version 3.2.2) # define OSDefines -DSCO -Dsco -DBROKEN_FTOL -DNO_PROTOTYPE \ -D_SVID #endif #ifdef i386Sco324Architecture /* * if your gcc is compiled with STDC_VALUE=0 then change the 1 to 0 */ # define GCC_STDC_VALUE 1 # if !GCC_STDC_VALUE # define OSDefines -DSCO -DSCO324 -Dsco -Dsco324 -DBROKEN_FTOL \ -D_NO_PROTOTYPE -D_SVID -D__STDC__=1 # undef StandardCppDefines # define StandardCppDefines -DUNIXCPP=1 StandardDefines # endif #endif #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC /* * The user should override this in their site.def if they have the real * crypt library. We default to the international crypt library here as * anyone may obtain that. */ #ifndef HasLibCrypt # define HasLibCrypt YES # define SpecialLibCrypt -lcrypt_i #endif #include #endif /* SCO 3.2.4 and SCO 3.2.2 section */ #ifdef i386Architecture #include #endif