Changeset bf7018a


Ignore:
Timestamp:
11/03/05 13:32:56 (15 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
dc0162b
Parents:
86d98b4
Message:

improved detection for libgdc

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r5540efc rbf7018a  
    9292
    9393
    94 AC_CHECK_LIB(gdc,GDC_out_graph,
    95              libtrace_gdc=true,
    96              libtrace_gdc=false)
     94AC_CHECK_HEADER(gdc.h,
     95             [AC_DEFINE(HAVE_GDC_H,1,[Conditional for building with libGDC support]) libtrace_gdc=true],
     96             [AC_DEFINE(HAVE_GDC_H,0,[Conditional for building with libGDC support]) libtrace_gdc=false])
    9797
    9898# Check for various broken functions
  • tools/Makefile.am

    r86d98b4 rbf7018a  
    55
    66if LIBTRACE_TOOLS
    7 SUBDIRS=traceanon tracemerge tracesplit tracertstats $(TRACEDUMP_DIR) $(TRACERTSTATS_DIR)
     7SUBDIRS=traceanon tracemerge tracesplit $(TRACEDUMP_DIR) tracertstats
    88else
    99SUBDIRS=
  • tools/tracertstats/Makefile.am

    r86d98b4 rbf7018a  
    44if LIBGDC
    55OUTPUT_MODULES+=output_png.c
     6OUTPUT_PNG_LD=-lgdc
    67endif
    78
    89include ../Makefile.tools
    910tracertstats_SOURCES = tracertstats.c output.h output.c $(OUTPUT_MODULES)
    10 tracertstats_LDADD = -ltrace -lgdc
     11tracertstats_LDADD = -ltrace $(OUTPUT_PNG_LD)
  • tools/tracertstats/output.c

    r65cdb7f rbf7018a  
    66
    77#include "output.h"
     8#include "config.h"
    89
    910struct output_type_t *output_formats[] = {
    1011        &output_csv,
    1112        &output_html,
     13#if HAVE_GDC_H
    1214        &output_png,
     15#endif
    1316        NULL
    1417};
Note: See TracChangeset for help on using the changeset viewer.