summaryrefslogtreecommitdiff
path: root/security/nmap/files/patch-configure
blob: 9a56d338683196fc6b5d4cba5f28ed5736242d23 (plain) (blame)
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
--- configure.orig	2008-04-28 19:53:32.000000000 +0200
+++ configure	2008-05-04 20:25:47.000000000 +0200
@@ -1930,7 +1930,7 @@
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}gcc; ac_word=$2
+set dummy ${ac_tool_prefix}$CXX; ac_word=$2
 { echo "$as_me:$LINENO: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 if test "${ac_cv_prog_CC+set}" = set; then
@@ -7179,9 +7179,9 @@
     no_lua="yes"
   ;;
   *)
-    CPPFLAGS="-I$with_liblua/include $CPPFLAGS"
-    LDFLAGS="-L$with_liblua/lib $LDFLAGS"
-    have_lua=yes
+    CPPFLAGS="-I${LUA_INCDIR} $CPPFLAGS"
+    LDFLAGS="-L${LUA_LIBDIR} $LDFLAGS"
+    #have_lua=yes
   ;;
   esac
 
@@ -7189,7 +7189,7 @@
 
 
 # They don't want lua
-if test $no_lua == yes; then
+if test $no_lua = yes; then
   CXXFLAGS="-DNOLUA $CXXFLAGS"
   LIBLUA_LIBS=""
   LUA_DEPENDS=""