Skip to content

Commit

Permalink
Merge branch 'feature/aceremoval' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalgano committed Mar 4, 2016
2 parents 6ab26d6 + 35666a2 commit a153668
Show file tree
Hide file tree
Showing 127 changed files with 5,031 additions and 5,412 deletions.
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013-2015 - Adjacent Link LLC, Bridgewater, New Jersey
Copyright (c) 2013-2016 - Adjacent Link LLC, Bridgewater, New Jersey
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ EXTRA_DIST = \
ChangeLog \
NEWS \
emane.spec.in \
PROBLEM-REPORT-FORM \
SPONSOR \
README.md \
debian \
Expand Down
93 changes: 0 additions & 93 deletions PROBLEM-REPORT-FORM

This file was deleted.

59 changes: 7 additions & 52 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%AC_COPYRIGHT([
Copyright (c) 2013-2015 - Adjacent Link LLC, Bridgewater, New Jersey
Copyright (c) 2013-2016 - Adjacent Link LLC, Bridgewater, New Jersey
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -48,7 +48,6 @@ AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])

AC_PROG_INSTALL

AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL

AC_LANG([C++])
Expand All @@ -74,9 +73,6 @@ AC_ARG_WITH([testcases],
[AM_CONDITIONAL(WITH_TESTCASES,false)])


AC_ARG_VAR([ACE_CFLAGS],[C compiler flags for ACE])
AC_ARG_VAR([ACE_LIBS], [linker flags for ACE])

AC_ARG_VAR([pcap_CFLAGS],[C compiler flags for libpcap])
AC_ARG_VAR([pcap_LIBS], [linker flags for libpcap])

Expand All @@ -89,49 +85,8 @@ AC_CHECK_HEADER(sys/timerfd.h,
[],
[AC_MSG_ERROR("Missing sys/timerfd.h header")])

_cppflags=${CPPFLAGS}
_ldflags=${LDFLAGS}

# Checks for libraries.
if test "${ACE_CFLAGS}" != ""; then
CPPFLAGS="${ACE_CFLAGS} ${CPPFLAGS}"
fi

if test "${ACE_LIBS}" != ""; then
LDFLAGS="${ACE_LIBS} ${LDFLAGS}"
fi

AC_CHECK_HEADER(ace/OS_main.h,
[AC_CHECK_LIB([ACE],main,[ACE_LIBS+=' -lACE'],
[AC_MSG_ERROR("ACE not installed")])],
[AC_MSG_ERROR("Missing ACE development headers")])


CPPFLAGS=${_cppflags}
LDFLAGS=${_ldflags}

AC_SUBST(ACE_CFLAGS)
AC_SUBST(ACE_LIBS)

PCAP_LIB_NAME=pcap

WIN32_EXTRA_LIBADD=
WIN32_EXTRA_LDFLAGS=

case "$host" in
*-mingw*)
CPPFLAGS="$CPPFLAGS -DWIN32"
WIN32_EXTRA_LIBADD="-lws2_32 -liphlpapi"
WIN32_EXTRA_LDFLAGS=-no-undefined
PCAP_LIB_NAME=wpcap
;;
*)
LDFLAGS="$LDFLAGS -lpthread -ldl"
;;
esac

AC_SUBST(WIN32_EXTRA_LIBADD)
AC_SUBST(WIN32_EXTRA_LDFLAGS)
LDFLAGS="$LDFLAGS -lpthread -ldl"

_cppflags=${CPPFLAGS}
_ldflags=${LDFLAGS}
Expand All @@ -146,9 +101,9 @@ if test "${pcap_LIBS}" != ""; then
fi

AC_CHECK_HEADER(pcap.h,
[AC_CHECK_LIB([${PCAP_LIB_NAME}],pcap_open_live,[pcap_LIBS+=" -l${PCAP_LIB_NAME}"],
[AC_MSG_ERROR("${PCAP_LIB_NAME} not installed")])],
[AC_MSG_ERROR("Missing ${PCAP_LIB_NAME} development headers")])
[AC_CHECK_LIB([pcap],pcap_open_live,[pcap_LIBS+=" -lpcap"],
[AC_MSG_ERROR("pcap not installed")])],
[AC_MSG_ERROR("Missing pcap development headers")])


CPPFLAGS=${_cppflags}
Expand Down Expand Up @@ -186,10 +141,10 @@ CPPFLAGS="$CPPFLAGS -DVERBOSE_LOGGING"
fi

AC_SUBST(libemane_CFLAGS,
["${libxml2_CFLAGS} ${ACE_CFLAGS} ${protobuf_CFLAGS} ${libpcre_CFLAGS} ${libuuid_CFLAGS}"])
["${libxml2_CFLAGS} ${protobuf_CFLAGS} ${libpcre_CFLAGS} ${libuuid_CFLAGS}"])

AC_SUBST(libemane_LIBS,
["-lemane -lrt ${libxml2_LIBS} ${ACE_LIBS} ${protobuf_LIBS} ${libpcre_LIBS} ${libuuid_LIBS}"])
["-lemane -lrt ${libxml2_LIBS} ${protobuf_LIBS} ${libpcre_LIBS} ${libuuid_LIBS}"])

LANG=C
AC_SUBST(LANG)
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: emane
Section: unknown
Priority: extra
Maintainer: Adjacent Link LLC <emane@adjacentlink.com>
Build-Depends: debhelper (>= 8.0.0), autotools-dev,libxml2-dev, libprotobuf-dev, libpcre3-dev, libace-dev, libpcap-dev
Build-Depends: debhelper (>= 8.0.0), autotools-dev,libxml2-dev, libprotobuf-dev, libpcre3-dev, libpcap-dev
Standards-Version: 3.9.3
Homepage: https://github.com/adjacentlink/emane

Expand Down
2 changes: 1 addition & 1 deletion emane.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ make DESTDIR=${RPM_BUILD_ROOT} install
find ${RPM_BUILD_ROOT} -name '*.a' -exec rm '{}' \;
find ${RPM_BUILD_ROOT} -name '*.la' -exec rm '{}' \;
mkdir -p ${RPM_BUILD_ROOT}%{_pkgdocdir}
install -t ${RPM_BUILD_ROOT}%{_pkgdocdir} AUTHORS %{!?_licensedir:COPYING} ChangeLog NEWS README PROBLEM-REPORT-FORM SPONSOR
install -t ${RPM_BUILD_ROOT}%{_pkgdocdir} AUTHORS %{!?_licensedir:COPYING} ChangeLog NEWS README SPONSOR
%if 0%{?_licensedir:1}
mkdir -p ${RPM_BUILD_ROOT}%{_licensedir}/%{name}
install -t ${RPM_BUILD_ROOT}%{_licensedir}/%{name} COPYING
Expand Down
2 changes: 2 additions & 0 deletions include/emane/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ emaneinc_HEADERS = \
flowcontrolmanager.h \
frequencysegment.h \
frequencysegment.inl \
inetaddr.h \
inetaddrexception.h \
logserviceprovider.h \
logserviceprovider.inl \
maclayerimpl.h \
Expand Down
Loading

0 comments on commit a153668

Please sign in to comment.