summaryrefslogtreecommitdiff
path: root/math/snns/patches/patch-configure
blob: c4ad8643a5d04afb12d3c01c2211d0556873e3cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-configure,v 1.1 2016/05/07 10:04:00 joerg Exp $

--- configure.orig	2008-04-21 07:58:11.000000000 +0000
+++ configure
@@ -3706,9 +3706,9 @@ else
     X_LIBS="$X_LIBS -L$x_libraries"
     # For Solaris; some versions of Sun CC require a space after -R and
     # others require no space.  Words are not sufficient . . . .
-    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
-echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
-    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
+    { echo "$as_me:$LINENO: checking whether ${COMPILER_RPATH_FLAG} must be followed by a space" >&5
+echo $ECHO_N "checking whether ${COMPILER_RPATH_FLAG} must be followed by a space... $ECHO_C" >&6; }
+    ac_xsave_LIBS=$LIBS; LIBS="$LIBS ${COMPILER_RPATH_FLAG}$x_libraries"
     ac_xsave_c_werror_flag=$ac_c_werror_flag
     ac_c_werror_flag=yes
     cat >conftest.$ac_ext <<_ACEOF
@@ -3746,12 +3746,12 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
        $as_test_x conftest$ac_exeext; then
   { echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6; }
-       X_LIBS="$X_LIBS -R$x_libraries"
+       X_LIBS="$X_LIBS ${COMPILER_RPATH_FLAG}$x_libraries"
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-	LIBS="$ac_xsave_LIBS -R $x_libraries"
+	LIBS="$ac_xsave_LIBS ${COMPILER_RPATH_FLAG} $x_libraries"
        cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -3787,7 +3787,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
        $as_test_x conftest$ac_exeext; then
   { echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6; }
-	  X_LIBS="$X_LIBS -R $x_libraries"
+	  X_LIBS="$X_LIBS ${COMPILER_RPATH_FLAG} $x_libraries"
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5