summaryrefslogtreecommitdiffstats
path: root/lang/ferite/files/patch-configure
blob: c0de60585f6cc6ab15f5092323ccb0c950a31612 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55

$FreeBSD$

--- configure.orig	Wed Jan  9 08:47:22 2002
+++ configure	Wed Jan  9 12:39:13 2002
@@ -7096,13 +7096,13 @@
    { (exit 1); exit 1; }; }
 fi
 
-echo "$as_me:7099: checking for pthread_mutex_lock in -lpthread" >&5
-echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6
+echo "$as_me:7099: checking for pthread_mutex_lock in %%PTHREAD_LIBS%%" >&5
+echo $ECHO_N "checking for pthread_mutex_lock in %%PTHREAD_LIBS%%... $ECHO_C" >&6
 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="%%PTHREAD_LIBS%%  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line 7107 "configure"
 #include "confdefs.h"
@@ -7150,7 +7150,7 @@
 #define HAVE_LIBPTHREAD 1
 EOF
 
-  LIBS="-lpthread $LIBS"
+  LIBS="%%PTHREAD_LIBS%% $LIBS"
 
 else
 
@@ -7229,7 +7229,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lmysqlclient  $LIBS"
+LIBS="-L%%LOCALBASE%%/lib/mysql -lmysqlclient  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line 7234 "configure"
 #include "confdefs.h"
@@ -7279,10 +7279,10 @@
 fi
 
 if test "$mysql" = yes; then
-  mysql_LIBS=`mysql_config --libs`
-  mysql_CFLAGS=`mysql_config --cflags`
-  MYSQL_SOCKET=`mysql_config --socket`
-  MYSQL_PORT=`mysql_config --port`
+  mysql_LIBS="-L%%LOCALBASE%%/lib/mysql -lmysqlclient -lz -lm -lcrypt"
+  mysql_CFLAGS="-I%%LOCALBASE%%/include/mysql"
+  MYSQL_SOCKET=""
+  MYSQL_PORT=""
 
   sql_LIBS="$sql_LIBS $mysql_LIBS"
   sql_CFLAGS="$sql_CFLAGS $mysql_CFLAGS"
OpenPOWER on IntegriCloud