File: configure.in

package info (click to toggle)
wfnetobjs 0.2.2-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,876 kB
  • ctags: 1,572
  • sloc: cpp: 12,405; sh: 8,357; ansic: 6,531; makefile: 536; yacc: 316; xml: 47; sed: 16; perl: 12
file content (79 lines) | stat: -rw-r--r-- 1,903 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
dnl Process this file with autoconf to produce a configure script.

AC_INIT(README)
AM_INIT_AUTOMAKE(wfnetobjs, 0.2.2)
AM_CONFIG_HEADER(config.h)

dnl Set of available languages.
ALL_LINGUAS="fr"

dnl Checks for programs.
AC_PROG_CC
AC_ISC_POSIX
AC_PROG_CXX

dnl internationalization macros
AM_GNU_GETTEXT

dnl Libtool
AM_PROG_LIBTOOL

dnl Checks for functions in the lib sub directory.
AC_REPLACE_FUNCS(strsep snprintf)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/sockio.h)
AC_CHECK_HEADERS(dlfcn.h dl.h)
AC_CHECK_HEADERS(stdarg.h varargs.h)
AC_CHECK_HEADERS(syslog.h)  dnl for rvlog

dnl Checks for functions.
dnl Dynamic linking
AC_CHECK_FUNC(dlopen, checkdl=no, checkdl=yes)
if test "x$checkdl" = "xyes"; then
case "x$LIBS" in
 *-ldl*);;
 *) AC_CHECK_LIB(dl, dlopen, DLLIBS="-ldl $DLLIBS") ;;
esac
fi
dnl HPUX ? ##
AC_CHECK_LIB(dld, shl_load, DLLIBS="-ldld $DLLIBS")
AC_SUBST(DLLIBS)


AC_ARG_ENABLE(debug,
 [  --enable-debug          turn on debugging and compile time warnings [default=no]],
 [enable_debug=yes; if test "$GCC" = "yes"; then CDEBUG_FLAGS="-Wall -g -DDEBUG"; else CDEBUG_FLAGS="-g -DDEBUG"; fi],
 [enable_debug=no; if test "$GCC" = "yes"; then CDEBUG_FLAGS="-O2 -Wall"; else CDEBUG_FLAGS=""; fi]
)
AC_SUBST(CDEBUG_FLAGS)
AM_CONDITIONAL(DEBUG, test "x$enable_debug" = "xyes")


AC_ARG_ENABLE(macvendor-db,
 [  --disable-macvendor-db  do no include builtin MAC address vendor database],
 [if test "x$enableval" = "xno"; then
    AC_DEFINE(NO_MACVENDOR_DB)
  fi]
)

AC_OUTPUT([
	intl/Makefile
	po/Makefile.in
	Makefile
	man/Makefile
	lib/Makefile
	rvlog/Makefile
	netobjs/Makefile
	tools/Makefile
	],
          [])

echo
echo "Summary of configuration settings:"
echo " base directory:    $prefix"
#echo " config directory:   $ac_sysconfdir"
#echo " info directory:     $ac_infodir"
#echo " log directory:      $ac_logdir"
#echo " run directory:      $ac_rundir"