Changeset 9589941
- Timestamp:
- 05/04/11 14:25:06 (10 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- b6664e8
- Parents:
- 3787331
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.in
rcd4e06c r9589941 98 98 AC_SYS_LARGEFILE 99 99 100 LIBPKTDUMP_LIBS="-ltrace " 101 LIBTRACE_LIBS="" 102 TOOLS_LIBS="" 103 100 104 # Set our C compiler flags based on the gcc version 101 105 if test "$GCC" = "yes"; then … … 213 217 AC_CHECK_HEADER(gdc.h,AC_DEFINE(HAVE_LIBGDC,1,[has gdc.h])) 214 218 215 # Check to see if we have libdl - *BSD has built-in libdl216 AC_SEARCH_LIBS(dlopen,dl, dlfound=1,dlfound=0 )217 218 if test "$dlfound" = 0; then219 AC_MSG_ERROR("Unable to find dlopen. Please use LDFLAGS to specify the location of libdl and re-run configure")220 fi221 222 219 # Check for libpcap 223 220 AC_CHECK_LIB(pcap,pcap_next_ex,pcapfound=1,pcapfound=0) … … 245 242 AC_MSG_ERROR(libpcap0.8 or greater is required to compile libtrace. If you have installed it in a non-standard location please use LDFLAGS to specify the location of the library) 246 243 else 247 ADD_LIBS="$ADD_LIBS -lpcap" 244 TOOL_LIBS="$TOOL_LIBS -lpcap" 245 LIBTRACE_LIBS="$LIBTRACE_LIBS -lpcap" 248 246 AC_DEFINE([HAVE_LIBPCAP],1,[compile with libpcap support]) 249 247 AC_DEFINE([HAVE_BPF_FILTER],1,[compile with bpf filter support]) … … 291 289 if test "$dag_found" = 1; then 292 290 ADD_LIBS="$ADD_LIBS -ldag" 291 LIBTRACE_LIBS="$LIBTRACE_LIBS -ldag" 293 292 AC_DEFINE(HAVE_DAG_API, 1, [define if you have the DAG API]) 294 293 AC_DEFINE(HAVE_DAG,1,[conditional for building with DAG live capture support]) … … 366 365 367 366 # Checks for various "optional" libraries 368 AC_CHECK_LIB(z, deflate )369 AC_CHECK_LIB(bz2, BZ2_bzDecompressInit )370 AC_CHECK_LIB(lzo2, lzo1x_1_compress )371 AC_CHECK_LIB(pthread, pthread_create )367 AC_CHECK_LIB(z, deflate, have_zlib=1, have_zlib=0) 368 AC_CHECK_LIB(bz2, BZ2_bzDecompressInit, have_bzip=1, have_bzip=0) 369 AC_CHECK_LIB(lzo2, lzo1x_1_compress, have_lzo=1, have_lzo=0) 370 AC_CHECK_LIB(pthread, pthread_create, have_pthread=1, have_pthread=0) 372 371 373 372 # Check for ncurses 374 AC_SEARCH_LIBS(mvprintw, ncurses, , have_ncurses=no) 373 AC_SEARCH_LIBS(mvprintw, ncurses, have_ncurses=yes, have_ncurses=no) 374 LIBS= 375 375 376 376 # These libraries have to be explicitly linked in OpenSolaris 377 AC_SEARCH_LIBS(getservent, socket, [], [], -lnsl) 378 AC_SEARCH_LIBS(inet_ntop, nsl, [], [], -lsocket) 377 AC_SEARCH_LIBS(getservent, socket, have_socket=1, have_socket=0, -lnsl) 378 LIBS= 379 380 AC_SEARCH_LIBS(inet_ntop, nsl, have_nsl=1, have_nsl=0, -lsocket) 381 LIBS= 382 383 # Check to see if we have libdl - *BSD has built-in libdl 384 AC_SEARCH_LIBS(dlopen,dl, dlfound=1,dlfound=0 ) 385 LIBS= 386 387 if test "$dlfound" = 0; then 388 AC_MSG_ERROR("Unable to find dlopen. Please use LDFLAGS to specify the location of libdl and re-run configure") 389 fi 390 391 if test "$ac_cv_search_dlopen" != "none required"; then 392 LIBPKTDUMP_LIBS="$LIBPKTDUMP_LIBS $ac_cv_search_dlopen" 393 fi 394 395 396 if test "$have_zlib" = 1; then 397 LIBTRACE_LIBS="$LIBTRACE_LIBS -lz" 398 AC_DEFINE(HAVE_LIBZ, 1, [Set to 1 if zlib is supported]) 399 fi 400 401 if test "$have_bzip" = 1; then 402 LIBTRACE_LIBS="$LIBTRACE_LIBS -lbz2" 403 AC_DEFINE(HAVE_LIBBZ2, 1, [Set to 1 if bzip2 is supported]) 404 fi 405 406 if test "$have_lzo" = 1; then 407 LIBTRACE_LIBS="$LIBTRACE_LIBS -llzo2" 408 AC_DEFINE(HAVE_LIBLZO2, 1, [Set to 1 if lzo2 is supported]) 409 fi 410 411 if test "$have_pthread" = 1; then 412 LIBTRACE_LIBS="$LIBTRACE_LIBS -lpthread" 413 AC_DEFINE(HAVE_LIBPTHREAD, 1, [Set to 1 if pthreads are supported]) 414 fi 415 416 if test "$have_ncurses" = "yes"; then 417 if test "$ac_cv_search_mvprintw" != "none required"; then 418 TOOLS_LIBS="$TOOLS_LIBS $ac_cv_search_mvprintw" 419 fi 420 fi 421 422 if test "$have_nsl" = 1; then 423 if test "$ac_cv_search_inet_ntop" != "none required"; then 424 LIBTRACE_LIBS="$LIBTRACE_LIBS $ac_cv_search_inet_ntop" 425 LIBPKTDUMP_LIBS="$LIBPKTDUMP_LIBS $ac_cv_search_inet_ntop" 426 fi 427 fi 428 429 if test "$have_socket" = 1; then 430 if test "$ac_cv_search_getservent" != "none required"; then 431 LIBTRACE_LIBS="$LIBTRACE_LIBS $ac_cv_search_getservent" 432 LIBPKTDUMP_LIBS="$LIBPKTDUMP_LIBS $ac_cv_search_getservent" 433 fi 434 fi 435 436 437 # Stupid AC_SEARCH_LIB appends stuff to LIBS even when I don't want it to, so 438 # just set libs to null here to avoid linking against them by default 439 LIBS= 440 379 441 380 442 # For now, the user has to explicitly ask for the LLVM stuff, as it's a bit … … 414 476 else 415 477 LIBCXXFLAGS="`$LLVM_CONFIG --cxxflags` $CXXFLAGS" 416 ADD_LIBS="$ADD_LIBS `$LLVM_CONFIG --libs all`";478 LIBTRACE_LIBS="$LIBRACE_LIBS `$LLVM_CONFIG --libs all`"; 417 479 LDFLAGS="`$LLVM_CONFIG --ldflags` $LDFLAGS"; 418 480 JIT=yes … … 427 489 AM_CONDITIONAL([DAG2_4], [test "$libtrace_dag_version" = 24]) 428 490 AM_CONDITIONAL([DAG2_5], [test "$libtrace_dag_version" = 25]) 429 AM_CONDITIONAL([HAVE_ZLIB], [test "$ ac_cv_lib_z_deflate" = yes])430 AM_CONDITIONAL([HAVE_BZLIB], [test "$ ac_cv_lib_bz2_BZ2_bzDecompressInit" = yes])431 AM_CONDITIONAL([HAVE_LZO], [test "$ ac_cv_lib_lzo2_lzo1x_1_compress" = yes])491 AM_CONDITIONAL([HAVE_ZLIB], [test "$have_zlib" = 1]) 492 AM_CONDITIONAL([HAVE_BZLIB], [test "$have_bzip" = 1]) 493 AM_CONDITIONAL([HAVE_LZO], [test "$have_lzo" = 1]) 432 494 AM_CONDITIONAL([HAVE_NETPACKET_PACKET_H], [test "$libtrace_netpacket_packet_h" = true]) 433 495 AM_CONDITIONAL([HAVE_LIBGDC], [test "$ac_cv_header_gdc_h" = yes]) 434 496 AM_CONDITIONAL([HAVE_LLVM], [test "x$JIT" != "xno" ]) 435 AM_CONDITIONAL([HAVE_NCURSES], [test " x$have_ncurses" = "xyes"])497 AM_CONDITIONAL([HAVE_NCURSES], [test "$xhave_ncurses" = "xyes"]) 436 498 437 499 # Check for miscellaneous programs … … 441 503 442 504 # Set all our output variables 443 AC_SUBST([ADD_LIBS]) 505 AC_SUBST([LIBTRACE_LIBS]) 506 AC_SUBST([LIBPKTDUMP_LIBS]) 507 AC_SUBST([TOOLS_LIBS]) 508 #AC_SUBST([ADD_LIBS]) 444 509 AC_SUBST([ADD_LDFLAGS]) 445 510 AC_SUBST([ADD_INCLS]) -
lib/Makefile.am
r9cc1266 r9589941 75 75 76 76 INCLUDES = @ADD_INCLS@ 77 libtrace_la_LIBADD = @ ADD_LIBS@ @LTLIBOBJS@77 libtrace_la_LIBADD = @LIBTRACE_LIBS@ @LTLIBOBJS@ 78 78 libtrace_la_LDFLAGS=-version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ @ADD_LDFLAGS@ 79 79 -
libpacketdump/Makefile.am
re845da6 r9589941 142 142 # which on non x86_32 platforms means that they cannot be linked into 143 143 # a shared library. 144 libpacketdump_la_LIBADD = @ ADD_LIBS@144 libpacketdump_la_LIBADD = @LIBPKTDUMP_LIBS@ 145 145 libpacketdump_la_LDFLAGS=\ 146 146 -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \ -
tools/Makefile.tools
r4249aa5 r9589941 1 2 1 3 AM_CFLAGS=-I"$(top_srcdir)/lib" -I"$(top_srcdir)/libpacketdump" 2 4 AM_CXXFLAGS=-I"$(top_srcdir)/lib" -I"$(top_srcdir)/libpacketdump" 3 AM_LDFLAGS=-L"$(top_srcdir)/lib" -L"$(top_srcdir)/libpacketdump" -ltrace 5 AM_LDFLAGS=-L"$(top_srcdir)/lib" -L"$(top_srcdir)/libpacketdump" -ltrace @TOOLS_LIBS@
Note: See TracChangeset
for help on using the changeset viewer.