$NetBSD: patch-ab,v 1.1.1.1 2002/03/13 01:39:20 dmcmahill Exp $ - not all !sparcs are little endian. - don't assume /usr/local --- src/include/config.h.orig Tue Mar 5 14:22:45 2002 +++ src/include/config.h Tue Mar 5 15:01:41 2002 @@ -32,4 +32,6 @@ #define _CONFIG_H_ 1 +#include + /********************* MACHINE DETERMINATION *********************/ @@ -112,5 +114,5 @@ # include # endif -# ifdef sparc +# if BYTE_ORDER == BIG_ENDIAN # define BYTES_SWAPPED 1 /* bytes are MSB first */ # endif @@ -120,15 +122,15 @@ # define NONFILECH '?' /* character that cannot be in file name */ # define CADRCFILENAME ".cadrc" /* CAD startup file */ -# define LIBDIR "/usr/local/lib/electric/" /* location of library files */ -# define DOCDIR "/usr/local/doc/electric/html/" /* location of HTML files */ -# define ESIMLOC "/usr/local/bin/esim" -# define RSIMLOC "/usr/local/bin/rsim" -# define PRESIMLOC "/usr/local/bin/presim" -# define RNLLOC "/usr/local/bin/rnl" -# define SPICELOC "/usr/local/bin/spice" -# define FASTHENRYLOC "/usr/local/bin/fasthenry" +# define LIBDIR "@prefix@/share/electric/" /* location of library files */ +# define DOCDIR "@prefix@/share/doc/electric/html/" /* location of HTML files */ +# define ESIMLOC "@prefix@/bin/esim" +# define RSIMLOC "@prefix@/bin/rsim" +# define PRESIMLOC "@prefix@/bin/presim" +# define RNLLOC "@prefix@/bin/rnl" +# define SPICELOC "@localbase@/bin/spice3" +# define FASTHENRYLOC "@localbase@/bin/fasthenry" # define SORTLOC "/usr/bin/sort" -# define FLATDRCLOC "/usr/local/bin/ffindshort" -# define SFLATDRCLOC "/usr/local/bin/findshort" +# define FLATDRCLOC "@prefix@/bin/ffindshort" +# define SFLATDRCLOC "@prefix@/bin/findshort" # ifdef sun # define u_int64_t uint64_t