Changeset 60fc8aa


Ignore:
Timestamp:
08/10/04 16:47:01 (16 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:
8ba625e
Parents:
97eadcc
Message:

poink

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Makefile.in

    r7957e84 r60fc8aa  
    8787ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    8888mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
    89 CONFIG_HEADER = config.h
     89CONFIG_HEADER = $(top_builddir)/lib/config.h
    9090CONFIG_CLEAN_FILES =
    9191DIST_SOURCES =
     
    9595        install-exec-recursive installdirs-recursive install-recursive \
    9696        uninstall-recursive check-recursive installcheck-recursive
    97 DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
    98         Makefile.am Makefile.in NEWS aclocal.m4 config.guess \
    99         config.h.in config.sub configure configure.in depcomp \
    100         install-sh ltmain.sh missing mkinstalldirs
     97DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
     98        Makefile.in NEWS aclocal.m4 config.guess config.sub configure \
     99        configure.in depcomp install-sh ltmain.sh missing mkinstalldirs
    101100DIST_SUBDIRS = $(SUBDIRS)
    102 all: config.h
    103         $(MAKE) $(AM_MAKEFLAGS) all-recursive
     101all: all-recursive
    104102
    105103.SUFFIXES:
     
    128126$(ACLOCAL_M4):  configure.in
    129127        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    130 config.h: stamp-h
    131         @if test ! -f $@; then \
    132                 rm -f stamp-h; \
    133                 $(MAKE) stamp-h; \
    134         else :; fi
    135 stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
    136         @rm -f stamp-h stamp-hT
    137         @echo timestamp > stamp-hT 2> /dev/null
    138         cd $(top_builddir) \
    139           && CONFIG_FILES= CONFIG_HEADERS=config.h \
    140              $(SHELL) ./config.status
    141         @mv stamp-hT stamp-h
    142 $(srcdir)/config.h.in:  $(srcdir)/./stamp-h.in
    143         @if test ! -f $@; then \
    144                 rm -f $(srcdir)/./stamp-h.in; \
    145                 $(MAKE) $(srcdir)/./stamp-h.in; \
    146         else :; fi
    147 $(srcdir)/./stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
    148         @rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT
    149         @echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null
    150         cd $(top_srcdir) && $(AUTOHEADER)
    151         @mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in
    152 
    153 distclean-hdr:
    154         -rm -f config.h
    155128uninstall-info-am:
    156129
     
    221194        mkid -fID $$unique $(LISP)
    222195
    223 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
     196TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
    224197                $(TAGS_FILES) $(LISP)
    225198        tags=; \
     
    236209          $(AWK) '    { files[$$0] = 1; } \
    237210               END { for (i in files) print i; }'`; \
    238         test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
    239           || etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP)
     211        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     212          || etags $(ETAGS_ARGS) $$tags $$unique $(LISP)
    240213
    241214GTAGS:
     
    328301check-am: all-am
    329302check: check-recursive
    330 all-am: Makefile config.h
     303all-am: Makefile
    331304installdirs: installdirs-recursive
    332305installdirs-am:
     
    364337distclean: distclean-recursive
    365338        -rm -f config.status config.cache config.log
    366 distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \
     339distclean-am: clean-am distclean-generic distclean-libtool \
    367340        distclean-tags
    368341
     
    399372.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
    400373        clean-generic clean-libtool clean-recursive dist dist-all \
    401         distcheck distclean distclean-generic distclean-hdr \
    402         distclean-libtool distclean-recursive distclean-tags distdir \
    403         dvi dvi-am dvi-recursive info info-am info-recursive install \
    404         install-am install-data install-data-am install-data-recursive \
     374        distcheck distclean distclean-generic distclean-libtool \
     375        distclean-recursive distclean-tags distdir dvi dvi-am \
     376        dvi-recursive info info-am info-recursive install install-am \
     377        install-data install-data-am install-data-recursive \
    405378        install-exec install-exec-am install-exec-recursive \
    406379        install-info install-info-am install-info-recursive install-man \
  • aclocal.m4

    r7957e84 r60fc8aa  
    491491  $1_FALSE=
    492492fi])
     493
     494# Like AC_CONFIG_HEADER, but automatically create stamp file.
     495
     496# serial 3
     497
     498# When config.status generates a header, we must update the stamp-h file.
     499# This file resides in the same directory as the config header
     500# that is generated.  We must strip everything past the first ":",
     501# and everything past the last "/".
     502
     503AC_PREREQ([2.12])
     504
     505AC_DEFUN([AM_CONFIG_HEADER],
     506[ifdef([AC_FOREACH],dnl
     507         [dnl init our file count if it isn't already
     508         m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0]))
     509         dnl prepare to store our destination file list for use in config.status
     510         AC_FOREACH([_AM_File], [$1],
     511                    [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*]))
     512                    m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index))
     513                    dnl and add it to the list of files AC keeps track of, along
     514                    dnl with our hook
     515                    AC_CONFIG_HEADERS(_AM_File,
     516dnl COMMANDS, [, INIT-CMDS]
     517[# update the timestamp
     518echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["
     519][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS
     520                    m4_popdef([_AM_Dest])])],dnl
     521[AC_CONFIG_HEADER([$1])
     522  AC_OUTPUT_COMMANDS(
     523   ifelse(patsubst([$1], [[^ ]], []),
     524          [],
     525          [test -z "$CONFIG_HEADERS" || echo timestamp >dnl
     526           patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl
     527[am_indx=1
     528for am_file in $1; do
     529  case " \$CONFIG_HEADERS " in
     530  *" \$am_file "*)
     531    am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
     532    if test -n "\$am_dir"; then
     533      am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
     534      for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
     535        am_tmpdir=\$am_tmpdir\$am_subdir/
     536        if test ! -d \$am_tmpdir; then
     537          mkdir \$am_tmpdir
     538        fi
     539      done
     540    fi
     541    echo timestamp > "\$am_dir"stamp-h\$am_indx
     542    ;;
     543  esac
     544  am_indx=\`expr \$am_indx + 1\`
     545done])
     546])]) # AM_CONFIG_HEADER
     547
     548# _AM_DIRNAME(PATH)
     549# -----------------
     550# Like AS_DIRNAME, only do it during macro expansion
     551AC_DEFUN([_AM_DIRNAME],
     552       [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
     553              m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1,
     554                    m4_if(m4_regexp([$1], [^/.*]), -1,
     555                          [.],
     556                          m4_patsubst([$1], [^\(/\).*], [\1])),
     557                    m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
     558              m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
     559]) # _AM_DIRNAME
    493560
    494561# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
  • configure

    r7957e84 r60fc8aa  
    418418PACKAGE_BUGREPORT=
    419419
     420ac_unique_file="lib/trace.c"
    420421ac_unique_file="lib/trace.c"
    421422# Factoring default headers for most tests.
     
    16971698
    16981699
    1699 ac_config_headers="$ac_config_headers config.h"
     1700
     1701
     1702
     1703
     1704                                                    ac_config_headers="$ac_config_headers lib/config.h"
    17001705
    17011706ac_ext=c
     
    41474152*-*-irix6*)
    41484153  # Find out which ABI we are using.
    4149   echo '#line 4149 "configure"' > conftest.$ac_ext
     4154  echo '#line 4154 "configure"' > conftest.$ac_ext
    41504155  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    41514156  (eval $ac_compile) 2>&5
     
    46834688CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
    46844689compiler_c_o=no
    4685 if { (eval echo configure:4685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
     4690if { (eval echo configure:4690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
    46864691  # The compiler can only warn and ignore the option if not recognized
    46874692  # So say no if there are warnings
     
    64816486  lt_status=$lt_dlunknown
    64826487  cat > conftest.$ac_ext <<EOF
    6483 #line 6483 "configure"
     6488#line 6488 "configure"
    64846489#include "confdefs.h"
    64856490
     
    65796584  lt_status=$lt_dlunknown
    65806585  cat > conftest.$ac_ext <<EOF
    6581 #line 6581 "configure"
     6586#line 6586 "configure"
    65826587#include "confdefs.h"
    65836588
     
    73057310
    73067311
     7312AC_GNU_SOURCE
     7313
    73077314echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    73087315echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     
    74487455
    74497456
    7450 
    7451 
    7452 
    7453 
    7454 
    7455 
    7456 
    7457 
    7458 
    7459 
    7460 
    7461 
    7462 
    7463 
    7464 
    7465 
    7466 
    7467 
    7468 
    7469 
    7470 
    7471 
    7472 for ac_header in errno.h stdlib.h stdio.h assert.h string.h netinet/in.h assert.h errno.h fcntl.h net/ethernet.h netdb.h pcap.h stdio.h stdlib.h string.h sys/stat.h sys/types.h sys/socket.h sys/un.h unistd.h time.h sys/ioctl.h net/bpf.h pcap.h zlib.h pcap-bpf.h
     7457for ac_header in pcap.h zlib.h pcap-bpf.h net/bpf.h
    74737458do
    74747459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    78327817esac
    78337818
     7819echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
     7820echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
     7821if test "${ac_cv_c_bigendian+set}" = set; then
     7822  echo $ECHO_N "(cached) $ECHO_C" >&6
     7823else
     7824  # See if sys/param.h defines the BYTE_ORDER macro.
     7825cat >conftest.$ac_ext <<_ACEOF
     7826#line $LINENO "configure"
     7827#include "confdefs.h"
     7828#include <sys/types.h>
     7829#include <sys/param.h>
     7830
     7831#ifdef F77_DUMMY_MAIN
     7832#  ifdef __cplusplus
     7833     extern "C"
     7834#  endif
     7835   int F77_DUMMY_MAIN() { return 1; }
     7836#endif
     7837int
     7838main ()
     7839{
     7840#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
     7841 bogus endian macros
     7842#endif
     7843
     7844  ;
     7845  return 0;
     7846}
     7847_ACEOF
     7848rm -f conftest.$ac_objext
     7849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7850  (eval $ac_compile) 2>&5
     7851  ac_status=$?
     7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7853  (exit $ac_status); } &&
     7854         { ac_try='test -s conftest.$ac_objext'
     7855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7856  (eval $ac_try) 2>&5
     7857  ac_status=$?
     7858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7859  (exit $ac_status); }; }; then
     7860  # It does; now see whether it defined to BIG_ENDIAN or not.
     7861cat >conftest.$ac_ext <<_ACEOF
     7862#line $LINENO "configure"
     7863#include "confdefs.h"
     7864#include <sys/types.h>
     7865#include <sys/param.h>
     7866
     7867#ifdef F77_DUMMY_MAIN
     7868#  ifdef __cplusplus
     7869     extern "C"
     7870#  endif
     7871   int F77_DUMMY_MAIN() { return 1; }
     7872#endif
     7873int
     7874main ()
     7875{
     7876#if BYTE_ORDER != BIG_ENDIAN
     7877 not big endian
     7878#endif
     7879
     7880  ;
     7881  return 0;
     7882}
     7883_ACEOF
     7884rm -f conftest.$ac_objext
     7885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7886  (eval $ac_compile) 2>&5
     7887  ac_status=$?
     7888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7889  (exit $ac_status); } &&
     7890         { ac_try='test -s conftest.$ac_objext'
     7891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7892  (eval $ac_try) 2>&5
     7893  ac_status=$?
     7894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7895  (exit $ac_status); }; }; then
     7896  ac_cv_c_bigendian=yes
     7897else
     7898  echo "$as_me: failed program was:" >&5
     7899cat conftest.$ac_ext >&5
     7900ac_cv_c_bigendian=no
     7901fi
     7902rm -f conftest.$ac_objext conftest.$ac_ext
     7903else
     7904  echo "$as_me: failed program was:" >&5
     7905cat conftest.$ac_ext >&5
     7906# It does not; compile a test program.
     7907if test "$cross_compiling" = yes; then
     7908  # try to guess the endianess by grep'ing values into an object file
     7909  ac_cv_c_bigendian=unknown
     7910  cat >conftest.$ac_ext <<_ACEOF
     7911#line $LINENO "configure"
     7912#include "confdefs.h"
     7913short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     7914short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     7915void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
     7916short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     7917short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     7918void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     7919#ifdef F77_DUMMY_MAIN
     7920#  ifdef __cplusplus
     7921     extern "C"
     7922#  endif
     7923   int F77_DUMMY_MAIN() { return 1; }
     7924#endif
     7925int
     7926main ()
     7927{
     7928 _ascii (); _ebcdic ();
     7929  ;
     7930  return 0;
     7931}
     7932_ACEOF
     7933rm -f conftest.$ac_objext
     7934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7935  (eval $ac_compile) 2>&5
     7936  ac_status=$?
     7937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7938  (exit $ac_status); } &&
     7939         { ac_try='test -s conftest.$ac_objext'
     7940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7941  (eval $ac_try) 2>&5
     7942  ac_status=$?
     7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7944  (exit $ac_status); }; }; then
     7945  if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
     7946  ac_cv_c_bigendian=yes
     7947fi
     7948if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     7949  if test "$ac_cv_c_bigendian" = unknown; then
     7950    ac_cv_c_bigendian=no
     7951  else
     7952    # finding both strings is unlikely to happen, but who knows?
     7953    ac_cv_c_bigendian=unknown
     7954  fi
     7955fi
     7956else
     7957  echo "$as_me: failed program was:" >&5
     7958cat conftest.$ac_ext >&5
     7959fi
     7960rm -f conftest.$ac_objext conftest.$ac_ext
     7961else
     7962  cat >conftest.$ac_ext <<_ACEOF
     7963#line $LINENO "configure"
     7964#include "confdefs.h"
     7965int
     7966main ()
     7967{
     7968  /* Are we little or big endian?  From Harbison&Steele.  */
     7969  union
     7970  {
     7971    long l;
     7972    char c[sizeof (long)];
     7973  } u;
     7974  u.l = 1;
     7975  exit (u.c[sizeof (long) - 1] == 1);
     7976}
     7977_ACEOF
     7978rm -f conftest$ac_exeext
     7979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7980  (eval $ac_link) 2>&5
     7981  ac_status=$?
     7982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7983  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     7984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7985  (eval $ac_try) 2>&5
     7986  ac_status=$?
     7987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7988  (exit $ac_status); }; }; then
     7989  ac_cv_c_bigendian=no
     7990else
     7991  echo "$as_me: program exited with status $ac_status" >&5
     7992echo "$as_me: failed program was:" >&5
     7993cat conftest.$ac_ext >&5
     7994( exit $ac_status )
     7995ac_cv_c_bigendian=yes
     7996fi
     7997rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     7998fi
     7999fi
     8000rm -f conftest.$ac_objext conftest.$ac_ext
     8001fi
     8002echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
     8003echo "${ECHO_T}$ac_cv_c_bigendian" >&6
     8004case $ac_cv_c_bigendian in
     8005  yes)
     8006
     8007cat >>confdefs.h <<\_ACEOF
     8008#define WORDS_BIGENDIAN 1
     8009_ACEOF
     8010 ;;
     8011  no)
     8012     ;;
     8013  *)
     8014    { { echo "$as_me:$LINENO: error: unknown endianess
     8015presetting ac_cv_c_bigendian=no (or yes) will help" >&5
     8016echo "$as_me: error: unknown endianess
     8017presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
     8018   { (exit 1); exit 1; }; } ;;
     8019esac
     8020
    78348021echo "$as_me:$LINENO: checking for size_t" >&5
    78358022echo $ECHO_N "checking for size_t... $ECHO_C" >&6
     
    79468133
    79478134fi
    7948 
    7949 
    7950 if test $ac_cv_c_compiler_gnu = yes; then
    7951     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    7952 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    7953 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    7954   echo $ECHO_N "(cached) $ECHO_C" >&6
    7955 else
    7956     ac_pattern="Autoconf.*'x'"
    7957   cat >conftest.$ac_ext <<_ACEOF
    7958 #line $LINENO "configure"
    7959 #include "confdefs.h"
    7960 #include <sgtty.h>
    7961 Autoconf TIOCGETP
    7962 _ACEOF
    7963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    7964   egrep "$ac_pattern" >/dev/null 2>&1; then
    7965   ac_cv_prog_gcc_traditional=yes
    7966 else
    7967   ac_cv_prog_gcc_traditional=no
    7968 fi
    7969 rm -f conftest*
    7970 
    7971 
    7972   if test $ac_cv_prog_gcc_traditional = no; then
    7973     cat >conftest.$ac_ext <<_ACEOF
    7974 #line $LINENO "configure"
    7975 #include "confdefs.h"
    7976 #include <termio.h>
    7977 Autoconf TCGETA
    7978 _ACEOF
    7979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    7980   egrep "$ac_pattern" >/dev/null 2>&1; then
    7981   ac_cv_prog_gcc_traditional=yes
    7982 fi
    7983 rm -f conftest*
    7984 
    7985   fi
    7986 fi
    7987 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    7988 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    7989   if test $ac_cv_prog_gcc_traditional = yes; then
    7990     CC="$CC -traditional"
    7991   fi
    7992 fi
    7993 
    7994 
    7995 
    7996 for ac_func in socket strdup
    7997 do
    7998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    7999 echo "$as_me:$LINENO: checking for $ac_func" >&5
    8000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    8001 if eval "test \"\${$as_ac_var+set}\" = set"; then
    8002   echo $ECHO_N "(cached) $ECHO_C" >&6
    8003 else
    8004   cat >conftest.$ac_ext <<_ACEOF
    8005 #line $LINENO "configure"
    8006 #include "confdefs.h"
    8007 /* System header to define __stub macros and hopefully few prototypes,
    8008     which can conflict with char $ac_func (); below.  */
    8009 #include <assert.h>
    8010 /* Override any gcc2 internal prototype to avoid an error.  */
    8011 #ifdef __cplusplus
    8012 extern "C"
    8013 #endif
    8014 /* We use char because int might match the return type of a gcc2
    8015    builtin and then its argument prototype would still apply.  */
    8016 char $ac_func ();
    8017 char (*f) ();
    8018 
    8019 #ifdef F77_DUMMY_MAIN
    8020 #  ifdef __cplusplus
    8021      extern "C"
    8022 #  endif
    8023    int F77_DUMMY_MAIN() { return 1; }
    8024 #endif
    8025 int
    8026 main ()
    8027 {
    8028 /* The GNU C library defines this for functions which it implements
    8029     to always fail with ENOSYS.  Some functions are actually named
    8030     something starting with __ and the normal name is an alias.  */
    8031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    8032 choke me
    8033 #else
    8034 f = $ac_func;
    8035 #endif
    8036 
    8037   ;
    8038   return 0;
    8039 }
    8040 _ACEOF
    8041 rm -f conftest.$ac_objext conftest$ac_exeext
    8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8043   (eval $ac_link) 2>&5
    8044   ac_status=$?
    8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8046   (exit $ac_status); } &&
    8047          { ac_try='test -s conftest$ac_exeext'
    8048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8049   (eval $ac_try) 2>&5
    8050   ac_status=$?
    8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8052   (exit $ac_status); }; }; then
    8053   eval "$as_ac_var=yes"
    8054 else
    8055   echo "$as_me: failed program was:" >&5
    8056 cat conftest.$ac_ext >&5
    8057 eval "$as_ac_var=no"
    8058 fi
    8059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    8060 fi
    8061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    8062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    8063 if test `eval echo '${'$as_ac_var'}'` = yes; then
    8064   cat >>confdefs.h <<_ACEOF
    8065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    8066 _ACEOF
    8067 
    8068 fi
    8069 done
    8070 
    80718135
    80728136# Check whether --enable-largefile or --disable-largefile was given.
     
    83828446rm -f conftest*
    83838447fi
     8448
     8449
     8450if test $ac_cv_c_compiler_gnu = yes; then
     8451    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
     8452echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
     8453if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     8454  echo $ECHO_N "(cached) $ECHO_C" >&6
     8455else
     8456    ac_pattern="Autoconf.*'x'"
     8457  cat >conftest.$ac_ext <<_ACEOF
     8458#line $LINENO "configure"
     8459#include "confdefs.h"
     8460#include <sgtty.h>
     8461Autoconf TIOCGETP
     8462_ACEOF
     8463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     8464  egrep "$ac_pattern" >/dev/null 2>&1; then
     8465  ac_cv_prog_gcc_traditional=yes
     8466else
     8467  ac_cv_prog_gcc_traditional=no
     8468fi
     8469rm -f conftest*
     8470
     8471
     8472  if test $ac_cv_prog_gcc_traditional = no; then
     8473    cat >conftest.$ac_ext <<_ACEOF
     8474#line $LINENO "configure"
     8475#include "confdefs.h"
     8476#include <termio.h>
     8477Autoconf TCGETA
     8478_ACEOF
     8479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     8480  egrep "$ac_pattern" >/dev/null 2>&1; then
     8481  ac_cv_prog_gcc_traditional=yes
     8482fi
     8483rm -f conftest*
     8484
     8485  fi
     8486fi
     8487echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
     8488echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     8489  if test $ac_cv_prog_gcc_traditional = yes; then
     8490    CC="$CC -traditional"
     8491  fi
     8492fi
     8493
     8494
     8495
     8496for ac_func in socket strdup
     8497do
     8498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     8499echo "$as_me:$LINENO: checking for $ac_func" >&5
     8500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     8501if eval "test \"\${$as_ac_var+set}\" = set"; then
     8502  echo $ECHO_N "(cached) $ECHO_C" >&6
     8503else
     8504  cat >conftest.$ac_ext <<_ACEOF
     8505#line $LINENO "configure"
     8506#include "confdefs.h"
     8507/* System header to define __stub macros and hopefully few prototypes,
     8508    which can conflict with char $ac_func (); below.  */
     8509#include <assert.h>
     8510/* Override any gcc2 internal prototype to avoid an error.  */
     8511#ifdef __cplusplus
     8512extern "C"
     8513#endif
     8514/* We use char because int might match the return type of a gcc2
     8515   builtin and then its argument prototype would still apply.  */
     8516char $ac_func ();
     8517char (*f) ();
     8518
     8519#ifdef F77_DUMMY_MAIN
     8520#  ifdef __cplusplus
     8521     extern "C"
     8522#  endif
     8523   int F77_DUMMY_MAIN() { return 1; }
     8524#endif
     8525int
     8526main ()
     8527{
     8528/* The GNU C library defines this for functions which it implements
     8529    to always fail with ENOSYS.  Some functions are actually named
     8530    something starting with __ and the normal name is an alias.  */
     8531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     8532choke me
     8533#else
     8534f = $ac_func;
     8535#endif
     8536
     8537  ;
     8538  return 0;
     8539}
     8540_ACEOF
     8541rm -f conftest.$ac_objext conftest$ac_exeext
     8542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     8543  (eval $ac_link) 2>&5
     8544  ac_status=$?
     8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8546  (exit $ac_status); } &&
     8547         { ac_try='test -s conftest$ac_exeext'
     8548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     8549  (eval $ac_try) 2>&5
     8550  ac_status=$?
     8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     8552  (exit $ac_status); }; }; then
     8553  eval "$as_ac_var=yes"
     8554else
     8555  echo "$as_me: failed program was:" >&5
     8556cat conftest.$ac_ext >&5
     8557eval "$as_ac_var=no"
     8558fi
     8559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     8560fi
     8561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     8562echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     8563if test `eval echo '${'$as_ac_var'}'` = yes; then
     8564  cat >>confdefs.h <<_ACEOF
     8565#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8566_ACEOF
     8567
     8568fi
     8569done
     8570
     8571
    83848572
    83858573
     
    89599147  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    89609148  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
    8961   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     9149  "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
    89629150  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    89639151echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     
    95069694    rm -f $tmp/config.h
    95079695  fi
     9696  # Run the commands associated with the file.
     9697  case $ac_file in
     9698    lib/config.h ) # update the timestamp
     9699echo timestamp >"lib/stamp-h1"
     9700 ;;
     9701  esac
    95089702done
    95099703_ACEOF
  • configure.in

    r97eadcc r60fc8aa  
    55AC_PREREQ(2.5)
    66
    7 AC_CONFIG_HEADERS(config.h)
     7AC_CONFIG_SRCDIR(lib/trace.c)
     8AM_CONFIG_HEADER(lib/config.h)
    89dnl Checks for programs.
    910AC_PROG_CC
     
    2627AC_TYPE_SIZE_T
    2728AC_HEADER_TIME
     29AC_SYS_LARGEFILE
    2830
    2931dnl Checks for library functions.
     
    3133AC_CHECK_FUNCS(socket strdup)
    3234
    33 
    34 dnl we need large files
    35 AC_SYS_LARGEFILE
    36 
    37 dnl check to make sure we have 64 bit file support
    3835
    3936
  • lib/fifo.c

    ra79ddbe r60fc8aa  
    2929 */
    3030
     31#include "common.h"
     32#include "config.h"
    3133#include <errno.h>
    3234#include <stdlib.h> /* free */
  • lib/trace.c

    r6c05d2c r60fc8aa  
    3838 */
    3939#define _GNU_SOURCE
    40 
    4140#include "common.h"
     41#include "config.h"
    4242#include <assert.h>
    4343#include <errno.h>
Note: See TracChangeset for help on using the changeset viewer.