Lines 1-19
Link Here
|
1 |
--- configure.orig 2018-09-06 07:41:13 UTC |
1 |
--- configure.orig 2021-04-22 18:04:21 UTC |
2 |
+++ configure |
2 |
+++ configure |
3 |
@@ -360,10 +360,10 @@ if [ z$NOX11 = z ]; then |
3 |
@@ -330,10 +330,10 @@ if [ z$NOX11 = z ]; then |
4 |
|
4 |
|
5 |
XOK=0 |
5 |
XOK=0 |
6 |
|
6 |
|
7 |
- XINCLUDE=-I/usr/X11R6/include |
7 |
- XINCLUDE=-I/usr/X11R6/include |
8 |
+ XINCLUDE=-I${LOCALBASE}/include |
8 |
+ XINCLUDE=-I${LOCALBASE}/include |
9 |
$CXX $CXXFLAGS _test_x11.cc -c -o _test_x11.o $XINCLUDE 2> /dev/null |
9 |
$CC $CFLAGS _test_x11.c -c -o _test_x11.o $XINCLUDE 2> /dev/null |
10 |
|
10 |
|
11 |
- XLIB="-L/usr/X11R6/lib -lX11" |
11 |
- XLIB="-L/usr/X11R6/lib -lX11 -Wl,-rpath,/usr/X11R6/lib" |
12 |
+ XLIB="-L${LOCALBASE}/lib -lX11" |
12 |
+ XLIB="-L${LOCALBASE}/lib -lX11 -Wl,-rpath,${LOCALBASE}/lib" |
13 |
$CXX $CXXFLAGS _test_x11.o -o _test_x11 $XLIB 2> /dev/null |
13 |
$CC $CFLAGS _test_x11.o -o _test_x11 $XLIB 2> /dev/null |
14 |
|
14 |
|
15 |
if [ -x _test_x11 ]; then |
15 |
if [ -x _test_x11 ]; then |
16 |
@@ -578,22 +578,6 @@ else |
16 |
@@ -539,27 +539,6 @@ else |
17 |
fi |
17 |
fi |
18 |
fi |
18 |
fi |
19 |
rm -f _testprog _testprog.error _testprog.stdout |
19 |
rm -f _testprog _testprog.error _testprog.stdout |
Lines 21-35
Link Here
|
21 |
- |
21 |
- |
22 |
-# -O optimization for non-debug builds. Try -O and -O3. |
22 |
-# -O optimization for non-debug builds. Try -O and -O3. |
23 |
-if [ ! z"$DEBUG" = zYES ]; then |
23 |
-if [ ! z"$DEBUG" = zYES ]; then |
24 |
- $CXX $CXXFLAGS -O _testprog.cc -o _testprog 2> /dev/null |
24 |
- printf "checking whether -O3 or -O can be used (non-DEBUG build)... " |
|
|
25 |
- $CC $CFLAGS -O _testprog.c -o _testprog 2> /dev/null |
25 |
- if [ -x _testprog ]; then |
26 |
- if [ -x _testprog ]; then |
26 |
- rm -f _testprog |
27 |
- rm -f _testprog |
27 |
- $CXX $CXXFLAGS -O3 _testprog.cc -o _testprog 2> /dev/null |
28 |
- $CC $CFLAGS -O3 _testprog.c -o _testprog 2> /dev/null |
28 |
- if [ -x _testprog ]; then |
29 |
- if [ -x _testprog ]; then |
29 |
- CXXFLAGS="-O3 $CXXFLAGS" |
30 |
- CFLAGS="-O3 $CFLAGS" |
|
|
31 |
- printf "yes, -O3\n" |
30 |
- else |
32 |
- else |
31 |
- CXXFLAGS="-O $CXXFLAGS" |
33 |
- CFLAGS="-O $CFLAGS" |
|
|
34 |
- printf "yes, -O\n" |
32 |
- fi |
35 |
- fi |
|
|
36 |
- else |
37 |
- printf "no\n" |
33 |
- fi |
38 |
- fi |
34 |
-fi |
39 |
-fi |
35 |
-rm -f _testprog |
40 |
-rm -f _testprog |