aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-06-17 16:27:56 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-06-17 16:27:56 +0000
commit541898a55ad62f1ac96620303cae5a08ca61c70d (patch)
treeac3c20a6a36757b79ddbadac6953e1f426d05f52 /configure.ac
parentd764db9c57ad3fd67c278010e275221158d53ed6 (diff)
downloadipacct-541898a55ad62f1ac96620303cae5a08ca61c70d.tar.gz
ipacct-541898a55ad62f1ac96620303cae5a08ca61c70d.tar.bz2
Updated
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac30
1 files changed, 29 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a055c11..6c20f48 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,9 +63,37 @@ AC_FUNC_STRFTIME
63AC_FUNC_VFORK 63AC_FUNC_VFORK
64AC_FUNC_VPRINTF 64AC_FUNC_VPRINTF
65AC_FUNC_WAIT3 65AC_FUNC_WAIT3
66AC_CHECK_FUNCS(ftime gethostname gettimeofday getusershell getwd select socket strdup strerror strtol ether_hostton strerror) 66AC_CHECK_FUNCS(ftime gethostname gettimeofday getusershell ether_hostton)
67AC_REPLACE_FUNCS(strchrnul strndup strnlen strerror)
67 68
68rad_REPLACE_GNU_GETOPT 69rad_REPLACE_GNU_GETOPT
70AC_ARG_WITH(included-argp,
71 [ --with-included-argp Use included argp library],
72 [USE_INCLUDED_ARGP=$withval],
73 [USE_INCLUDED_ARGP=no])
74
75AC_CHECK_FUNCS(argp_parse, :, USE_INCLUDED_ARGP=yes)
76
77if test $USE_INCLUDED_ARGP = yes; then
78 AC_LIBOBJ([argp-ba])
79 AC_LIBOBJ([argp-eexst])
80 AC_LIBOBJ([argp-fmtstream])
81 AC_LIBOBJ([argp-fs-xinl])
82 AC_LIBOBJ([argp-help])
83 AC_LIBOBJ([argp-parse])
84 AC_LIBOBJ([argp-pv])
85 AC_LIBOBJ([argp-pvh])
86 AC_LIBOBJ([argp-xinl])
87fi
88
89if test $USE_INCLUDED_ARGP != yes; then
90 AC_CHECK_DECLS(program_invocation_name,,,[#include <argp.h>])
91 AH_BOTTOM([
92#if !HAVE_DECL_PROGRAM_INVOCATION_NAME
93extern char *program_invocation_short_name;
94extern char *program_invocation_name;
95#endif])
96fi
69 97
70dnl libpcap stuff 98dnl libpcap stuff
71dnl All the stuff below has been shamelessly stolen from libpcap-0.4 99dnl All the stuff below has been shamelessly stolen from libpcap-0.4

Return to:

Send suggestions and report system problems to the System administrator.