]> git.stg.codes - stg.git/commitdiff
Merge branch 'stg-2.409'
authorMaxim Mamontov <madf@madf.info>
Sun, 13 Nov 2016 02:17:00 +0000 (21:17 -0500)
committerMaxim Mamontov <madf@madf.info>
Sun, 13 Nov 2016 02:17:00 +0000 (21:17 -0500)
1  2 
projects/sgconv/build
projects/stargazer/build

diff --combined projects/sgconv/build
index 3c2f3f91367aae62e8cf88fdf6c9b47cc1e17228,5fa0f23c6c92830099a9485c5873c4c3fefadae0..676bf74ef4614fb3ce2b20767e27c2012c27ea63
@@@ -72,6 -72,7 +72,6 @@@ printf "       Building sgconv for $sy
  printf "#############################################################################\n"
  
  STG_LIBS="logger.lib
 -          locker.lib
            crypto.lib
            common.lib
            conffiles.lib
@@@ -99,7 -100,6 +99,6 @@@ els
              then
                  DEFS="$DEFS -DDARWIN"
                  LIB_THREAD=-lpthread
-                 LIBICONV=""
              else
                  LIB_THREAD=-lc_r
              fi
diff --combined projects/stargazer/build
index 638ed3ef75028106c1b2b4b97f432b57d4e6d6ff,1fbb8a98d86b21b618c235ee9bcc87463215baa6..92935c0537aceb25c85219ccc8dee7e03ab6e9ef
@@@ -132,7 -132,6 +132,6 @@@ els
              then
                  DEFS="$DEFS -DDARWIN"
                  LIB_THREAD=-lpthread
-                 LIBICONV=""
              else
                  LIB_THREAD=-lc_r
              fi
@@@ -391,19 -390,6 +390,19 @@@ els
      fi
  fi
  
 +printf "Checking for -lpcap... "
 +printf "#include <pcap.h>\nint main() { return 0; }\n" > build_check.c
 +$CC $CFLAGS $LDFLAGS build_check.c -lpcap -o fake > /dev/null 2> /dev/null
 +if [ $? != 0 ]
 +then
 +    CHECK_PCAP=no
 +    printf "no\n"
 +else
 +    CHECK_PCAP=yes
 +    printf "yes\n"
 +fi
 +rm -f fake
 +
  printf "Checking for -lnfnetlink... "
  printf "#include <stdint.h>\n#include <netinet/in.h>\n#include <linux/netfilter.h>\nint main() { return 0; }\n" > build_check.c
  $CC $CFLAGS $LDFLAGS build_check.c -lnfnetlink -o fake > /dev/null 2> /dev/null
@@@ -487,12 -473,6 +486,12 @@@ the
               configuration/rpcconfig"
  fi
  
 +if [ "$CHECK_PCAP" = "yes" ]
 +then
 +    PLUGINS="$PLUGINS
 +             capture/pcap"
 +fi
 +
  if [ "$CHECK_NFNETLINK" = "yes" -a "$CHECK_NFQ" = "yes" ]
  then
      PLUGINS="$PLUGINS
@@@ -534,7 -514,6 +533,7 @@@ the
      printf "XMLRPC_CFLAGS=$XMLRPC_CFLAGS\n" >> $CONFFILE
      printf "XMLRPC_LDFLAGS=$XMLRPC_LDFLAGS\n" >> $CONFFILE
  fi
 +printf "CHECK_PCAP=$CHECK_PCAP\n" >> $CONFFILE
  printf "CHECK_NFNETLINK=$CHECK_NFNETLINK\n" >> $CONFFILE
  if [ "$CHECK_NFNETLINK" = "yes" ]
  then