# elif OSMinorVersion > 3
# define InstallCmd /usr/ucb/install
# endif
-# ifdef i386Architecture
-# define StandardDefines -Dsun -Di386 -DSVR4 -D__i386
+# if defined(i386Architecture)
+# define StandardDefines -Dsun -Di386 -DSVR4 -D__i386
# define ToolkitStringsABIOptions -intelabi
+# elif defined(SparcArchitecture)
+# define StandardDefines -Dsun -Dsparc -DSVR4 -D__sparc
+# define ToolkitStringsABIOptions -sparcabi
# else
-# define StandardDefines -Dsun -DSVR4
+# define StandardDefines -Dsun -DSVR4
# define ToolkitStringsABIOptions -sparcabi
# endif
# define ExtraLibraries -lsocket -lnsl
# if HasGcc2
# define SharedLibraryLoadFlags -shared
# define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
-# ifdef i386Architecture
+# if defined(i386Architecture) || defined(SparcArchitecture)
# define CcCmd gcc
# endif
# else
#define DtWidgetDefines DtSearchDefines
#define DtPrintDefines DtSearchDefines
+#ifndef CompressAllFonts
+#define CompressAllFonts YES
+#endif
+
/* For DtHelp TIFF processing routines. */
#if defined(AMD64Architecture) || defined(i386Architecture)
#define LSBBitOrder YES
#endif
#endif /* _AIX */
-XCOMM #########################################################################
-XCOMM
-XCOMM Sun - Locale and platform specific entries
-XCOMM
-XCOMM #########################################################################
-#ifdef sparc
-#ifdef _GERMAN_
-/usr/dt/appconfig/help/de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/help/de
- type = sym_link
-}
-#endif
-#ifdef _SPANISH_
-/usr/dt/appconfig/help/es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/help/es
- type = sym_link
-}
-#endif
-#ifdef _FRENCH_
-/usr/dt/appconfig/help/fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/help/fr
- type = sym_link
-}
-#endif
-#ifdef _ITALIAN_
-/usr/dt/appconfig/help/it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/help/it
- type = sym_link
-}
-#endif
-#ifdef _JAPANESE_
-/usr/dt/appconfig/help/ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/appconfig/help/ja
- type = sym_link
-}
-#endif
-#ifdef _KOREAN_
-/usr/dt/appconfig/help/ko_KR.dt-eucKR
-{ sun
- install_target = /usr/dt/appconfig/help/ko
- type = sym_link
-}
-#endif
-#ifdef _SWEDISH_
-/usr/dt/appconfig/help/sv_SE.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/help/sv
- type = sym_link
-}
-#endif
-#ifdef _CHINESE_
-/usr/dt/appconfig/help/zh_CN.dt-eucCN
-{ sun
- install_target = /usr/dt/appconfig/help/zh
- type = sym_link
-}
-#endif
-#ifdef _TAIWANESE_
-/usr/dt/appconfig/help/zh_TW.dt-eucTW
-{ sun
- install_target = /usr/dt/appconfig/help/zh_TW
- type = sym_link
-}
-#endif
-#endif /* SVR4 */
-
XCOMM #########################################################################
XCOMM
XCOMM Novell - Locale and platform specific entries
#endif /* _AIX */
-XCOMM ##########################################################################
-XCOMM
-XCOMM Sun - Locale and platform specific entries
-XCOMM
-XCOMM ##########################################################################
-#ifdef sparc
-#ifdef _GERMAN_
-../infolib/de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/infolib/de
- type = sym_link
-}
-#endif
-
-#ifdef _SPANISH_
-../infolib/es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/infolib/es
- type = sym_link
-}
-#endif
-
-#ifdef _FRENCH_
-../infolib/fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/infolib/fr
- type = sym_link
-}
-#endif
-
-#ifdef _ITALIAN_
-../infolib/it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/infolib/it
- type = sym_link
-}
-#endif
-
-#ifdef _JAPANESE_
-../infolib/ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/infolib/ja
- type = sym_link
-}
-#endif
-
-#endif /* SVR4 */
-
XCOMM ##########################################################################
XCOMM
XCOMM Novell - Locale and platform specific entries
#endif
#endif /* _AIX */
-XCOMM ##########################################################################
-XCOMM
-XCOMM Sun - Locale and platform specific entries
-XCOMM
-XCOMM ##########################################################################
-#ifdef sparc
-#ifdef _GERMAN_
-./de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/app-defaults/de
- type = sym_link
-}
-./de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/appmanager/de
- type = sym_link
-}
-./de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/types/de
- type = sym_link
-}
-./de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/config/de
- type = sym_link
-}
-./desc.de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/share/palettes/desc.de
- type = sym_link
-}
-./desc.de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/share/backdrops/desc.de
- type = sym_link
-}
-./de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/share/examples/types/de
- type = sym_link
-}
-#endif
-#ifdef _SPANISH_
-./es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/app-defaults/es
- type = sym_link
-}
-./es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/appmanager/es
- type = sym_link
-}
-./es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/types/es
- type = sym_link
-}
-./es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/config/es
- type = sym_link
-}
-./desc.es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/share/palettes/desc.es
- type = sym_link
-}
-./desc.es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/share/backdrops/desc.es
- type = sym_link
-}
-./es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/share/examples/types/es
- type = sym_link
-}
-#endif
-#ifdef _FRENCH_
-./fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/app-defaults/fr
- type = sym_link
-}
-./fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/appmanager/fr
- type = sym_link
-}
-./fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/types/fr
- type = sym_link
-}
-./fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/config/fr
- type = sym_link
-}
-./desc.fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/share/palettes/desc.fr
- type = sym_link
-}
-./desc.fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/share/backdrops/desc.fr
- type = sym_link
-}
-./fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/share/examples/types/fr
- type = sym_link
-}
-#endif
-#ifdef _ITALIAN_
-./it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/app-defaults/it
- type = sym_link
-}
-./it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/appmanager/it
- type = sym_link
-}
-./it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/types/it
- type = sym_link
-}
-./it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/config/it
- type = sym_link
-}
-./desc.it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/share/palettes/desc.it
- type = sym_link
-}
-./desc.it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/share/backdrops/desc.it
- type = sym_link
-}
-./it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/share/examples/types/it
- type = sym_link
-}
-#endif
-#ifdef _JAPANESE_
-./ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/app-defaults/ja
- type = sym_link
-}
-./ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/appconfig/appmanager/ja
- type = sym_link
-}
-./ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/appconfig/types/ja
- type = sym_link
-}
-./ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/config/ja
- type = sym_link
-}
-./desc.ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/share/palettes/desc.ja
- type = sym_link
-}
-./desc.ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/share/backdrops/desc.ja
- type = sym_link
-}
-./ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/share/examples/types/ja
- type = sym_link
-}
-XCOMM
-XCOMM dtimsstart configuration files
-XCOMM
-programs/dtimsstart/conf/hpux/ja_JP.eucJP
-{ sun
- install_target = /usr/dt/config/ims/ja
-}
-programs/dtimsstart/conf/hpux/xjim
-{ sun
- install_target = /usr/dt/config/ims/xjim
-}
-programs/dtimsstart/conf/hpux/atok8
-{ sun
- install_target = /usr/dt/config/ims/atok8
-}
-programs/dtimsstart/conf/hpux/vje
-{ sun
- install_target = /usr/dt/config/ims/vje
-}
-programs/dtimsstart/conf/hpux/egb
-{ sun
- install_target = /usr/dt/config/ims/egb
-}
-programs/dtimsstart/conf/hpux/builtin.jpn
-{ sun
- install_target = /usr/dt/config/ims/builtin.jpn
-}
-programs/dtimsstart/conf/hpux/none
-{ sun
- install_target = /usr/dt/config/ims/none
-}
-#endif
-#ifdef _KOREAN_
-./ko_KR.dt-eucKR
-{ sun
- install_target = /usr/dt/app-defaults/ko
- type = sym_link
-}
-./ko_KR.dt-eucKR
-{ sun
- install_target = /usr/dt/appconfig/appmanager/ko
- type = sym_link
-}
-./ko_KR.dt-eucKR
-{ sun
- install_target = /usr/dt/appconfig/types/ko
- type = sym_link
-}
-./ko_KR.dt-eucKR
-{ sun
- install_target = /usr/dt/config/ko
- type = sym_link
-}
-./desc.ko_KR.dt-eucKR
-{ sun
- install_target = /usr/dt/share/palettes/desc.ko
- type = sym_link
-}
-./desc.ko_KR.dt-eucKR
-{ sun
- install_target = /usr/dt/share/backdrops/desc.ko
- type = sym_link
-}
-./ko_KR.dt-eucKR
-{ sun
- install_target = /usr/dt/share/examples/types/ko
- type = sym_link
-}
-#endif
-#ifdef _SWEDISH_
-./sv_SE.ISO8859-1
-{ sun
- install_target = /usr/dt/app-defaults/sv
- type = sym_link
-}
-./sv_SE.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/appmanager/sv
- type = sym_link
-}
-./sv_SE.ISO8859-1
-{ sun
- install_target = /usr/dt/appconfig/types/sv
- type = sym_link
-}
-./sv_SE.ISO8859-1
-{ sun
- install_target = /usr/dt/config/sv
- type = sym_link
-}
-./desc.sv_SE.ISO8859-1
-{ sun
- install_target = /usr/dt/share/palettes/desc.sv
- type = sym_link
-}
-./desc.sv_SE.ISO8859-1
-{ sun
- install_target = /usr/dt/share/backdrops/desc.sv
- type = sym_link
-}
-./sv_SE.ISO8859-1
-{ sun
- install_target = /usr/dt/share/examples/types/sv
- type = sym_link
-}
-#endif
-#ifdef _CHINESE_
-./zh_CN.dt-eucCN
-{ sun
- install_target = /usr/dt/app-defaults/zh
- type = sym_link
-}
-./zh_CN.dt-eucCN
-{ sun
- install_target = /usr/dt/appconfig/appmanager/zh
- type = sym_link
-}
-./zh_CN.dt-eucCN
-{ sun
- install_target = /usr/dt/appconfig/types/zh
- type = sym_link
-}
-./zh_CN.dt-eucCN
-{ sun
- install_target = /usr/dt/config/zh
- type = sym_link
-}
-./desc.zh_CN.dt-eucCN
-{ sun
- install_target = /usr/dt/share/palettes/desc.zh
- type = sym_link
-}
-./desc.zh_CN.dt-eucCN
-{ sun
- install_target = /usr/dt/share/backdrops/desc.zh
- type = sym_link
-}
-./zh_CN.dt-eucCN
-{ sun
- install_target = /usr/dt/share/examples/types/zh
- type = sym_link
-}
-#endif
-#ifdef _TAIWANESE_
-./zh_TW.dt-eucTW
-{ sun
- install_target = /usr/dt/app-defaults/zh_TW
- type = sym_link
-}
-./zh_TW.dt-eucTW
-{ sun
- install_target = /usr/dt/appconfig/appmanager/zh_TW
- type = sym_link
-}
-./zh_TW.dt-eucTW
-{ sun
- install_target = /usr/dt/appconfig/types/zh_TW
- type = sym_link
-}
-./zh_TW.dt-eucTW
-{ sun
- install_target = /usr/dt/config/zh_TW
- type = sym_link
-}
-./desc.zh_TW.dt-eucTW
-{ sun
- install_target = /usr/dt/share/palettes/desc.zh_TW
- type = sym_link
-}
-./desc.zh_TW.dt-eucTW
-{ sun
- install_target = /usr/dt/share/backdrops/desc.zh_TW
- type = sym_link
-}
-./zh_TW.dt-eucTW
-{ sun
- install_target = /usr/dt/share/examples/types/zh_TW
- type = sym_link
-}
-#endif
-#endif /* SVR4 */
-
XCOMM ##########################################################################
XCOMM
XCOMM Novell - Locale and platform specific entries
#endif
#endif /* _AIX */
-XCOMM ##########################################################################
-XCOMM
-XCOMM Sun - Locale and platform specific entries
-XCOMM
-XCOMM ##########################################################################
-#ifdef sparc
-#ifdef _GERMAN_
-/usr/dt/lib/nls/msg/de_DE.ISO8859-1
-{ sun
- install_target = /usr/dt/lib/nls/msg/de
- type = sym_link
-}
-#endif
-#ifdef _SPANISH_
-/usr/dt/lib/nls/msg/es_ES.ISO8859-1
-{ sun
- install_target = /usr/dt/lib/nls/msg/es
- type = sym_link
-}
-#endif
-#ifdef _FRENCH_
-/usr/dt/lib/nls/msg/fr_FR.ISO8859-1
-{ sun
- install_target = /usr/dt/lib/nls/msg/fr
- type = sym_link
-}
-#endif
-#ifdef _ITALIAN_
-/usr/dt/lib/nls/msg/it_IT.ISO8859-1
-{ sun
- install_target = /usr/dt/lib/nls/msg/it
- type = sym_link
-}
-#endif
-#ifdef _JAPANESE_
-/usr/dt/lib/nls/msg/ja_JP.dt-eucJP
-{ sun
- install_target = /usr/dt/lib/nls/msg/ja
- type = sym_link
-}
-#endif
-#ifdef _KOREAN_
-/usr/dt/lib/nls/msg/ko_KR.dt-eucKR
-{ sun
- install_target = /usr/dt/lib/nls/msg/ko
- type = sym_link
-}
-#endif
-#ifdef _SWEDISH_
-/usr/dt/lib/nls/msg/sv_SE.ISO8859-1
-{ sun
- install_target = /usr/dt/lib/nls/msg/sv
- type = sym_link
-}
-#endif
-#ifdef _CHINESE_
-/usr/dt/lib/nls/msg/zh_CN.dt-eucCN
-{ sun
- install_target = /usr/dt/lib/nls/msg/zh
- type = sym_link
-}
-#endif
-#ifdef _TAIWANESE_
-/usr/dt/lib/nls/msg/zh_TW.dt-eucTW
-{ sun
- install_target = /usr/dt/lib/nls/msg/zh_TW
- type = sym_link
-}
-#endif
-#endif /* SVR4 */
-
XCOMM ##########################################################################
XCOMM
XCOMM Novell - Locale and platform specific entries
#endif
#if defined(SunArchitecture)
-EXTRA_DEFINES = -DBYTE_SWAP -D_XOPEN_SOURCE=700
+EXTRA_DEFINES = -DBYTE_SWAP -D_XOPEN_SOURCE=500
#endif
#define DoNormalLib NormalLibDtSearch
int temp;
if (isnan(result)) return result;
-#if defined(_AIX) || defined(__aix) || defined(__osf__)
+#if defined(_AIX) || defined(__aix) || defined(__osf__) || defined(__sparc)
temp = finite(result);
if (!temp)
return (temp > 0) ? HUGE : -HUGE;
new_w = w - f / f_prime;
-#if defined(_AIX) || defined(__aix) || defined (__osf__)
+#if defined(_AIX) || defined(__aix) || defined (__osf__) || defined(__sparc)
if (!(!isnan(new_w) && finite(new_w)))
return FALSE;
#else
.y.c:
$(YACC) -d $(YFLAGS) $<
- sed -e "s/yy/yyy/g" -e "\a# linea D" y.tab.c > $*.c
+ sed -e "s/yy/yyy/g" -e "/# line/d" y.tab.c > $*.c
sed s/yy/yyy/g y.tab.h > $*.h
$(RM) y.tab.c y.tab.h
#elif defined (__hpux)
# define cpp_XDMSYS "/usr/lib/X11/xdm/sys.xsession"
#elif defined (sun)
+# define cpp_XINITUSER "$HOME/.xinitrc"
# define cpp_MAIL "/var/mail/$USER"
+# undef cpp_HELLO
+# define cpp_HELLO "$DT_BINPATH/dthello -file $DT_INSTALL/copyright &"
#endif
#ifdef __osf__
#define DEF_NLS_DIR "/usr/lib/nls/loc"
#elif defined(hpV4)
#define DEF_NLS_DIR "/usr/lib/nls/msg"
-#elif defined(sun) || defined(__uxp__) || defined(USL)
+#elif defined(__uxp__) || defined(USL)
#define DEF_NLS_DIR "/usr/lib/locale"
#else
#define DEF_NLS_DIR CDE_INSTALLATION_TOP "/lib/nls/msg"
}
#endif /* __osf__obsoleted__ */
-#elif defined(sun)
-/*
- * Scan for installed locales on Sun platform.
- */
-{
- DIR *dirp;
- struct dirent *dp;
- char* filename;
- char path1[MAXPATHLEN], path2[MAXPATHLEN];
- struct stat stat1, stat2;
- int retval1, retval2;
-
- /*
- * To determin the fully installed locale list, check several locations.
- */
- if((dirp = opendir(DEF_X11_NLS_SHARE_DIR)) != NULL)
- {
- while((dp = readdir(dirp)) != NULL)
- {
- filename = dp->d_name;
-
- if ( filename[0] != '.' &&
- (int)(strlen(languageList) +
- strlen(filename) + 2) < LANGLISTSIZE)
- {
- (void) sprintf(path1, "%s/%s", DEF_X11_NLS_LIB_DIR, filename);
- (void) sprintf(path2, "%s/%s", dirname, filename);
- retval1 = stat(path1, &stat1);
- retval2 = stat(path2, &stat2);
-
- if ( retval1==0 && retval2==0 &&
- S_ISDIR(stat1.st_mode) && S_ISDIR(stat2.st_mode) )
- {
- strcat(languageList, " ");
- strcat(languageList, filename);
- }
- }
- }
- closedir(dirp);
- }
-}
-
#elif defined(__uxp__) || defined(USL)
#define LC_COLLATE "LC_COLLATE"
# endif /* USE_SPRO_V3 */
EXTRA_C++OPTIONS = +p +w $(SPRO_V3_OPTIONS)
-MT_LIBS = -i $(C++_LIB) -lm -lw -lc
+MT_LIBS = $(C++_LIB) -lm -lw -lc
SYS_LIBRARIES = -lintl -lnsl $(MT_LIBS)
#endif /* SunArchitecture */
CXXOPTIONS = \
-DSP_VOLATILE= -DSP_CONST= \
-DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_ANSI_CLASS_INST
-EXTRA_INCLUDES = -I/opt/SUNWspro/SC2.0.1/include/CC
/*
* Flags passed into compile step when doing manual template instantiation.
#include <stdlib.h>
#include "macros.h"
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(sun)
void exit(int) __attribute__((noreturn));
#endif