1 diff --git a/Makefile.config b/Makefile.config
2 index 3e83b74..607c197 100644
5 @@ -310,7 +310,7 @@ C++FLAGS = -I$I $(OPTC) $(LARGE_FILE_FLAG) $(ENDIANFLAG) $(XDRFLAG)
6 #LD_LIBRARY_PATH = $(CWPROOT)/lib:/usr/X11R6/LessTif/lib
8 # under SUN OS and RedHat (and other) Linux uncomment the next line
9 -LD_LIBRARY_PATH += $(CWPROOT)/lib:/usr/X11R6/LessTif/lib
10 +LD_LIBRARY_PATH += $(CWPROOT)/lib
12 #############################################################################
14 @@ -445,10 +445,10 @@ include $(CWPROOT)/src/Rules/abbrev.rules
16 # Generic (RS6000, SGI)
18 -IX11 = /usr/local/include
22 -LX11 = /usr/local/lib
27 @@ -466,10 +466,10 @@ LX11 = /usr/local/lib
28 ## The following paths would be used under Linux
29 ## and possibly under SCO Unix installs
31 -IX11 = /usr/X11R6/include
35 -LX11 = /usr/X11R6/lib
40 @@ -488,39 +488,39 @@ LX11 = /usr/X11R6/lib
41 # if you have these include files and libraries.
44 -IMOTIF = /usr/local/include
45 +IMOTIF = $(shell sh -c 'motif-config --cflags')
48 -LMOTIF = /usr/local/lib
49 +LMOTIF = $(shell sh -c 'motif-config --libs')
51 # Example of Lesstif usage:
53 -IMOTIF = /usr/local/lesstif/include
54 +#IMOTIF = /usr/include
57 -LMOTIF = /usr/local/lesstif/lib
60 #### Example of Lesstif usage under RedHat
62 -IMOTIF = /usr/X11R6/LessTif/Motif2.0/include
63 +#IMOTIF = /usr/X11R6/LessTif/Motif2.0/include
66 -LMOTIF = /usr/X11R6/LessTif/Motif2.0/lib
67 +#LMOTIF = /usr/X11R6/LessTif/Motif2.0/lib
70 #### Open GL/Mesa include and library paths (generic example)
71 # Open GL/Mesa include path
72 -IGL = /usr/local/include
73 +IGL = $(shell sh -c 'pkg-config --cflags gl')
75 # Open GL/Mesa library path
77 +LGL = $(shell sh -c 'pkg-config --libs gl')
79 ## GLUT include and library paths
81 -IGLUT = /usr/local/include
85 -LGLUT = /usr/local/lib
88 #### examples for SGI with glut installed in /usr/local/glut-3.3
89 ## GLUT include and library paths
90 @@ -540,10 +540,10 @@ LGLUT = /usr/local/lib
92 #### Red Hat 7.2 Linux example
93 ## GLUT include and library paths
95 +#IGLUT = /usr/include
97 # Open GL/Mesa library path
102 ################################################################