[go: up one dir, main page]

File: configure.ac

package info (click to toggle)
cadaver 0.22.3%2Bdebian-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,628 kB
  • ctags: 4,521
  • sloc: ansic: 37,238; sh: 3,574; makefile: 647; yacc: 288; sed: 27
file content (127 lines) | stat: -rw-r--r-- 2,997 bytes parent folder | download
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
dnl configure script

AC_PREREQ(2.53)
AC_INIT(cadaver, 0.22.3, cadaver@webdav.org)

AC_CONFIG_SRCDIR(src/cadaver.c)
AC_CONFIG_HEADER(config.h)

AC_DEFINE([_GNU_SOURCE], 1, [Define to enable GNU extensions])

NEON_WITH_LIBS

AC_ISC_POSIX
AC_PROG_CC
AC_PROG_INSTALL
AC_LANG_C
AC_SET_MAKE
AC_PROG_RANLIB

AC_HEADER_STDC

AC_ARG_ENABLE(debugging,
AC_HELP_STRING([--disable-debugging],[disable runtime debugging messages]),,
enable_debug=yes)

if test "$enable_debug" = "yes"; then
   AC_DEFINE(NE_DEBUGGING, 1, [Define to enable debugging])
fi

CHECK_READLINE()

AC_ARG_ENABLE(netrc,
AC_HELP_STRING([--disable-netrc], [enable .netrc support]),,
enable_netrc=yes)

NE_REQUIRE_VERSIONS([0], [24 25])

dnl Don't enable zlib or ACL support in neon
NEON_WITHOUT_ZLIB
NEON_WITHOUT_ACL

AC_PROVIDE([NE_SNPRINTF])

dnl Build neon. We support a VPATH build.
NEON_VPATH_BUNDLED(['$(top_srcdir)/lib/neon'], [lib/neon], [
	# We are using a bundled build, do the necessary stuff...
	# we have a bundled expat, and we don't need zlib support
        NEON_XML_PARSER([\$(top_srcdir)/lib/expat], [\$(top_builddir)/lib/expat])
	NEON_NORMAL_BUILD
], [
	# Not using a bundled build... do stuff.
	AC_C_CONST
	AC_CHECK_HEADERS(stdlib.h string.h strings.h unistd.h)
])

if test "$enable_netrc" = "yes"; then
   AC_LIBOBJ(lib/netrc)
   AC_DEFINE(ENABLE_NETRC, 1, [Define to enable netrc support])
   AC_MSG_NOTICE(.netrc support is enabled)
else
   AC_MSG_NOTICE(.netrc support is not enabled)
fi

dnl Check for getopt_long
AC_CHECK_FUNC(getopt_long,,[AC_LIBOBJ(lib/getopt)
AC_LIBOBJ(lib/getopt1)])

dnl Check for strcasecmp
AC_CHECK_FUNC(strcasecmp,,[AC_LIBOBJ(lib/strcasecmp)])

AC_HEADER_TIME

jm_PREREQ_TEMPNAME

NEON_REPLACE_SNPRINTF()

AC_FUNC_FNMATCH
if test $ac_cv_func_fnmatch_works = no; then
  AC_LIBOBJ(lib/fnmatch)
fi

AC_HEADER_DIRENT

AC_TYPE_SIGNAL

AC_CHECK_FUNCS(strdup strerror memcpy strcoll tcsetattr getpass stty)
AC_CHECK_HEADERS(sys/time.h pwd.h stdarg.h vmsdir.h memory.h alloca.h ncurses.h sgtty.h termios.h termio.h)

jm_FUNC_STRFTIME()

AM_GNU_GETTEXT([no-libtool],,[\$(top_builddir)/lib/intl])

if test "$USE_NLS" = "yes"; then
    if test "$USE_INCLUDED_LIBINTL" = "yes"; then
	nls_msg="Built using included libintl"
        CPPFLAGS="$CPPFLAGS -I\$(top_builddir)/lib/intl"
    else
	nls_msg="Built using native support"
    fi
    LIBS="$LIBS $LIBINTL"
else
    nls_msg="Not built"
fi

nls_msg="Not built"

NEON_WARNINGS

# Pick up config.h etc; and before any other paths.
CPPFLAGS="-I\$(top_builddir) -I\$(top_srcdir)/lib $CPPFLAGS"

AC_CONFIG_FILES([Makefile lib/neon/Makefile lib/intl/Makefile \
                 po/Makefile.in])

AC_OUTPUT

AC_MSG_NOTICE([Configured to build cadaver ${PACKAGE_VERSION}:

  Install prefix:        ${prefix}
  Compiler:              ${CC}
  Neon library:	         ${neon_library_message}
  XML Parser:            ${neon_xml_parser_message}
  SSL library:		 ${ne_SSL_message}
  Internationalization:  ${nls_msg}
  GNU readline support:	 ${msg_readline}
])